View Full Version : Homepage retrieve
dargre
06-20-2006, 12:29 PM
I'd like to put something only on directory HOMEPAGE.
How can I quess in top_bar.tpl that this is HOMEPAGE and not category,sub-category, details etc.
{if $category.ID eq 0}
put your homepage stuff in here
{else}
whatever else goes here
{/if}
dargre
06-20-2006, 12:46 PM
Yeah, it works but not to the end. Your function {if} {/if} determines if there are some categories or sub-categories.
But what about TopHits,LatestLinks,Submit,Details pages?
Surely will have more such simple questions in the future as I'm not so familiar with SMARTY.
Try this for phpLD 3.0.4+
Content visible to registered users only.
All other version lower than 3.0.4
Content visible to registered users only.
Boby
dargre
06-20-2006, 06:12 PM
Nearly perfect in my 3.04 PLD. Only for SUBMIT page doesn't work.
bobby9101
06-20-2006, 09:01 PM
yeah that was my question how can i get something to not show on the search page if it is in the footer or something
my appologies. i didn't quite read your post all the way through.
you would modify your submit.tpl with the same basic code that Boby put up above. that should take care of the submit stuff, not unless you have some sort of other stuff on there.
Just add for example something like:
Content visible to registered users only.
to submit.php and all other pages where you don't want the stuff to appear and then change the {if} statement to:
Content visible to registered users only.
or this for phpLD below 3.0.4
Content visible to registered users only.
Boby
arindra
06-21-2006, 12:37 AM
cool , i was looking for the code to determine if my content was on the top links and latest links page or not :)
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.