vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 9 of 9

Add space between categories

This is a discussion on Add space between categories within the Template Modifications forums, part of the vBulletin SEO Discussion category; Please refer to this post space between each category one problem - vBulletin Community Forum I am trying to add ...

  1. #1
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    846

    Add space between categories

    Please refer to this post space between each category one problem - vBulletin Community Forum

    I am trying to add the space in between categories, but I cant get help from vbulletin.com because vbseo is installed, so hopefully someone here can be more helpful.

    I have done what the post says to do, but because the forum at the top of the site is private, it does not work for reg members.

    Thanks.

  2. #2
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    846
    Any updates on this?

  3. #3
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    New Zealand
    Posts
    3,712
    Hi Matt,

    You just need to alter that conditional or add another..

    Code:
    <if condition = "$bbuserinfo[usergroupid] == 'x' AND $forum[forumid] == 'x'"> 
    
    ..... 
    
    <else /> 
    
    <if condition = "$forum[forumid] == 'y'">............</if>
    
    </if>
    
    (or whatever it is, I dont have access to my templates right now).

    The red part is the existing code, the rest is the addition.

    *edit* Zachery didn't refuse to help because of the presence of vBSEO, he couldn't read the code easily because of the C2C compression .. you could have turned off the C2C compression in your vbseocp.php Control Panel and he would have been able to see what was up. If my suggestion doesn't work, try doing that and asking him again.
    Ace Shattock / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | vBulletin Hosting

  4. #4
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    846
    What do the ...... mean above? any chance you could take a quick look at your templates and try and write it out in full (2 forum ID's are 3 and 330)

    Appreciate it. Thanks.

  5. #5
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    New Zealand
    Posts
    3,712
    The ... means whatever you currently have in the template.

    I can take a look in about 8 hours.. I am not at home, and my templates are heavily modified as they are.

    (also, to do it, I need to also know what the usergroupid is that can see the hidden forum, as that is part of the conditional).
    Ace Shattock / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | vBulletin Hosting

  6. #6
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    846
    As per instuctions, it just needs to be at the very top of the template forumhome_forumbit_level1_nopost
    If I need to change that, let me know here is what I change changed it to so far:

    Code:
    <if condition = "$bbuserinfo[usergroupid] == '5,6,7' AND $forum[forumid] == '353'"> 
    
    <else /> 
    
    <if condition = "$forum[forumid] == '3'"></if>
    
    </if>
    
    Now the dot is showing for me and reg members, so it is basically doing nothing now. any other ideas?




    edit:
    doing this now makes it work for everyone but the staff

    Code:
    <if condition = "$bbuserinfo[usergroupid] == '5,6,7' AND $forum[forumid] != 353"> 
    
    <else /> 
    
    <if condition = "$forum[forumid] != 3"></if>
    
    </if>
    
    Edit: nvm I got it working now, i left out an if statement in the original code. silly me for working late at night lol
    Last edited by hornstar6969; 08-01-2007 at 10:14 PM.

  7. #7
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    New Zealand
    Posts
    3,712
    Excellent!

    I assume you used a slightly different code, as == '5,6,7' shouldn't work. in_array(5,6,7) would though.
    Ace Shattock / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | vBulletin Hosting

  8. #8
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    846
    I went back to the very original code, after i realised i left out an if tag, so my new code is just <if condition = "$forum[forumid] != 3"> with the if statement a few lines down, it works as stated on vBulletin, just doesnt work if you leave out an if tag^^

  9. #9
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    New Zealand
    Posts
    3,712
    Hehe, that happens to me from time to time as well.
    Ace Shattock / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


    My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | vBulletin Hosting

Similar Threads

  1. Add custom code to all pages
    By Greps in forum vBSEO Features Archive
    Replies: 1
    Last Post: 03-23-2006, 02:48 PM