The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
If you want, pm me a admin account and I can see if I can figure it out when I get home today.
|
#22
|
|||
|
|||
Quote:
Anyway, is there any way to use the above code and have 10 different templates changed using an array or something like this? PHP Code:
|
#23
|
||||
|
||||
Quote:
Quote:
PHP Code:
|
3 благодарности(ей) от: | ||
Black Snow, ozzy47, tbworld |
#24
|
|||
|
|||
Thanks for that. I will test it out.
|
#25
|
|||
|
|||
I want to add something under the navbar. How do I add something to the end of the navbar temaplate OR include a template after the navbar? I'm not quite sure on using the pre-defined hooks or add new hooks into templates.
|
#27
|
|||
|
|||
Quote:
Code:
$templater = vB_Template::create('custom_template'); $templater->register('custom_template', $custom_template); $template_hook['postbit_userinfo_right_after_posts'] .= $templater->render(); --------------- Added [DATE]1411115460[/DATE] at [TIME]1411115460[/TIME] --------------- Sorry, I never added the cache and it now shows. Does the code I used above look OK? I have now added a new plugin for the forumhome using forumhome_complete hook location. I want it to show at the end of the navbar template. How do I insert my OWN custom template hook into the navbar template without having to manually edit the navbar template? |
#28
|
|||
|
|||
How do I add my own CSS to the additional.css template using a plugin?
|
#29
|
||||
|
||||
You can't, you need to include your own css template, and call it in the script.
|
#30
|
|||
|
|||
This is more for ozzy47 lol as I have used your mod [OzzModz] Change Forumrow Color On Mouseover as an example to make my own mod. I am making this plugin to change the background of moderated posts, does this look OK?
Code:
global $vbulletin; if (THIS_SCRIPT == 'showthread') { if ($vbulletin->options['mod_post_background_enable']) { if ($vbulletin->options['storecssasfile']) { $template_hook['custom_css_links'] .= '<link type="text/css" rel="stylesheet" href="' . vB_Template::fetch_css_path() . 'mod_post_background_color.css' . '?d=' . $style['dateline'] . '" />'; } else { $template_hook['custom_css_list'] .= 'mod_post_background_color.css'; } $find = '<div class=\"postbody\">'; $replace = '<div class=\"postbody <vb:if condition="$show['moderated']">moderated</vb:if>\">'; $vbulletin->templatecache['postbit_legacy'] = str_replace($find, $replace, $vbulletin->templatecache['postbit_legacy']); } } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|