Posts: 2,120
Threads: 154
Joined: Mar 2008
Reputation:
111
2009-07-09, 12:44 AM
(This post was last modified: 2009-07-09, 12:45 AM by Eric.)
Regular Expression:
\[css-div=(.*?)\](.*?)\[/css-div\]
Replacement:
<div style="$1">$2</div>
Allows users to use tags such as:
[css-div=background: #000; color: #FFF;][/css-div]
in their signatures and posts. It helps to make your forum decorative as users start to learn how to design posts.
Also, the forums won't parse the tags automatically, so you have to create a different tag with the same function and a different parse order to make it work.
Posts: 6,591
Threads: 123
Joined: Jun 2007
Reputation:
6
This can also be annoying as they can easily set a height and width and break your forums - or just not close the tag and it will go on forever.
Posts: 2,120
Threads: 154
Joined: Mar 2008
Reputation:
111
Yeah, but threads are easily deleted from a page that can't be broken, and it's just the same as someone posting porn or something, you delete it, warn or ban them, and be on your way. :/
Posts: 6,591
Threads: 123
Joined: Jun 2007
Reputation:
6
But you're giving them a tool to do it in the first place. It's different with other mods because you can easily control what's being done - filters, word replacers, etc, etc.; you really can't with this as it's a general expression that you're searching for.
Posts: 2,120
Threads: 154
Joined: Mar 2008
Reputation:
111
2009-07-09, 12:57 AM
(This post was last modified: 2009-07-09, 12:57 AM by Eric.)
Well, not to get argumentative, but a site such as this one: http://www.pokecommunity.com/, which has over 120,000 members uses the tags and I still never see any such posts, which means the amount of noob users that know how to do it must be scarce. :/
Just saying, I know it's a possibility, but it doesn't happen as much as you would think, as I've been going to that site for 4 years.
Posts: 559
Threads: 49
Joined: Aug 2010
Reputation:
8
It can't parse double CSS code
Hi!
Posts: 737
Threads: 49
Joined: Dec 2009
Reputation:
22
(2009-07-09, 12:50 AM)x_Stricken_x Wrote: or just not close the tag and it will go on forever.
I don't think you can do that,
[quote]
[code]
Posts: 3,660
Threads: 137
Joined: Dec 2009
Reputation:
80
I remember a forum that had this kind of thing on their forums, too easy to abuse and break templates. I'm not going to use it.
Thanks for the addition however.
Posts: 2,120
Threads: 154
Joined: Mar 2008
Reputation:
111
2010-11-07, 12:45 AM
(This post was last modified: 2010-11-07, 12:46 AM by Eric.)
(2010-10-12, 12:00 PM)zZJoennZz Wrote: It can't parse double CSS code It can, just add another with the exact same information and change the parse order to 2, and set the original one you made to 1.
Also, please don't respond with you won't use it, to everyone. If you don't want to, just ignore this whole thread. :/
Posts: 559
Threads: 49
Joined: Aug 2010
Reputation:
8
But, I tried it, and it's fails to parse
Hi!
|