News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

remove [code] tag form download file link

Started by malu_vashi, April 21, 2011, 01:53:09 PM

Previous topic - Next topic

kat

People can still copy/paste, even if the links aren't in code tags.

If you want to disable code tags, entirely, you can use word-censoring, to achieve that, I believe.

I'll check and post back.

kat

Yep. Works perfectly. :)

SMF v2.RC5 and v1.1.13.

Aleksi "Lex" Kilpinen

Use the word censor to change all  [code] and [/code] tags to [pre] and [/pre].   ;)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

kat

I just left the "to" thing blank and it worked. :)

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

kat

What would the {pre} thing do, then, out of curiosity?

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

kat

OO! Never used that.

Can't see the point, really.

I'm probably missing something, me being a bit dense... ;)

Aleksi "Lex" Kilpinen

I never use it either, but I thought if you'd have to replace Code with something, then it'd be Pre IMO.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Illori

well cant you use a quote tag too? it would also change the format slightly and allow the url to be clicked.

or even better just uncheck the use of code bbc?

kat

Quote from: Illori on April 28, 2011, 09:21:09 AMeven better just uncheck the use of code bbc?

Damn... Forgot that...

Bugger.

+1 for the girlies.

NanoSector

Thing is if you do not use the [code] tags, you can't format PHP code AFAIK ::)

<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>

<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>


Just pointing out, not sure if the OP is looking to put PHP inside their posts.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Arantor

Quote from: Yoshi2889 on April 29, 2011, 10:30:00 AM
Thing is if you do not use the [code] tags, you can't format PHP code AFAIK ::)

<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>

<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>


Just pointing out, not sure if the OP is looking to put PHP inside their posts.

And you never encountered the PHP tag:
<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>



The OP uses code tags to mark download links and just doesn't want the Code: [Select] bit if I'm any judge...

NanoSector

Quote from: Arantor on April 29, 2011, 10:36:14 AM
Quote from: Yoshi2889 on April 29, 2011, 10:30:00 AM
Thing is if you do not use the [code] tags, you can't format PHP code AFAIK ::)

<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>

<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>


Just pointing out, not sure if the OP is looking to put PHP inside their posts.

And you never encountered the PHP tag:
<?php
echo 'Ohi, this is something that\'s parsed in PHP';
?>



The OP uses code tags to mark download links and just doesn't want the Code: [Select] bit if I'm any judge...
That too, but that does not parse links either.

<?php
echo 'Ohi, this is something that\'s parsed in PHP with a http://www.link.com/';
?>

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

SFF Forum

#34
Why not try [c0de]==>[qu0te] :)
I Love Simple Machines Forum .

Advertisement: