View Full Version : Copying vbmenu_control
4x4 Mecca
03-01-2007, 01:35 AM
I installed this hack (https://vborg.vbsupport.ru/showthread.php?t=123254&highlight=vbmenu_control) to add a profile drop down thing in the postbit, you can see an example on my forum here (http://www.4x4mecca.com/forum/showpost.php?p=7396&postcount=2). As you can see it's blue and wide because it uses the default vbmenu_control. I want to make a copy of that and edit it with the bg color and text color I want, but I don't know where to find it. Can anyone help me? Thanks
Princeton
03-01-2007, 02:04 AM
most likely the postbit / postbit_legacy template
4x4 Mecca
03-01-2007, 02:12 AM
It's not in the postbit_legacy template. Well not that I could find anyway. Thanks for helping! I may be wrong though, I mean your Admin, so I'll head back and check again! Thanks.
I found it in vbulletin-style.xls and copied it there. It seems to have worked. Thanks for you help!
RedGTiVR6
03-04-2007, 11:45 AM
is that .xml found via FTP or is that something that I can find in the admin CP somewhere?
4x4 Mecca
03-04-2007, 03:55 PM
It's in the install folder, the file name is vbulletin-style.xml.
Open the file, search for .vbmenu_control which looks like this
<template name=".vbmenu_control" templatetype="css" date="1070536142" username="Kier" version=""><![CDATA[a:7:{s:10:"background";s:7:"#738FBF";s:5:"color";s:7:"#FFFFFF";s:4:"font";a:3:{s:5:"style";s:4:"bold";s:4:"size";s:4:"11px";s:6:"family";s:78:"tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif";}s:5:"EXTRA";s:47:"padding: 3px 6px 3px 6px;
white-space: nowrap;";s:6:"LINK_N";a:3:{s:10:"background";s:0:"";s:5:"color";s:7:"#FFFFFF";s:15:"text-decoration";s:4:"none";}s:6:"LINK_V";a:3:{s:10:"background";s:0:"";s:5:"color";s:7:"#FFFFFF";s:15:"text-decoration";s:4:"none";}s:6:"LINK_M";a:3:{s:10:"background";s:0:"";s:5:"color";s:7:"#FFFFFF";s:15:"text-decoration";s:9:"underline";}}]]></template>
Below it I added this
/* ***** Start Vehicle Information in Postbit ***** */
<template name=".rigs_specs" templatetype="css" date="1070536142" username="Kier" version=""><![CDATA[a:7:{s:10:"background";s:7:"#eef0f2";s:5:"color";s:7:"#000000";s:4:"font";a:3:{s:5:"style";s:4:"";s:4:"size";s:4:"10px";s:6:"family";s:78:"verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif";}s:5:"EXTRA";s:47:"padding: 3px 6px 3px 6px; white-space: nowrap;";s:6:"LINK_N";a:3:{s:10:"background";s:0:"";s:5:"color";s:7:"#FFFFFF";s:15:"text-decoration";s:4:"";}s:6:"LINK_V";a:3:{s:10:"background";s:0:"";s:5:"color";s:7:"#FFFFFF";s:15:"text-decoration";s:4:"none";}s:6:"LINK_M";a:3:{s:10:"background";s:0:"";s:5:"color";s:7:"#FFFFFF";s:15:"text-decoration";s:9:"none";}}]]></template>
/* ***** End Vehicle Information in Postbit ***** */
As you can see I changed .vbmenu_control to .rigs_specs for my application. You can change the name to what ever fits you, but when you're in postbit, make sure you use the new style you made.
RedGTiVR6
03-04-2007, 04:23 PM
Thanks!
Just one question, when you say make sure you're using the right style in postbit....what exactly are you referring to?
I've changed the .xml file to reflect the modification, but I'm a bit lost on the right style thing.
Do I need to change the template as well?
I've tried seraching our templates for '.vbmenu_control' but nothing comes up.
Thanks again!
RedGTiVR6
03-06-2007, 10:58 AM
any help?
4x4 Mecca
03-07-2007, 06:19 AM
Thanks!
Just one question, when you say make sure you're using the right style in postbit....what exactly are you referring to?
I've changed the .xml file to reflect the modification, but I'm a bit lost on the right style thing.
Do I need to change the template as well?
I've tried seraching our templates for '.vbmenu_control' but nothing comes up.
Thanks again!
Instead of having this in your postbit/postbit_legacy
<div id="specs_$post[postid]" class="vbmenu_control">
Use this
<div id="specs_$post[postid]" class="(your code title here)">
RedGTiVR6
03-07-2007, 11:36 AM
Thank you!
4x4 Mecca
03-10-2007, 02:42 AM
Welcome!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.