vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Post Replacements (https://vborg.vbsupport.ru/showthread.php?t=125307)

roger.kore 01-16-2007 08:46 PM

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 


Ducks 02-11-2007 09:09 AM

Can it shown as a dhtml popup instead?

talenak 02-17-2007 11:19 PM

I <3 this hack. I'm already abusing it too. I can't wait for april fools... lol

talenak 02-18-2007 01:35 PM

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

Kommix 02-26-2007 08:56 AM

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.

Kommix 03-03-2007 09:12 PM

Ha! Solved!
Ha! Problem! My solution disables the plugin completely, so I deleted the solution. Dammit.

Bree 03-12-2007 09:59 PM

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

roger.kore 03-21-2007 08:25 AM

Is there someone working on this product?

I still have this problem:

Attachment 62137

Attachment 62138

There is no similar product T_T

millionart 03-22-2007 07:00 AM

If I use chinese or japanese ,it cant work ,can you fix it?
thanks for this great mod and help.

millionart 03-23-2007 01:12 AM

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


All times are GMT. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01326 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete