Support Forums

How to add a new tab?

This is a discussion on How to add a new tab? within the Technical Support forums, part of the Technical Support Forums category; Hi all, I am not familiar with Smarty, what would be the easiest way to add a new tab to ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 07-10-2009, 06:58 AM   #1
Senior Member
 
Join Date: Jun 2009
Posts: 159
Rep Power: 8
sitewonders is on a distinguished road
Default How to add a new tab?

Hi all,

I am not familiar with Smarty, what would be the easiest way to add a new tab to the top of my site? I simply want a tab that goes to my wordpress blog.

Many Thanks

Gary
__________________
v4.1.3 Designer - Nustyle 3 Ocean
sitewonders is offline  
Old 07-10-2009, 08:12 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,230
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Smarty has nothing to do with adding a new tab. Smarty is primarily used to pass variables from the underlying scripts to the user or to perform logic on variables.

The tabs are all handled via html and css. Often times a smarty variable is used to represent part of a link but since you are linking to something outside of 68C you would just create the link for the tab with standard html.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 07-10-2009, 10:59 AM   #3
Senior Member
 
Join Date: Jun 2009
Posts: 159
Rep Power: 8
sitewonders is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
Smarty has nothing to do with adding a new tab. Smarty is primarily used to pass variables from the underlying scripts to the user or to perform logic on variables.

The tabs are all handled via html and css. Often times a smarty variable is used to represent part of a link but since you are linking to something outside of 68C you would just create the link for the tab with standard html.
ok thank you.

Gary
__________________
v4.1.3 Designer - Nustyle 3 Ocean
sitewonders is offline  
Old 07-13-2009, 05:01 AM   #4
Senior Member
 
Join Date: Jun 2009
Posts: 159
Rep Power: 8
sitewonders is on a distinguished road
Default

I have tweaked my code (its a little diferent as we discussed before as the invocation code messed up the tabs if you remember).

I have

<ul id="nav">
<li><a href="http://www.uk.magicfreeads.com/"><span>{$smarty.const.LANG_TPL_HOME}</span></a></li>
<li><a href="http://uk.magicfreeads.com"><span>UK MAGIC CLASSIFIEDS</span></a></li>
<li><a href="http://us.magicfreeads.com"><span>US MAGIC CLASSIFIEDS</span></a></li>
<li><a href="http://www.uk.magicfreeads.com/usercheckout.php"><span>{$smarty.const.LANG_TPL_PL ACE_AD}</span></a></li>
<li><a href="contactus.html"><span>{$smarty.const.LANG_TP L_CONTACT}</span></a></li>
</ul>

But it displays very badly...

Magic Classifieds - Magic Freeads - Buy and Sell Magic

Any suggestions?

Many Thanks

Gary
__________________
v4.1.3 Designer - Nustyle 3 Ocean
sitewonders is offline  
Old 07-13-2009, 05:13 AM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,039
Rep Power: 29
bowers01 is on a distinguished road
Default

Just call them UK Magic and US Magic instead.
is the easiest way.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-13-2009, 05:16 AM   #6
Senior Member
 
Join Date: Jun 2009
Posts: 159
Rep Power: 8
sitewonders is on a distinguished road
Default

Thanks, didnt think it would be that simple.

Gary
__________________
v4.1.3 Designer - Nustyle 3 Ocean
sitewonders is offline  
Old 07-13-2009, 05:20 AM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,039
Rep Power: 29
bowers01 is on a distinguished road
Default

David might know a way to make the tabs have the ability to stretch wider but its a good fix for now.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-13-2009, 05:33 AM   #8
Senior Member
 
Join Date: Jun 2009
Posts: 159
Rep Power: 8
sitewonders is on a distinguished road
Default

Now I just need to get those tabs to appear at the top of wordpress - MagicFreeads Magic Blog - Any Tips?

Thanks

Gary
__________________
v4.1.3 Designer - Nustyle 3 Ocean
sitewonders is offline  
Old 07-13-2009, 05:51 AM   #9
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,039
Rep Power: 29
bowers01 is on a distinguished road
Default

Cant you just add the same code as the main site?
ie
Quote:
<ul id="nav">
<li><a href="http://www.uk.magicfreeads.com/"><span>{$smarty.const.LANG_TPL_HOME}</span></a></li>
<li><a href="http://uk.magicfreeads.com"><span>UK MAGIC CLASSIFIEDS</span></a></li>
<li><a href="http://us.magicfreeads.com"><span>US MAGIC CLASSIFIEDS</span></a></li>
<li><a href="http://www.uk.magicfreeads.com/usercheckout.php"><span>{$smarty.const.LANG_TPL_PL ACE_AD}</span></a></li>
<li><a href="contactus.html"><span>{$smarty.const.LANG_TP L_CONTACT}</span></a></li>
</ul>
Does the same css file get loaded for the blog and the main site?
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-13-2009, 06:00 AM   #10
Senior Member
 
Join Date: Jun 2009
Posts: 159
Rep Power: 8
sitewonders is on a distinguished road
Default

I havent set it to, but i DO want the tabs on the blog, so I will put the code into the blog in a mo and see what happens

Gary
__________________
v4.1.3 Designer - Nustyle 3 Ocean
sitewonders is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0