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-01-22 07:50:24
Don't know why this wasn't added, they probably just forgot  :P

Requested [url="http://www.torrenttrader.org/index.php?showtopic=7721"]here[/url], taken from 1.08 code, adapted to 2.03.

in functions.php, find:

$dispname = "<b>" . $smallname . "</b>";
Below, add:
// 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> <b><font color=red>(NEW!)</font></b>";

}else{

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

}

// end NEW! mod



Tested & working @ TT2.03

This should probably be added to SVN too :)
Unknown User
2008-01-22 09:42:51
thanks....worked great in TT2.02
Unknown User
2008-01-22 10:09:55
Yeah it should work an all 2.x version, it's pretty standard code
Unknown User
2008-01-22 16:55:15
Added to SVN.
Unknown User
2008-01-26 15:43:18
Good  :)

Possible NEW! stay 1 hours after connect ?

Thanks
Unknown User
2008-01-26 18:17:39
hello

The code for forums.php please ???
Unknown User
2008-01-27 21:40:45
Good work. Thanks
Unknown User
2008-01-29 14:05:58
I get this error message:

Parse error: syntax error, unexpected '&' in /****/public_html/backend/functions.php on line 826

The lines near it are:

		// 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)) {

826-->  $last_access=$time_now;  <--826

}

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

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

}else{

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

}

// end NEW! mod


I'm using TT 2.03
Unknown User
2008-01-29 15:54:01
Try the code TS added to SVN... I have no clue why you'd be getting that error :S

				$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>";




"Dynamik, post: 37999":
Possible NEW! stay 1 hours after connect ?
No idea.. maybe if your clock is messed up.. or maybe if you're using 2.01 or older and haven't updated the time function...

"lagrace, post: 38007":
The code for forums.php please ???
Seriously? Click on "View new posts" ?

forums.php?action=viewunread
Unknown User
2008-01-30 16:27:12
"Ezerbeth, post: 38148":
Try the code TS added to SVN... I have no clue why you'd be getting that error :S


				$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>";

No idea.. maybe if your clock is messed up.. or maybe if you're using 2.01 or older and haven't updated the time function...

Seriously? Click on "View new posts" ?

forums.php?action=viewunread


Thanks that did it..!
Unknown User
2008-02-02 15:14:13
"Ezerbeth, post: 37828":
Don't know why this wasn't added, they probably just forgot  :P
Requested [url="http://www.torrenttrader.org/index.php?showtopic=7721"]here[/url], taken from 1.08 code, adapted to 2.03.

in functions.php, find:

$dispname = "<b>" . $smallname . "</b>";
Below, add:
// 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> <b><font color=red>(NEW!)</font></b>";

}else{

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

}

// end NEW! mod



Tested & working @ TT2.03

This should probably be added to SVN too  :)


Workfine on 2.03 TT Thanks m8
Unknown User
2008-02-04 19:37:45
Cool! Big Thanks ^-^

TT2.0.2 is Work!!
Unknown User
2008-05-11 02:14:07
i have a very modified TT2.02 so i didn't change to TT2.04!!

i've installed this mod a while ago but it stopped working...don't know if there was something i made wrong after i modded something in function.php...can someone help...

pleaseeeee  :)

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2375"]functions.php[/url]
functions.php
Download
Unknown User
2008-05-18 10:01:49
how can i cange the time of displaying the NEW-TAG?

if i check the site i will see the NEW-TAG in red...thats ok!

but when i refresh the site the NEW-TAG is gone.

did anyone knows how can i change the time up to 1 hour to display the NEW-TAG?

many thanks for your help and for this mod...works fine.
Unknown User
2008-05-18 10:13:53
I might look into making it like ScT when I have some time....

For those who don't know, ScT have an extra db row which flags what was the last torrent you saw (from the browse page) so the new tag will remain until you browse to the page where the latest torrent you viewed is. I find it a bit annoying but some of you might like it since it stays longer.

Just remember that this was added to SVN so you do not need this mod anymore. If I do the mod like ScT, it will be based on the SVN code and not the code I used originally.
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728