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)

albibak 01-12-2004 06:01 PM

Ah okay.
French language is the default language

g-force2k2 01-12-2004 06:09 PM

Quote:

Originally Posted by albibak
Ah okay.
French language is the default language

Alright, check in the admincp if the phrases were inserted into the database just do a search for 'font_color'. If they show up then its probably the language that has to be recached, try to submit one of the entries and see if that recaches them if not I will come up with a solution.

And when you say default did it come with the French language installed OR did it come with English and you made the French phrases and then made that the default?

Regards,
g-force2k2

albibak 01-12-2004 06:17 PM

I don't understand it : "If they show up then its probably the language that has to be recached, try to submit one of the entries and see if that recaches them if not I will come up with a solution."

I found some font_color in the phrases.

vBulletin was installed in english and I put a french language and put it by default

g-force2k2 01-12-2004 07:39 PM

Quote:

Originally Posted by albibak
I don't understand it : "If they show up then its probably the language that has to be recached, try to submit one of the entries and see if that recaches them if not I will come up with a solution."

I found some font_color in the phrases.


vBulletin was installed in english and I put a french language and put it by default

Alright open install_fontcolor.php

find:

PHP Code:

    update_phrasegroups 'global' ) ;
    
update_phrasegroups 'user' ) ; 

and replace with:

PHP Code:

    update_phrasegroups 'global') ;
    
update_phrasegroups 'user') ; 

then reupload the new install_fontcolor.php to the admincp and run ONLY steps 4 and 5

ie: http://yourforum.com/admincp/install...lor.php?step=4

is what you should run.

That will hopefully recache the French language. Let me know if this works.

Regards,
g-force2k2

albibak 01-12-2004 07:46 PM

Yes, it's OK.
Thx a lot.

albibak 01-12-2004 10:56 PM

A little remark if someone use prefix on his forum :

Open file install_fontcolor.php

Code:

Ligne 61 : " . TABLE_PREFIX . "phrasetype
Ligne 64 : " . TABLE_PREFIX . "phrase
Ligne 68 : " . TABLE_PREFIX . "language


g-force2k2 01-13-2004 03:43 AM

Quote:

Originally Posted by albibak
A little remark if someone use prefix on his forum :

Open file install_fontcolor.php

Code:

Ligne 61 : " . TABLE_PREFIX . "phrasetype
Ligne 64 : " . TABLE_PREFIX . "phrase
Ligne 68 : " . TABLE_PREFIX . "language


Thanks for pointing that out, I will have to make some updates for that in the installer. Glad that we got the language problem sorted out :)

Cheers,
g-force2k2

MGM 01-13-2004 09:58 PM

Quote:

Originally Posted by g-force2k2
I would just make my code a function and then run the $post[username] variable through the function ( i believe the variable is actually $post[musername] ). Thats all that is required unless you wanted a different color for each the post and the username.

Cheers,
g-force2k2

exactly what I wanted..... to have it for both font color and username color.... couldn't I just "copy" the hack and edit the templates and code to match $post[username] ??? or would it not be that simple :p

MGM out

Kyle0515 01-14-2004 11:30 PM

Good Hack... It just so happens that the members of my board started asking for this about 3 days ago. So Thank You... :)

g-force2k2 01-15-2004 04:56 AM

Quote:

Originally Posted by MetalGearMaster
exactly what I wanted..... to have it for both font color and username color.... couldn't I just "copy" the hack and edit the templates and code to match $post[username] ??? or would it not be that simple :p

MGM out

There would be no template edits necessary unless you wanted to have different colors for the username and their post, if not then the php file edit is all thats needed, and I just said to use a function call so you wouldn't have to have as much coding :)

Quote:

Originally Posted by Kyle0515
Good Hack... It just so happens that the members of my board started asking for this about 3 days ago. So Thank You... :)

Thanks for the feedback.

Cheers,
g-force2k2


All times are GMT. The time now is 07:56 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.01205 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (6)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