Results 1 to 7 of 7

More if condition help - search and searchid

This is a discussion on More if condition help - search and searchid within the Template Modifications forums, part of the vBulletin SEO Discussion category; I saw an old post from brian and I decided to try it out on my site.: Code: <if condition="!( ...

  1. #1
    Senior Member
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1

    More if condition help - search and searchid

    I saw an old post from brian and I decided to try it out on my site.:

    Code:
    <if condition="!(
    (THIS_SCRIPT == 'index') OR
    (THIS_SCRIPT == 'login') OR
    (THIS_SCRIPT == 'register') OR
    (THIS_SCRIPT == 'usercp') OR
    (THIS_SCRIPT == 'private') OR
    (THIS_SCRIPT == 'subscription') OR
    (THIS_SCRIPT == 'payments') OR
    (THIS_SCRIPT == 'newthread') OR
    (THIS_SCRIPT == 'newreply') OR
    (THIS_SCRIPT == 'memberlist') OR
    (THIS_SCRIPT == 'online') OR
    (THIS_SCRIPT == 'member') OR
    (THIS_SCRIPT == 'profile') OR
    (THIS_SCRIPT == 'faq') OR
    (THIS_SCRIPT == 'sendmessage') OR
    (THIS_SCRIPT == 'calendar') OR
    ((THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
    ((THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
    (THIS_SCRIPT == 'THIS_SCRIPT'))">
    Everything seems to be working fine...besides when I click NEW POSTS. I get the code that shouldn't be showing up on that list above. I figure it had to do with the searchid part of the code.

    Please help

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    what exactly are you tyring to do?

  3. #3
    Senior Member
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    I'm working with RR's and ads basically. Go here:
    Graphics Tutorials, Signature Showoff, Web Graphics Design, and Graphics Help! - Layered GFX Forums

    I want it so when you are on the scripts mentioned above, you have the leaderboard ads, but when you go into a category/sub-forum, it gets replaced with 2 ads on the left and RR's on the right. Sort of like vBulletin-faq I guess. So I have it like that...the only thing that is screwing up is when I search something (ie using NEW POSTS feature).
    Last edited by jbartle; 08-12-2007 at 04:18 PM.

  4. #4
    Junior Member
    Real Name
    Robert Paulson
    Join Date
    Dec 2007
    Posts
    29
    Liked
    0 times
    I know this thread is old - does this "OR" syntax still work? I just tried it out and it doesn't appear to.

    I'm trying to display different divs based on the script being run - nested if conditions work, but it seems pretty clunky.

  5. #5
    Junior Member
    Real Name
    Robert Paulson
    Join Date
    Dec 2007
    Posts
    29
    Liked
    0 times
    Oops - my bad. I wasn't paying attention to the not equal "!" at the top of the code in the earlier post. This works fine.

  6. #6
    Senior Member
    Real Name
    Bernard
    Join Date
    Aug 2007
    Location
    Friendswood, TX
    Posts
    184
    Liked
    2 times
    This code works great. Can anyone tell me what this part:
    Code:
    THIS_SCRIPT == 'THIS_SCRIPT'
    is checking?
    I'm using vbSEO for my precious metals forum.

  7. #7
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    that checks for any script that has a defined value of THIS_SCRIPT as a literal. Some mods used to use that.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Posting Permissions

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