The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Editing Profile tabs?
Hello,
I had searched around google and vb org to edit the CSS of profile tabs and didn't found it anywhere. On the profile template (MEMBERINFO) I found: Code:
<div id="profile_tabs" style="padding-top: 20px;"> $template_hook[profile_left_first] $blocks[visitor_messaging] $blocks[aboutme] $blocks[stats] $blocks[friends] $blocks[infractions] $blocks[contactinfo] $template_hook[profile_left_last] </div> Code:
<div id="profile_tabs" style="padding-top: 20px;"> <ul class="tab_list" style="height: 29px;"> <li id="visitor_messaging_tab" class="tborder tcat" tab_id="visitor_messaging" fixed_width="133" style="width: 133px; display: block; background-position: 0px 0px;">Visitor Messages</li> <li>etc..</li> </ul> </div> Anyone can land me a hand, please? Thank you. |
#2
|
||||
|
||||
I believe the CSS for the profile tabs is in /clientscript/vbulletin_tabctrl.css
|
#3
|
|||
|
|||
Thank you for the info, Lynne!
I allready knewed about that. But it isn't what I'm looking for. Let me explain myself. I want to edit the code and add my own CSS. For example: I want to delete: Code:
<ul class="tab_list" style="height: 29px;"> Code:
<ul style="my_code_here"> Code:
<div id="profile_tabs" style="padding-top: 20px;"> $template_hook[profile_left_first] $blocks[visitor_messaging] $blocks[aboutme] $blocks[stats] $blocks[friends] $blocks[infractions] $blocks[contactinfo] $template_hook[profile_left_last] </div> Much thanks and apreciated for your answers! |
#4
|
||||
|
||||
I believe you will need to edit each of the blocks templates to reflect your <ul class
Search for MEMBERINFO, you will see all the memberinfo blocks. Then edit /clientscript/vbulletin_tabctrl.css to add your css info |
#5
|
||||
|
||||
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
Once you turn that on, you can find the template you want to edit. |
#6
|
|||
|
|||
Well, thank you Lynne.
Had to edit the js. file in order to remove some things. Let me explain how do I do it: I had enabled HTML Comments and saw this: Code:
<script type="text/javascript"> <!-- vBulletin.register_control("vB_TabCtrl", "profile_tabs", "", "»", "profile.php?u=2&do=loadtab&tabid={1:tabid}"); //--> </script> I downloaded the file from my server and make the following edits. Inside vbulletin_tabctrl.js I searched for (depending on the customized style): Code:
tborder tcat tab_header Code:
alt1 Code:
<div id="profile_tabs" style="padding-top: 20px;"> <ul class="tab_list" style="height: 29px;"> <li>...</li> <li>...</li> </ul> <div class="alt1"></div> (was before: tborder tcat tab_header) Here is the function from .js file that I observed: Code:
parentNode.insertBefore(document.createElement("div"),F[0]);YAHOO.util.Dom.addClass(B,"tborder tcat tab_header")} I don't know if I copied ALL the code that make the function. I will attach 2 versions of my vbulletin.tabctrl.js (one is the original and one is the modified). P.D. Removing the "div" from the file, so after doing it, will reflect the changes on vistior tabs! |
Благодарность от: | ||
Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|