Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2007, 01:35 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-01-2007, 02:04 AM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

most likely the postbit / postbit_legacy template
Reply With Quote
  #3  
Old 03-01-2007, 02:12 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 03-04-2007, 11:45 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is that .xml found via FTP or is that something that I can find in the admin CP somewhere?
Reply With Quote
  #5  
Old 03-04-2007, 03:55 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-04-2007, 04:23 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 03-06-2007, 10:58 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any help?
Reply With Quote
  #8  
Old 03-07-2007, 06:19 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
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)">
Reply With Quote
  #9  
Old 03-07-2007, 11:36 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #10  
Old 03-10-2007, 02:42 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04684 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete