Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Replace threadpost characters Details »
Replace threadpost characters
Mod Version: 1.00, by kenfuzed (Member) kenfuzed is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.5 Rating: (1 vote - 5.00 average) Installs: 10
Released: 11 Apr 2007 Last Update: Never Downloads: 2
Not Supported  

Recently I was in search of a way to replace or restrict the use of non-alpha characters used in thread titles. This is useful when adding your thread titles to a welcome header or other area where these characters would look out of place (i.e. '!' or '?' placed mid sentence).

The following is a manual addition of code which will replace specified characters with whatever you want.

Start by finding /includes/class_dm_threadpost.php
You may want to make a backup copy of this file in case you blow things up

Open class_dm_threadpost.php in an editor and find the following code:


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

If you only want to replace the characters '?' and '!' with a space, then below the above code you would add:

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

NOTE: DO NOT delete or change the first piece of code. It is there to prevent html from being added to thread titles. Add all additional code under it.

Between the [brackets] only add the characters you wish to have replaced when a user types it into their thread title. Separate each character with a backslash.

I personally didn't want to see anything except alpha-numeric titles so I included just about every character. The first part replaces the specified character with a space. The next part I added replaces each specific character with a corresponding word (i.e. '&' is replaced by the word 'and').
Below:

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

I added:

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

Special thanks to Oleg for helping me locate where to find this file/code.

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
Add spanish characters/ or other language characters kypdurron vBulletin 2.x Beta Releases 3 24 Feb 2007 20:51

Comments
  #2  
Old 12 Apr 2007, 01:58
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Nice work, i think i may leave this for now tho. dont feel like editing any core files currently lol
Reply With Quote
  #3  
Old 01 Aug 2007, 12:55
gforce75 gforce75 is offline
 
Join Date: Sep 2003
Good Concept. Thanks.
Reply With Quote
  #4  
Old 10 Jul 2008, 15:07
caggla's Avatar
caggla caggla is offline
 
Join Date: Jul 2007
works on 3.7.
thanks
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

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

Layout Options | Width: Wide Color: