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

"AzuriS, post: 87810":
nice job  ;)

only with iphone not working

seems it need another js file ([size=12px] jquery.ui.touch.js)[/size]

[size=12px]i upload it this the other but nothing better [/size][size=12px] [/size] :(
I dont have an iphone to test it LOL but the main site of QapTcha says to use the attached file, upload it to jquery then after

<script type="text/javascript" src="jquery/jquery-ui.js"></script>
add


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


[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6454"]jquery.ui.touch.js[/url]
Doberchokes: it seems you made an mistake when adding it.. LOL my guess is an ' where " should be or an " where ' should be in your header file

...

Oh i see maybe too... he used short tags.. its disabled on 2.08..

change

<link rel="stylesheet" href="<?= $site_config["SITEURL"]; ?>/jquery/QapTcha.jquery.css" type="text/css" />
to
<link rel="stylesheet" href="<?php echo $site_config["SITEURL"]; ?>/jquery/QapTcha.jquery.css" type="text/css" />


in your header.php
Ok it dont look like its crawler.js to blame.. the newer themes for TT have something in the header file to load for html5

adding this to the header file before </head>

seems to fix it from what I see, atleast in IE 9, I dont have an lower version to see if below works LOL!!





<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

<meta http-equiv="X-UA-Compatible" content="IE=9"/>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

<meta http-equiv="X-UA-Compatible" content="IE=8"/>

<meta http-equiv="cache-control" content="no-cache">

<meta http-equiv="pragma" content="no-cache">

<!-- CSS -->

<!--[if lt IE 9]>

<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>

<![endif]-->


I been modifying all my themes i use on my site to basically have the same stuff between <head> and </head> other then well css and any special java for like xmas snow.

what that .js does https://code.google.com/p/html5shim/
I have noticed sometimes just changing



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

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

</script>

to




<script type="text/javascript" src="<?php echo $site_config["SITEURL"];?>/js/crawler.js"></script>

<script type="text/javascript" src="<?php echo $site_config["SITEURL"];?>/js/jquery.min.js"></script>



fixes some browser issues.
"Movie-Torrentz, post: 87572":
Nice mod but i would make it a center block to match all theme instead of pushing stuff down..

merry Christmas

regards
Hehe here you go:)

upload the attached block to blocks

then add and activate, and then move over to the middle it in admincp blocks

I guess an tech easy way to do about is use this in what ever you use to edit the db.. LOL

INSERT INTO `blocks` (`named`, `name`, `position`, `description`, `enabled`, `sort`) VALUES('classifieds', 'classifieds', 'middle', 'Important Messages', 1, 1);
the quick add is untested, I already have the block LOL!!! but should work...

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

if you have the other addons he said, then change in the classifieds_block





$im_staffmessages = true; // <-- Set this to true if have the staff messages addon

$im_announcement = true; // <-- Set this to true if have the announcement addon

it might be in your footer.php or something close to it.
weird my guess you dont have short-tag support or something.. I know works fine I tested it on my dev 2.08 site...

Either that or you trying to view it threw some debugger and not an browser, DONT know WHAT DW is LOL!!!

anyway re-download the file from the 1st post once it says NEW
This is an 2.08 version of [Mod] Manage Inactive Users that BigMax1 made.
With other modications people said and its for 2.08...
Not much in the attached file has changed from my one I attached in this post: [url="http://www.torrenttrader.org/topic/16411-mod-manage-inactive-users/#entry87714"]http://www.torrentt...ers/#entry87714[/url]
Its basically just all the stuff for this addon in 1 place and for 2.08
All credit goes to BigMax1, I just modified it to be truely 2.08 and to error out correct.

1st off languages:

English

// Inactive Users
$LANG["NUMBER0FDAYS"] = "Number of days";
$LANG["JOINDATE"] = "Join Date";
$LANG["SENDMAIL"] = "Send mail";
$LANG["DELETEUSERS"] = "Delete users";
$LANG["DISABLED_ACCOUNTS"] = "Disable accounts";
$LANG["LASTMAILSENTBY"] = "Last mail sent by";
$LANG["WASSENT"] = "was sent!";
$LANG["NOACOUNTINATIVE"] = "No account inactive for longer than";
$LANG["ON"] = "on";
$LANG["USURSINACTIVE"] = "Inactive Users";
$LANG["DAYS"] = "Days";
Fran&ccedil;ais

// Inactive Users
$LANG["NUMBER0FDAYS"] = "Nombre de jours";
$LANG["JOINDATE"] = "Date d'inscription";
$LANG["SENDMAIL"] = "Envoyer un Email";
$LANG["DELETEUSERS"] = "Supprimer membres";
$LANG["DISABLED_ACCOUNTS"] = "Compte d&eacute;sactiv&eacute;";
$LANG["LASTMAILSENTBY"] = "Derni&egrave;re d&eacute;p&ecirc;che envoy&eacute;e par";
$LANG["ON"] = "sur";
$LANG["WASSENT"] = "a &eacute;t&eacute; envoy&eacute;!";
$LANG["NOACOUNTINATIVE"] = "Pas de compte inactif pendant plus de";
$LANG["USURSINACTIVE"] = "Les utilisateurs inactifs";
$LANG["DAYS"] = "Jours";
then import to sql if you dont have it already

CREATE TABLE IF NOT EXISTS `avps` (
`arg` varchar(20) character set latin1 collate latin1_general_ci NOT NULL default '',
`value_s` text character set latin1 collate latin1_general_ci NOT NULL,
`value_i` int(11) NOT NULL default '0',
`value_u` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`arg`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Upload attached file inactiveusers.png in: /images/admin


add in admincp.php

<td align="center"><a href="inactiveusers.php"><img src="images/admin/inactiveusers.png" border="0" width="32" height="32" alt="" /><br /><?php echo T_("USURSINACTIVE"); ?></a><br /></td>
now upload the attached file to your site
NEW: [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6436"]inactiveusers.php[/url]
[MOD] Thanks — 2012-12-30 15:13:31 in v2 Only Mods Complete
changing in download.php

if ($CURUSER["id"] != $row["owner"] && !in_array($CURUSER["username"], explode(',', $row["thanks"])))

show_error_msg("Error", "To download you must thank the user.", 1);
to
$numcomments = get_row_count("comments", "WHERE user = " . $CURUSER["id"] . " && torrent = " . $id);

if ($CURUSER["id"] != $row["owner"] && (!in_array($CURUSER["username"], explode(',', $row["thanks"])) && $numcomments < 1))

   show_error_msg(T_("ERROR"), "To download you must thank the user.", 1);


Seems to fix that.
[MOD] Thanks — 2012-12-30 07:27:14 in v2 Only Mods Complete
@Mythos I need you to attach your download.php to see about your issue.
... reading hard..

Cleanup code to remove the donor status once it expires.

in bottom of cleanup.php before

 //OPTIMIZE TABLES



add this code:





//=== Remove donor status if time up and set class to power user ===//

$res = SQL_Query_exec("SELECT id, modcomment FROM users WHERE donor='yes' AND donoruntil < NOW() AND donoruntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res) > 0) {

   $dt = sqlesc(get_date_time());

   $subject = sqlesc("VIP status removed by System.");

   $msg = sqlesc("Your VIP status has timed out and has been auto-removed by the System. We would like to thank you once again for supporting " . $site_config['SITENAME'] . ". If you wish to re-new your VIP, you can do so by clicking [url=".%20%24site_config%5B"] . "/donate.php]HERE[/url]. Cheers!n");

   while ($arr = mysql_fetch_assoc($res)) {

       ///--- Autosystem modcomment ---//

       $modcomment = htmlspecialchars($arr["modcomment"]);

       $modcomment = gmdate("Y-m-d H:i") . " - VIP status removed by System.n" . $modcomment;

       $modcom = sqlesc($modcomment);

       SQL_Query_exec("UPDATE users SET class = '2', donor = 'no', donoruntil = '0000-00-00 00:00:00', modcomment = $modcom WHERE id = $arr[id]");

       SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject, poster) VALUES(0, $arr[id], $dt, $msg, $subject, 0)");

   }

}





donor star an little harder depends on what you using to display icons like vip, warned and what not aka using the function some made called class_user

Edit: the class_user function from https://www.torrenttrader.org/topic/17452-class-colors-function-for-208/ is easy to modify to show if donor..

replace


$a ="SELECT class, donated, warned, enabled FROM `users` WHERE username ='".$name."'";



with


$a ="SELECT class, donor, warned, enabled FROM `users` WHERE username ='".$name."'";



then replace


}if($classy[1]>0){



with


}if($classy[1]=="yes"){

[/code]
this is an fixed version of Tiloup's one from a few posts up aka the one with languages..

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

yes its 2.08 and also fixes alot of the show_error_msg not truly erroring out!!!
you could try this in index:

// Display Code
begin_frame("Member of the Month");
echo '<table border="0" cellspacing="0" cellpadding="0" class="forumline" align="left" width=400><tr><td>';
echo "<div align='left'><b><font color=red>Last Months Winner Was</font></b> <br /></div>";
$lastmotmget = SQL_Query_exec("SELECT motm.id, motm.last_winner_points, users.username, users.class FROM motm LEFT JOIN users ON motm.id = users.id WHERE last_winner ='1' && year = " . date("y"));
if (mysql_num_rows($lastmotmget) > 0) {
$lastmotmgot = mysql_fetch_array($lastmotmget);
$lastmotm = $lastmotmgot[0];
$usrwp = $lastmotmgot['last_winner_points'];
// $username_motm = class_user($lastmotmgot['username']); // <-- Use this if you have class_user function
// $username_motm = "<font color='" . get_class_color($lastmotmgot['class']) . "'>" . $lastmotmgot[username] . "</font>"; // Use this if have get_class_color function
$username_motm = $lastmotmgot['username']; // use this if totally stock:(
echo "<div align='left'><a href=account-details.php?id=" . $lastmotmgot[id] . ">" . $username_motm . "</a> with <font color=yellow>" . $usrwp . "</font> points.<br />and won 300 Seed points.<br /> <br /></div>"; // edit this line to reflect your bonus
} //mysql_num_rows($res) > 0
else {
echo "<div align='left'><b><font color='DarkGoldenRod'>There was no Last Months Winner</font></b> <br /></div>";
}
//////////////////////////////////

///// Member of the Month Hack by Biglad //////
/////// Show Current Top 5 ///////
echo "<b><font color=red>Top 5 for ";
echo date(F);
echo "<br /></b></font>";
$sql32 = "SELECT motm.id, motm.points, users.username, users.class FROM motm LEFT JOIN users ON motm.id = users.id WHERE points > '0' && month = " . date("m") . " && year = " . date("y") . " ORDER BY points DESC LIMIT 5";
$mysql_result_motm = SQL_Query_exec($sql32);
if (mysql_num_rows($mysql_result_motm) > 0) {
echo '<table class="ftable" border="0" cellspacing="0" cellpadding="0">';
while ($row_motm = mysql_fetch_array($mysql_result_motm)) {
$id_motm = $row_motm['id'];
$pos = $row_motm["points"];
$usrname = $row_motm['username'];
// $username_motm = class_user($usrname); // <-- Use this if you have class_user function
// $username_motm = "<font color='" . get_class_color($row_motm['class']) . "'>" . $lastmotmgot[username] . "</font>"; // Use this if have get_class_color function
$username_motm = $usrname; // use this if totally stock:(
echo "<div align='left'><tr>";
echo "<td><a href=account-details.php?id=$id_motm>" . $username_motm . "</a></td><td width='70'> - Points <font color='DarkMagenta'>" . $pos . "</font></td>";
echo "</tr></div>";
//echo "<strong><div align='left'><a href=account-details.php?id=$id_motm>".$usrname."</a> - POINTS ".$pos."</strong><br />";
} //$row_motm = mysql_fetch_array($mysql_result_motm)
echo "</table>";
} //mysql_num_rows($mysql_result_motm) > 0
echo '</td></tr></table>';
end_frame();

or code it yourself...
I know works fine on the themes I have and I have close to 90 themes...
just an few shot.. i dont feel like going there all 90.................

could be something to do with your theme.. dont know I cant find that theme test with .. Oh i see now its an paid theme.. oh well..
DNS mangemnt with vps — 2012-12-28 20:29:32 in General Chat
... you should either go with zoneedit or do ALOT of reading on google!!!

http://www.hostingprimer.com/managed-dns/

http://support.godaddy.com/help/category/915/managing-your-dns

be shocked the info you can find..

unless you know what you are doing!!! better of too get an dns managed by someone else...

[size=18px]DNS Service can be very confusing - it is for more advanced users. [/size]
DNS mangemnt with vps — 2012-12-28 18:42:00 in General Chat
you have to edit the dns on godaddy to point to your server.  Personally I find using using http://zoneedit.com/ for my dns is alot simpler then managing it via my place i used to register the domain and its free for the 1st 2 domains or something:)  Once you signup with zoneedit then just change the dns once to the ones zoneedit gives you at godaddy and then use zoneedit control panel to setup the domain pointing to the ip.. Its simpler lol incase you change vps providers.
biggest thing i noticed if the ncode_imageresizer.js thing from the 1st post is not loading in your theme then does nothing!!! I thought I was using an lightbox addon or something but it was for something else.. come to find out it was just this.. I know the code works fine.... Maybe your image is too small to be resized. The default code in the 1st post is like 640 or something.. An bit to big if you ask me LOL... 400 might be better option, look at the 1st post of this topic to see what I mean.. And also you have to have the css in every theme too.. I know it works I made an test image1 it was something like 1200x800 or something LOL and it resized fine.

I like said in another post you might have to move the js from scripts to js or something and then call from there.. Some servers/os or what ever blocked scripts dir from being able to be used

this in header.php of your themes works fine.


<script type="text/javascript" src='<?php echo $site_config["SITEURL"];?>/js/ncode_imageresizer.js'></script>
<script type="text/javascript">
<!--

NcodeImageResizer.MODE = 'newwindow';
NcodeImageResizer.MAXWIDTH =320;
NcodeImageResizer.MAXHEIGHT = 200;
NcodeImageResizer.Msg1 = 'Click this bar to view the full image.';
NcodeImageResizer.Msg2 = 'This image has been resized. Click this bar to view the full image.';
NcodeImageResizer.Msg3 = 'This image has been resized. Click this bar to view the full image.';
NcodeImageResizer.Msg4 = 'Click this bar to view the small image.';
//-->
</script>
again copy the ncode_imageresizer.js from scripts/ to js/

that is if its right before </head>

On my dev site it was not working cause the js was not loaded.. Might just be your issue.. You could also attach or image link your image and I could test that LOL!!!

Once you get it working you could mess around with the resize numbers in the header.php until you like it LOL!!

For an testing reason I would only modify 1 theme that you currently using right now.. Then once works, copy the modications into your other themes if you have them..
its because image1 and image2 dont use the function to display the image..

in torrents-details

changing


if ($row["image1"] != "" OR $row["image2"] != "") {
if ($row["image1"] != "")
$img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' width='150' border='0' alt='' />";
if ($row["image2"] != "")
$img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' width='150' border='0' alt='' />";
print("<center>". $img1 . "  " . $img2."</center><br />");
}


to


if ($row["image1"] != "" OR $row["image2"] != "") {
if ($row["image1"] != "")
   $img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' border='0' alt="" onload="NcodeImageResizer.createOn(this);"/>";
if ($row["image2"] != "")
   $img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' border='0' alt="" onload="NcodeImageResizer.createOn(this);"/>";
   print("<center>". $img1 . "  " . $img2."</center><br />");
}

should fix it, i am not 100% sure lol i use the lightbox mod myself.

Edit: Seems to work atleast for me LOL!!!

my guess you got some weird mysql version that dont allow joins... good luck using true 2.08+ stuff...

having 200000000000 querys just to do the same thing as 1 join is so lame and old and bad on server load!!!!

either that or you messed up some place in the adding to the db and its adding an 0 for the id number or something.. GOD knows!!!
i dont get it.. you using 2.08?? if not call someone else that cares:)

you could try.. dont know why that would make an difference thought maybe you using winblows or something...

change

echo "<td><a href=account-details.php?id=$id_motm>" . $username_motm . "</a></td><td width='70'> - Points <font color='DarkMagenta'>" . $pos . "</font></td>";
to


echo "<td><a href=account-details.php?id=".$row_motm['id'].">" . $row_motm['username'] . "</a></td><td width='70'> - Points <font color='DarkMagenta'>" . $pos . "</font></td>";



my other guess is you did not drop the old table if had it



DROP TABLE IF EXISTS `motm`;


table totally changed!!! the old way he had it before was lame due to not tracking year...

I tried my original version on every theme I got and its fine!!!
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728