Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Popup MP
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

2013-02-23 14:18:28
Thanks!  :)

...Error year, month, day and hour



popup_msg

$elapsed = get_elapsed_time(sql_timestamp_to_unix_timestamp($arr["added"]));



V2.08
Unknown User
2013-02-23 18:04:23
try change for



$elapsed = utc_to_tz($arr["added"]);


not tested
2013-02-24 05:33:03
Thanks Azuris,

..Still the same problem !  :blink:


Unknown User
2013-02-24 10:06:53
untested.. change

De <b><?php echo $sender;?></b> le <?php echo $arr["added"];?> [il y a <?php echo $elapsed;?> ]



to

De <b><?php echo $sender;?></b> le <?php echo utc_to_tz($arr["added"]);?> [il y a <?php echo $elapsed;?> ]
2013-02-24 13:45:19
thanks  acticwolf,

No, ...
2013-02-24 14:04:48
Rosolu problem with the mode. [url="https://www.torrenttrader.org/index.php?/topic/17586-show-date/"]HERE[/url]

<?php echo show_today_date();?>

Thank you all for your help!


2013-02-24 15:36:23
I still need you! lol  :rolleyes:

How to remove directly from the popup message?

<?php

//===================================//

// Pop-Up Message System by ShadoW69 //

// Updated by TripleH //

//===================================//

// credits to original coder(s) for //

// supplying the js script and //

// basic html structure //

//===================================//

require_once ("backend/functions.php");

?>

<link rel="stylesheet" type="text/css" href="themes/<?$THEME?>/theme.css">

<script type="text/javascript" src="js/popup_msg.js"></script>





<div id="showimage" style="position:absolute; width:400px; left:400px; top:250px;">

<table border="0" width="400" bgcolor="161617" cellspacing="0" cellpadding="0">

<tr>

<td width="100%" style="border:none;">

<table border="0" width="100%" cellspacing="0" cellpadding="0" height="36px">

<tr>

<td id="dragbar" width="100%" onmousedown="initializedrag(event)">

<ilayer width="100%" onselectStart="return false">

<layer width="100%" onmouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onmouseout="dragswitch=0">

<font face="Verdana" color="#007777">

<strong>

<small>

<?php

$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')") or print(mysql_error());

$arr = mysql_fetch_row($res);

$unread = $arr[0];

echo "<font face=Verdana color=#ffffff>Vous avez $unread nouveau message" . ($unread > 1 ? "s" : "") . "!</font>";

?>

</small>

</strong>

</font>

</layer>

</ilayer>

</td>

<td id="bar" align="center">

<a href="#" onclick="hidebox();return false">

<img src="images/close.png" width="21px" height="20px" border="0">

</a>

</td>

</tr>

<tr>

<td width="100%" id="mainbody" colspan="2">



<?php

$info = count($tmp)." ".P_("message", count($tmp))." deleted";

$res = mysql_query("SELECT * FROM messages as m LEFT JOIN users as u on m.sender = u.id WHERE m.receiver=" . $CURUSER["id"] . " AND m.unread = 'yes' AND m.location IN ('in','both') LIMIT 1 ") or die("barf!");



while ($arr = mysql_fetch_assoc($res))

{

if (is_valid_id($arr["sender"]))

{

$sentto = "<a href="account-details.php?id=$arr[receiver]">".($arr["username"] ? $arr["username"] : "[Deleted]")."</a>";

$sender = "<a href=account-details.php?id={$arr['sender']}>" . ($arr["username"]?$arr["username"]:"[Deleted]") . "</a>";

}

else

$sender = "CrazySpirits";



$elapsed = utc_to_tz($arr["added"]);



$reply = "mailbox.php?inbox";



$delete = "mailbox.php?id={$arr['id']}&type=in";



?>



De <b><?php echo $sender;?></b> le <?php echo show_today_date();?>



<?php if ($arr["unread"] == "yes") { ?>



<?php } ?>

<p>

<table class="main" width="100%" border="1" cellspacing="0" cellpadding="10">

<tr>

<td class='text' id='c_body'>

<?php echo format_comment($arr["msg"]);?>

</td>

</tr>

</table>

</p>

<p>

<div align="center"><table width="100%" align="center" border="0">

</tr>

<tr>

<?php echo ($arr["sender"] ? "<a href=mailbox.php><b>Mail</b></a>" : "<b>Mail</b></font>");?>

</td> |

</tr>

<tr>

<?php echo ($arr["sender"] ? "<a href=$reply><b>Repondre</b></a>" :

"<b>Repondre</b></font>");?>

</td> |

</tr>

<tr>

<?php echo ($arr["sender"] ? "<a href=$delete><b>Supprimer</b></a>" :

"<b>Supprimer</b></font>");?>

</td>

</tr>

</table></div>

</p>

<?php } ?>



</td>

</tr>

</table>

</td>

</tr>

</table>

</div>

<?php

//===================================//

// Pop-Up Message System End //

//===================================//

?>



Unknown User
2013-02-25 05:09:09

[url="https://www.torrenttrader.org/index.php?/user/8772-tiloup/"]Tiloup[/url] you doing this on the V2.8 please when you fix it post all the mod here b/c is not working for me and i don't have the login_block.php
Unknown User
2013-02-25 08:01:05
"Tiloup, post: 89081":
Rosolu problem with the mode. [url="https://www.torrenttrader.org/index.php?/topic/17586-show-date/"]HERE[/url]

<?php echo show_today_date();?>

Thank you all for your help!



loooooooooool, don't think it fix the date, you just change for today date

may be show_today_date( $arr[added]) will work
2013-02-28 01:49:46
Thank you but its not work!

"AzuriS, post: 89102":
loooooooooool, don't think it fix the date, you just change for today date

may be show_today_date( $arr[added]) will work
Thank you but its not work! B)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728