The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#14
|
||||
|
||||
![]()
You don't need the <phrase> tags around $vbphrase[onlineinvisible]. You'll only need those if you're going to be using a variable inside of the phrase. For example: phrase1: "There have been {1} users online today, but there were {2} online yesterday." Then you'd use: <phrase 1="$userstoday" 2="$usersyesterday">$vbphrase[onlinetoday]</phrase>.
Paul's code caches the template so your board doesn't have to query for it every page load. The template is installed (if that's what you were trying to say) whenever the product is imported. This code needs to be put in a plugin by itself using hook 'cache_templates'. Code:
if (THIS_SCRIPT == 'index') { $globaltemplates[] = 'silly_newbie_template'; } Code:
$search_text = '$vbphrase[x_members_and_y_guests]</phrase>)'; $vbulletin->templatecache['FORUMHOME'] = str_replace($search_text, Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|