vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Conditionals in the forumdisplay w/ VBSEO

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? ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-05-2007, 10:08 PM
Member
 
Real Name: Trana
Join Date: Jan 2006
Posts: 70
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 01-06-2007, 06:46 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,923
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 01-06-2007, 06:24 PM
Member
 
Real Name: Trana
Join Date: Jan 2006
Posts: 70
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 01-06-2007, 07:37 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,923
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 01-06-2007, 07:40 PM
Member
 
Real Name: Trana
Join Date: Jan 2006
Posts: 70
Thanks, but it doesn't scale very well if I add child forums, I need to go back and update the template every time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 01-06-2007, 07:45 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,923
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:30 AM.


Powered by vBulletin Version 3.8.0 Release Candidate 2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.