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

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 04:04:45 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 167
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 134
  • Total: 135
  • @rjen

[SOLVED] Need a Private Message or PM Block

Started by shengton, September 22, 2008, 05:50:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shengton

Where can I find a PM Block?

Thanks and God bless. :)

Ken.

Hi shengton, welcome to TinyPortal.

If you give a more detailed description of what you need then maybe one of our coders will be able to assist you.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

shengton

#2
Thanks for the quick reply sir.

I have a forum site and if someone will PM me I can't immediately notice it. I want a phpscript that I can immediately notice when someone will PM or Private Message.

Ken.

You should be able to set your forum to "Show a popup when you receive new messages?"

Profile>Personal Message Options>Show a popup when you receive new messages?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

shengton

#4
Thanks for that sir but I want all my members automatically applied using a phpscript. Here's a code but it nothings happen.

if($context['user']['is_logged'] && $context['user']['unread_messages']>0)
  echo '<a href="',$scripturl,'?action=pm"><img src="',$settings['images_url'],'/menu/newpm.gif"/></a>';

Ken.

PM's are actually a function of SMF, not TinyPortal.
Someone here may be able to give you an answer, but chances are you'll get help lots faster on the SMF forum.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

shengton


Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ianedres

Create a php block and use the global to set the scope for the $context and $settings variables; the rest is your code:

global $context, $settings;

if($context['user']['is_logged'] && $context['user']['unread_messages']>0)
  echo '<a href="',$scripturl,'?action=pm"><img src="',$settings['images_url'],'/menu/newpm.gif"/>[/url]';


Once you enable the block to display, it will notify the member on new messages...





shengton