+ Reply to Thread
Results 1 to 4 of 4




  

Thread: vB: IF conditional driving me batty! HELP

      
  1. #1
    Will Work For Coffee :-} Big Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond repute Big Dan's Avatar
    Join Date
    October 14, 2006
    Location
    New York
    Posts
    1,954
    Rep Power
    8
    Feedback Score
    0

    Unhappy vB: IF conditional driving me batty! HELP

    Hi Guys,

    I'm working on a vB board for a client who wants a banner rotation shown only above a certain forum and it's contained threads. I've installed vB Ad Management 4 and followed the instructions in order to make the banners show only with forum ID number 36.

    Here is the code I'm using in the navbar template:

    Code:
    <if condition="in_array($forum, array(36))">$navbar_advertisement</if>
    It just won't work, I've even tried using a else conditional to show text for testing. The else conditional always shows.. The navbar template doesn't seem to know what forum it's dealing with.. if that makes any sense.

    Any help would be greatly apprecatied

    Thanks,
    Dan
    Big Dan
    DJ Talk - Where DJ's meet! | Almost Geek - Geeky Tutorials and Stuff | Got Email Questions?

  2. #2
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default

    Dan, try this:
    Code:
    <if condition="$forum[forumid] == 36">$navbar_advertisement</if>
    You don't need an array, you're only specifying one forum. Let me know if it works, I didn't test.

  3. #3
    Will Work For Coffee :-} Big Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond repute Big Dan's Avatar
    Join Date
    October 14, 2006
    Location
    New York
    Posts
    1,954
    Rep Power
    8
    Feedback Score
    0

    Default

    Colleen you're a life saver!! I'd buy you a beer but you don't have a tip jar out. Wow one simple oversight had my ripping my hair out. :twisted:

    The only draw back is that the banner rotator doesn't show on forum display but that could probably be fixed by editing that template although this will be sufficient for him.
    Big Dan
    DJ Talk - Where DJ's meet! | Almost Geek - Geeky Tutorials and Stuff | Got Email Questions?

  4. #4
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default

    Quote Originally Posted by Big Dan View Post
    Colleen you're a life saver!! I'd buy you a beer but you don't have a tip jar out. Wow one simple oversight had my ripping my hair out. :twisted:

    The only draw back is that the banner rotator doesn't show on forum display but that could probably be fixed by editing that template although this will be sufficient for him.
    I'll take "Big Bunny Dan" now, or what was it I said you should be called? Something along those lines... :cheesy-e:

    Yea, that part is weird and I am guessing it has to do with the hooks, you'd probably have to create a plugin for that specific hook, but that's where I get lost myself. :cool-e:

    Kalina added 2 Minutes and 45 Seconds later...

    Awwww you did that just for me.... :blush:

    Kalina added 1 Minutes and 13 Seconds later...

    You just gave me an idea! :P
    Last edited by Colleen; Mar 20th, 2008 at 3:49 pm. Reason: Automerged Doublepost

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Driving me wild, how to create an about page
    By iowadawg in forum Blogging
    Replies: 2
    Last Post: Apr 29th, 2008, 8:23 pm
  2. What car are you driving?
    By bbrian017 in forum Forum Lounge
    Replies: 7
    Last Post: Oct 22nd, 2007, 12:02 pm
  3. Forum Scirpts Driving me NUTS!
    By Kaos in forum Forum Management
    Replies: 4
    Last Post: Dec 7th, 2006, 12:05 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads