Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding links in right column


Recommended Posts

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

 

Have you tried

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

 

You also have a space after the href=" which shouldn't be there..

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

 

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

Link to comment
Share on other sites

That's exactly how I had it. The problem is it seems to leave something open in the code. I am using dreamweaver and it color codes everything. When I add that little piece of code, the rest of it turns orange... when before it was black.

 

http://www.frankwatsonsworld.com/ss1.jpg

 

That is the screen shot of what I'm talking about.

Link to comment
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 ;)

Link to comment
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 ;)

Link to comment
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 ;)

Link to comment
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?

Link to comment
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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...