Welcome, Guest. Please Login or Register.
May 12, 2024, 09:07:45 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  How can I disable a Yabbc « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How can I disable a Yabbc  (Read 8549 times)
Solar
Noobie
*
Posts: 3


WWW
How can I disable a Yabbc
« on: February 27, 2004, 04:41:14 PM »
Reply with quote

I would like to disable the [url] code but the rest of the codes have tostay enabled?
Logged

Keep your torrents open after finishing the download!
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:How can I disable a Yabbc
« Reply #1 on: February 27, 2004, 10:27:06 PM »
Reply with quote

Wrong board, your question has nothing to do with portals.

Anyway, you will have to alter the code in Subs.php to remove the url functionaliy.

Can somebody move this to the Mod suggestions board, that way there is a chance somebody would make a mod that does this.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:How can I disable a Yabbc
« Reply #2 on: February 27, 2004, 10:31:58 PM »
Reply with quote

Ok. Here's what you do:

Open up subs.php:

Search for:
         '/\[url\](.+?)\[\/url\]/is',
         '/\[url=(.+?)\](.+?)\[\/url\]/is',


Replace with:
/*         '/\[url\](.+?)\[\/url\]/is',
         '/\[url=(.+?)\](.+?)\[\/url\]/is',*/


Search for:
         '<a href="\\1" target="_blank">\1</a>',
         '<a href="\\1" target="_blank">\2</a>',


Replace with:
/*         '<a href="\\1" target="_blank">\1</a>',
         '<a href="\\1" target="_blank">\2</a>',*/


That should keep it from working. Also, make sure the option to "auto link URLs" is not selected in Forum Preferences and Settings.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Solar
Noobie
*
Posts: 3


WWW
Re:How can I disable a Yabbc
« Reply #3 on: February 28, 2004, 12:55:03 AM »
Reply with quote

Thank you very much!

The function is disabled now, but the url is displayed rewritten now like this:

[url=http://www.mysite.nl]www.site.nl[/url]

Is it possible to disable that too?

Sorry for posting in the wrong forum by the way...
« Last Edit: February 28, 2004, 01:18:30 AM by Solar » Logged

Keep your torrents open after finishing the download!
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:How can I disable a Yabbc
« Reply #4 on: February 29, 2004, 10:38:16 PM »
Reply with quote

Hmmm... I forgot that the code did that... Let me go see what I can dig up.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:How can I disable a Yabbc
« Reply #5 on: February 29, 2004, 10:43:41 PM »
Reply with quote

Ok... Try this...

In subs.php

Search for:
      array('tag' => 'url', 'protocol' => 'http', 'embeddedUrl' => true, 'hasEqualSign' => false),
      array('tag' => 'url', 'protocol' => 'http', 'embeddedUrl' => true, 'hasEqualSign' => true),


Replace with:
/*      array('tag' => 'url', 'protocol' => 'http', 'embeddedUrl' => true, 'hasEqualSign' => false),
      array('tag' => 'url', 'protocol' => 'http', 'embeddedUrl' => true, 'hasEqualSign' => true),*/
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:How can I disable a Yabbc
« Reply #6 on: March 02, 2004, 07:38:30 PM »
Reply with quote

Quote from: Chris Cromer on February 27, 2004, 10:27:06 PM
Can somebody move this to the Mod suggestions board, that way there is a chance somebody would make a mod that does this.

Think 'English Help' should be fine!
Logged

Solar
Noobie
*
Posts: 3


WWW
Re:How can I disable a Yabbc
« Reply #7 on: March 02, 2004, 10:14:58 PM »
Reply with quote

oldiesmann,

YOU'RE THE MASTER
Finally I can disable the URL without crappity smacking up my forum all the time.
I'm glad I've  backed up it, because I had to restore it many times by try and error :)
Logged

Keep your torrents open after finishing the download!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  How can I disable a Yabbc « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.113 seconds with 21 queries.