vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Preview Style Hack [vB3] (https://vborg.vbsupport.ru/showthread.php?t=61032)

fridayweb 05-01-2004 05:07 PM

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:

MGM 07-05-2004 07:39 PM

thanks for that fix man, helped me out a lot

MGM out

|Jordan| 02-04-2006 01:14 AM

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'
        ),



All times are GMT. The time now is 09:25 AM.

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.01091 seconds
  • Memory Usage 1,723KB
  • 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
  • (8)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete