vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Copying vbmenu_control (https://vborg.vbsupport.ru/showthread.php?t=140764)

4x4 Mecca 03-01-2007 01:35 AM

Copying vbmenu_control
 
I installed this hack to add a profile drop down thing in the postbit, you can see an example on my forum here. 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
Code:

<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
Code:

/* ***** 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

Quote:

Originally Posted by RedGTiVR6 (Post 1195576)
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
Code:

        <div id="specs_$post[postid]" class="vbmenu_control">
Use this

Code:

        <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!


All times are GMT. The time now is 03:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01002 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete