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 |
#2
|
||||
|
||||
What it looks like in the User CP...
|
#3
|
||||
|
||||
Okay, if you're like me your running TomBot & you've figured out that he/she doesn't like the color, font, size tags... especially if you're teaching to it.
In both newreply.php & newthread.php, find this section: PHP Code:
Replace it with: PHP Code:
NOTE: If it doesn't look like this in your files, you need to go back to post #1 and reinstall the hack. |
#4
|
||||
|
||||
hey great job! been waitin for somethin like this but the queries don't wokr.
I thin it's too many ' and also u spelt Veranda instead of Verdana in the queries |
#5
|
||||
|
||||
Okay... spelling bugs are fixed (which is why Notepad should have a spell checker :nods: )
As for the query, I don't know why it wouldn't work... I copied and pasted it out of MySQL and tried it again... This is what my results look like... what about yours? |
#6
|
||||
|
||||
i will test this locally and report you the results
|
#7
|
||||
|
||||
Great Hack
I will Install it :banana: :banana: |
#8
|
||||
|
||||
I'm trying this out on vB 2.2.9.
Good hack. One snag though. There are 16 of each option beside each other. Also the number of times the options are indicated goes up by 1 as you go along. So in the first size one it says 'small medium large' then in the next one it says 'small medium large small medium large' and so on. (I got rid of the LARGER font sizes. I don't like seeing posts in like size 5+ font or something personally. ) Here, I took a screenshot of the bug (see attachment). It's something to do with the member.php because if I revert that file the templates work fine. EDIT: I fixed it. Basically, instead of using PHP Code:
PHP Code:
You just shouldn't have the '.'s before the '='s. The trouble is this can pose problems for boards that have several styles. If the top 'default' option was truly 'default' and didn't insert any vB code that would be perfect. I was thinking something along the lines of PHP Code:
|
#9
|
||||
|
||||
Okay... fixed the file with your first fix Zelda... danke.
As to the second part, I'm going to put an on/off button in there so people can select which features they wish to use. It'll double the options in the CP and make the newreply & newthread parts bigger, but you're right it is kinda a pain... |
#10
|
||||
|
||||
Nice hack Randy. I saw this and thought you would have had a numeric field to enter for the font size. It's in dropdowns which i would have suggested anyway. Excellent hack pal
- miSt |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|