Results 21 to 27 of 27
-
20th Mar 2010, 09:25 AM #21Member
Me too looking for it.
-
23rd Jul 2010, 05:37 PM #22Banned
me looking also.l
-
23rd Jul 2010, 06:29 PM #23MemberWebsite's:
shexy.neta javascript solves the problem
-
24th Jul 2010, 05:12 AM #24Member
That won't work, phpBB does not parse anything inside code BBCodes unless it is direct HTML
Which is what mine does
There is another way, modifying the php code
Here's
OPEN: includes/message_parser.php
FIND:PHP Code:return '[code:' . $this->bbcode_uid . ']' . $this->bbcode_specialchars($code) . '[/code:' . $this->bbcode_uid . ']';
PHP Code:$str_from = array('<', '>', '[', ']', '.', ':');
$str_to = array('<', '>', '[', ']', '.', ':');
$lines_code = str_replace("\n" , ' /\ ', $this->bbcode_specialchars($code));
$exploded_code = explode(' ', $lines_code);
foreach ($exploded_code as $v)
{
if (!$v == '/\\')
{
if (preg_match('#^' . get_preg_expression('url') . '$#i', str_replace($str_from, $str_to, $v)) || preg_match('#^' . get_preg_expression('www_url') . '$#i', str_replace($str_from, $str_to, $v)) || preg_match('#^' . preg_quote(generate_board_url(), '#') . get_preg_expression('relative_url') . '$#i', $url))
{
str_replace($v, '<a href="$v">$v</a>', str_replace($str_from, $str_to, $lines_code));
}
}
}
$code = str_replace(' /\ ', "\n", $lines_code);
return '[code:' . $this->bbcode_uid . ']' . $code . '[/code:' . $this->bbcode_uid . ']';
Untested
-
11th Aug 2010, 03:37 AM #25Member
The above code will make it general to all links inside code ??
How do we make it specific for hf & fs ??
-
11th Aug 2010, 03:40 AM #26BannedWebsite's:
google.com knownsrv.comCheck this thread mate:
http://www.besthostingforums.com/showthread.php?t=42226
-
11th Aug 2010, 03:44 AM #27Member
thanks, checking now
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
how to make clickable link
By Mr.leg in forum Webmaster DiscussionReplies: 3Last Post: 10th Sep 2011, 02:56 PM -
How To Make Link Clickable By CSS @Wordpress
By NigelART in forum Webmaster DiscussionReplies: 5Last Post: 12th Jul 2011, 11:08 AM -
How to make PHPBB3 codded link clickable
By fry1943 in forum phpBBReplies: 7Last Post: 4th Jul 2011, 03:27 PM -
How to make Clickable Hf Links?
By Itkraze in forum vBulletinReplies: 2Last Post: 10th Feb 2011, 02:52 PM -
[Req]How to Make Clickable link[HF]
By Mr.WT in forum vBulletinReplies: 10Last Post: 26th Jul 2010, 03:57 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...