this help a lot thanks
|
Can these instructions be take a little further so the following can be done. When making a template, can that template include a variable that can be entered somewhere in the admincp? For example I want the temple to show "THIS". The only thing is I do not want to go to the template all the time and edit "THIS". Can I make a little addition to the admin CP so I can specify what "THIS" is?
Also, can all these template hooks, templates and all related to me showing "THIS" be saved in one package like a mod is so It can be uploaded to another forum easily? Thanks |
Thanks for this guide. Indeed good tutorial.
I've crossed into weird thing though (vbulletin version 3.8.2), maybe someone came aross it & can give few tips on what i could have missed - i can't get rid of "uncached template" warning eventhough I have plugin on "cache_templates" adding it to $globaltemplates[], so not sure what am i missing. |
what hook are you using and whats the plugincode?
nobody can help you without that infos;) |
2 plugins:
1] location: "global_start" name: "alt_lp_template" with followign code: PHP Code:
name: "Tempalte Cache" with followign code: PHP Code:
Note this template was added to master style. EDIT: what's more weird, i know it's cached, as later on i can access it from $vbulletin->templatecache['alternate_view'] |
You have to make it this way:
to cache it: PHP Code:
PHP Code:
|
thanks, that solved it, wrote under cache name the var name instead... silly me :p
|
Excellent Post. Including my Javascript php file worked in parse_templates rather than cache_templates.
|
Hi Everyone,
Lets say I set some variable: $domain = "testsub.domain.com"; from within a global_start plugin. SHOULD I be able to use this in any template?? I seem to have very mixed results. Some pages with links that contain this domain are just broken... Any ideas? |
No, some templates are called from functions/methods, so you would have to create plugins to make your variable in the scope there.
You could write your variable into $vbulletin['myvarname'] = 'foo.bar.tld'; because $vbulletin should be everywhere in the scope. I hope you can understand what i mean |
All times are GMT. The time now is 09:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|