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
  #72  
Old 01-16-2007, 08:46 PM
roger.kore roger.kore is offline
 
Join Date: Jan 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As report:

http://img441.imageshack.us/img441/1449/testyp3.jpg

This plugin is "eating" variables em code/php/html tags on 3.6.4


$test=test
Code:
$test = test
HTML Code:
$test = test
PHP Code:
$test test 
Reply With Quote
  #73  
Old 02-11-2007, 09:09 AM
Ducks Ducks is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can it shown as a dhtml popup instead?
Reply With Quote
  #74  
Old 02-17-2007, 11:19 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I <3 this hack. I'm already abusing it too. I can't wait for april fools... lol
Reply With Quote
  #75  
Old 02-18-2007, 01:35 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wellll, this mod seriously damages certain post functions. Like anything with a php or code tag. Also when I try to open my thread with attachments and code pasted that is the log of modifications I make to the board I can't. I get the below error, and of course everything works fine again as soon as this mod is uninstalled. Clicking uninstalled and checking back every now and again for a fixed version

Quote:
Parse error: syntax error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /brute-force/forums/includes/class_postbit.php(296) : eval()'d code(13) : regexp code on line 8

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: &quot;&lt;pre class=\&quot;alt2\&quot; dir=\&quot;ltr\&quot; style=\&quot; margin: 0px; padding: 3px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto\&quot;&gt;&amp;lt;if condition=&amp;quot;$post[\'signature\']&amp;quot;&amp;gt;&lt;/pre&gt;&quot;==&quot;&lt;pre class=\&quot;alt2\&quot; dir=\&quot;ltr\&quot; style=\&quot; margin: 0px; padding: 3px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto\&quot;&gt;&amp;lt;if condition=&amp;quot;$post[\'signature\']&amp;quot;&amp;gt;&lt;/pre&gt;&quot;? &quot;&lt;pre class=\&quot;alt2\&quot; dir=\&quot;ltr\&quot; style=\&quot; margin: 0px; padding: 3px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto\&quot;&gt;&amp;lt;if condition=&amp;quot;$post[\'signature\']&amp;quot;&amp;gt;&lt;/pre&gt;&quot;:&quot; $post_explod in /brute-force/forums/includes/class_postbit.php(296) : eval()'d code on line 13
Reply With Quote
  #76  
Old 02-26-2007, 08:56 AM
Kommix Kommix is offline
 
Join Date: Nov 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$this->post['message']  = preg_replace("/((\<a[^\>]*?\>.*?\<\/a\>|\<code[^\>]*?\>.*?\<\/code\>|\<pre[^\>]*?\>.*?\<\/pre\>)|(?<!\.)\b" preg_quote($post_explode_rple[0], '/') . "(?!\-|\:|\;)\b)/sie"'"\\2"=="\\1"? "\\1":" $post_explode_rple[1]"'$this->post['message']); 
This line has a huge code error that I couldn't figure out (yet), but it causes the problem again (tansu mentioned above) (http://www.doctus.net/showpost.php?p=84884&postcount=4). What could it be?
The problem: When the word to be replaced is used in a link, the mod adds lots of backslashed. Check out the link:
http://www.doctus.net/showpost.php?p=84884&postcount=4
"Windows'tan Ubuntu'ya kesin ge?iş" is wrapped with the [.url] bbcode. The word Ubuntu is in the replacements list. The apostrophe causes the problem.
Reply With Quote
  #77  
Old 03-03-2007, 09:12 PM
Kommix Kommix is offline
 
Join Date: Nov 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ha! Solved!
Ha! Problem! My solution disables the plugin completely, so I deleted the solution. Dammit.
Reply With Quote
  #78  
Old 03-12-2007, 09:59 PM
Bree's Avatar
Bree Bree is offline
 
Join Date: Aug 2006
Location: Hawaii
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works great... I only ran into one prob... it was replacing in the IMG Tags I think.. cause like I had one replacement for Gallery... and in the images that are posted the word Gallery is apart of the address so it messed those up... I just took out that replacement tho - I can live without it =0) Love the mod! Thanks a bunch! Always, Bree
Reply With Quote
  #79  
Old 03-21-2007, 08:25 AM
roger.kore roger.kore is offline
 
Join Date: Jan 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there someone working on this product?

I still have this problem:

Attachment 62137

Attachment 62138

There is no similar product T_T
Reply With Quote
  #80  
Old 03-22-2007, 07:00 AM
millionart millionart is offline
 
Join Date: Feb 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I use chinese or japanese ,it cant work ,can you fix it?
thanks for this great mod and help.
Reply With Quote
  #81  
Old 03-23-2007, 01:12 AM
millionart millionart is offline
 
Join Date: Feb 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it cant get the Character of utf8,for example:
1===微软(microsoft)
it works
微软===1
doesnt work
vbb.org use charset=ISO-8859-1 maybe u cant see it
u can see it here:
http://www.google.com/search?client=...BE%AE%E8%BD%AF
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:25 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.04906 seconds
  • Memory Usage 2,311KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_php
  • (1)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
  • (3)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