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
    973
    Liked
    3 times

    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
    973
    Liked
    3 times
    Any updates on this?

  3. #3
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    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.

  4. #4
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    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
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    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).

  6. #6
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    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 11:14 PM.

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

    I assume you used a slightly different code, as == '5,6,7' shouldn't work. in_array(5,6,7) would though.

  8. #8
    Senior Member
    Real Name
    Matt
    Join Date
    May 2006
    Posts
    973
    Liked
    3 times
    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
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Hehe, that happens to me from time to time as well.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •