Author |
Message |
tangoman
Involved


Joined: Aug 06, 2005
Posts: 301
|
Posted:
Sun Aug 21, 2005 9:15 am |
|
In my registered user account, I have selected 'Yes' for 'Notify on new Private Message by Email' and 'Yes' for 'Pop up window on new Private Message'.
However when I send a message to that registered user account, although notification IS received via e-mail, no 'Pop up window' notification is received.
Help please. |
_________________ I am using PHPNuke Version 7.6 with patch 3.0, CNB YA 4.4.2, NukeSentinel(tm) 2.3.2 and Nuke Royal. |
|
|
 |
CurtisH
Life Cycles Becoming CPU Cycles

Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI
|
Posted:
Sun Aug 21, 2005 9:19 am |
|
That could be caused by a popup blocker |
_________________ Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe |
|
|
 |
tangoman

|
Posted:
Sun Aug 21, 2005 9:33 am |
|
That was partly it Curtis.
However I only receive a pop up notification now, when I visit the main forum page, (i.e. URL: www.MYWEBSITE.com/modules.php?name=Forums).
I thought the point of the facility was to notify the user that they have a message waiting, when they log into their Nuke registered users account?
Also, on that subject, is the log in for the PHPBB forus different to the log in for the registered user log in for the PHP-Nuke website? It looks this way to me...Please confirm. |
Last edited by tangoman on Sun Aug 21, 2005 9:38 am; edited 1 time in total |
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Sun Aug 21, 2005 9:35 am |
|
It does notify them by popping up - unless it's blocked.
The login looks different - and is different if you're using CNB. I recommend you remove the login link from your forums or replace it with a link to the CNB login. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
tangoman

|
Posted:
Sun Aug 21, 2005 9:47 am |
|
Hi Kevin,
OK...Loads here now...I would be grateful if you would address each point individually....
I have now switched the pop up blocker off and do receive pop up notification of a private message being received...BUT ONLY when I visit the forums section. Of course this is useful, however it is likely that the user is goin to check their ibox while visiting the forums section anyway.
Hence, I thought it should/would be far more useful etc if the pop up appeared whever the user was browsing your site, not just if they 'happen' to visit the forums link?...Can you confirm all this please?
Also, I see that if I log out of PHP-Nuke, I am still logged in to the forums as a registered user, but if I am looged out of both, then when I log in to the PHPNuke website, I am automatically logged in to the PHPBB Forums...Is this correct?
Finally for now, I note that the pop up notification I do receive has an error message:
New private messages
Click Here to visit your Inbox
Close Window
THEN BELOW THE ERROR READS:
Could not update private message new/read status for user
DEBUG MODE
UPDATE nuke_users SET user_unread_privmsg = user_unread_privmsg + user_new_privmsg, user_new_privmsg = '0', user_last_privmsg = 1124637213 WHERE user_id = 2
Line : 1881
File : index.php |
|
|
|
 |
technocrat
Life Cycles Becoming CPU Cycles

Joined: Jul 07, 2005
Posts: 511
|
Posted:
Mon Aug 22, 2005 9:09 am |
|
Open modules/Private_Messages/index.php
Find:
include("includes/page_tail_review.php");
After add:
die(); |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! / Only registered users can see links on this board! Get registered or login! |
|
|
 |
tangoman

|
Posted:
Mon Aug 22, 2005 9:47 am |
|
Hi there 'technocrat',
Thanks for your reply.
So...The code you directed me to originally read as follows:
$template->pparse('body');
include("includes/page_tail_review.php");
}
else if ( $mode == 'read' )
But I did as you explained and it now reads:
$template->pparse('body');
include("includes/page_tail_review.php");
die();
}
else if ( $mode == 'read' )
However, there is still no change and when a registered user loggs out of the PHPNuke website, using the icon in their 'Account Main Control Panel', the forums still indicate that they are logged in. Moveover, when they try to click 'log out' in the forums, the status does not change and it still says 'log out'.
I do note, however, that if you open a new browser window, THAT indicated that the user is now 'logged out' in the forums, by displaying 'Log In'. Am I correct in assuming there is a cookie problem here?
What have I done wrong with the code you gave? |
|
|
|
 |
technocrat

|
Posted:
Mon Aug 22, 2005 10:37 am |
|
That code was to fix your popup error.
Yes most likely you have a cookie problem if they aren't logged in or aren't staying logged in. What are your cookie settings?
Also CNBYA does have a few issues with logging out of the Forums. Try these things one at a time
Open modules/Your_Account/index.php
Find:
Code://$db->sql_query("DELETE FROM ".$prefix."_bbsessions WHERE session_user_id='$r_uid'");
//$db->sql_query("OPTIMIZE TABLE ".$prefix."_bbsessions");
|
Change to:
Code:$db->sql_query("DELETE FROM ".$prefix."_bbsessions WHERE session_user_id='$r_uid'");
$db->sql_query("OPTIMIZE TABLE ".$prefix."_bbsessions");
|
If that doesnt work after the previous line add:
Code:global $board_config;
$cookiename = $board_config['cookie_name'];
$cookiepath = $board_config['cookie_path'];
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
$current_time = time();
setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
|
But before you try either lets see how your cookies are setup. |
|
|
|
 |
tangoman

|
Posted:
Mon Aug 22, 2005 11:22 am |
|
Oh....Geee....I forgot there is a cookie section to CBN YA...As Homer would exclaime...DOH!....
OK well let see....
Firstly, the pop up 'problem' of the pop up only appearing when the user clicks the forums link, is still present. My point being, (as previously mentioned), I do receive pop up notification of a private message being received...BUT ONLY when I visit the forums section. This is useful, however it is likely that the user is going to check their inbox while visiting the forums section anyway.
Hence, I thought it should/would be far more useful etc if the pop up appeared whever the user was browsing your site, not just if they 'happen' to visit the forums link?...So can you confirm that this is the correct way the pop up is supposed to work, (i.e. only when someone does entre the forums section of the website?)
Next, the code you previosuly supplied DOES rid me of the error I was receiving on the pop up message...So that appears to be sorted out...Thank you.
Now the issue of CNB YA Cookie Configuration...
Activate the CookieCheck (beta) Set to No (Check if the browser accepts cookies)
Activate the CookieCleaner Set to Yes (Shows the option to delete all cookies set by this site)
Time of Cookies Set to 1 Month (The time is a sum of this value with the local time)
Path of Cookie Set to 'NOTHING'(Keep empty to use automatic path Put a path at your own risk!)
Allowed period of pageview inactivity Set to 15 Minutes
So have I set something up wrong?...How should I proceed? |
|
|
|
 |
technocrat

|
Posted:
Mon Aug 22, 2005 11:23 am |
|
What are your forum cookie settings? |
|
|
|
 |
tangoman

|
Posted:
Mon Aug 22, 2005 11:29 am |
|
I see now...Ok...So this information is from the PHPBB Administration 'Configuration ' page/panel:
Cookie settings:
Cookie domain: mywebsite.com (typed with no http://www. prefix)
Cookie name: phpbb2mysql
Cookie path: /
Cookie secure: Set to Disabled
Session length [ seconds ]: Set to 3600
Is this all set correctly?...How about the information I previously provided, from the CNB YA settings?
What do I do now? |
|
|
|
 |
CurtisH

|
Posted:
Mon Aug 22, 2005 11:29 am |
|
|
|
 |
technocrat

|
Posted:
Mon Aug 22, 2005 11:31 am |
|
Change phpbb2mysq to be your site url name with out the .com extention. For example my site is www.platinummods.com mine is platinummods |
|
|
|
 |
tangoman

|
Posted:
Mon Aug 22, 2005 11:48 am |
|
Ok....I have done this...Would I be correct that the field you told me to change is relevant to the name of the cookie that is placed on the website users PC...(Akin to IE, where you click 'tools', 'Internet Options', 'Delete Cookies'?)
What should that change you just suggested do?...I see no change. |
|
|
|
 |
technocrat

|
Posted:
Mon Aug 22, 2005 11:51 am |
|
You are correct now the cookie name with be something more correct for your site.
You should try to dump your cookies and relogin and see if you can now logout. If you still show being logged in, in the forums then but not in nuke, then you can try the steps I suggested before. |
|
|
|
 |
tangoman

|
Posted:
Mon Aug 22, 2005 8:11 pm |
|
Technocrat,
I have tried deleting the cookies and all temporary files, but still this problem persists.
I will next try your suggested various sets of code, but before I do, should I revert back to the original code I had...i.e. it was:
$template->pparse('body');
include("includes/page_tail_review.php");
}
else if ( $mode == 'read' )
But I have already changed it to currently read:
$template->pparse('body');
include("includes/page_tail_review.php");
die();
}
else if ( $mode == 'read' ) |
|
|
|
 |
technocrat

|
Posted:
Mon Aug 22, 2005 8:18 pm |
|
Not if you want that error on the popup to come back |
|
|
|
 |
|