PDA

View Full Version : How to edit $style[css]?


Xexiu
03-19-2013, 11:09 PM
1. I'm working on a current self-modified style and steped up trough this error when validating the page with HTML Results:

<style type="text/css" id="vbulletin_css">
/**
* vBulletin 3.8.6 CSS
* Style: 'iOS.H'; Style ID: 2
*/
@import url("clientscript/vbulletin_css/style-0227a4c8-00002.css");
</style>

The "id=vbulletin_css" isn't allowed. Also I want to modify where it says:

*vBulletin 3.8.6 CSS (delete it as I don't need that info).

Can someone tell me where I have to seach in order to edit those "variables". I tried searching on templates and phrases, but seems like that "info" its called via php...

2. Also I have a mod installed called: Tabs home by Gio~Logist (currently unsuported). I want to know what the javascript code to make the first tab active, so when an user comes on the site, then first tab is show as active/focused.

The CSS code is this one:

<div class="forum_tabs">
<ul>
<li><a href="#" tabindex="2" onclick="javascript: forumhome_tabs_switch('forumhome_tabs_$forum[forumid]'); return false;">$forum[title]</a>
</li>
</ul>
</div>

And the javascript that calls the function is this one:

<script type="text/javascript">
function forumhome_tabs_switch(switch_id){
document.getElementById('forumhome_tabs_switch_con tent').innerHTML = document.getElementById(switch_id).innerHTML;
}
</script>

I'll be much apreciated if someone can land me a hand and help me finish my style :).
(after I finish it, I will share it here and see if you guys like it)

P.P. Sorry for my english.

Chris8
03-20-2013, 04:41 PM
As for your 1st question I think it's $fullcsstext variable in adminfunctions_template.php responsible for it.

Xexiu
03-22-2013, 12:28 PM
Thanks Chris,

That fix the vbulletin 3.8.6 and the "id".

For the second question I will try and find some jquery plugin or something or ask somewhere, on ther forums.

Thanks again.