PDA

View Full Version : Show Thread Enhancements - Post Replacements


DrewM
08-29-2006, 10:00 PM
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 (http://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!

Stromba
08-30-2006, 11:34 AM
:) Wooooow nice, first reply and first install..

DrewM
08-30-2006, 11:37 AM
thanks, enjoy

C_P
08-30-2006, 12:33 PM
This seems like a nice addition. I am a bit confused though.
1. When I add this lets say vB do I need to add the http://www.vbulletin.com so it shows vB===http://www.vbulletin.com as a hyperlink like this vB (http://www.vbulletin.com)?
2. If I wanted to have this hyperlink a different color, would this also be possible? Example: like this: vB (http://www.vbulletin.com)

DrewM
08-30-2006, 01:33 PM
C_P, to your questions:
1. no, to get that you must put:
vB===<a href="http://www.vbulletin.com">vB</a>, the option parsed the text I have to find a way to bypass that.
2.yes that is possible just put the HTML for the diffrent color arount the link code.

teneffus
08-30-2006, 01:38 PM
screenshot pls?

C_P
08-30-2006, 02:23 PM
ok, I may be doing something wrong here but this is enabled and am trying the following code replacements with no sucess:
vB===<a href="<A href="http://www.vbulletin.com"><font">http://www.vbulletin.com"><font color="#008000">vB</font></a>|||Computer Paradise===<a href="<A href="http://www.cpfools.com"><font">http://www.cpfools.com"><font color="#008000">Computer Paradise</font></a>|||rules===<a href="<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font">http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font color="#008000">rules</font></a>|||tutorial===<a href="<A href="http://www.cpfools.com/tutorials/"><font">http://www.cpfools.com/tutorials/"><font color="#008000">tutorial</font></a>
See here:
http://www.cpfools.com/forum/showthread.php?p=15111#post15111

Nachtfalke
08-30-2006, 02:53 PM
ok, I may be doing something wrong here

Didn't test the mod yet, but you have way to much html in the replacement. Perhaps try

vB===<a href="http://www.vbulletin.com"><font color="#008000">vB</font></a>|||Computer Paradise===<a href="http://www.cpfools.com"><font color="#008000">Computer Paradise</font></a>|||rules===<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font color="#008000">rules</font></a>|||tutorial===<a href="http://www.cpfools.com/tutorials/"><font color="#008000">tutorial</font></a>

or better: give the replacement tags a class (maybe with the name replacement) and define them via css:

vB===<a href="http://www.vbulletin.com" class="replacment">vB</a>|||Computer Paradise===<a href="http://www.cpfools.com" class="replacment">Computer Paradise</a>|||rules===<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6" class="replacment">rules</a>|||tutorial===<a href="http://www.cpfools.com/tutorials/" class="replacment">tutorial</a>

then add the following to your css: .replacement {
color: #008000
}

C_P
08-30-2006, 03:13 PM
Thank you much for the code suggestions but after copying and pasting both codes you supplied, neither work.
This one may be going bye bye. Sorry bud but if this cannot be easily done, not sure it is worth it.
Thanks anyway, good idea.

DrewM
08-30-2006, 03:54 PM
I think this is casued by the way vb reads links sorry this doesn't work for you.

DrewM
08-30-2006, 03:57 PM
screenshot pls?
screens aren't reall needed are they?

voteforbird
08-30-2006, 05:08 PM
This add-on doesn't work for me…

DrewM
08-30-2006, 05:11 PM
This add-on doesn't work for me…
why?

outlaw621
08-30-2006, 05:55 PM
This is not working for me either. No matter what I enter it will not parse the replacement value. I have tried setting enable to yes and to no (just incase). I checked to make sure that the replacement product and plugin were both active. I have tried the following formats:

For a single entry I have tried:
test===change text
For multiple entries I have tried:
test===change text ||| test2===change text2
I have even tried using ||| without a space between entries:
test===change text|||test2===change text2

None of the above variations work.

DrewM
08-30-2006, 06:16 PM
This is not working for me either. No matter what I enter it will not parse the replacement value. I have tried setting enable to yes and to no (just incase). I checked to make sure that the replacement product and plugin were both active. I have tried the following formats:

For a single entry I have tried:
test===change text
For multiple entries I have tried:
test===change text ||| test2===change text2
I have even tried using ||| without a space between entries:
test===change text|||test2===change text2

None of the above variations work.
I have tried all of these and they work fine. What products do you have installed?

outlaw621
08-30-2006, 06:37 PM
None. I have tried the above on a clean install (test board).

Ntfu2
08-30-2006, 06:59 PM
Im sure there is a difference, but whats the difference between this and using vBulletins built in replacement variables?

voteforbird
08-30-2006, 07:14 PM
why?Uh? I was hoping you could tell me? :rolleyes:

asj
08-30-2006, 08:13 PM
thanks

DrewM
08-30-2006, 08:21 PM
None. I have tried the above on a clean install (test board).
couldn't tell you then all I can say is try re-installing the product.
Im sure there is a difference, but whats the difference between this and using vBulletins built in replacement variables?
vBulletins built in replacement you put the tags and stuff this uses str_replace() so any words can be replaced.
Uh… I was hoping you could tell me?
all it is a vboption and then a post with some bbcode.

Snatch
08-31-2006, 05:52 AM
Here the Same, it doesen´t works.

GreeTz
Snatch

Stoebi
08-31-2006, 06:22 AM
Hi,

replace $vbulletin with $this->registry in the plugin Replacments (Hook postbit_display_complete) (2 times).

//$post[message]
if ($this->registry->options['post_replacements_enabled'] == '1') {
$replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
foreach ($replacments_array_mine as $post_replace) {
$post_explode_rple = explode("===", $post_replace);
$post['message'] = str_replace($post_explode_rple['0'], $post_explode_rple['1'], $post['message']);
}
}

It works fantastic. I've clicked install. :)



Kind Regards,

Stoebi

Nachtfalke
08-31-2006, 08:15 AM
Now that are good news, Stoebi! So I will try this one out

DrewM
08-31-2006, 09:17 AM
Hi,

replace $vbulletin with $this->registry in the plugin Replacments (Hook postbit_display_complete) (2 times).

//$post[message]
if ($this->registry->options['post_replacements_enabled'] == '1') {
$replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
foreach ($replacments_array_mine as $post_replace) {
$post_explode_rple = explode("===", $post_replace);
$post['message'] = str_replace($post_explode_rple['0'], $post_explode_rple['1'], $post['message']);
}
}

It works fantastic. I've clicked install. :)



Kind Regards,

Stoebi
thank you will upade the hack.

C_P
08-31-2006, 02:42 PM
NOW it works!
I used the following code and works perfectly:
vB===<a href="http://www.vbulletin.com"><font color="#008000">vB</font></a>|||Computer Paradise===<a href="http://www.cpfools.com"><font color="#008000">Computer Paradise</font></a>|||rules===<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font color="#008000">rules</font></a>|||tutorial===<a href="http://www.cpfools.com/tutorials/"><font color="#008000">tutorial</font></a>

See here:
http://www.cpfools.com/forum/showthread.php?t=5901
Clicked install!
Thank you!

outlaw621
08-31-2006, 03:53 PM
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.

C_P
08-31-2006, 04:02 PM
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.
EXCELLENT request! I agree, add me to this request as well.

SnickersTK
08-31-2006, 04:03 PM
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.

thirding this request

voteforbird
08-31-2006, 09:02 PM
Thanks.

DrewM
09-01-2006, 10:32 AM
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.
I will try to do this in the next week you should see it soon.

EDIT: Currently it is case insensitive.

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

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:
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
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 ...

http://www.microsoft.com/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx

is replaced by


http://www.microsoft.comcom/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx

DrewM
09-04-2006, 02:21 PM
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
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 ...

http://www.microsoft.com/windows/ie/ie6/downloads/critical/ie6sp1/default.mspx

is replaced by


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:
microsoft ===<a href="http://www.microsoft.com">microsoft</a>

DeanoG
09-04-2006, 03:04 PM
I'm not planing on ignoring that but to fix this put your replacement code
to be:
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 ..
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

Stoebi
09-10-2006, 08:50 PM
Hi

These lines should solve all problems which i had and others posted:

@Larrysw
Replace -> Post Replacements (Hook: postbit_display_complete)
//$this->post[message]
if ($this->registry->options['post_replacements_enabled'] == '1')
{
$replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
foreach ($replacments_array_mine as $post_replace)
{
$post_explode_rple = explode("===", $post_replace);
$this->post['message'] = preg_replace("/\s(" . $post_explode_rple['0'] . ")\s?\b/iU", " " . $post_explode_rple['1'], $this->post['message']);
}
}



Edit:
This fine addon works fine with "Hide Links From Guests". You only need to set the "Execution Order" from 5 to 4 in "Plugin Manager" -> Guests will not see links in posts (Hook: postbit_display_complete)


Kind Regards,

Stoebi

C_P
09-10-2006, 11:58 PM
Hi

These lines should solve all problems which i had and others posted:

@Larrysw
Replace -> Post Replacements (Hook: postbit_display_complete)
//$this->post[message]
if ($this->registry->options['post_replacements_enabled'] == '1')
{
$replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
foreach ($replacments_array_mine as $post_replace)
{
$post_explode_rple = explode("===", $post_replace);
$this->post['message'] = preg_replace("/\s(" . $post_explode_rple['0'] . ")\s?\b/iU", " " . $post_explode_rple['1'], $this->post['message']);
}
}


Edit:
This fine addon works fine with "Hide Links From Guests". You only need to set the "Execution Order" from 5 to 4 in "Plugin Manager" -> Guests will not see links in posts (Hook: postbit_display_complete)


Kind Regards,

Stoebi
Code replacement worked excellent! Thank you. Maybe you should add this in a read me for the original hack?

Nj?rd Eriksson
09-11-2006, 11:48 AM
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case. If you run PHP5, replacing str_replace with str_ireplace should do the job.

DrewM
09-13-2006, 09:42 AM
Hi

These lines should solve all problems which i had and others posted:

@Larrysw
Replace -> Post Replacements (Hook: postbit_display_complete)
//$this->post[message]
if ($this->registry->options['post_replacements_enabled'] == '1')
{
$replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
foreach ($replacments_array_mine as $post_replace)
{
$post_explode_rple = explode("===", $post_replace);
$this->post['message'] = preg_replace("/\s(" . $post_explode_rple['0'] . ")\s?\b/iU", " " . $post_explode_rple['1'], $this->post['message']);
}
}



Edit:
This fine addon works fine with "Hide Links From Guests". You only need to set the "Execution Order" from 5 to 4 in "Plugin Manager" -> Guests will not see links in posts (Hook: postbit_display_complete)


Kind Regards,

Stoebi
thanks again Stoebi I will update the hack.

Stoebi
09-13-2006, 03:38 PM
Hi

@Larrysw
I have to thank you! :) Thank you very much! :)


Regards, Stoebi

DeanoG
09-14-2006, 07:51 AM
Working perfectly ...:)

but I have noticed another small problem

Replacement Code.....

--------------------
Ultimate===<a href="http://www.xxxxxxxx.com" target="_blank">Ultimate</a>|||Ultimate DVDR===<a href="http://www.ultimate-dvdr.com" target="_blank">Ultimate DVDR</a>
--------------------


The second condition gets ignored due to the fact the Word "Ultimate" has already been replaced in the first condition.

or is it because of the Space between "Ultimate DVDR" ?

is this possible to fix ?


DeanoG

Stoebi
09-14-2006, 12:01 PM
Hi

Ultimate DVDR===<a href="http://www.ultimate-dvdr.com" target="_blank">Ultimate DVDR</a>|||Ultimate===<a href="http://www.xxxxxxxx.com" target="_blank">Ultimate</a>


Regards, Stoebi




is this possible to fix ?


DeanoG

Snake
09-17-2006, 12:41 PM
Thank you, thank you!

red24
10-06-2006, 01:39 AM
this may sound like a silly question, but i installed the mod and i cant find the place where the replament codes go...... could someone please direct me

--edit--

do i just stick those into the replacement variable manager?

Stoebi
10-06-2006, 08:06 AM
this may sound like a silly question, but i installed the mod and i cant find the place where the replament codes go...... could someone please direct me

--edit--

do i just stick those into the replacement variable manager?

Hi

Admin -> vBulletin Options -> vBulletin Options and on the right search for Replacement Options


Regards, Stoebi

red24
10-06-2006, 10:53 AM
thanks stoebi, never would have found that one myself.....

excellent plug-in :cool:

i have one comment, if the word that has to be replaced is the first one in a message than the plug-in fails to replace it.

-- edit --

Theres also a problem with non english chrsets. it can replace a string in english to a link with a non english anchor text, but it doesnt replace strings of non english chrsets.

Stoebi
10-06-2006, 01:22 PM
thanks stoebi, never would have found that one myself.....

excellent plug-in :cool:

i have one comment, if the word that has to be replaced is the first one in a message than the plug-in fails to replace it.

Hi,

thanks should go to LarrySW for his brilliant idea :)
Fixed the first one in a message (See attachment)


Theres also a problem with non english chrsets. it can replace a string in english to a link with a non english anchor text, but it doesnt replace strings of non english chrsets.

Sorry, but i can't reproduce it. :(


Regards, Stoebi

DrewM
10-09-2006, 10:35 PM
Sorry, but i can't reproduce it.
I don't really care what you do with it after all you wrote most of the code.

Stoebi
10-10-2006, 06:53 AM
I don't really care what you do with it after all you wrote most of the code.

Did not have hebrew characters. How can i emulate it? Found another little problem in quotes with words on the first place..

Regards, Stoebi

Stoebi
10-26-2006, 08:28 AM
I don't really care what you do with it after all you wrote most of the code.

This version fix lot of problems ( Many thx to Christian from www.vbdesigns.de )


Replacement does not effect code boxes
First word in post and quotes will be replaced now
...
Regards, Stoebi

DrewM
10-26-2006, 09:11 AM
Thanks I'll update it today

SloppyGoat
11-06-2006, 03:08 AM
Is there any way to make this only apply to one forum ID?

ThePimp
11-06-2006, 03:52 AM
Can you configure this to work in thread titles?
Also, when you use a replaced word as the first word in the post, it fails, and the real word shows.

Tulsa
11-10-2006, 06:38 PM
Nice work!

Now when the word or phrase ends with a period, as in the ends a sentence, it's not being replaced.

So if you were replacing the word "test" and the sentence was "I will see how you did on the test." Test would not be replaced.

tansu
11-11-2006, 12:45 AM
great.. very nice hack

Stoebi
11-12-2006, 04:26 PM
Nice work!

Now when the word or phrase ends with a period, as in the ends a sentence, it's not being replaced.

So if you were replacing the word "test" and the sentence was "I will see how you did on the test." Test would not be replaced.

Fixed - Thx :)

Updated - New version 1.8


Regards, Stoebi

tansu
11-13-2006, 12:21 AM
Hello,
we have a problem, each link we add, adds an extra \ to some other links..
Example:
http://www.doctus.net/showpost.php?p=84884&postcount=4

Kommix
11-13-2006, 12:36 AM
Problem solved (in cooperation with tansu): we had to clear the example in the XML file. in the end, the code was like this:
<phrase name="setting_post_Replacements_option_desc" date="1157204521" username="Rdsx" version="1.1"><![CDATA[]]></phrase>

DrewM
11-13-2006, 09:02 AM
Fixed - Thx :)

Updated - New version 1.8


Regards, Stoebi
thanks I will update the hack today sorry every one for ot supporting this I for got about it :)

actolearn
11-16-2006, 09:23 PM
hello,

first, thanks very much for this fantastic mod. :)

a quick question: is it possible to replace links, or entire strings of HTML? for instance i wanted to replace link and anchor text for site A (http://www.siteA.com) to link and anchor text to site B (http://www.siteB.com[/url). the code i tried was

<a href="http://www.yahoo.com">good site</a>===<a href="http://www.actoguitar.com">great site</a> ||| good site (http://www.yahoo.com)===great site (http://www.actoguitar.com)


you'll notice i tried using both HTML and BBcode. i also tried using each one individually. no replacement was made, though.

i am using vbulletin 3.6.3 and version 1.8 of this hack.

any help would be most appreciated. thanks again for this fantastic mod!

DrewM
11-22-2006, 04:45 PM
first I'm sorry for the late replie this is a problem with the hack I will look into it more over more though... expect 1.9

DkHelmet
11-29-2006, 07:39 PM
Just to jump on the bandwagon:

A better means of specifying replacements would be nice, this can get very unwieldy if more than a dozen or so are in place. Good place to add in string sensitivity and standalone word/inside word per replacement options.

It would be nice to have an "apply only to usergroup" or "except usergroup" option.

Installed.

projectego
11-29-2006, 10:31 PM
* projectego clicks install ;)

Brew
01-02-2007, 02:20 AM
I have no idea how or if this could be done but I would like to see this with the ability to have dynamic urls for words.

So if I were to post something about the White House that would turn into a link to somewhere like a wikipedia page on the White House.

Otherwise...Thanks!

maxicep
01-05-2007, 12:36 PM
nice hack. thanks. i will install

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
$test = test

$test = test

$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 :)


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
$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:

62137

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=aff-cs-maxthon&forid=1&ie=utf-8&oe=UTF-8&hl=zh-CN&q=%E5%BE%AE%E8%BD%AF

Kommix
04-06-2007, 08:26 AM
Is there someone working on this product?

I still have this problem:

62137

62138

There is no similar product T_T
I'm guessing that the author has abandoned the plugin with lots of bugs :(

Nathan2006
04-10-2007, 09:17 PM
Thanks Larrysw

Will ahve a play around with it soon :)

Install

AlpineZone
10-30-2007, 03:09 PM
I just upgraded to 1.8 and I still have a problem. If someone embeds a hyperlink with an apostrphe-s ( 's ) in the linking text, I get backslashes appearing in the linking text. This doesn't happen with this mod disabled. Thoughts?

grant.hayman
12-07-2007, 12:38 PM
REALLY WANT TO SEE THIS MOD FIXED!

Come on guys!!

ukgamblingforum
12-31-2007, 08:31 PM
works like a charm. TY TY TY!

mystic10
01-08-2008, 06:28 PM
awesome awesome awesome awesome..i loveeeeeeeeeeeeeee it. awesome thankkssssssssssssssssssssssssssssss a ton

TCE Killa
01-08-2008, 07:09 PM
Thanks but what here am I doing wrong?

HHG|hhglobal.com|www.hhglobal.com|Hip Hop Global===<a href="http://www.hhglobal.com/forums">The Hip Hop Global Forums</a>

I post a message saying HHG and it is still just normal, no hyper link nor does it go to what I want it to say.

juan71287
01-11-2008, 11:36 PM
You can try:
hhglobal.com===<a href="http://www.hhglobal.com/forums">The Hip Hop Global Forums</a>|||HHG===<a href="http://www.hhglobal.com/forums">The Hip Hop Global Forums</a>|||www.hhglobal.com===<a href="http://www.hhglobal.com/forums">The Hip Hop Global Forums</a>

That should work fine....



Now to my question, this worked file for me, but the link comes out as http://url.com/forums/www.google.com

I don't understand why, anyone know?

EDIT: Figured it out, thanks.

TCE Killa
01-12-2008, 10:03 AM
Thanks alot, all works well now.