Zen Cart Logo
Forums / Addon Sideboxes / absolute links sidebox - how to add extra links?

absolute links sidebox - how to add extra links?

Locked

Views: 2,266

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Aug 2008, 9:36 PM
#1
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

absolute links sidebox - how to add extra links?

I have installed this sidebox and edited the tpl_absolute_links.php file to get myself a link, it now has given me 1 link, but i need to add more, is there a way of doing this? The file currently looks like what you can see below. (the bold red areas is what i inserted to get my link and i have kept everything else in place).

<?php /** * Absolute Links Side Box Template * * @package templateSystem * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * * @version $Id: tpl_absolute_links.php 2007-07-09 06:06:06Z tolefairy * */ $content = '<div id="absolutelinksContent" class="sideBoxContent centeredContent">'; /* Your html and/or javascript code goes between the 2 single quotes in the next line */ $content .= '**<a href="http://www.satsun.biz" target="_blank" title="SatSun Digital TV" class="example_link_class" id="example_link_id">Satsun.biz</a>** '; $content .= '</div>'; ?>
20 Aug 2008, 11:44 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,598
Plugin Contributions:
0

Re: absolute links sidebox - how to add extra links?

Copy the line that has the example as many times as you need too ... but using the EZ Pages Sidebox would be much easier ...

20 Aug 2008, 11:50 PM
#3
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: absolute links sidebox - how to add extra links?

Any chance of you knowing exactly what to copy and where exactly on the page to paste it? I was originally using the ez pages for my links and was very simple, but now need to use that for something else. Unless there is a way of having 2 ez side boxes...:unsure:

21 Aug 2008, 5:17 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: absolute links sidebox - how to add extra links?

$content .= '[B]<a href="http://www.mynewlink.biz" target="_blank" title="NewLink" class="example_link_class" id="example_link_id">My Link</a>[/B] ';

Post that directly under your first link

21 Aug 2008, 8:12 PM
#5
kal avatar

kal

New Zenner

Join Date:
Jun 2008
Posts:
83
Plugin Contributions:
0

Re: absolute links sidebox - how to add extra links?

Thanks, it worked and i added a <br /> at the end of the first link inorder to get each links underneath one another, otherwise both links were side by side :D

21 Aug 2008, 9:12 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: absolute links sidebox - how to add extra links?

Pleased to hear code worked for you
:clap: