The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How it works...
I'm a newbie to vBulletin, but very experienced in web development (over 7 years). I've install 3.0.3 and I'm trying to figure out how everything interacts with each other, specifically the TEMPLATES in the admin area and the .php files. Like for example, MEMBERINFO in the Templates area of the Admin and where is the call to MEMBERINFO in the member.php file? I mean I see the very last 2 lines is
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO'); eval('print_output("' . fetch_template($templatename) . '");'); But things that happen in one area of the site in the MEMBERINFO aren't happening in the User Profile, but they should be. Specifically talking about the Age in Profile hack. I appreciate any info or help in anyway. Thanks in advance. |
#2
|
||||
|
||||
Hi
It's not that hard: Templates are called with something like $foo = fetch_template(foo), which stores the template in the var $foo. Afterwards, print_output() outputs the whole thing, using the template indicated in the fetch_template() inside print_output(). Additionally, you have template conditionals, with which you can show or hide certain parts of the template based on conditionals. Those look like this: <if condition="$foo == 2">foo is 2<else />foo isn't 2</if> The else part is optional. There's also a lot more information in the vBulletin documentation which you can find at www.vbulletin.com/docs/ Have fun with vBulletin! |
#3
|
|||
|
|||
Thanks Colin,
But when you look in the ACP, there are templates that are all caps and ORANGE, like MEMBERINFO and others that are just lower case, does this mean anything??? |
#4
|
||||
|
||||
As far as I know not. Some that are all caps are page templates, the ones called with print_output, but I don't think it has any meaning other than to highlight them a bit more.
|
#5
|
|||
|
|||
so what are the ones that are all lower case?
|
#6
|
||||
|
||||
Templates inside the actual page. For example the postbit is repeated (using $postbit .= fetch_template(postbit) ) for each post. So the postbit is an own template. Or the navbar. Or the header. pretty much everything is in a template somewhere, except for the basic page layout.
|
#7
|
|||
|
|||
Quote:
Basicly if you have this: PHP Code:
HTML Code:
<html>$foo<br />$foo2<br />$foo3<br />$foo4</html> PHP Code:
|
#8
|
|||
|
|||
oh ok -- I see - thanks
I also wanted to ask -- if I am working off the Default Style, and adding in hacks and such. If I change the style, will I have to go thru and change all the Templates again??? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|