Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 25 Dec 2010, 02:28
AlexisMedia AlexisMedia is offline
 
Join Date: Dec 2010
Condition Question

I'm trying to do my first condition and I'm not sure if I got the code correct as it's not working. I'm thinking maybe my forum id is wrong but I don't know... This is for ad placements. The pre-loader is placed in the head (forumdisplay) like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then the ad's divs are placed in the proper part of the FORUM DISPLAY template like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

My url was this ending: forums/forumdisplay.php/26-Pro so I figured either 26 or 26-Pro would be the forum id. Neither seemed to work and show up in the source code though so maybe I'm doing the forum id wrong? You would think if it was completely wrong then the code would be showing up in the source code. I know positively I'm putting them in the right templates as I've tested with bogus words in the header etc and that showed up in the source code.

Thanks!
Reply With Quote
  #2  
Old 25 Dec 2010, 04:33
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You said this is in the FORUMDISPLAY template, so take a look at that template. When you do, you'll see the variable $forum is not used there, but instead the variable is called $foruminfo. So, use that variable instead.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 25 Dec 2010, 05:12
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
And also, 26 was correct. You don't use the SEO'd forum name. Just the ID number.
__________________
Reply With Quote
  #4  
Old 25 Dec 2010, 07:07
AlexisMedia AlexisMedia is offline
 
Join Date: Dec 2010
Awesome, thanks for the help everybody. Works : )

--------------- Added 25 Dec 2010 at 18:04 ---------------

I can't find this condition. Is there such? I've found everything but it seems...

"Show in every forum but these: (multiple forums)"

Last edited by AlexisMedia; 25 Dec 2010 at 18:04. Reason: Auto-Merged DoublePost
Reply With Quote
  #5  
Old 25 Dec 2010, 19:01
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)

Last edited by Lynne; 25 Dec 2010 at 19:29.
Reply With Quote
  #6  
Old 25 Dec 2010, 19:04
AlexisMedia AlexisMedia is offline
 
Join Date: Dec 2010
that was a no-go for me...
Reply With Quote
  #7  
Old 25 Dec 2010, 19:15
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Same or different template?
__________________
Reply With Quote
  #8  
Old 25 Dec 2010, 20:47
AlexisMedia AlexisMedia is offline
 
Join Date: Dec 2010
Same
Reply With Quote
  #9  
Old 25 Dec 2010, 21:50
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Exactly what do you have entered and exactly where in the FORUMDISPLAY template is it entered (show us the code from three lines before to three lines after the beginning if and ending if). And, what is the result?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #10  
Old 26 Dec 2010, 01:08
AlexisMedia AlexisMedia is offline
 
Join Date: Dec 2010
Sorry Lynne. Your code looked just like mine from the other thread so I thought you just changed the "foruminfo" part. Upon closer inspection I found a few little 's and )'s that were different.

All works fine now. These preset conditionals are actually pretty bad @$$. Just gotta keep learning them I guess...
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 18:12.

Layout Options | Width: Wide Color: