Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 04:30:02 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 51
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 37
Total: 38

Author Topic: Animated PM icon  (Read 25418 times)

0 Members and 1 Guest are viewing this topic.

Offline USO_Joe

  • Jr. Member
  • **
  • Posts: 35
Animated PM icon
« on: December 03, 2005, 04:45:40 AM »
I added a nice little feature to my sites, just a .gif which makes the "Register" button flash red when someone is not logged in, .. basically drawing new people to the site to the register button. I was wondering if anyone knows how, and would do me the favor of making me a little snippet or something that will make my button flash when someone has an unread PM. I'm sure it's pretty easy... I'm just a NEWB! lol..... if someone could hook me up with that, I'd greatly appreciate it!

Thank you!

Joe

Offline bloc

  • Founder
  • *
  • Posts: 5229
    • Bloc
Animated PM icon
« Reply #1 on: December 03, 2005, 05:05:22 AM »
Great ideas! :)

for the PM button you need to check if there are new pm's..like:
Code: [Select]
if($context['user']['is_logged'] && $context['user']['unread_messages']>0)
  echo 'flashing PM button code here.....';
elseif($context['user']['is_logged'] && $context['user']['unread_messages']==0)
  echo 'normal PM button code here...';

You might want to show the button only to members..if not you need remove the $context['user']['is_logged'] part.

spoilddog

  • Guest
Re: Animated PM icon
« Reply #2 on: December 03, 2005, 01:22:47 PM »
I love these ideas.... Thanks.

Offline USO_Joe

  • Jr. Member
  • **
  • Posts: 35
Re: Animated PM icon
« Reply #3 on: December 03, 2005, 03:25:07 PM »
You can see what the register button looks like at:

www.hawaiifighter.com  and www.sotg.us/Forum

Offline USO_Joe

  • Jr. Member
  • **
  • Posts: 35
Re: Animated PM icon
« Reply #4 on: December 03, 2005, 11:50:30 PM »
Thanks Bloc.

That worked great!

Offline Nokonium

  • Aging Hippie
  • Friends
  • *
  • Posts: 1384
    • Our-Local
Re: Animated PM icon
« Reply #5 on: December 04, 2005, 09:47:27 AM »
If you have a prog like Photoshop or Paint Shop Pro take the original icon/button (gif format), select all and invert the colours, then save it as a seperate gif. Then with Image Ready, Animation Shop or similar make an animated gif out of the two gif's.

Offline USO_Joe

  • Jr. Member
  • **
  • Posts: 35
Re: Animated PM icon
« Reply #6 on: December 04, 2005, 10:48:46 AM »
I already made the buttons, I was just looking for the code.


JDMhustle

  • Guest
Re: Animated PM icon
« Reply #7 on: December 06, 2005, 10:22:59 AM »
Thanks for the buttons ;)

erikman

  • Guest
Re: Animated PM icon
« Reply #8 on: December 10, 2005, 07:46:42 AM »
Is it possible to get the Register button in norwegian with the text "Registrer" ?

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Animated PM icon
« Reply #9 on: December 10, 2005, 08:54:11 AM »
You can make your own buttons right here.
http://www.tinyportal.net/smf/index.php?page=13