The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User Default Font/Color/Size hack Details »» | |||||||||||||||||||||||||
First hack... please be gentle :
WHAT IT DOES: It allows the user to specify in their profile what size, color and font that they wish to use in all their posts. This is esentially the same as surrounding stuff with SIZE, COLOR, FONT, but makes it easier. It also uses the vbcode templates already in the system, so users can select from any of the fonts & colors you have already defined. This avoids users inputing colors that don't exist and fonts that no one else has on their systems. INSTALLABLES 3 file mods 4 template adds 3 template mods PROPS Palmer ofShinra inspired the original version here, so massive props to him. I wanted to take his idea and make it more user friendly (and was tired of trying to explain to people why 'puke green' didn't work as a color). Also, every other hacker out here (Lesane, Erwin, FireFly, Xenon, C.Birch, futureal, and a hundred others) for busting their butts and putting hacks out and for saying that if you want to do something, learn to do it. Inspiration at its finest. BUGS If you run TomBot, TomBot has a problem with the FONT/COLOR/SIZE tags. The fix is two posts below Okay... let me know FIXES 1) Fixed Spelling of 'Verdana' - Thanks Vivi! 2) Fixed for Multiple Styles - Thanks Zelda! 3) Added & fixed user ability to use default via ON/OFF - Again, Thanks Zelda! 4) Added ability to remember defaults. Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
Actually my default theme text colour IS black so it's not much problem for me personally. |
#13
|
||||
|
||||
Danke Mist...
For the sake of sanity, it's an either or deal... you can use the defaults or you can specify your own... default will be set to 'ON', so all it does is post the $message w/o the extras. |
#14
|
||||
|
||||
Okay... I've updated the hack.
It now give an option to use the forum defaults via an ON/OFF. If you have multiple styles, this should clean it up. But, I don't run multiple styles, so I can't be 100% sure. Plus, I think I'm figuring out how to keep the default values from reseting... |
#15
|
||||
|
||||
I'm getting this database error when I update my profile:
Database error in vBulletin 2.2.9: Invalid SQL: UPDATE user SET birthday='0',signature='(Sig)',customtitle='1',use rtitle='(Rank)',email='(email)',parentemail='',cop pauser='0',homepage='homepage',icq='',aim='',yahoo ='',usergroupid='6',default_fcs='1',post_size='2', post_font='times new roman',post_color='black' WHERE userid='1' mysql error: Unknown column 'default_fcs' in 'field list' mysql error number: 1054 Date: Thursday 27th of February 2003 12:20:27 PM Script: http://www.gamercrossfire.net/bb/bb/member.php Referer: Seems to be requesting the wrong URL. :/ Anyway, at least my posts were default colour before I updated it this time. |
#16
|
||||
|
||||
The SQL query didn't take. It's because you already have three of the four fields in there. Run this query instead:
Code:
ALTER TABLE `user` ADD `default_fcs` INT( 1 ) DEFAULT '1' NOT NULL AFTER `inforum'; |
#17
|
||||
|
||||
OK, I fixed that.
Now everything stays on default regardless. Either I'm doing something wrong or your PHP code needs an } else { for the default_fcs in newreply.php/newthread.php |
#18
|
||||
|
||||
Okay, you have to go into your profile, turn off the defaults, then select what you want it to change. Save your profile, then try it.
For some reason that I'm still working out, the user selections don't come back as the default values. I'm working on it, however. |
#19
|
||||
|
||||
Yeah, whether I turn off the defaults or not now the posts come out default, though before you put the 'default' check in it worked fine.
Then again, if I edit the PHP to PHP Code:
I tried putting PHP Code:
|
#20
|
||||
|
||||
Would there be a way to have a testing box so you could compare the board defaults with whatever you picked to see how they look compared to one another? That way you wouldn't have to go all the way to make a post to see how it would look.
|
#21
|
||||
|
||||
He's right... it doesn't matter if its on or off, it uses whatever you have selected....
EDIT: Okay, in the newreply & newthread: change: PHP Code:
PHP Code:
Text file updated... if that gets everyone working, I've got the fix to the defaults. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|