Hello,
does anybody know of a conditional which will exclude a piece of code or content from every page but the forum home page (ie: www.myforum.com)
Thanks
This is a discussion on Conditional for exclude forum home within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Hello, does anybody know of a conditional which will exclude a piece of code or content from every page but ...
Hello,
does anybody know of a conditional which will exclude a piece of code or content from every page but the forum home page (ie: www.myforum.com)
Thanks
You can try this:
HTML Code:<if condition="THIS_SCRIPT=='index'"> ... </if>
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thank you Oleg! Now, if anyone gets a chance, how do I do the opposite, and show code only on all other pages and not forumhome.
Last edited by Azonaco; 02-03-2009 at 11:14 PM.
Found the code!
hide some part of code in header template FORUMHOME - vBulletin.org ForumCode:<if condition="THIS_SCRIPT == 'index'"> Code if on index page <else /> Code on all pages except index page </if>