Home arrow Forum PM Popups not showing when wrapped
  Welcome, Guest. Please login or register.
Did you miss your activation email?
October 13, 2008, 12:56:44 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  PM Popups not showing when wrapped
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: PM Popups not showing when wrapped  (Read 819 times)
shua
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 15


View Profile
PM Popups not showing when wrapped
« on: January 19, 2007, 11:20:16 AM »

Is there any way to get the PM Popup to show when SMF is wrapped in Joomla?
Logged
Pablo González
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: PM Popups not showing when wrapped
« Reply #1 on: June 23, 2008, 03:02:04 PM »

Yes, this is an issue that has never fixed.
Logged
TeodorX
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: PM Popups not showing when wrapped
« Reply #2 on: June 23, 2008, 03:18:43 PM »

After an year of patching Joomla, SMF, JSMF bridge....
This is the code you are looking for:

Code:
global $context ;
if (isset($context){
  if ( $context['user']['unread_messages'] > 0 ){
    if ( strcasecmp( mosGetParam( $_REQUEST, 'action', '' ), 'pm' ) != 0 ){
        echo '
      <script>
      <!--//
      if (confirm("Ypu have ' . $context['user']['unread_messages'] .' personal messages. Press OK to read.")) {
            parent.location="' . str_replace( '&amp;', '&', $jsmf->fixLink( "index.php?action=pm" ) ) . '";
      }
      //-->
      </script>';
    }
  }
}

Code should be added after "<body>" in your Joomla template. (Don't forget "<php" before and "?>" after code).
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login