View Full Version : informatio link !!!!
big g
14-Mar-2005, 03:17 PM
Hello All
On the product details under the general tab i have a information link text, is it possible to have more then one of these per product!!!
garyhay
14-Mar-2005, 03:37 PM
Yes but you will need to use a CUSTOMVAR 1 for the text the other for the link.
See the help file about CUSTOMVARS and post back if you get stuck.
I explained how to use CUSTOMVARS in depth a couple of weeks ago so searching the forum will provide more details
jont
15-Mar-2005, 01:19 AM
Hi Gareth,
you can use CUSTOMVAR's as Gary suggests or you can insert a button link into the product description:
!!<<input type=button value="Click for More Text" onclick="ShowPopUp('http://www.domain.com/more_text.htm',680,750)">>!!
The above will insert a clickable button and open the page "more_text.htm" in a new window 680 x 750
Either way you will need to create a new page containing the 2nd additional text for your product... the CUSTOMVAR route is probably the better option once you have the templates modified of the above for ad-hoc insertions.
NormanRouxel
15-Mar-2005, 12:20 PM
If you're doing this a lot here's a way of automating it:-Automating using a Customvar for extra off site link(s).
If you want to create several custom links to
Instead of using 2 customvars to create a link the following will allow you
to use a single customvar containing e.g.
Read the news. > news.bbc.co.uk
and it will automatically generate the link from that.
e.g. <a href="http://news.bbc.co.uk" target="_blank">Read the news. </a>
If the customvar is empty nothing will be generated.
If there's no ">" you'll get a warning displayed.
INSTALLATION
Put the following into your Primary Template(s) just above the </HEAD> line.
<script language=JavaScript>
<!--
function extralink(cvar){
if ( cvar == '' ) return;
var bits = cvar.match(/(.*)>(.*)/);
if ( bits != null )
{
var url = bits[2].replace(/^\s+|\s+$/,"");
document.write(' <a href="http://' + url + '" target="_blank">' + bits[1] + '</a> ');
}
else
{
document.write(' <font color=red>ERROR: ' + cvar + '</font> ');
}
}
//-->
</script>
Create (Via Advanced / Custom Properties) properties LINK1, LINK2, LINK3, etc.
In your Product Template(s), where you want these links displayed put
<script language=JavaScript>
<!--
extralink("CUSTOMVAR:LINK1");
extralink("CUSTOMVAR:LINK2");
extralink("CUSTOMVAR:LINK3");
//-->
</script>
NOTES
Don't use the double quote character ( " ) in your custom properties LINK1, LINK2, etc.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.