Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 18th June 2010, 21:37
cladt's Avatar
cladt cladt is offline
Member
 
Join Date: May 2010
P2P
Posts: 14
Default Problems PM
My site forcing users to read new messages before can use the site! How do I stop it?

i have phpMyBitTorrent 2.0.4.
Reply With Quote
  #2  
Old 19th June 2010, 03:13
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
it well need to be changed in each theme just remove
PHP Code:
$has_newpm false;
$sql "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res $db->sql_query($sql) or btsqlerror($sql);
$pmcount $db->sql_numrows($res);
$has_newpm = ($pmcount 0) ? true false;
$db->sql_freeresult($res);
if (
$has_newpm)
{
  echo 
"<script type=\"text/javascript\" language=\"JavaScript\">";
  echo 
"sPath = window.location.pathname;";
  echo 
"sPage = sPath.substring(sPath.lastIndexOf('/') + 1);";
  
  echo 
"if (sPage != \"pm.php\"){ var answer = confirm (\""._jscriptconfirmtext."\");";
  echo 
"if (answer) window.location=\"pm.php?op=inbox\";";
  echo 
"}";
  echo 
"</script>";


from theme main.php
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
pm , problems

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TS SE 5.6 PROBLEMS AJ1804 Template Shares 10 25th January 2011 22:42
Some problems... Shurubel TBDev 2 24th July 2009 11:13
problems plz help (TS 5.1) x517530 Template Shares 0 29th November 2008 10:31
2 problems poila Yuna Scatari Edition (YSE) 1 26th September 2008 10:26
Some Problems WraiTh TBDev 9 25th July 2008 13:08



All times are GMT +2. The time now is 15:42. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.