TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:35:40 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 350
  • Total: 350

Animated PM icon

Started by SOTGMarine, December 03, 2005, 11:45:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

USO_Joe

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

bloc

Great ideas! :)

for the PM button you need to check if there are new pm's..like:

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

I love these ideas.... Thanks.

USO_Joe

You can see what the register button looks like at:

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

USO_Joe

Thanks Bloc.

That worked great!

Nokonium

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.

USO_Joe

I already made the buttons, I was just looking for the code.


JDMhustle


erikman

Is it possible to get the Register button in norwegian with the text "Registrer" ?

IchBin