PDA

View Full Version : remove formatting and smilies in a set skin


veedee
05-06-2002, 08:58 PM
Hi gang,

I have a skin on my site that is fairly plain in white and grey so that my users can use it whilst surfing my board in work hours.

The thing is, formatting and smilies give the game away.

Is there anyway I can hack this skin, or hack an option into the USERCP so that each user can switch off text formatting / smilie or both.

All replies greatly appreciated,

veedee

veedee
05-07-2002, 11:18 PM
Am I not making this clear?
Is it too boring for people to want to do?
Is it too hard for people to do?

Please give me feedback :)

veedee

veedee
05-09-2002, 12:36 PM
you can tell me to fcuk off if this is asking too much :D

E
05-09-2002, 12:40 PM
u mean a style?

veedee
05-09-2002, 12:51 PM
sorry yeah. I think when they first came out theiy were called skins. Skins, styles, thats the one.

Hey I'm so with it, I just upgraded to Win95 :D

Admin
05-09-2002, 02:10 PM
Try this... in functions.php replace:
//smilies
if($dosmilies) {
With:
//smilies
global $styleid;
if($dosmilies and $styleid != XX) {
(XX = the style ID)

veedee
05-09-2002, 05:37 PM
Chen,

First thing, stop being so bloody clever.
Second thing, thanks a bunch for the smilies fix :)
Thirdly, does this remove formatting like [*size=1] etc?

Admin
05-09-2002, 06:31 PM
Uhh, what's [*size=1] ?!?!! :dead:

veedee
05-09-2002, 06:42 PM
Originally posted by FireFly
Uhh, what's [*size=1] ?!?!! :dead:

LOL

I used the * so it didn't convert it!

What I wanted to know was, what can I do to stop text formatting in a set style?

You helped me do the smilies (which is ace) now I want to prevent the SIZE / COLOR vB codes from displaying.

Cheers,

Admin
05-09-2002, 06:50 PM
I just stopped being so bloody clever. ;)

Anyway, after you apply the code above, replace this:
//smilies
global $styleid;
if($dosmilies and $styleid != XX) {
With this:
global $styleid;
if ($styleid == XX) {
$dobbcode = 0;
$dosmilies = 0;
}

//smilies
if($dosmilies) {

veedee
05-10-2002, 11:50 AM
Right, I hate to be a pain but..

This works great - However after disabling formatting it still shows in every post, is there anyway I can disbale the fomatting *and* stop it showing in each post?

At the moment it is hard to read, picking out the text from the tags.

Cheers,

[veedee]