vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=143610

Parsing the IF CONDITION on templates.
by andrefedalto
30 Mar 2007 18:37

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 :)

WetWired 30 Mar 2007 19:25

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.

thincom2000 30 Mar 2007 19:29

You need to call compile_template() in adminfunctions_template.php

andrefedalto 31 Mar 2007 00:42

Oh, great :)

Thanks a lot for your help guys, you got straight to the point :)


All times are GMT. The time now is 13:52.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.