![]() |
Default Font/Size/Color in a Post.
Default Font/Color/Size in a Post
This hack will allow your users to set there default font that will appear in there posts from the User CP. Yes, I know this can be done with custome user feilds, but I dont like those because they change on every persons site...this just makes more sence. (Remember that this is a Product! Use the product manager!) This releace does not have the plugin required to get the defaults for a user back out of the database so that users dont have to reset there defaults every time they visit the options page. If you want to write this part, be my guest. (Because I realy dont know how.) Details 1 Product XML 2 Template Edits History 1.0.1 Fixed some stuff and redesigned 1 template edit. 1.0.0 Initial Version Note: Tested on RC1 only! Template Edits: 1) Open Modify User Option Templates -> modifyoptions FIND: PHP Code:
PHP Code:
2) Open Postbit Templates -> postbit (or postbit_legacy) FIND: PHP Code:
REPLACE WITH: PHP Code:
If you know any better way of doing what I am doing (like possibly pulling the font, size, and color options from the same place the editor pulls them) please tell me. I admit to being a n00b :) |
Just noticed I didn't include many colors or fonts...will fix.
|
Edit, NM just realised
|
is this the same as the personal font color in posts hack?
|
Hmm, this doesn't have permissions does it?
|
Quote:
|
Quote:
|
Thanks. I dont even use this hack anymore. I went back to using Custome User Fields and just relocated the "others" hook into a "Color Options" table. Works fine for me :-P
|
Can you post the one where you use custom fields or is it just a template edit?
|
Its 2 template changes. One to the postbit and one to the user options template...forget its name.
|
Here is the code for the full list of default fonts.
This code is minus the size option. Changed: <!--/APPLE DEFAULT FONT HAT--> To: <!--/APPLE DEFAULT FONT HACK--> since I saw no reason why a hack should wear a hat. :ermm: 1) Open Modify User Option Templates -> modifyoptions FIND: Code:
<thead> Code:
<!--APPLE DEFAULT FONT HACK--> |
I can get the font type and colour to change, but when I add additional font sizes, they don't seem to work?
|
donno? Post up your template and maby someone can help :-O
|
Can you add an option to ignore these settings? I want my users to be able to use this, but I hate it :P
|
when I try to load the xml file in the plugin manager, it gives me this:
Code:
XML Error: XML_ERR_RESERVED_XML_NAME at Line 1 |
great hack
|
Working fine for me on Gold :)
|
Quote:
|
Quote:
|
Well, Im busy with work, but I could probly right it now. I know more PHP.
Anyone feel free to write this thow... Also, if I do write it, ill probly end up doing a complete recode... I guess look for a "version 2" sometime soon. |
Quote:
My users are experiencing issues with changing fonts when they don't want them to be changed, or when they weren't trying to change them in the first place. One of my users went into Edit Options to change the style he was using to view the board, and then his font was at Arial, 1 pt., Black. Can't reset it back to normal, now. |
Quote:
|
haha...forgot about this...maby ill be cool and code it tonight...
|
That would be most excellent
|
Quote:
|
I look forward to it.
|
hmm....Im gonna drop this...ITs so easy with custome user fields...
I might do a write up on how to make it look better later thow .... sorry guys. |
is there a way to add the bold/italic option as well?
|
and also is there a way to add a blank option for those who'd like to restore the default vbulletin font face?
|
there is something wrong which I'd like to see fixed
when user for example selects the default font to be "verdana" and clicks submit, when the page reloads, the first color which in that case is "Arial" is shown instead of the selected font which is verdana can you fix that? |
Anyway, That my memebers could just type in a color? and it will update to the database?
|
I would suggest this to be instead of the font tag >_>
PHP Code:
PHP Code:
PHP Code:
|
Thank you applehat
Working really well Install :) |
is it working with 3.6?
|
Quote:
And what's the state of this hack? Does it use custom user fields or? Support Bold/Italic? Color? Thanks! Barry |
I'd also like to know if this works in 3.6.
|
I have it installed and working great with 3.6. Thanks for this! :cool:
|
I've just installed it on 3.6.1 and it works fine. Sure wish this hack hadn't been dropped though. There are a couple of things needed to complete it.
1. When the options are set, I wish it would retain them when you go back to view your set options. 2. I wish there was a "default" option at the top of each list so that a user could go back to default if they desire. |
anyone know if this hack or one idential has a bold option?
|
great work been looking for it very easy to install thanx. wont mind the bold option
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|