Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 30 Mar 2007, 18:37
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Real name: André
Parsing the IF CONDITION on templates.

Hi all

I'd like to know how vBulletin parse the
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

during the template eval.

Any help would be appreciated. THanks
Reply With Quote
  #2  
Old 30 Mar 2007, 19:25
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
It doesn't. Template conditionals are parsed when they are saved.

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

Gets parsed and saved as

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

Also, several substitutions are made on variable names. $bbuserinfo gets changed to $vbulletin->userinfo, for instance.
Reply With Quote
  #3  
Old 30 Mar 2007, 19:29
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
You need to call compile_template() in adminfunctions_template.php
Reply With Quote
  #4  
Old 31 Mar 2007, 00:42
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Real name: André
Oh, great

Thanks a lot for your help guys, you got straight to the point
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Templates: Dynamic Templates Changing according to different conditions Logician vBulletin 2.x Full Releases 312 24 Apr 2005 20:20



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 09:31.

Layout Options | Width: Wide Color: