Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Word Replacement Details »»
Word Replacement
Mod Version: 1.00, by applehat (Contributor) applehat is offline
Developer Last Online: Dec 2011 I like it Show Printable Version Email this Page

vB Version: 3.5.0 RC2 Rating: (4 votes - 4.25 average) Installs: 36
Released: 06 Aug 2005 Last Update: Never Downloads: 187
Not Supported  

This is just a simple plug-in that will let you replace words in posts. This could be used for "AdWords" or Replacing curse words insted of just censoring.

Just thought I would share :-P

*cough* *cough*

I am a dumb novice, so this has no admin panel options or anything of that sort. If anyone ever wants to take this and make it all fancy, go ahead and just post.

Note: This should work on any 3.5 version that has the hook postbit_display_complete

This is the code...See how google is replaced with a link to google...make sence?

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

Download Now

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

Supporters / CoAuthors

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.
  #16  
Old 08 Aug 2005, 02:51
applehat's Avatar
applehat applehat is offline
 
Join Date: Jun 2005
Real name: Cameron
lol, we are gonna fully hack out our vb3.5 to what we need THEN...we will convert back.

Oh man, that phpbb is crappy *rolls eyes*
Reply With Quote
  #17  
Old 24 Aug 2005, 23:17
Audionuts Audionuts is offline
 
Join Date: Jun 2002
is there any way to make this work in the thread title also?
so if a user posted the word in the title it would also be replaced?
thanks in advanced, and great hack!
Reply With Quote
  #18  
Old 25 Aug 2005, 00:35
TCM TCM is offline
 
Join Date: Jan 2005
Location: 3.6.8
Originally Posted by Audionuts
is there any way to make this work in the thread title also?
so if a user posted the word in the title it would also be replaced?
thanks in advanced, and great hack!
Is there any way? Yea, with replacement variables.
Reply With Quote
  #19  
Old 25 Aug 2005, 20:54
Audionuts Audionuts is offline
 
Join Date: Jun 2002
and how do i go about doing that if you dont mind sharing?
Reply With Quote
  #20  
Old 25 Aug 2005, 22:27
TCM TCM is offline
 
Join Date: Jan 2005
Location: 3.6.8
Originally Posted by Audionuts
and how do i go about doing that if you dont mind sharing?
Basicly all this hack is is a weakend verision of replacement variables. I don't even see why this thread still exists.

You can set replacement variables in Admin CP -> Styles & Templates -> Replacement Variables Manager
Reply With Quote
  #21  
Old 25 Aug 2005, 22:30
TCM TCM is offline
 
Join Date: Jan 2005
Location: 3.6.8
Also, in the example, a link to google would be broken.

The user posts Google.

Instead of getting

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

They'd get


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

The second google wouldn't even be replaced, beause this isn't even case sensitive.
Reply With Quote
  #22  
Old 26 Aug 2005, 03:56
Audionuts Audionuts is offline
 
Join Date: Jun 2002
thank you TCM
Reply With Quote
  #23  
Old 26 Aug 2005, 04:17
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
Originally Posted by TCM
Basicly all this hack is is a weakend verision of replacement variables. I don't even see why this thread still exists.

You can set replacement variables in Admin CP -> Styles & Templates -> Replacement Variables Manager
A hack like this is necessary BECAUSE it is weaker. If you change a word in the title of a thread to a link, then the replacement would mess up the link to the thread.

It would be ideal if the replacement system had an option. Replace everywhere or just replace in posts.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #24  
Old 27 Aug 2005, 13:04
Psionic Vision Psionic Vision is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
You might need a simple regular expression here..
__________________
My Hacks: http://www.vbulletin.org/forum/member.php?u=80739
Always have your stuff when you need it with @Dropbox. 2GB account is free! http://db.tt/SgejWtr1
Reply With Quote
  #25  
Old 07 Oct 2005, 22:31
pyro.699 pyro.699 is offline
 
Join Date: Sep 2005
Real name: Cody Woolaver
nvm.
__________________
:ninja:Ninja's 4 Life:ninja:

Last edited by pyro.699 : 07 Oct 2005 at 22:36.
Reply With Quote
  #26  
Old 08 Oct 2005, 17:19
G-man's Avatar
G-man G-man is offline
 
Join Date: Jun 2002
This works great but is there a workaround for the fact some people use caps in brand names and others do not? I tried to put in the same brand name twice once with and once without a cap not thinking it would try to apply the link to both. How can we make this where it does not matter if the word has caps in it or not?
Reply With Quote
  #27  
Old 20 Nov 2005, 07:06
zagman76 zagman76 is offline
 
Join Date: Sep 2005
-bump-


...any updates?
Reply With Quote
  #28  
Old 21 Nov 2005, 07:35
GamerJunk.net's Avatar
GamerJunk.net GamerJunk.net is offline
 
Join Date: Jan 2004
This would be good for ads definatley...if I could find a good ad company that sells items like IGN does with their things
Reply With Quote
  #29  
Old 08 Feb 2006, 06:12
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: May 2005
don't have the postbit_display_complete template.. is there some other way? >_<
Reply With Quote
  #30  
Old 14 Jul 2006, 01:50
kobescoresagain kobescoresagain is offline
 
Join Date: Feb 2005
so does this break links?
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 16:47.

Layout Options | Width: Wide Color: