![]() |
Template Css adding in my addon
I used this plugin to upload my template.css, but sometimes is it loaded and others no why? (vBulletin 4.1.5)
Code:
In several articles I found this code, but everyone says outdated Code:
<plugin active="1" executionorder="5"> Regards |
Take a look at the headinclude template:
HTML Code:
<vb:if condition="$vboptions['storecssasfile']"> PHP Code:
|
Thanks Lynne
I have to replace xxxx and yyy with the name of my template.css, is it correct? Regards |
No, not exactly. The _links hook requires a full on link. (I actually got this code from one of BOPs mods.)
Try this: Code:
$template_hook['custom_css_links'] .= '<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style' . str_pad($style['styleid'], 5, '0', STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/ct_thread.css" />'; |
1 Attachment(s)
Thanks it works fine.
You know how these two ways of interpreting the CSS code Regards |
I have no idea why that gap is there. You'd need to analyze the box using something like firebug.
|
I actually got in to some trouble with this a few minutes ago and Lynne was kind enough (as always!) to point me I'm using process_tempaltes_complete instead of parse_templates.
With that help, now I am using this in my codes: PHP Code:
|
Hi CvP
Thanks, but your code works fine on my addon with parse_templates hook, doesn't work with process_tempaltes_complete regards |
Yes, it needs to be on parse_templates. I used process_templates_complete and banging my head on table until Lynne stepped in.
|
Quote:
|
All times are GMT. The time now is 08:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|