Advertisement:
NameCheap

Author Topic: Ability to remove images from signatures  (Read 46289 times)

Offline ADoomedMarine

  • Semi-Newbie
  • *
  • Posts: 66
Ability to remove images from signatures
« on: August 21, 2004, 02:01:28 PM »
I want to still allow BBC code in signatures but just not images and also certain other's like tables.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #1 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]

Offline ADoomedMarine

  • Semi-Newbie
  • *
  • Posts: 66
Re: Ability to remove images from signatures
« Reply #2 on: August 21, 2004, 10:33:26 PM »
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.
« Last Edit: August 21, 2004, 10:43:45 PM by ADoomedMarine »

Offline David

  • Destroyer Dave
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,928
  • Gender: Male
    • David Recordon
Re: Ability to remove images from signatures
« Reply #3 on: August 22, 2004, 02:50:19 AM »
Wow, that is slick.
This space for rent.

Offline andrea

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,324
  • Gender: Female
  • I'm a smiley.
    • Smiley Sets
Re: Ability to remove images from signatures
« Reply #4 on: August 22, 2004, 03:27:51 AM »
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



Offline dschwab9

  • IT Director/Server Admin
  • Server Team
  • SMF Hero
  • *
  • Posts: 5,320
  • Gender: Male
    • Technology, Ministry and Other Ramblings
Re: Ability to remove images from signatures
« Reply #5 on: August 22, 2004, 03:29:38 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?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #6 on: August 22, 2004, 03:48:04 AM »
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]

Offline klumy

  • SMF Hero
  • ******
  • Posts: 2,483
Re: Ability to remove images from signatures
« Reply #7 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

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Ability to remove images from signatures
« Reply #8 on: August 23, 2004, 04:07:07 PM »
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.

« Last Edit: August 23, 2004, 04:08:44 PM by Anguz »
Cristián Lávaque http://cristianlavaque.com

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #9 on: August 25, 2004, 11:34:35 PM »
What's wrong with putting display: none; on object, embed, etc.?

-[Unknown]

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Ability to remove images from signatures
« Reply #10 on: August 26, 2004, 05:35:11 AM »
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

  • Guest
Re: Ability to remove images from signatures
« Reply #11 on: August 26, 2004, 06:36:00 AM »
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.

Offline Radianation

  • Sophist Member
  • *****
  • Posts: 1,269
  • Gender: Male
  • Why not believe in me?
Re: Ability to remove images from signatures
« Reply #12 on: August 28, 2004, 10:57:01 PM »
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.

Offline Metho

  • SMF Friend
  • Full Member
  • *
  • Posts: 564
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #13 on: August 28, 2004, 11:52:44 PM »
So does SMF.... Modify Profile => Look and Layout Preferences

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

Offline Radianation

  • Sophist Member
  • *****
  • Posts: 1,269
  • Gender: Male
  • Why not believe in me?
Re: Ability to remove images from signatures
« Reply #14 on: August 30, 2004, 04:41:47 PM »
Awesome. Thanks for the tip

Offline Monkey

  • Semi-Newbie
  • *
  • Posts: 94
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #15 on: October 06, 2004, 08:37:20 AM »
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;
}

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #16 on: October 07, 2004, 03:52:03 AM »
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]

Offline Elijah Bliss

  • Sophist Member
  • *****
  • Posts: 1,340
Re: Ability to remove images from signatures
« Reply #17 on: April 04, 2005, 07:12:46 PM »
Is it possible to use this to only display one or two images max in a sig?

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Ability to remove images from signatures
« Reply #18 on: April 04, 2005, 10:50:02 PM »
No.
Cristián Lávaque http://cristianlavaque.com

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Ability to remove images from signatures
« Reply #19 on: April 04, 2005, 11:14:50 PM »
If modern browsers supported CSS3, it would be.

-[Unknown]