Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
webslingers

adding links in right column

Recommended Posts

Thank you, that worked perfectly. :D :D :D

 

One more thing. How can I make the text of the link say, Dace.Mfg? I want the . in there. But it reads it as part of the code.

 

Thanks.

Share this post


Link to post
Share on other sites
Try typing in . instead of the .


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

Like this...

 

Dace.Mfg

It should show as Dace.Mfg


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

I couldn't see your screenshot. Got a "file not found"


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

Sure. wolfmoon@optushome.com.au


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

Try it without the space after WebSlingers. and Dace.Mfg.

 

So it would look like this..

 

<a href="http://www.dace.com" target="_blank">'.Dace.Mfg.'</a>

 

I don't use Dreamweaver, but I'm guessing that a mistake turns the line a different colour until the code is fixed? Sorry I can't help you more with this, I'm just learning the code myself :cry:


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

I just noticed, in the screen shot you sent me, you have Dace#46;Mfg instead of Dace.Mfg

 

You left out the &


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

I didn't think it would work like that. I was just going by the initial bit of code posted.. I guess if it works, go with it :shock:


-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Share this post


Link to post
Share on other sites

Thanks for the help. It works now.

 

I did have the & in the screenshot, but that didn't work. I used Burts code and that worked fine. Thanks to both of you for your help. :D :D :D

Share this post


Link to post
Share on other sites

I do have another rookie question. And again I did search a bit for it, but found nothing. Using the same code as above, how would I make a new line, for a new link. I know there is something I am missing.

 

  $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => '<a href="http://www.dacemfg.com" target="_blank">Dace Mfg</a><br>');

 

To put another link under the current one, I have to take off the ; and put that at the end of the string, but what do I put at the end of the first link line?

Share this post


Link to post
Share on other sites

i made my own custom box with three links, two of my own and then one to the contact form that is usually in the info box. this is the code i used

    $info_box_contents = array();

   $info_box_contents[] = array('align' => 'left',

                                'text'  => '<a href="' . tep_href_link(FILENAME_SUPPORT_HOME, '', 'NONSSL') .'">Support Center</a><br>' . 

'<a href="' . tep_href_link(FILENAME_SUPPORT_TRACK, '', 'NONSSL') .'">Help Desk</a><br>' . 

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'

);

so, i think the answer you are looking for is put a space period space ( . ) inbetween each new link and end it all with the );

 

so your code would look like

$info_box_contents = array(); 

? $info_box_contents[] = array('align' => 'left', 

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text'? => '<a href="http://www.dacemfg.com" target="_blank">Dace Mfg</a><br>' . 

'<a href="http://www.dacemfg.com" target="_blank">Link 2</a><br>');

 

 

 

I hope this helps.

Every one has been helping me lately so i want to finally help some one else!


It's a Zoo in Here, Literaly...

Share this post


Link to post
Share on other sites

Thank you very much. It was the "space dot space" thing that I didn't know about. That fixed it all. If I can get help on my other questions like I did with this one, I will be in top shape... :D Thanks again very much! :D :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×