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

Upload Manager — 2013-02-10 12:54:53 in v2.08 Mods Completed
Nice job on this one AzuriS (Nice and clean )

minor clean in english.php

Replace:

$LANG["MSG_MUL"] = "Hey, we have MULTIPLIED your upload by %s!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";
with:


$LANG["MSG_MUL"] = "[size=2][color=#FF2500][b]Hey, we have MULTIPLIED your upload by %s!


Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";






replace:



$LANG["MSG_DIV"] = "Hey, we have DIVIDED your upload by %s!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";



with:



$LANG["MSG_DIV"] = "[size=2][color=#FF2500][b]Hey, we have DIVIDED your upload by %s!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";




Big THANKS!
Yes it does work perfect!

Thanks for your time and effort!
here's my motm.sql

AW:Ty: Attachment removed for privacy issues
"ArcticWolf, post: 88585":
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!!!

no I have entries :

Table structure for table motm

|------
|Column|Type|Null|Default
|------
|//**id**//|varchar(10)|No|
|points|decimal(10,1)|No|0.0
|//**month**//|tinyint(2)|No|
|//**year**//|tinyint(4)|No|
|last_winner|varchar(10)|No|
|last_winner_points|varchar(10)|No|
|win_month|tinyint(2)|No|
|credit|enum('yes', 'no')|No|no
== Dumping data for table motm

|139|70.0|12|12|1|1.0|12|no
|322|3.0|12|12| | |0|no
|24|1.0|12|12| | |0|no
|317|1.0|12|12| | |0|no
|329|9.0|12|12| | |0|no
|38|6.0|12|12| | |0|no
|292|2.0|12|12| | |0|no
|347|1.0|12|12| | |0|no
|147|3.0|12|12| | |0|no
|178|1.0|12|12| | |0|no
|129|4.0|12|12| | |0|no
|2|28.0|12|12| | |0|no
|4|4.0|12|12| | |0|no
|275|3.0|1|13| | |0|no
|139|266.0|1|13| | |0|no
|147|76.0|1|13| | |0|no
|292|43.0|1|13| | |0|no
|24|3.0|1|13| | |0|no
|10|10.0|1|13| | |0|no
|408|1.0|1|13| | |0|no
|410|15.0|1|13| | |0|no
|57|43.0|1|13| | |0|no
|280|1.0|1|13| | |0|no
|355|11.0|1|13| | |0|no
|422|2.0|1|13| | |0|no
|489|3.0|1|13| | |0|no
|493|1.0|1|13| | |0|no
|524|1.0|1|13| | |0|no
|336|3.0|1|13| | |0|no
|544|3.0|1|13| | |0|no
|553|53.0|1|13| | |0|no
|546|6.0|1|13| | |0|no
|2|3.0|1|13| | |0|no
|38|6.0|1|13| | |0|no
|641|6.0|1|13| | |0|no
|292|10.0|2|13| | |0|no
|355|22.0|2|13| | |0|no
|139|50.0|2|13| | |0|no
|553|22.0|2|13| | |0|no
== Table structure for table motm

|------
|Column|Type|Null|Default
|------
|//**id**//|varchar(10)|No|
|points|decimal(10,1)|No|0.0
|//**month**//|tinyint(2)|No|
|//**year**//|tinyint(4)|No|
|last_winner|varchar(10)|No|
|last_winner_points|varchar(10)|No|
|win_month|tinyint(2)|No|
|credit|enum('yes', 'no')|No|no

P.S.

I added the above clean... code and still no result
OK thanks for the fix and the comment I understand now ...

but still no last month winner ...  :(

and I have checked the MOD by first post and all but the cleanup.php seams to be at his place

Now, i got this script running and gathering points the whole month and they are stored in to db correctly so the code for the gathering part is correct...

THANKS
OK i tried this way but nothing I still get: there was no last month winner

my db is:

CREATE TABLE `motm` (
`id` varchar(10) NOT NULL,
`points` decimal(10,1) NOT NULL DEFAULT '0.0',
`month` tinyint(2) NOT NULL,
`year` tinyint(4) NOT NULL,
`last_winner` varchar(10) NOT NULL,
`last_winner_points` varchar(10) NOT NULL,
`win_month` tinyint(2) NOT NULL,
`credit` enum('yes','no') NOT NULL DEFAULT 'no',
UNIQUE KEY `id_month_year` (`id`,`month`,`year`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

I did add this to my cleanup.php


//== 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

and if this would help - when i start cleanup.php manual by typing it in browser www.mysite.com/backend/cleanup.php
i get this message .


Fatal error: Call to undefined function SQL_Query_exec() in /home/divxhunt/public_html/backend/cleanup.php on line 305

Line 305 is:


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

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

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

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6538"]functions.php[/url]
Hi!

THANKS for this it counts very well but when it comes to declaring last month winner

I get - there was no last month winner

THANKS!
THANKS Mancino!
I would love if you could post the codes Thanks!
Nice works great !

To ad slider:

In index.php

Find:

stdhead(T_("HOME"));
Below, add:




//===| Start Recommended Torrents |===//

begin_frame("Recommended Torrents");

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limit number of images

if (mysql_num_rows($rec) > 0) {

print("<table align=center cellpadding=4 cellspacing=0 width=100% border=0 class=marquee id=mycrawler2><tr>");

while ($row2 = mysql_fetch_array($rec, MYSQL_NUM)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");

$row = mysql_fetch_array($res);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]'><img border='0' src='uploads/images/$row[image1]' title=\"$altname | $cat\" width=150 height=210></a>

<div style='margin-top:3px; font: Arial 11px'>

<img src=images/check.png height='11' title='Completed' border=0> <font color=#0080FF><b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='11' title='Seeders' border=0> <font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='11' title='Leechers' border=0> <font color=#FF0000><b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");

}

end_frame();

//===| End Recommended Torrents |===//





add in your themes header.php before </head> tag







<!--recommended -->

<script type="text/javascript" src="js/crawler.js">

<script type="text/javascript" src="js/jquery.min.js">

</script>

<script type="text/javascript">

marqueeInit({

uniqueid: 'mycrawler2',

style: {

},

inc: 5, //speed - pixel increment for each iteration of this marquee's movement

mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)

moveatleast: 2,

neutral: 150,

savedirection: true,

random: false

});

</script>

<!--recommended -->



and Upload attached files to public_html/js directory.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6451"]crawler.js[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6452"]jquery.min.js[/url]
Upload Manager — 2013-01-03 13:51:25 in v2.08 Mods Completed
THANKS works good on 2.08

but something is wrong with the take-upload-bonus.php frame

"Operation successfully! ....Redirecting" is out of the frame ...
"zamunda, post: 87828":
In my theme in header.php,  doesnt have this code:



if ($site_config["MIDDLENAV"]){

middleblocks();

Any help..?





just add them at the end of header.php like this:







I attached mine so you can see...

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

<?php

// Start Announcement for Private Messages

if ($unreadmail){

$res_messages = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')") or print(mysql_error());

$arr_messages = mysql_fetch_row($res_messages);

$num_messages = $arr_messages[0];

if ($num_messages > 0)

echo"<div style='margin-bottom:5px'><table align=center width=100% border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style='padding: 10px; background: #204066' align=center><div style='font: bold 14px Times New Roman; color:#FFBF00'>

Hey $CURUSER[username], $num_messages message" . ($num_messages > 1 ? "s" : "") . " is waiting for you to read. Click <a href=mailbox.php?inbox><font size=3 color=#CBCBCB>HERE</font></a> to see!

</div></td></tr></table></div>\n";

}

// End Announcement for Private Messages

?>

<?php

// Start Announcement for Reports

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

$res_reports = mysql_query("SELECT COUNT(*) FROM reports WHERE dealtwith = '0'");

$arr_reports = mysql_fetch_row($res_reports);

$num_reports = $arr_reports[0];

if ($num_reports > 0)

echo"<div style='margin-bottom:5px'><table align=center width=100% border=0 cellspacing=0 cellpadding=10><tr><td style='padding: 10px; background: #204066' align=center><div style='font: bold 14px Times New Roman; color:#FFBF00'>

Hey $CURUSER[username], $num_reports Report" . ($num_reports > 1 ? "s" : "") . " must be solved. Click <a href=admincp.php?action=reports&do=view><font size=3 color=#CBCBCB>HERE</font></a> to view reports!

</div></td></tr></table></div>\n";

}

// End Announcement for Reports

?>
THANKS ! Works great  on v2.08Having some issues with Firefox - the script from webknight post wont show...works fine with the rest of the browsers dough...

"webknight, post: 87635":
maybe somebody wants to try this slider.[url="http://incitorrent.com"]Demo[/url]


P.S.

works with all browsers fine - Firefox issues with new ver... fixed by reinstaling firefox
THANK you!
THANKS for this one. Works perfect.
THANK YOU!
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