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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 116
  • Total: 116

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.

dreadkgt

I have tried this at my site

http://www.therisenguild.com

And it works great. The graphic shows up just fine when a New PM comes in. However..the code i'm using (I put in absolute a href to try to see if that would work but it doesn't anyhow) doesn't seem to make that picture a link. Dunno why.  Shows up fine, just ignore the whole <a href> no matter what I use in it.


if($context['user']['unread_messages']>0)
                        echo '<br />'.$bullet.'<a href="http://www.therisenguild.com/tinyportal/index.php?action=pm">'  , ' <img src="' . $settings['images_url'] . '/english/newpm.gif" border="0"></a>';


rebelrose

How do I get this to work in Tiny Portal User Block, 8.6 is the version I use.

IchBin

forum/Themes/default/TPortalBlocks.template.php

Open and find:
if($context['user']['unread_messages']>0)
echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , '</a>';


Change to:

                   if($context['user']['unread_messages']>0)
                        echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , ' <img src="' . $settings['images_url'] . '/msg.gif" border="0"><bgsound src="' . $settings['images_url'] . '/Mail01.wav" border="0"></a>';

rebelrose

Thank you IchBinâââ,¬Å¾Ã,¢

rebelrose

Will this work on a non Tiny Portal Site, not that I plan on getting rid of Tiny Portal, I love it.

I would like to know how to do this on a regular site if anyone knows

IchBin

If you go back a couple of pages you'll see how to make this work in any theme.

http://www.tinyportal.net/smf/index.php?topic=1570.msg26454#msg26454

rebelrose

Quote from: IchBinÃ,â,,¢ on September 04, 2006, 12:47:16 AM
If you go back a couple of pages you'll see how to make this work in any theme.

http://www.tinyportal.net/smf/index.php?topic=1570.msg26454#msg26454

Thanks, I will keep looking that code is not in the theme I was looking into, no worries. Thanks anyway

IchBin

The exact same code may not be found. But for those themes that have the PM info with user info on the main page just look for something like this in the theme.

$context['user']['unread_messages']

rebelrose


raffo

ok i tried and it works!

but to have a sense, should we put off the normal advise of a pm received? (i mean the one that apperas in a popup)

This website is proudly hosted on Crocweb Cloud Website Hosting.