The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Default BBCode formatting for user's posts (LITE VERSION) Details »» | ||||||||||||||||||||||||||||
Default BBCode formatting for user's posts (LITE VERSION)
Developer Last Online: Nov 2013
Quote:
Version 1.02: Regular expression bug with colors and fonts fixed. Version 1.01: Regular expression for "Default BBCode" field edited to support fonts with spaces in them. ADDITIONAL FEATURES -choose in your user CP whether to see any default BBCode at all 1 Product install 2 Custom profile fields 1 Template edit (in 2 templates) 2 Plugin edits INSTALLATION INSTRUCTIONS 1. Download the product and import it. 2. Add two custom profile fields: Profile field type: Single-line textbox Title: Default BBCode Description: You may choose to make a default BBCode formatting for each post. Allowed tags: [b] [i] [u] [left] [right] [center] [font] [color] [size] Please type in only the opening tags. Max length of allowed user input: Doesn't really matter, but make sure it's enough Display size: 25 Field Required: No Field Editable by User: Yes Private Field: Yes Field Searchable on Members List: No Show on Members List: No Regular expression: ^(\[(b|i|u|left|right|center|font|color|size)(\=(\'|") ?(#[0-9a-fA-F]+)?[\w\s]+)?('|")?\])*$ Display Page: Options: Other (Here you can edit the description and regular expression to allow or disallow BBCode - in the regular expression, just make sure to separate all of them with |.) Profile field type: Single-selection radio buttons Title: Show Default BBCode? Description: Selecting no will cause all posts to be displayed without users' automatic BBCode formatting. Options: Yes No Set Default: Yes Field Required: No Field Editable by User: Yes Private Field: Yes Field Searchable on Members List: No Show on Members List: No Allow user to input their own value for this option: No Display Page: Options: Thread Viewing 3. Make the following edits: ############## TEMPLATE EDITS ################### In postbit and postbit_legacy FIND Code:
$post[message] Code:
<if condition="$post['dbbcopen'] AND ($bbuserinfo['field234'] == 'Yes')">$post[dbbcopen]</if> $post[message] <if condition="$post['dbbcclose'] AND ($bbuserinfo['field234'] == 'Yes')">$post[dbbcclose]</if> ################## PLUGIN EDITS ################## After installing the product, you will have to edit the following plugins: Set default BBCode for post preview Default BBCode setup Find "field6" in both of them and replace it with your "Default BBCode" field. At this point the installation should be complete. Enjoy! Show Your Support
|
Comments |
#12
|
||||
|
||||
It seems to work its on my profile options but the problem I have is doing the formating correct. So if I want my font to red I would do this?[color="red"]? If so it dont work. Thanks
|
#13
|
||||
|
||||
Quote:
Code:
[color=red] |
#14
|
||||
|
||||
Still dont work could be because Im using 3.6.2.
|
#15
|
||||
|
||||
i installed it using 3.5.4 and reinstalled it for 3.6.4. it works for me but im not the one that can answer your question about 3.6.2. sorry. are you sure you got all the code mods correct?
|
#16
|
||||
|
||||
I followed the instructions and they seemed pretty easy..
|
#17
|
||||
|
||||
i seem to remember that the instructions told me to make one of the fields private. i remember changing something to make it public. im not really sure what though. make sure your usergroups have permission to view it though. it was showing up for admins and not registered users till i fixed the problem
|
#18
|
||||
|
||||
i love this mod ... just installed on a heavily modded vb3.6.8 and its working without problems. thanks again!!!
|
#19
|
|||
|
|||
I may have misunderstood, but won't allowing users to add BB code mean they could exploit code in a malicious way?
|
#20
|
||||
|
||||
Quote:
a note for future users ... i had to set the "show default font?" profile feild to public, instead of private. |
#21
|
|||
|
|||
Ok, thanks DiverTree, had a feeling I was wrong
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|