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)

aLReeMi 09-01-2006 01:10 PM

great,
ThanKs

amnesia623 09-01-2006 05:04 PM

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!

DrewM 09-01-2006 09:25 PM

no it changes the text that is displayed so the post is the same.

amnesia623 09-01-2006 11:23 PM

thank you

Keyser S?ze 09-02-2006 08:13 AM

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

DrewM 09-02-2006 12:42 PM

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>

DeanoG 09-04-2006 10:14 AM

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

DrewM 09-04-2006 02:21 PM

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>

DeanoG 09-04-2006 03:04 PM

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

Stoebi 09-08-2006 08:45 PM

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


All times are GMT. The time now is 06:47 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.01186 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
  • (10)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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