Ability to remove images from signatures

Started by ADoomedMarine, August 21, 2004, 02:01:28 PM

Previous topic - Next topic

ADoomedMarine

I want to still allow BBC code in signatures but just not images and also certain other's like tables.

[Unknown]

Well, try the following:

.signature img
{
   display: none;
}

In your CSS.  After adding it, please make sure to hit Ctrl-F5 in your browser.

Does that take out images, at all?

-[Unknown]

ADoomedMarine

#2
Excellent works nicely.  Thanks.

EDIT:

Would this work in all browsers?  Because I wouldn't mind a php approach to it... where abouts in the code is the signature image submitted?  You could replace the image tag with "Not allowed" text or something.

David

This space for rent.

andrea

Quote from: [Unknown] on August 21, 2004, 04:12:46 PM
Well, try the following:

.signature img
{
   display: none;
}

In your CSS.  After adding it, please make sure to hit Ctrl-F5 in your browser.

Does that take out images, at all?

-[Unknown]

This is super cool. I suppose this could also be used to suppress profile images in a specific theme, right?

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



dschwab9

Quote from: andrea on August 22, 2004, 03:27:51 AM
I suppose this could also be used to suppress profile images in a specific theme, right?

You mean avatars?  Why not just take them out of the template?

[Unknown]

Because this is so uber slick ;).  Added in RC1, though, mind you ;).

Yes, Andrea, it could be used to accomplish many things - but there's currently no .avatar, etc.  If you could make me a list of ones you want (avatar, etc.) I would be willing to make at least some of them a reality for the next release.

-[Unknown]

klumy

I like this feature "Ability to remove images from signatures ".

How about adding this to the user optionsmenu with pulldownmenu

- Show signatures
- show signatures without images
- Don't show Signatures

Anguz

#8
Quote from: klumy on August 22, 2004, 04:07:32 AM
I like this feature "Ability to remove images from signatures ".

How about adding this to the user optionsmenu with pulldownmenu

- Show signatures
- show signatures without images
- Don't show Signatures

You can probably do this with JS to change the class of the signature, but I don't know much JavaScript.

When I originally suggested using CSS for this, I decided to include it with my signature randomizer and size limit mod. But the option to hide or show images in the sig would be set from the forum settings and would apply to any theme using the mod, not member independent.

I don't know if something like that would be wanted or even needed, since it's really easy to modify the CSS, but still some would like it, or so I thought.

There's also the issue of Flash, cause when the tag is not disabled in the forum, it can be used in the signatures as well and would defeat the class' style to not show images. There's probably a way to not display it as well using CSS, but that I don't know yet. [Unknown] most likely knows.

Cristián Lávaque http://cristianlavaque.com

[Unknown]

What's wrong with putting display: none; on object, embed, etc.?

-[Unknown]

Anguz

Oh, didn't know those worked on Flash, it's just that I hadn't thought of that, never really used Flash so I didn't know how it's done. Thanks :)
Cristián Lávaque http://cristianlavaque.com

williammc

Quote from: [Unknown] on August 21, 2004, 04:12:46 PM
Well, try the following:

.signature img
{
   display: none;
}

In your CSS.  After adding it, please make sure to hit Ctrl-F5 in your browser.

Does that take out images, at all?

-[Unknown]

Thanks, been added and it works nicely.

NoRad

Snitz had an option where users could select in their profile if they want to view signatures at all. I always had that turned off because I thought signatures was a waste of space and bandwidth. It just made it harder for me to skim posts.

Metho

So does SMF.... Modify Profile => Look and Layout Preferences

- Methonis
Joshua "Methonis" Frazer
Support Specialist
The Simple Machines Team

NoRad


Monkey

I tried this method... but I don't have a true CSS file, it's still embedded in the general format. Is there something else I could try of am I doing something wrong?

.signature img
{
   display: none;
}

[Unknown]

You have to be using an updated theme for it to work, I'm afraid.

If you want to send me a pm with your FTP information, I'll try to look at it for you.

-[Unknown]

Elijah Bliss

Is it possible to use this to only display one or two images max in a sig?

Anguz

Cristián Lávaque http://cristianlavaque.com

[Unknown]

If modern browsers supported CSS3, it would be.

-[Unknown]

Advertisement: