Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Default BBCode formatting for user's posts (LITE VERSION) Details »»
Default BBCode formatting for user's posts (LITE VERSION)
Mod Version: 1.00, by antialiasis (Coder) antialiasis is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 11
Released: 11 Apr 2006 Last Update: 22 Apr 2006 Downloads: 24
Not Supported Uses Plugins Template Edits Is in Beta Stage  

This hack in a nutshell: All users on your forum will be able to add optional BBCode to format all of their posts with.

This was inspired by DarthCow's user setable default BB code formatting for each post hack for vBulletin 3.0, borrows a couple of regular expressions from it and used it for reference in one spot. Everything else is my own.
This version of the Default BBCode hack does not have the "enable or disable default BBcode for individual posts you make" feature. The full hack is located here, but it is a Code Modification. Also go there for screenshots.

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE with


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace "field234" with your "Show Default BBCode?" field.



################## 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!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Default BBCode formatting for user's posts - FULL VERSION antialiasis vBulletin 3.5 Add-ons 14 03 Aug 2007 00:38
User setable default BB code formatting for each post Darth Cow vBulletin 3.0 Full Releases 15 27 Mar 2006 19:19
[bbcode] xe.com currency convertor (lite) alkatraz vBulletin 3.0 Full Releases 6 13 Dec 2004 03:51

Comments
  #2  
Old 11 Apr 2006, 19:41
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Not bad there.
Reply With Quote
  #3  
Old 11 Apr 2006, 20:00
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
So it's working for you?
__________________
Featured hacks:
3.6:
NoSpam! - get rid of those spambots for good!
Import News from a Forum - have unread announcements appear at the top of every page of your forum to get members to read them!
3.5:
NoSpam! - the 3.5 version
Personal Notepad - allow your members to store private notes in their User CP
Reply With Quote
  #4  
Old 18 May 2006, 22:44
Basit Basit is offline
 
Join Date: Apr 2004
Location: London
Real name: Basit Habib
Hi,

Installed it on my forum. But it change all hisotry threads with default font settings which is not good as thats not what user want. They may want to use default settings in most of their threads but not all 1000s of threads they made in last 4-5 years.

Obvious solution is to go for other thread which does provide this functionality that is allow it in thread to select/deselect this option. But I hope you will manage to add this functionality as part of plug-in. Its easy to manage a plug-in than code modifications.

Looking foward to see future versions of this hack.

Regards,

Last edited by Basit : 18 May 2006 at 23:55.
Reply With Quote
  #5  
Old 18 May 2006, 23:31
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
I've gotten better at this, so I might be able to get the full functionality into a product - we'll see about it. Thanks for the comment.
__________________
Featured hacks:
3.6:
NoSpam! - get rid of those spambots for good!
Import News from a Forum - have unread announcements appear at the top of every page of your forum to get members to read them!
3.5:
NoSpam! - the 3.5 version
Personal Notepad - allow your members to store private notes in their User CP
Reply With Quote
  #6  
Old 03 Oct 2006, 03:14
DiverTree's Avatar
DiverTree DiverTree is offline
 
Join Date: Jun 2006
Real name: Diver
ive been interested in something like this for some time now ... but im new to it all and need to ask ...

Replace "field234" with your "Show Default BBCode?" field.
what is my "Show Default BBCode?"
Reply With Quote
  #7  
Old 03 Oct 2006, 22:08
Zelos's Avatar
Zelos Zelos is offline
 
Join Date: Jun 2006
does this still work with 3.6?



Originally Posted by DiverTree
ive been interested in something like this for some time now ... but im new to it all and need to ask ...



what is my "Show Default BBCode?"
Whatever feild number "Show Default BBCode?" was when you put it in

Last edited by Zelos : 03 Oct 2006 at 22:11.
Reply With Quote
  #8  
Old 03 Oct 2006, 22:14
DiverTree's Avatar
DiverTree DiverTree is offline
 
Join Date: Jun 2006
Real name: Diver
how do i find my default bbcode?
Reply With Quote
  #9  
Old 10 Oct 2006, 00:23
DiverTree's Avatar
DiverTree DiverTree is offline
 
Join Date: Jun 2006
Real name: Diver
duh, took me a few ... er, i mean ... a little while, but i figure it out. its the field number that you assign to it when you make it in the profile options. lol. :tired:
Reply With Quote
  #10  
Old 03 Dec 2006, 21:02
DiverTree's Avatar
DiverTree DiverTree is offline
 
Join Date: Jun 2006
Real name: Diver
i got a problem ... i have my default font set up. i no longer change my font to my prefered font when i make a post.

when i view my own posts my new default shows up, but when others view my posts it shows up like the font your reading now. can you help me fix it so everyone sees the font ive chosen for default? (considering that they have chosen "yes" to "show default font?" in the user cp)

nevermind ... i had the permissions set to private in the control panel ... works like a charm now except that unregistered or users not logged in dont see the users default font.

Last edited by DiverTree : 03 Dec 2006 at 22:25. Reason: figured it out
Reply With Quote
  #11  
Old 12 Jan 2007, 10:25
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Sep 2006
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
Reply With Quote
  #12  
Old 12 Jan 2007, 11:45
DiverTree's Avatar
DiverTree DiverTree is offline
 
Join Date: Jun 2006
Real name: Diver
Originally Posted by Greek76 View Post
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
try this
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #13  
Old 12 Jan 2007, 18:47
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Sep 2006
Still dont work could be because Im using 3.6.2.
Reply With Quote
  #14  
Old 12 Jan 2007, 23:17
DiverTree's Avatar
DiverTree DiverTree is offline
 
Join Date: Jun 2006
Real name: Diver
Originally Posted by Greek76 View Post
Still dont work could be because Im using 3.6.2.
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?
Reply With Quote
  #15  
Old 13 Jan 2007, 19:28
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Sep 2006
I followed the instructions and they seemed pretty easy..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 15:06.

Layout Options | Width: Wide Color: