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

Post — 2012-07-12 21:48:11 in General Chat
it was prob removed for not following the rules.. too hard to read the rules at the top of the forums anyway................................

My guess you posted in mods complete for an request or something anyway read the rules........................
well tech you dont have to reset it each month anyway..

$month5 = sqlesc(gmdate("m")); 
sets the current month auto and


$year5 = sqlesc(gmdate("Y"); 

sets the current year auto

+ it only looks up the current month and year lol

 $month_mas = sqlesc(gmdate("mY"));  


I guess tech you could make something to display all the months but thats outside the "basic" addon..
List Of Most Reg Currencys

// List Of Most Reg Currencys

// Euro € EUR

// British Pound £ GBP

// Canadian Dollar $ CAD

// Polish Zloty $ PLN

// U.S. Dollar $ USD
not sure what Changed in svn means..... reading too hard:)
its really serves not use to me.. if wanting to track what people dl then get an snatched list
read the 1st post it tells you how too...

but offtopic whats reading about? lol
Mp Read — 2012-06-20 21:32:36 in v2.08 Mods Completed
lol...

view-source:http://ajax.googleapis.com  dont need all that junk just copy some other javascript include already in header:)

aka i cant read



<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js'></script>

none ever says here there TT version but this works fine under svn version if goto

sitename/uploaderinfo.php

1st post some issues i can see:(

1: stdfoot(); is being called twice lol

2:



echo '</td></tr></table>'; stdfoot();


is really un-needed.. table is not defined so will cause formating issues in themes:(

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5782"]uploaderinfo.php[/url]
that means you have an error some place in announce.php I would check it to make sure correct and you put the additions in the right places.
Datalife Engine — 2012-05-16 13:24:44 in General Chat
cant read it get an better translator...
Its not hard

in account-details

find



if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) {

after add




//Donor count down

if ($user[donor] && $CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)

   {

   $donoruntil = $user['donoruntil'];

   if ($donoruntil != '0000-00-00 00:00:00')

   {

   print("<b><p>Donated Status Until - $donoruntil");

   if ($CURUSER["class"] < 6)

   print(" [ " . mkprettytime(strtotime($donoruntil) - gmtime()) . " ] to go...</b><font size="-2"> to re-new donation click <a class=altlink href=donate.php>here</a>.</font></p>n");

   else

   print(" [ " . mkprettytime(strtotime($donoruntil) - gmtime()) . " ] to go...</b></p>n");

   }

 }

//====end






then in account

find





   <b><?php echo T_("PASSKEY"); ?>:</b> <?php echo $CURUSER["passkey"]; ?><br />




after add





   <b>Last <?php echo T_("DONATED"); ?>:</b> <?php echo $site_config['currency_symbol']; ?><?php echo number_format($CURUSER["donated"], 2); ?><br>

   <b>Total <?php echo T_("DONATED"); ?>:</b> <?php echo $site_config['currency_symbol']; ?><?php echo number_format($CURUSER["total_donated"], 2); ?><br>

   <?php if ($CURUSER['donoruntil']<>"0000-00-00 00:00:00 && ".htmlspecialchars($CURUSER['donor'])." == 'yes'")

   echo "<b>Donor Until: </b> ".$CURUSER['donoruntil']." [ ".mkprettytime(strtotime($CURUSER['donoruntil']) - gmtime()); ?> ] to go...<br>




I of the other addons about donor stuff here has the cleanup to reset to power user once it expires.. use the search thats whats it here for!!!!!!!!!!!!!!!
class sets fine.. if your class is above well 2 stock then well of-course it will not demote you to vip LOL

Quote:
Dear testie :wave: Thanks for your support to ! Your donation helps us in the costs of running the site! As a donor, you are given some bonus gigs 100.00 GB added to your uploaded amount, the status of VIP, and the warm fuzzy feeling you get inside for helping to support this site that we all know and love :smile: so, thanks again, and enjoy!cheers,  Staff

Downloaded: 859.52 MB

Uploaded: 107.40 GB

Class: VIP

anyway this works fine on my sites for setting donations that dont auto credit for what ever stupid reason like not changing donated email address, $DONATEMAIL dont match you real sites donated address..............

in account-details.php

find



   if($CURUSER["delete_users"] == "yes"){

       print("<hr><center><form method=post action=admin-modtasks.php>n");

       print("<input type=hidden name='action' value='deleteaccount'>n");

add before






if ($CURUSER["class"] == "7") {

   begin_frame("VIP Donation Fix");

   print("<form method=post action=admin-modtasks.php>n");

   print("<input type=hidden name='action' value='donater_fix'>n");

   print("<input type=hidden name='userid' value='$id'>n");

   echo "<br /><br /><center><table border=0>";

   echo "<tr><td align=right class=table_col1><b>" . T_("REASON") . ":</b> </td><td align=left class=table_col1><textarea cols=40 rows=5 name=reason></textarea></td></tr>";

   echo "<tr><td align=right class=table_col1><b>Transaction ID (req):</b> </td><td align=left class=table_col1><input type=text size=30 name=txn_id></td></tr>";

   echo "<tr><td align=right class=table_col1><b>Money (req):</b> </td><td align=left class=table_col1><input type=text size=10 name=money></td></tr>";

   echo "<tr><td colspan=2 align=center class=table_col1><input type=submit class=btn_big value='Add Donation'></td></tr></table></center></form>";

   end_frame();

} //$CURUSER["class"] == "7"




then in admin-modtasks

add before





if ($action == "deleteaccount"){




add





if ($action == 'donater_fix') {

   if ($CURUSER["class"] <= "6") //only allow admins to delete users

   show_error_msg(T_("ERROR"), "Only Owners can do this", 1);

   $clid = (int) $_POST["userid"];

   $payment_amount = mysql_real_escape_string($_POST["money"]);

   $txn_id = mysql_real_escape_string($_POST["txn_id"]);

   $reason = mysql_real_escape_string($_POST["reason"]);

   if (!is_valid_id($clid))

   show_error_msg(T_("EDITING_FAILED"), T_("INVALID_USER_ID"), 1);

   if (!$txn_id || !$payment_amount) {

   show_error_msg(T_("ERROR"), T_("MISSING_FORM_DATA") . ".", 1);

   } //!$txn_id || $payment_amount

   $donated_time = get_date_time();

   ///Sort Upload and Donor time amounts

   if ($payment_amount == 5) {

   $days = 1 * 4;

   } //$payment_amount == 5

   elseif ($payment_amount == 10) {

   $days = 1 * 8;

   } //$payment_amount == 10

   elseif ($payment_amount == 20) {

   $days = 1 * 16;

   } //$payment_amount == 20

   elseif ($payment_amount == 30) {

   $days = 1 * 24;

   } //$payment_amount == 30

   else {

   $days = 1 * 1;

   }

   //set donor upload upgrade

   if ($payment_amount == 5) {

   $donb = 107374182400;

   } //$payment_amount == 5

   //{$donb = 5368709120; }

   elseif ($payment_amount == 10) {

   $donb = 214748364800;

   } //$payment_amount == 10

   //{$donb = 10737418240; }

   elseif ($payment_amount == 20) {

   $donb = 429496729600;

   } //$payment_amount == 20

   //{$donb = 21474836480; }

   elseif ($payment_amount == 30) {

   $donb = 644245094400;

   } //$payment_amount == 30

   else {

   $donb = 1073741824 * $payment_amount;

   }

   //Set User Invites

   if ($payment_amount == 5) {

   $invites = 2;

   } //$payment_amount == 5

   elseif ($payment_amount == 10) {

   $invites = 4;

   } //$payment_amount == 10

   elseif ($payment_amount == 20) {

   $invites = 8;

   } //$payment_amount == 20

   elseif ($payment_amount == 30) {

   $invites = 12;

   } //$payment_amount == 30

   else {

   $invites = 0;

   }

   //get user information from DB

   if ($clid > 0) {

   $query = "SELECT * FROM users WHERE id='" . $clid . "'";

   $result = SQL_Query_exec($query);

   $row = mysql_fetch_array($result);

   $username = $row['username'];

   $old = date($row['donoruntil']);

   $class = $row['class'];

   $dona = $row['uploaded'];

   $modcomment = $row['modcomment'];

   } //$clid > 0

   else {

   $username = 'Guest' . rand(1000, 9999);

   $class = 1;

   }

   //Set class to VIP if lower then VIP

   if ($clid > 0) {

   if ($class <= 3) {

   $class = 3;

   } //$class <= 3

   $r = @SQL_Query_exec("SELECT * FROM users WHERE id=$clid");

   $user = mysql_fetch_array($r) or show_error_msg(T_("ERROR"), "No user with ID.", 1);

   //Reset download upload post and reset to zero H&R's

   $query = "UPDATE users SET donor='yes', class=$class, warned ='no', invites=$invites WHERE id='" . $clid . "'";

   $result = SQL_Query_exec("$query");

   //Get Donor time if already some left from before

   If ($old <> "0000-00-00 00:00:00") {

   $old1 = strtotime($old) - gmtime();

   $donateuntil = get_date_time((gmtime() + $days * 604800) + $old1);

   } //$old <> "0000-00-00 00:00:00"

   else {

   $donateuntil = get_date_time(gmtime() + $days * 604800);

   }

   //add Upload bonus for amount given at 1Gb per ?1

   $bonus = $donb + $dona;

   $donordif = strtotime($donateuntil) - gmtime();

   $don_bonus = mksize($donb);

   //add to mod comment for staff to check if payment made via here

   $modcomment3 = gmdate("Y-m-d") . " Donor Status Given. ($don_bonus) Bonus Granted. Reason: $reason. ($donordif) Donator Time Added. n";

   $modcomment = $modcomment3 . "n" . $modcomment;

   $modcom = sqlesc($modcomment);

   //update users total and bonus totals

   $query = "UPDATE users SET uploaded='" . $bonus . "', modcomment = CONCAT($modcom,modcomment), donoruntil='$donateuntil', donated=$payment_amount, total_donated=total_donated+$payment_amount WHERE id='" . $clid . "'";

   $result = SQL_Query_exec($query);

   $newclass_name = get_user_class_name('3');

   //Send Message to User That Donated

   $msg = sqlesc("Dear $username :wave: Thanks for your support to $SITENAME! Your donation helps us in the costs of running the site! As a donor, you are given some bonus gigs $don_bonus added to your uploaded amount, the status of " . $newclass_name . ", and the warm fuzzy feeling you get inside for helping to support this site that we all know and love :smile: so, thanks again, and enjoy!cheers, $SITENAME Staffn");

   $subject = sqlesc("Thank You for Your Donation!");

   $added = sqlesc(get_date_time());

   if ($clid > 0)

   SQL_Query_exec("INSERT INTO messages (sender, subject, receiver, msg, added) VALUES (0, $subject, $clid, $msg, $added)");

   } //$clid > 0

   //Send Message to Site Owners

   $sysop = SQL_Query_exec("SELECT id FROM users WHERE class=7");

   while ($sysopid = mysql_fetch_assoc($sysop)) {

   $subject = "New Donation Manually Credited";

   $sysopmsg = $subject." | User: $username | Amount : $payment_amount | txn_id: $txn_id | New Class: $newclass_name";

   $sysopmsg .= "nNew Modcomment: ".$modcomment3;

   SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, added, subject, msg) VALUES(0, 0, " . $sysopid['id'] . ", '" . get_date_time() . "', " . sqlesc($subject) . ", " . sqlesc($sysopmsg) . ")");

   } //$sysopid = mysql_fetch_assoc($sysop)

   //update donation totals for counter

   $added = sqlesc(get_date_time());

   $month1 = sqlesc(gmdate("m"));

   $year1 = sqlesc(gmdate("Y"));

   $query = "INSERT INTO funds (cash,user,added,month,year) VALUES ($payment_amount, $clid, $added,$month1,$year1)";

   $result = SQL_Query_exec($query);

   write_log($CURUSER['username']." has manual donation for user: <a href='account-details.php?id=$clid'>$clid</a> $modcomment3");

   autolink("account-details.php?id=$clid","Donation Added For $username Class: $newclass_name");

   die;

} //$action == 'donater_fix'



Then well edit the user that donated.. but again if I have to tell you this well should not be running an site EVIL GRIN

you should have the transaction # in the email you got about the donation.. in theory you could put anything in the space.
blah seems the original creator of it added some more fields..

after some extensive testing on my dev site it works now.. so if dont work for you dont call me i will call you:)

1st in what ever you use to edit the db



ALTER TABLE `users` ADD `donor` enum('yes','no') NOT NULL default 'no';

ALTER TABLE `users` ADD `total_donated` int(10) unsigned NOT NULL default '0';


then replace the paypal.php with the 1 enclosed

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5728"]paypal.php[/url]

I added also where it sends now an pm to class 7 aka top "stock" class

It sends 1 at the start and another once it completes basically that class gets 2 pms each donation, kind of spamy but helps if something goes wrong for some strange reason.
.. people having issues with it.. if well dont change

3rd: edit backend/funds_config.php

$DONATEMAIL = 'change_this_email@change.this'; //Your Paypal email address here.

then will not work what ever.
this i looks like, but you are missing some of the special database tables for Add Movie that i noticed
FLS — 2012-04-29 02:23:32 in v2 Only Mods Complete
oh i see he forgot something.. will never work without finding in admin-modtasks



$modcomment = sqlesc($_POST["modcomment"]);

after




$supportfor = sqlesc($_POST["supportfor"]);

$support = sqlesc($_POST["support"]);




and changing





supportfor='$supportfor', support='$support'




to





supportfor=$supportfor, support=$support






fwi: if you use the SQL_Query_exec thing in 2.08 you have to make sure you remove if anything like



 or sqlerr()


if not it seems to use that and not log to the db:(
2.08 has alot better security then the older versions of TT, yes alot of the old mods and addons dont work right out of the box but again most of the ones was never even completed so well useless anyway.

V3 looks like its going to be an complete redo so prob most of the 2.x mods will not work anyway.

Lower then 2.08 versions have alot of bugs and other issues.
i use an function like



function loggedinonly() {

   global $CURUSER;

   if (!$CURUSER) {

       header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]));

       exit();

   }

}

1 of my blocks then calls that function

i also added in account-login.php after




dbconn()




$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;



pretty much makes my whole site invisible to non logged in users other then account-login, account-signup,

again you need to add the code in account-signup too if want to hide basically everything.
this 1 seems to work fine now in 2.08 and i fixed other old style code

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5703"]announcements.php[/url]
to fix an issue with an theme being deleted and people still using it

in admincp.php find



} elseif ($do == "del") {



 if (!@count($_POST["ids"])) show_error_msg(T_("ERROR"), T_("NOTHING_SELECTED"), 1);

 $ids = array_map("intval", $_POST["ids"]);

 $ids = implode(', ', $ids);

 SQL_Query_exec("DELETE FROM `stylesheets` WHERE `id` IN ($ids)");

 header("Refresh: 1;url=admincp.php?action=style");

 show_error_msg(T_("SUCCESS"), T_("THEME_SUCCESS_THEME_DELETED"), 1);

and change to




  } elseif ($do == "del") {

 if (!@count($_POST["ids"])) show_error_msg(T_("ERROR"), T_("NOTHING_SELECTED"), 1);

 $ids = array_map("intval", $_POST["ids"]);

 $ids = implode(', ', $ids);

 SQL_Query_exec("DELETE FROM `stylesheets` WHERE `id` IN ($ids)");

    SQL_Query_exec("UPDATE `users` SET `stylesheet` = ".$site_config["default_theme"]." WHERE stylesheet NOT IN (SELECT id FROM stylesheets)");

autolink("admincp.php?action=style", T_("THEME_SUCCESS_THEME_DELETED"));



it should fix the users the was still using an theme if it was deleted.

Changed in svn
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