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)
-   -   vb3 Font Color Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=60031)

Oblivion Knight 01-22-2004 09:53 PM

Code:

/* vb3 Color Hack -- Copyright g-force2k 2004 */
        'overridecolor' => 65536
/* vb3 Color Hack -- Copyright g-force2k 2004 */

Was the commar left off the end of this line for a reason.? The lines above it all have a commar at the end of the number.. I added it myself, but I'd like confirmation whether or not it was left off intentionally.

g-force2k2 01-23-2004 02:26 AM

Quote:

Originally Posted by Oblivion Knight
Was the commar left off the end of this line for a reason.? The lines above it all have a commar at the end of the number.. I added it myself, but I'd like confirmation whether or not it was left off intentionally.

To be quite honest, according to my php knowledge the comma isn't required at the end value of an array. Commas are used to space each value of an array and will cause a php error if you do not add a comma to seperate the array values. But I do not believe it is required at the end of an array nor have I ever used one at the end value of an array. As to whether the vbulletin devs have different reasonings or as to specifically why they added the comma to the end value I do not know, you would have to confront or contact them regarding the issue. But having or not having the comma does not create a php error regardless so you can keep the comma there if you like. Hopefully that will give you some insight into the situation.

Regards,
g-force2k2

Oblivion Knight 01-23-2004 11:55 AM

Thanks for going in to detail there g-force2k2.. :)
I'm still very much learning the ins and outs of PHP myself.


On a side note, I think this mod could do with a little updating for RC3. The code has changed somewhat in the modifyoptions template, for example each table is now collapsable.

Here's how I did it..
Code:

<!-- vb3 User Color Hack v1.0 - Copyright g-force2k2 2004 //-->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="thead">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('uopt_fcolor')"><img id="collapseimg_uopt_fcolor" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_uopt_fcolor].gif" alt="" border="0" /></a>
                        $vbphrase[font_color_options]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_uopt_fcolor" style="$vbcollapse[collapseobj_uopt_fcolor]">
        <tr>
                <td class="panelsurround" align="center">
                <div class="panel" id="collapseobj_uopt_fcolor" style="$vbcollapse[collapseobj_uopt_fcolor]">
                        <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
                                <fieldset class="fieldset">
                                        <legend><label for="sel_show_color">$vbphrase[use_font_color_title]</label></legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                        <tr>
                                                <td>$vbphrase[use_font_color_desc]</td>
                                        </tr>
                                        <tr>
                                                <td><label for="sel_show_color"><input type="text" name="fontcolor" value="$bbuserinfo[fontcolor]" size="10" id="sel_show_color"  /></label></td>
                                        </tr>
                                        <tr>
                                        </table>
                                </fieldset>
                                <fieldset class="fieldset">
                                        <legend><label for="sel_override_color">$vbphrase[font_color_override_title]</label></legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                        <tr>
                                                <td>$vbphrase[font_color_override_desc]</td>
                                        </tr>
                                        <tr>
                                                <td><label for="sel_override_color"><input type="checkbox" name="options[overridecolor]" value="1" id="sel_override_color" $checked[overridecolor] /> $vbphrase[font_color_override_opt]</label></td>
                                        </tr>
                                        </table>
                                </fieldset>
                        </div>
                </div>
                </td>
        </tr>
</tbody>
</table>

<br />
<!-- vb3 User Color Hack v1.0 - Copyright g-force2k2 2004 //-->


g-force2k2 01-23-2004 09:53 PM

Quote:

Originally Posted by Oblivion Knight
Thanks for going in to detail there g-force2k2.. :)
I'm still very much learning the ins and outs of PHP myself.


On a side note, I think this mod could do with a little updating for RC3. The code has changed somewhat in the modifyoptions template, for example each table is now collapsable.

Here's how I did it..

Thanks for the tip, but I haven't the chance to look at RC2 OR RC3 yet, but I will update when I get the chance.

Cheers,
g-force2k2

NuclioN 02-13-2004 09:03 AM

We use two styles..one dark and one light so there are colors set by users sometimes that are unreadable in 1 style. Is there a solution for this? Maybe a conditional or an addition to this hack so members can choose two colors according to the style(s)?

Reeve of shinra 02-16-2004 12:55 AM

/me installs

The Quibbler 02-16-2004 03:37 AM

/me clicks install

gmarik 02-22-2004 06:50 AM

Could it make a rainbow text?
I mean every letter with some color, like a=green p=bkack p=yellow l=blue e=purple with some algorythm?

SmasherMaster 03-07-2004 02:05 AM

[high]* SmasherMaster hits install
[/high]

Wonderful modification, easy to install and very fun. :D

Diva 03-21-2004 02:28 AM

I look forward to the update for VB3Gold. :D


All times are GMT. The time now is 04:48 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.01166 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete