Home arrow Forum No popup for Personal Message SMF
  Welcome, Guest. Please login or register.
Did you miss your activation email?
October 13, 2008, 07:08:45 AM
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)
| | | |-+  No popup for Personal Message SMF
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: No popup for Personal Message SMF  (Read 324 times)
Pablo González
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
No popup for Personal Message SMF
« on: August 06, 2007, 12:09:55 AM »

I have a site with Joomla 1.0.12, SMF 1.1.2 and Joomla-SMF 2.0.2

I have selected SMF as Personal Message System.

The problem is that when user marks "Show a popup when you receive new messages?" in Personal Message Options no popup appears (popup blocker disabled in web browser of course).

Does it work properly with the bridge?

I am aware the bridge modify the login code so perhaps some session variables are not set properly.

My configuration is:

Register system: Joomla/Mambo
Validation Module: Joomla/Mambo
Personal Message System: SMF

Thanks in advance.

Regards,
Pablo.

Original code related to this is in Sources/Subs.php

Code:
// Personal message popup...
if ($user_info['unread_messages'] > (isset($_SESSION['unread_messages']) ? $_SESSION['unread_messages'] : 0))
$context['user']['popup_messages'] = true;
else
$context['user']['popup_messages'] = false;
$_SESSION['unread_messages'] = $user_info['unread_messages'];

Code:
// This is done to make it easier to add to all themes...
if ($context['user']['popup_messages'] && !empty($options['popup_messages']) && (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'pm'))
{
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");
// ]]></script>';
}

« Last Edit: August 06, 2007, 12:18:15 AM by Pablo González » 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