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
User Posts

Go to Profile

Bitcoin? — 2013-04-12 16:49:24 in General Chat
yeah bitcoins are becoming more and more popular by the day, ive even heard a few big firms starting to use them. im considering using them within my company too.

Its definatly worth implementing.
Datalife Engine — 2012-05-30 20:33:13 in General Chat
basically if i am correct, he wants to someone to do the same thing to datalide engine as what has already been done with wordpress ect
was doing a few mods for a site and noticed i had to go around the block to format the time within TT so i modified the following UTC functions to allow you to add what format you want the time to be displayed as.

Open 'backend/functions.php' and find:



// Convert UTC to user's timezone

function utc_to_tz ($timestamp=0) {

GLOBAL $CURUSER, $tzs;

if (method_exists("DateTime", "setTimezone")) {

 if (!$timestamp)

  $timestamp = get_date_time();

 $date = new DateTime($timestamp, new DateTimeZone("UTC"));

 $date->setTimezone(new DateTimeZone($CURUSER ? $tzs[$CURUSER["tzoffset"]][1] : "Europe/London"));

 return $date->format('Y-m-d H:i:s');

}

if (!is_numeric($timestamp))

 $timestamp = sql_timestamp_to_unix_timestamp($timestamp);

if ($timestamp == 0)

 $timestamp = gmtime();

$timestamp = $timestamp + ($CURUSER['tzoffset']*60);

if (date("I")) $timestamp += 3600; // DST Fix

return date("Y-m-d H:i:s", $timestamp);

}

function utc_to_tz_time ($timestamp=0) {

GLOBAL $CURUSER, $tzs;

if (method_exists("DateTime", "setTimezone")) {

 if (!$timestamp)

  $timestamp = get_date_time();

 $date = new DateTime($timestamp, new DateTimeZone("UTC"));

 $date->setTimezone(new DateTimeZone($CURUSER ? $tzs[$CURUSER["tzoffset"]][1] : "Europe/London"));

 return sql_timestamp_to_unix_timestamp($date->format('Y-m-d H:i:s'));

}

if (!is_numeric($timestamp))

 $timestamp = sql_timestamp_to_unix_timestamp($timestamp);

if ($timestamp == 0)

 $timestamp = gmtime();

$timestamp = $timestamp + ($CURUSER['tzoffset']*60);

if (date("I")) $timestamp += 3600; // DST Fix

return $timestamp;

}

Replace with:




// Convert UTC to user's timezone

function utc_to_tz ($timestamp=0, $format='Y-m-d H:i:s') {

GLOBAL $CURUSER, $tzs;

if (method_exists("DateTime", "setTimezone")) {

 if (!$timestamp)

  $timestamp = get_date_time();

 $date = new DateTime($timestamp, new DateTimeZone("UTC"));

 $date->setTimezone(new DateTimeZone($CURUSER ? $tzs[$CURUSER["tzoffset"]][1] : "Europe/London"));

 return $date->format($format);

}

if (!is_numeric($timestamp))

 $timestamp = sql_timestamp_to_unix_timestamp($timestamp);

if ($timestamp == 0)

 $timestamp = gmtime();

$timestamp = $timestamp + ($CURUSER['tzoffset']*60);

if (date("I")) $timestamp += 3600; // DST Fix

return date($format, $timestamp);

}

function utc_to_tz_time ($timestamp=0, $format='Y-m-d H:i:s') {

GLOBAL $CURUSER, $tzs;

if (method_exists("DateTime", "setTimezone")) {

 if (!$timestamp)

  $timestamp = get_date_time();

 $date = new DateTime($timestamp, new DateTimeZone("UTC"));

 $date->setTimezone(new DateTimeZone($CURUSER ? $tzs[$CURUSER["tzoffset"]][1] : "Europe/London"));

 return sql_timestamp_to_unix_timestamp($date->format($format));

}

if (!is_numeric($timestamp))

 $timestamp = sql_timestamp_to_unix_timestamp($timestamp);

if ($timestamp == 0)

 $timestamp = gmtime();

$timestamp = $timestamp + ($CURUSER['tzoffset']*60);

if (date("I")) $timestamp += 3600; // DST Fix

return $timestamp;

}




now you can simply call :

utc_to_tz_time ('TIME STAMP HERE, 'TIME FORMAT HERE');

or

utc_to_tz ('TIME STAMP HERE, 'TIME FORMAT HERE');

check out [url="http://php.net/manual/en/function.date.php"]http://php.net/manua...nction.date.php[/url] for the list of formats that can be used.

hope this helps
sorry guys ive not been around or i would have fixed any issues, il update the first post with the fixes that have been discussed and il double checkit all works over the next couple of days, sorry for not being around ive had alot of work on
Simple Clock — 2012-01-22 14:10:05 in v2 Only Mods Complete
Nice work mate,, looks good. keep it up nice to see you around again
"djhowarth, post: 75257":
Yeh this has been around quite a while, so i guess it could be a good solution  :)

there api is simple enought

<?php		 $client = new SoapClient( 'http://torcache.net/api/torcache.wsdl' );		 $infoHash = $client->cacheTorrent( base64_encode( file_get_contents( 'my.torrent' ) ) ); ?>
WP-Trader .4.6 Beta — 2012-01-07 15:15:11 in General Chat
Nice work mate, nice to see something new
The Develop Network — 2011-11-19 00:25:56 in General Chat
Quick Update:

We are now looking for researchers who can help us track down content, but also varify if some infomation that we find is true, anyone intrested contact me  :)

http://www.thedevelop.me/index.php
The Develop Network — 2011-11-11 12:34:02 in General Chat
"thedarklord, post: 76496":
i got the email (went in junk) but couldnt activate using the link provided

your account is activated, if anyone else has the same problem let me know so i can fix it asap thanks :)
The Develop Network — 2011-11-10 21:24:13 in General Chat
"thedarklord, post: 76486":
i signed up but it wont let me confirm my account
username

SM as before

it will be activated within the hour, do me a favour check your spam ect. let me know if theres any in there. :)
The Develop Network — 2011-11-09 21:13:53 in General Chat
Hi thought i would post my latest forum, it is new and is still being built but i hope to have your support in making it as popular as we can, if you need any help that can not be found here please feel free to ask on The Develop Network.

Also i am currently looking for moderators, if you feel you can do the job, register onsite and send me a PM

you can find us here:

[url="http://adf.ly/3oxMc"]http://www.thedevelop.me[/url]
"djhowarth, post: 75391":


just a thought, that image has just reminded me, i think we should stop putting frames and blocks inside other frames and blocks. it looks messy and a bit noobish at times. just a thought
Howarth shown me this the other day, funny enough i was talking to someone 5 minutes earlier about how these forums needed a revamp, welldone mate they finally look the part.

Thanks
Ok i had an error in the this mod, think i was verry tired when i put it on here, ive now updated the top post. :angry:
open the functions.php file and change:

error_reporting(E_ALL^ E_NOTICE);
to:


error_reporting(E_ALL);




then refresh the page n tell me what errors it gives you, as i tryed your functions file on mine and it worked fine apart from few depreciated php functions.
When i looked at the file i couldnt see my mod in there, anywhays ive added it in there let me know if it works
"tiloup, post: 74697":
allo salfordscripteR , thanks!!
error ...

blank page and I have the version 2.07

Thank you for your help!

Can you post your functions file on here and i will see whats up
Ok peeps, as we already know 90% of the time the who's where system is inaccurate so i remade it, verry simple mod but effective, let me know what you think.

Open backend/functions.php

Find and remove:

$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);
Then find(or similar if you have changed it):


function where ($scriptname = "index", $userid, $update=1){

if (!is_valid_id($userid))

die;

if (preg_match("/account-details/i", $scriptname))

$where = "Browsing Account Details...";

elseif (preg_match("/account/i", $scriptname))

$where = "Browsing User Control Panel...";

elseif (preg_match("/forums/i", $scriptname))

$where = "Browsing Forums...";

elseif (preg_match("/index/i", $scriptname))

$where = "Browsing Homepage...";

else

$where = "Unknown Location...";



if ($update) {

$query = sprintf("UPDATE users SET page=".sqlesc($where)." WHERE id ='%s'", mysql_real_escape_string($userid));

$result = SQL_Query_exec($query);

}

return $where;

}





Replace with:



function where ($where, $userid, $update=1){

if (!is_valid_id($userid))

die;



if(empty($where))

$where = "Unknown Location...";



if ($update)

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $userid);



if (!$update){

return $where;

}else{

return;

}

}





Now find:



if (!$CURUSER)

guestadd();





Replace with:





if ($CURUSER){

where($title, $CURUSER['id']);

}else{

guestadd();

}







Its as easy as that, for people using <2.07 replace:



SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $userid);





With



mysql_query("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $userid);




Hope it helps :angry:
Hi, this is'nt much of a mod,its more of an addition to the clean.php file, something i noticed from sorting out a big TT based site is the amount of PM's that was left in the database, so i came up with a method to control it based on one of the existing clean up systems:


open backend/cleanup.php


Copy the folling at the bottom of the file then save:

$messages = gmtime() - 90 * 86400;//delete read Messages(PM's) after 90 days

SQL_Query_exec("DELETE FROM messages WHERE unread = 'no' AND added < FROM_UNIXTIME($messages)");


Hope this helps those with a verry big database problem :angry:
"guiux, post: 74651":
Please post the DB code for this Pun_BB
Thanks!

Sorry buddy its been 2 years since i worked on that, i dont have the files no more but if i get a bit of free time i shall see what i can do for you.

Edit: its been a while but as far as im aware you use the database that comes with punbb
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