vBulletin Search Engine Optimization
This is a discussion on Conditionals in the forumdisplay w/ VBSEO within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I was wondering if anyone can tell me how I can put a forum name based conditional in a template? ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Conditionals in the forumdisplay w/ VBSEO
I was wondering if anyone can tell me how I can put a forum name based conditional in a template? For example: www.site.com/forum/forum2 I want to put a conditional in a template to only show a certain part of the navbar template (via an IF) if the actual page is the SEO'd forum above. I guess I also need to put in something if somehow someone hits a non-SEO'd page, but the goal is the same. Does anyone know what this particular IF statement would look like and is it specific to SEO'd pages or generic for the site? Thanks! |
|
#2
| ||||
| ||||
|
Hello Trana, if you want to put something specific to a subforum in template, conditional will be the same as with non-vbseoed board, something like: HTML Code: <if condition="$foruminfo[forumid]==2"> .. <else /> .. </if>
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#3
| |||
| |||
|
Ah, so lets say I have this setup: Forum 21 (parent, no posts) Forum 22 (posts) Forum 23 (posts) I am basically using 21 as a category. Will the conditional work for the entire category if I use 21 in the conditional statement? I.E. using 21 will include 22 and 23? Thanks! |
|
#4
| ||||
| ||||
|
No, it will only be applied to a subforum specified, without nested subforums. You can use the following conditional though: HTML Code: <if condition="in_array($foruminfo[forumid],array(21,22,23))"> .. <else /> .. </if>
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#5
| |||
| |||
|
Thanks, but it doesn't scale very well if I add child forums, I need to go back and update the template every time.
|
|
#6
| ||||
| ||||
|
Also, the following should work for child subforums: HTML Code: <if condition="$foruminfo[parentid]==21">
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature! | Juan Muriente | vBSEO Announcements | 74 | 05-20-2006 10:29 PM |
| vBSEO 2.0 RC7 Released | Juan Muriente | vBSEO Announcements | 17 | 09-09-2005 12:00 AM |