Reply
[phpBB2] help with code tag modification
Old 10-28-2009, 08:02 PM [phpBB2] help with code tag modification
Junior Talker

Posts: 2
Trades: 0
hi guys,

I like to make a url clickable inside of a [code] tags.

Can someone help me?
Thank you

This is my includes/bbcode.php file:
http://amadoras1.do.sapo.pt/bbcode.txt

I tried this:

Find:
PHP Code:
// [code] and [/code] for posting code (HTML, PHP, C etc etc) in your posts.
$text bbencode_first_pass_pda($text$uid'[code]''[/code]'''true''); 
Replace:
PHP Code:
// [code] and [/code] for posting code (HTML, PHP, C etc etc) in your posts.
//$text = bbencode_first_pass_pda($text, $uid, '[code]', '[/code]', '', true, ''); 
But appears like that:
http://i38.tinypic.com/v33io8.jpg

Now only need to make the url clickable... If I put the url without the tags appears fine, but with tags and with the modification above, appears like I show in the link above.
Can you make only the url clickable inside the code tag? Please?
Divvy is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-29-2009, 06:33 AM Re: [phpBB2] help with code tag modification
chrishirst's Avatar
Super Moderator

Posts: 22,226
Location: Blackpool. UK
Trades: 0
Why?????

The idea of NOT creating URL in the code segments is so it doesn't <ahem> "mess" up the code for people copying and pasting it. WHY on earth do you want to make it difficult for your users? (and maybe stop them using the forum!!)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-29-2009, 07:29 AM Re: [phpBB2] help with code tag modification
Junior Talker

Posts: 2
Trades: 0
My board will not break any download url code
Divvy is offline
Reply With Quote
View Public Profile
 
Old 10-29-2009, 07:57 AM Re: [phpBB2] help with code tag modification
chrishirst's Avatar
Super Moderator

Posts: 22,226
Location: Blackpool. UK
Trades: 0
What has a "download URL" got to do with it.

What if people put the URI in code delimiter deliberately to make it NON-clickable and therefore not crawlable (as people do here to avoid SEs finding the link)?
what about people posting

Code:
<link href="http://www.site.com/include/css/style.css" rel="stylesheet"/>
?
NOW THAT! doesn't need to be "clickable" does it?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to [phpBB2] help with code tag modification
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11458 seconds with 13 queries