Author Topic: Avoid HTML and bb code at description and comments  (Read 10370 times)

0 Members and 1 Guest are viewing this topic.

Offline 5images

  • Newbie
  • *
  • Posts: 17
    • View Profile
Avoid HTML and bb code at description and comments
« on: March 28, 2006, 01:47:04 PM »
I want to avoid HTML and bb code at image description and comment input (espacially the placing of links to other websites)

Any solution?
(Have not found the topic at this new forum)

Thank you in advance
Juergen

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Avoid HTML and bb code at description and comments
« Reply #1 on: March 28, 2006, 03:40:25 PM »
what version?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 5images

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Avoid HTML and bb code at description and comments
« Reply #2 on: April 04, 2006, 07:11:59 PM »
1.7.1 (sorry for delay)

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Avoid HTML and bb code at description and comments
« Reply #3 on: April 06, 2006, 12:43:02 AM »
for comments:
in the CP under settings/comment, there you can set if html/bbcode is allowed or not.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Avoid HTML and bb code at description and comments
« Reply #4 on: April 06, 2006, 01:57:23 AM »
for comments:
in the CP under settings/comment, there you can set if html/bbcode is allowed or not.
DOH! :oops:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Avoid HTML and bb code at description and comments
« Reply #5 on: April 06, 2006, 02:12:11 AM »
?, i didn't understand your post?  :?:
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Avoid HTML and bb code at description and comments
« Reply #6 on: April 06, 2006, 02:19:23 AM »
I ment, I completly forgot about these settings...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 5images

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Avoid HTML and bb code at description and comments
« Reply #7 on: April 28, 2006, 05:33:37 PM »
Thanks, all this settings are deactivated.

But a spammer can still use ' h t t p : / / w w w . t e s t . d e '

This will work out for him in the headline/subject area and in the comment area.

How can I avoid it?

All the best
Juergen

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Avoid HTML and bb code at description and comments
« Reply #8 on: April 28, 2006, 06:14:20 PM »
Its not "clickable", right? so... ban the spammer, disable comment system or add these links into "Badword list" in the settings.
But there is no other way against spammers, atleast agains human type...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 5images

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Avoid HTML and bb code at description and comments
« Reply #9 on: April 30, 2006, 02:42:27 PM »
Of course it's clickable like this: http://www.test.de
(in my last post i just added the spaces to avoid a link)

I' want to avoid that a url is displayed as link (no link-funktion, no underline)
this will show the url but it is not clickable,
But where can i edit php-code to avoid it.

Thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Avoid HTML and bb code at description and comments
« Reply #10 on: April 30, 2006, 05:03:18 PM »
in includes/functions.php find:
Code: [Select]
    $text = replace_url($text);comment it out (add // at the beginning of the line) or delete it.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 5images

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Avoid HTML and bb code at description and comments
« Reply #11 on: April 30, 2006, 10:23:32 PM »
Perfect!
Thanks!!