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
[ADDON] Add (NEW!) for new torrents
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-05-18 10:37:52
yes sir i am very happy if you do this.

ppl how check the site will see 1 short time the new-tag

and can't see the new-tag for a longer time if they are surfing around.

but i think it is better for the ppl to see this tag for a longer time up to 1 hour.
Unknown User
2008-05-27 04:35:20
Yeah the new tag for an hour or so sounds good.  Been trying to figure it out
Unknown User
2008-05-27 12:55:36
Hi all!

This is my new code:

(with a new.png)

// NEW MOD by wolfnet
$timezone = $row["added"];

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_browse)

$dispname = "<b>" . $smallname . "</b> <img src=" . $site_config['SITEURL'] . "/images/new.png border=0 alt=\"
Unknown User
2008-05-27 13:32:12
it would help people out if you psted your pic for the new.png
Unknown User
2008-05-27 16:15:46
can you help me in the question i asked above?
Unknown User
2008-05-27 16:23:40
change your code to the svn code maybe that will fix it.

"SpaZiuR, post: 42767":
can you help me in the question i asked above?
Unknown User
2008-05-27 16:40:54
tried that still the same!!
Unknown User
2008-05-27 21:36:46
// Start NEW! mod

$last_access = sql_timestamp_to_unix_timestamp($CURUSER["last_access"]);

$time_now = gmtime();

if ($last_access > $time_now || !is_numeric($last_access)) {

 $last_access=$time_now;

}

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access){

$dispname = "<b>" . $smallname . "</b><img src='images/novotorrent.png' border='0' />";

}else{

$dispname = "<b>" . $smallname . "</b>";

}

// end NEW! mod


thia is the code i'm using..

and it doesn't work....nothing shows..

with the SNV version the New word or image stays forever!! :S
Unknown User
2008-05-27 23:32:03
ok this is how i did it. it should keep the new for 1 hour

find in functions.php:

$dispname = "<b>" . $smallname . "</b>";

add after:

$last = $CURUSER["last_browse"] - 3600;

// Start NEW! mod

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last)

$dispname .= "<b><font color=red> - ("._NEW."!)</font></b>";  

// end NEW! mod



now i decided to not change the last_browse in the mysql. this will update the last browse correctly.





find in torrents.php:



[code]if($CURUSER["view_torrents"]=="no")

show_error_msg("Error","You do not have permission to view torrents",1);
add after:


$noww = $now = time();

mysql_query("UPDATE users SET last_browse = $noww WHERE id=$CURUSER[id]") or sqlerr();



hopefully it works

well after some test it still does not only show for one hour so I guess back to the drawing board ;)
Unknown User
2008-05-28 06:33:41
Hmm  ;)

God. Thanks.
Unknown User
2008-11-08 13:17:25
"wolfnet, post: 42755":
Hi all!
This is my new code:

(with a new.png)

// NEW MOD by wolfnet
$timezone = $row["added"];

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_browse)

$dispname = "<b>" . $smallname . "</b> <img src=" . $site_config['SITEURL'] . "/images/new.png border=0 alt=\"
Unknown User
2009-01-04 20:59:02
Hi!!!

This my function.php and when I added the new Mod it showed me nothing below the new added Torrents!! I expected to show NEW!, but... it's not working for me!!

THIS IS the part of function.php... Where should I put the New mod, OR I would appreciate any help... of why it isn't working!!! I have TT v2.05 installed,

$dispname = "<b>".$smallname."</b>";if ($row[sticky]=="yes") { $dispname = "<img src='images/sticky.gif' border='0' alt='sticky'> $dispname"; }

$last_access = $CURUSER["last_browse"];

$time_now = gmtime();

if ($last_access > $time_now || !is_numeric($last_access))

$last_access = $time_now;

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access)

$dispname .= "<b><font color=red> - ("._NEW."!)</font></b>";



if ($row["freeleech"] == 1)

$dispname .= " <img src='images/free.gif' border='0'>";

.........Then a other MOD STARTS....
Unknown User
2013-02-25 07:55:00
hi i want to make a botton to members cilck on it and it will clear the new for v2.8 on the browser like IPT have
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