Default Font/Size/Color in a Post.
This modification is in the archives.
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:
<thead>
PHP Code:
<!--APPLE DEFAULT FONT HACK-->
2) Open Postbit Templates -> postbit (or postbit_legacy) FIND: PHP Code:
$post[message]
REPLACE WITH: PHP Code:
<if condition="$post[deffont] || $post[defsize] || $post[defcolor]">
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 Download This modification is archived and cannot be downloaded. Screenshots
|
Similar Mods
User Default Font/Color/Size hack | vBulletin 2.x Beta Releases |