Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Preview Style Hack [vB3] Details »»
Preview Style Hack [vB3]
Version: 1.00, by assassingod assassingod is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-31-2004 Last Update: Never Installs: 19
 
No support by the author.

Style Preview Hack

Coded by: assassingod

Description:
This gives your users an easier and more imformative way of changing styles.
It gives changing styles it's own page in the UserCP, which includes a
preview of the styles and a description. These can also be edited in the
Edit Settings for styles in the AdminCP

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-01-2004, 05:07 PM
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Location: F13 Headquarters
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I found one fix -

In profile.php

Find:
Code:
$templatename = 'modifystyle';
Replace with:
Code:
// draw cp nav bar
	construct_usercp_nav('style');
	$navbits[''] = $vbphrase['edit_style'];
	$templatename = 'modifystyle';
That will make the colors appear correctly when you are in the actual style preview page.


I was having problems getting the code to work correctly to fix the color on the usercp, so here is a sloppy patch until it actually gets fixed.

In USERCP_SHELL

Find:
Code:
<tr>
	<td class="$navclass[style]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editstyle">$vbphrase[edit_style]</a></td>
</tr>
Replace with:
Code:
<tr bgcolor="#222222">
	<td class="$navclass[style]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editstyle">$vbphrase[edit_style]</a></td>
</tr>
I just entered the color I wanted, and it worked. I hope someone can fix this hack so that the right variable gets shown... :disappointed:
Reply With Quote
  #33  
Old 07-05-2004, 07:39 PM
MGM MGM is offline
 
Join Date: Jan 2003
Location: Michigan
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for that fix man, helped me out a lot

MGM out
Reply With Quote
  #34  
Old 02-04-2006, 01:14 AM
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Posts: 479
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, here's a easier way to fix the color and it's the same code for all styles (should work for them all, it did for me and i have 8 styles on my forum):

Replace:
Code:
<tr>
	<td class="$navclass[style]" style="white-space:nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editstyle">$vbphrase[edit_style]</a></td>
</tr>
With this:
Code:
<tr class="alt2">
	<td class="$navclass[style]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editstyle">$vbphrase[edit_style]</a></td>
</tr>
Also add the following code to precache the templates:

Find
Code:
'editoptions' => array(
		'modifyoptions',
		'modifyoptions_timezone',
		'userfield_checkbox_option',
		'userfield_optional_input',
		'userfield_radio',
		'userfield_radio_option',
		'userfield_select',
		'userfield_select_option',
		'userfield_select_multiple',
		'userfield_textarea',
		'userfield_textbox',
	),
Add After
Code:
'editstyle' => array(
		'modifystyle',
		'modifystylebit'
	),
Reply With Quote
Reply

Thread Tools

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 08:05 AM.


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.06296 seconds
  • Memory Usage 2,231KB
  • Queries Executed 18 (?)
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
  • (8)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete