Skip to content
WJunction - Webmaster Forum

How to autocode links?

Status
Not open for further replies.

6 comments

http://www.vbulletin.org/forum/showthread.php?t=151746

it tells you how to do it as listed above, but on page 3 i beleive it is, they also have a code that states how to auto code links in the SAME code box when they are posted as follows:

link.com/1
link.com/2

usually it would just make 2 code boxes for that but it says how to make it only show one.... srry if i didnt post the code here directly but my license got suspended so i cant see the thread :/
 
says after you do above find:
PHP:
$text = preg_replace($urlSearchArray, $urlReplaceArray, $messagetext);

after put:
PHP:
$text = str_replace("[/code]\r\n[code]","\r\n",$text);
$text = str_replace("[/code]\n[code]","\n",$text);
 
yep, thats it... thanks for posting it, that is the nicest piece of code ever i have been using it for a few months and it works great as long as ppl dont add {url} tags around links.....

now its making me think, would their be any way to stop ppl from being able to bypass it?
 
Status
Not open for further replies.

About the author

P
Active Member · Joined
238
Messages
0
Reactions
16
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom