AuthorTopic: Proposed word filter  (Read 10028 times)

Offline Zolthorg

  • 0010
  • *
  • Posts: 474
  • Karma: +0/-0
    • View Profile

Proposed word filter

on: March 08, 2007, 03:29:52 am
I've worked with simple forum software before, and i should hope that simple machine forums have similar options.

It would be a treat if we had a 'word' filter
for
Code: [Select]
"[img]"
"[/img]"
which would change any instance of that string
to just regular
Code: [Select]
"[img]"
"[/img]"
image tags

The only place i can see this being a problem, would be if people wanted their signature image to link to a personal profile
As for benefits, no more needing to tell people about imageshack links

because
Code: [Select]
[img]http://img58.imageshack.us/img58/1246/walkbest3lr6.gif[/img]would become
Code: [Select]
[img]http://img58.imageshack.us/img58/1246/walkbest3lr6.gif[/img]
What are your thoughts on the matter?

Offline Akira

  • 0010
  • *
  • Posts: 334
  • Karma: +0/-0
  • Heheheh
    • View Profile

Re: Proposed word filter

Reply #1 on: March 08, 2007, 04:21:22 am
people linking in the signature shouldn't be using the img tags anyway. they should be using the nozoom tags. i think. if i remember rightly. which would solve that problem.
/is too tired to type more
thanks Dogmeat!

Offline Panda

  • 0100
  • ***
  • Posts: 1008
  • Karma: +0/-0
  • 威風堂々
    • View Profile

Re: Proposed word filter

Reply #2 on: March 08, 2007, 07:29:42 am
It sounds like a nice idea. But somehow the existance of the nozoom tags should be announced, I guess.

Offline Akira

  • 0010
  • *
  • Posts: 334
  • Karma: +0/-0
  • Heheheh
    • View Profile

Re: Proposed word filter

Reply #3 on: March 08, 2007, 08:01:34 am
oh i just thought of something. any link on an image that wasn't imageshack would not be removed but the /url tag would be removed creating a link through the rest of the post. i think? maybe i'll test it...


this is a test of the image with a hyperlink and no closing url tag.

EDIT: RESULTS IN: well there you go. it would work, it'd just look sorta ugly. but we could live with that.
« Last Edit: March 08, 2007, 08:03:21 am by Akira »
thanks Dogmeat!

Offline Panda

  • 0100
  • ***
  • Posts: 1008
  • Karma: +0/-0
  • 威風堂々
    • View Profile

Re: Proposed word filter

Reply #4 on: March 08, 2007, 08:03:55 am
Huh?

Also, YOU are not using the nozoom tags on your signature >:0!

Offline Akira

  • 0010
  • *
  • Posts: 334
  • Karma: +0/-0
  • Heheheh
    • View Profile

Re: Proposed word filter

Reply #5 on: March 08, 2007, 08:06:55 am
...my signature doesn't link anywhere though ;)

what i meant was, the word filter would still filter out "[/img]" to "[/img]" without filtering the first url tag (because it wasn't and "[img]") on some forums if you don't close urls on images, the link continues throughout the rest of the post. on this forum though the first part of the code is just rendered as text. make sense?
thanks Dogmeat!

Offline Panda

  • 0100
  • ***
  • Posts: 1008
  • Karma: +0/-0
  • 威風堂々
    • View Profile

Re: Proposed word filter

Reply #6 on: March 08, 2007, 08:28:57 am
Uhm yeah, I guess it won't be a problem anyway, since most of the people don't link their pictures unless they just copy imageshack's code (and if they do in the sigs, they will notice the ugly code going on and change it to nozoom tags, hopefully).
« Last Edit: March 08, 2007, 08:32:52 am by Panda »

Offline ptoing

  • 0101
  • ****
  • Posts: 3063
  • Karma: +0/-0
  • variegated quadrangle arranger
    • the_ptoing
    • http://pixeljoint.com/p/2191.htm
    • View Profile
    • Perpetually inactive website

Re: Proposed word filter

Reply #7 on: March 08, 2007, 11:42:04 am
testing


There are no ugly colours, only ugly combinations of colours.

Offline miascugh

  • 0010
  • *
  • Posts: 361
  • Karma: +0/-0
  • Schnitzelfiend
    • View Profile

Re: Proposed word filter

Reply #8 on: March 08, 2007, 11:45:06 am
I've tested it on our dummy board. replace
Code: [Select]
[img]
with
Code: [Select]
[img]

and

Code: [Select]
[/img]
with
Code: [Select]
[/img]

works perfectly, for all urls.
« Last Edit: March 08, 2007, 12:07:39 pm by miascugh »

Offline ptoing

  • 0101
  • ****
  • Posts: 3063
  • Karma: +0/-0
  • variegated quadrangle arranger
    • the_ptoing
    • http://pixeljoint.com/p/2191.htm
    • View Profile
    • Perpetually inactive website

Re: Proposed word filter

Reply #9 on: March 08, 2007, 11:47:48 am
Yeh, done. If you wanna bind a link to an image [nozoom] should be used so this should not pose any problems, and also help to enforce the nozoom tag.
The nozoom thing IS mentioned in the rules btw.
There are no ugly colours, only ugly combinations of colours.