Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Post Replacements Details »»
Post Replacements
Version: 1.8, by DrewM DrewM is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.3 Rating:
Released: 08-29-2006 Last Update: 11-12-2006 Installs: 74
Uses Plugins
 
No support by the author.

Post Replacements 1.8

About
This hack allows you to have replacements for posts, for example you say you wanted every word that says vbulletin to say vbulletin.com you just have to put that in the option in vbulletin settings.

Important
When putting your replacements in the option read the description first to understand how it works.

Change Log
1.1; Fixed the plugin thanks Stoebi
1.5; Replacements now don't interfere with words that include the replacement. Thanks again to Stoebi .

A big thanks to Stoebi for providing most of the code!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 09-01-2006, 01:10 PM
aLReeMi aLReeMi is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great,
ThanKs
Reply With Quote
  #33  
Old 09-01-2006, 05:04 PM
amnesia623 amnesia623 is offline
 
Join Date: Jul 2006
Location: Glendale, AZ
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this a permanent change to the post (changed when the user posts it or when it's read from the database)? because this looks like it could be a good april 1 add-on!
Reply With Quote
  #34  
Old 09-01-2006, 09:25 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no it changes the text that is displayed so the post is the same.
Reply With Quote
  #35  
Old 09-01-2006, 11:23 PM
amnesia623 amnesia623 is offline
 
Join Date: Jul 2006
Location: Glendale, AZ
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #36  
Old 09-02-2006, 08:13 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a hack i have been waiting for for a long time, however i wish the adding new replacements system was better, but anyways, i guess im doing something wrong i thought i had understood it correctly

PHP Code:
newegg===<a href="http://www.newegg.com">NewEgg</a>
 ||| 
daemon tools===<a href="http://en.wikipedia.org/wiki/Daemon_tools">Daemon Tools</a
tying to replace newegg and daemon tools, newegg shows up as working properly
Reply With Quote
  #37  
Old 09-02-2006, 12:42 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use this for your vboption:
Code:
newegg===<a href="http://www.newegg.com">NewEgg</a>|||daemon tools===<a href="http://en.wikipedia.org/wiki/Daemon_tools">Daemon Tools</a>
Reply With Quote
  #38  
Old 09-04-2006, 10:14 AM
DeanoG DeanoG is offline
 
Join Date: Feb 2002
Location: UK
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack is working great .. but I have noticed a problem with Links to external site.

is there any way the anythink with the BBcode [ url]....... [/ url] between them can be ignored by the plugin ?..


for example..

replacement code
Code:
microsoft===<a href="http://www.microsoft.com">microsoft</a>
it screws up live links ....

if some has posted a link in the post to the microsoft site it screws up ...

for example ...
Code:
http://www.microsoft.com/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx
is replaced by

Code:
http://www.microsoft.comcom/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx
Reply With Quote
  #39  
Old 09-04-2006, 02:21 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DeanoG
The hack is working great .. but I have noticed a problem with Links to external site.

is there any way the anythink with the BBcode [ url]....... [/ url] between them can be ignored by the plugin ?..


for example..

replacement code
Code:
microsoft===<a href="http://www.microsoft.com">microsoft</a>
it screws up live links ....

if some has posted a link in the post to the microsoft site it screws up ...

for example ...
Code:
http://www.microsoft.com/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx
is replaced by

Code:
http://www.microsoft.comcom/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx
I'm not planing on ignoring that but to fix this put your replacement code
to be:
Code:
microsoft ===<a href="http://www.microsoft.com">microsoft</a>
Reply With Quote
  #40  
Old 09-04-2006, 03:04 PM
DeanoG DeanoG is offline
 
Join Date: Feb 2002
Location: UK
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Larrysw
I'm not planing on ignoring that but to fix this put your replacement code
to be:
Code:
microsoft ===<a href="http://www.microsoft.com">microsoft</a>
Thanks for the suggestion ...

I already modified the code like you suggested before you posted a quick fix to correct the problem ...

like so ..
Code:
microsoft ===<a href="http://www.microsoft.com">microsoft </a>
the only difference was the extra space on..... >microsoft </A>
otherwise the word being replaced would join to the next word because the space would not be replaced.


Thanks

DeanoG
Reply With Quote
  #41  
Old 09-08-2006, 08:45 PM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

i've found some problems.

1.
For example:
php===<a href="http://de.php.net">PHP</a>

Post a message with the word php -> save
Quote these message and see the problem. Anyone confirm this behavior?

2.
Post a message with the word file.php -> save, reload and see. Anyone confirm this behavior?

3.
Post a message with http://your_url/php -> save, reload and see. Anyone confirm this behavior?

Edit:

4.
foo===foobar

post a message and enter this text:
foo and fooexample

Reload and see:
foobar and foobarexample

First word is correct, but not the second word.

Can anyone confirm all these behaviors? I'm working on a fix now. Any interests?

Regards, Stoebi
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07689 seconds
  • Memory Usage 2,318KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete