![]() |
|
|
Mod Options |
Word Replacement Details »»
|
|||||||||||||
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?
Download Now Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Show Your Support
The following members like this post: Saudi Zoom
|
|||||||||||||
|
#16
|
||||
|
||||
|
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* No members have liked this post.
|
|
#17
|
|||
|
|||
|
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! No members have liked this post.
|
|
#18
|
|||
|
|||
|
Originally Posted by Audionuts
Is there any way? Yea, with replacement variables.
No members have liked this post.
|
|
#19
|
|||
|
|||
|
and how do i go about doing that if you dont mind sharing?
No members have liked this post.
|
|
#20
|
|||
|
|||
|
Originally Posted by Audionuts
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 No members have liked this post.
|
|
#21
|
||||||||
|
||||||||
|
Also, in the example, a link to google would be broken.
The user posts Google. Instead of getting
They'd get
The second google wouldn't even be replaced, beause this isn't even case sensitive. No members have liked this post.
|
||||||||
|
#23
|
||||
|
||||
|
Originally Posted by TCM
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. No members have liked this post.
|
|
#24
|
|||
|
|||
|
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 No members have liked this post.
|
|
#25
|
|||
|
|||
|
nvm.
__________________
:ninja:Ninja's 4 Life:ninja: No members have liked this post.
Last edited by pyro.699 : 07 Oct 2005 at 22:36. |
|
#26
|
||||
|
||||
|
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?
No members have liked this post.
|
|
#27
|
|||
|
|||
|
-bump-
...any updates? ![]() No members have liked this post.
|
|
#28
|
||||
|
||||
|
This would be good for ads definatley...if I could find a good ad company that sells items like IGN does with their things
No members have liked this post.
|
|
#29
|
||||
|
||||
|
don't have the postbit_display_complete template.. is there some other way? >_<
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 16:47.







