• Welcome to Simple Machines Community Forum. Please login or sign up.
November 28, 2021, 03:06:36 PM

News:

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


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].   ;)
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

kat

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

Aleksi "Lex" Kilpinen

A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

kat

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

Aleksi "Lex" Kilpinen

A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

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.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

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...
No good deed goes unpunished
All helpful urges should be circumvented

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

May 11, 2011, 02:15:37 AM #34 Last Edit: May 11, 2011, 02:18:57 AM by SFF Forum
Why not try [c0de]==>[qu0te] :)
I Love Simple Machines Forum .

Advertisement: