Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   Problems PM (http://www.bvlist.com/showthread.php?t=5096)

cladt 18th June 2010 21:37

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.

joeroberts 19th June 2010 03:13

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


All times are GMT +2. The time now is 17:00.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.