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

not sure what to tell you... i guess I will play around with it on dev site.. my only guess you dont have anything in motm for last month or something LOL!!!
that error is about right you should not be able to view cleanup. directly anyway... its called via another script LOL!!!

You added the new stuff in the wrong place in cleanup.php  :(  I have fixed that and added a php comment.

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

if you want to run cleanup without waiting the needed time for it to run auto then use siteurl/admincp.php?action=forceclean
Ok This is an shoutbox edit for 2.08
All credit goes the poster here:
[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]
I just modified it to work with 2.08 and cleaned up some of the older code![/url]

Quote:
[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]Posted 23 October 2008 - 02:57 PM[/url]
[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]
Ok I did not really have time to search and give credit for some of the stuff. what i did was take some code form the forums and used somebody's autolink code. when i can i will search and give credit to the person. now this is nothing fancy but it does work. hopefully one of the staff will change this a bit and put it in the next release. it would be better if all of the code was to sit in the shoutbox.php could one of the staff check the shoutedit.php to make sure it is secure from injection. ok here we go[/url]
[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]
in shoutbox.php find:[/url]

[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>";[/url]

[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]
replace with:[/url]

[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutedit.php?action=edit&msgid=".$row['msgid']."' style='font-size: 8px'>[E]</a>&nbsp;&nbsp;<a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>";[/url]

[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]
add shoutedit.php to your root.[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6535"]shoutedit.php[/url]

[url="http://www.torrenttrader.pw/topic/9655-addonshoutbox-message-edit%5B/url"]
That should be about it.
[/url]
ok seems an bug in the crediting of new month:(

1st sql i fixed on my site so dont get credited over and over again...

in what ever you use to edit the db

ALTER TABLE `motm` ADD `credit` enum('yes','no') NOT NULL default 'no',



then

in cleanup.php replace



//== Start member of the month

$motmdateget = SQL_Query_exec("SELECT win_month,year from motm WHERE last_winner ='1'");

$motmdategot = mysql_fetch_array($motmdateget);

$motmdate = $motmdategot[0];

$motmyear = $motmdategot[1];

$mdate = date("m");

$myear = date("y");

if ($motmdate < $mdate) {

   $sql32 = "SELECT id, points FROM motm WHERE points > '0' && year =" . $myear . " ORDER BY points DESC LIMIT 1";

   $mysql_result_motm = SQL_Query_exec($sql32);

   while ($row_motm = mysql_fetch_array($mysql_result_motm)) {

       $nextmonth = (date(m) + 1);

       $id_motm = $row_motm['id'];

       $pos = $row_motm["points"];

       $motmdateget = SQL_Query_exec("SELECT win_month from motm WHERE last_winner ='1'");

       $motmdategot = mysql_fetch_array($motmdateget);

       $motmdate = $motmdategot[0];

       SQL_Query_exec("UPDATE motm SET last_winner = '0' WHERE last_winner = '1'");

       SQL_Query_exec("UPDATE motm SET last_winner = '1' WHERE id = '$id_motm'");

       //to give seeder bonus

       SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+300 WHERE id = '$id_motm'");

       SQL_Query_exec("UPDATE motm SET win_month = '$mdate', last_winner_points = '$pos' WHERE id = '$id_motm'");

       SQL_Query_exec("UPDATE motm SET points = '0'");

       SQL_Query_exec("UPDATE motm SET last_winner_points = '0' WHERE last_winner = '0'");

   } //$row_motm = mysql_fetch_array($mysql_result_motm)

} //$motmdate < $mdate && $motmyear == $myear

//== End member of the month

with




//== Start member of the month

$motmdateget = SQL_Query_exec("SELECT win_month,year,credit from motm WHERE last_winner ='1'");

$motmdategot = mysql_fetch_array($motmdateget);

$motmdate = $motmdategot[0];

$motmyear = $motmdategot[1];

$mdate = date("m");

$myear = date("y");

if ($motmdate < $mdate) {

   $motmdateget1 = SQL_Query_exec("SELECT win_month,year,credit from motm WHERE win_month = '$mdate'");

   $motmdategot1 = mysql_fetch_array($motmdateget1);

   $motcredit = $motmdategot1[2];

   $sql32 = "SELECT id, points FROM motm WHERE points > '0' && year =" . $myear . " ORDER BY points DESC LIMIT 1";

   $mysql_result_motm = SQL_Query_exec($sql32);

   while ($row_motm = mysql_fetch_array($mysql_result_motm)) {

       $nextmonth = (date(m) + 1);

       $id_motm = $row_motm['id'];

       $pos = $row_motm["points"];

       $motmdateget = SQL_Query_exec("SELECT win_month from motm WHERE last_winner ='1'");

       $motmdategot = mysql_fetch_array($motmdateget);

       $motmdate = $motmdategot[0];

       if ($motcredit != 'yes') {

           SQL_Query_exec("UPDATE motm SET last_winner = '0' WHERE last_winner = '1'");

           SQL_Query_exec("UPDATE motm SET win_month = '$mdate', last_winner_points = '$pos', last_winner = '1', credit='yes' WHERE id = '$id_motm'");

           SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+300 WHERE id = '$id_motm'");

           SQL_Query_exec("UPDATE motm SET points = '0'");

           SQL_Query_exec("UPDATE motm SET last_winner_points = '0' WHERE last_winner != '1'");

       } //$motcredit != 'yes'

   } //$row_motm = mysql_fetch_array($mysql_result_motm)

} //$motmdate < $mdate

//== End member of the month



Once someone tests this and reports back it works... I will update the 1st post!
not really sure LOL!! my server has not switched over to an new month yet..
This looks cool, no idea why from the start it never logged stuff staff did LOL!!!.

If anyone looks at my recent addons most of them add some kind of comment someplace.
now if you wanted it displayed in login_blocks or account.php use $CURUSER instead

like in blocks/login_block

after

	$privacylevel = T_($CURUSER["privacy"]);
add




$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $CURUSER['language']);

$lang_r = mysql_fetch_assoc($lang_q);



$lang_name = htmlspecialchars( $lang_r['name'] );




then farther down

in this

	print ("<center><img width='80' height='80' src='$avatar' alt='' /></center><br />" . T_("DOWNLOADED") . ": $userdownloaded<br />" . T_("UPLOADED") . ": $useruploaded<br />".T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio");




change to



      print ("<center><img width='80' height='80' src='$avatar' alt='' /></center>

     <br />" . T_("DOWNLOADED") . ": $userdownloaded

     <br />" . T_("UPLOADED") . ": $useruploaded

     <br />".T_("CLASS").": ".T_($CURUSER["level"])."

     <br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel

     <br />" . T_("LANGUES") . ": $lang_name

     <br />". T_("RATIO") .": $userratio");



I personally like the lines on there own line instead of 1 long ass line, makes it simpler to add things hehehe.

Php dont seem to care either way.  Just nicer to add
if using this in account-details should change

$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $CURUSER['language']);
to


$lang_q = SQL_query_exec("SELECT `name` from `languages` WHERE `id` = " . $user['language']);


$CURUSER is well the person thats viewing it info and $user is the persons info you are viewing.
i am thinking of bringing this upto the 21st centry and making the config in the database.  Much simpler I think and less editing to change values:)



admin part.. still dont save lol... and needs MAJOR restrictions added.. but will come

i was right no easy way to do the paypal subscription button I can see..

This attached file has an link to another site that has pretty good walkthrew on how to create 1 on paypal.

I would keep it on your site named as donate_1.php or something then once you get it working right and looking right rename it to donate.php

That way only you have the link to it hehehe for testing

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

qwep[oretpo[rteporetklo'rekl;rkl;relk;' .. can you read that LOL!!!!
Ok this is an old style true invite "tree" it originally came from tbdev

you need [url="https://www.torrenttrader.org/topic/17452-class-colors-function-for-208/"]Class Colors Function for 2.08 by BigMax1[/url]

or delete every class_user in the file

It basically shows the people the user you are viewing invite, then the people that person invited, upto 2 times.

Pretty ugly but heck does the job:)

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



I am pretty sure I removed the db keys for my site LOL!! if not look at the sqlerr to see whats erroring out!!!
this looks ok.. but hate to tell people its really not an invite "tree" its more like an invited list.  An invite tree shows the people the person invites, then if that person invited someone it shows that too and so on and so on.  Yes the original tbdev was ugly but it showed an true tree and not just the people someone invited.
Warning alamandra — 2013-01-21 00:05:06 in General Chat
to me i dont trust anyone that only does anything for cash only!!!

I dont trust alamandra anyway.. and the original account is banned and if i find out an new one it will prob be banned too.. Them kind of people hurt the tracker scene more then help!
my guess BigMax you dont use gmail to really send the emails.. Gmail seems to have some kind of protection, the who from always changes to the gmail account:(

at 1st i thought it might be mail.php but that seems to support additional_headers .. but again some reason its sending the emails as text even know I put as html...

Who knows might be gmail side too cause using smtp...  So in other words this addon prob works fine if using your host to send emails but dont work at all in the current state if using gmail smtp...

You know that nature of email servers now... EVERY thing is harder to do cause of hacker/spammers sending out spam:(  :(

And me I will never turn on email sending from my server... Until I can change the default ports.. 1 less place for people to attack:)  Heck since I changed my ssh port from 22 to something else my attacks on my sites dropped to NONE!!!

Hackers scripts must be setup to use default ports.
anyway looks like an anti spammer protection of gmail.. basically cant change who its from.. prob to provent the lamers from faking sites and using gmail to spam LOL!!
blah blah blah..

Quote:
noreply@die_gmail.gov

3:38 PM (0 minutes ago)

to noreply

<div style='padding-top:3px'><font size=2>You received a message from your site <b>Blow ME</b></font></div>

<div style='padding-top:3px'><font size=2>Reason: <b>Help!</b></font></div>

<div style='padding-top:3px'><font size=2>Email: blowme@blowme.gov</font></div><div style='padding-top:3px'><font size=2>Sender: <b>ArcticWolf</b></font></div>

<div style='padding-top:7px'><font size=2>Message:</font></div>

-------------------------------------------------------------------------<br />lol
blah has to be something to do with gmails anti spammer scripts blocking it.. if i dont change who its from it goes threw np!!
blah.. dont seem to send anyway,,, my guess an issue with the format of sendmail..
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