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

great stuff thanks very much working like a charm mate, thanks for your help.....

In index.php the code for latest torrents display is as follows, how would the class_user_bbcode be written in there  to have it displat the colors as well?


// latest torrents^M
begin_frame(T_("LATEST_TORRENTS"));^M
^M
print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");^M
^M
if ($site_config["MEMBERSONLY"] && !$CURUSER) {^M
       echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";^M
if($CURUSER["downloadbanned"]=="yes")
               show_error_msg("Error","Your download rights have been taken away. If you feel this was an error then please PM staff.",1);

} else {^M
       $query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent, users.username, users.privacy, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";^M
       $res = SQL_Query_exec($query);^M
       if (mysql_num_rows($res)) {^M
               torrenttable($res);^M
       }else {^M
       ^M
    print("<div class='f-border'>");^M
    print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");^M
    print("<div>");^M
    print T_("NO_UPLOADS");^M
    print("</div>");^M
    print("</div>");^M
^M
       }^M
       if ($CURUSER)^M
               SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");^M
^M
}^M
end_frame();
What can I change here so that the usename is shown in the colors then? This works great except that the name is not shown in the color....


  $new_ajmsg = "New Torrent: ."/torrents-details.php?id=".$id."]".$torrent." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "";

welcome back mate we always loved your help you one of the few always ready to try and solve a problem, hope u stay around this time lol
Doesn't anyone know how to do the above ??
Bitcoin? — 2013-05-20 18:43:53 in General Chat
Definitely interested, will use it if available .....
can I have some help here pls..... this code works perfect up tp the donate amount, but if say it was set to a 100, and that is met, it simply displays the msg "Monthly goal Met !" but I want it to just carry on e.g. 105%, 140% of monthly etc etc ?????

erm... no-one able to help????


<?php
begin_block(T_("DONATE"));
$totalneeded = "200"; //=== set this to your monthly wanted amount
$totalneeded3 ="$".sprintf("%01.2f", $totalneeded);
$month1 = sqlesc(gmdate("m"));
$year1 = sqlesc(gmdate("Y"));
$total_funds1 = SQL_Query_exec("SELECT sum(cash) as total_funds FROM `funds` WHERE month=$month1 && year = $year1");
$arr_funds = mysql_fetch_array($total_funds1);
$funds_so_far = $arr_funds["total_funds"];
$funds_difference = $totalneeded - $funds_so_far;
$Progress_so_far = $funds_so_far / $totalneeded * 100;

$Percent = $Progress_so_far;
$Percent = floor(($Percent) * 100 + .5) * .01;

if($Progress_so_far >= $totalneeded)
$Progress_so_far = "100";
$Progress_so_far2 = $Progress_so_far;
if ($funds_so_far <= 300){
$pic = "images/donate/loadbarred.gif";
$Progress_so_far2 = 20;
}
elseif ($funds_so_far <= 500)
$pic = "images/donate/loadbaryellow.gif";
else $pic = "images/donate/loadbargreen.gif";
if($totalneeded >= $funds_so_far) {
$monthly_goal = "" .round($Progress_so_far)."%";
$monthly_goal22 = " of monthly goal.";
}
else
$monthly_goal = "Monthly goal met! ]";


print("<center><table cellpadding=3 class=main border=0>".
"<td class=row3 align=center><p align=center>"."<table width=175 height=17 border=2><td width=$Progress_so_far2% height=15 background=$pic align=center valign=middle>".
"$monthly_goal</td><td style='padding: 0px; background-image:
url(images/donate/loadbarbg.gif); background-repeat: repeat-x'>".
"$monthly_goal22</td></tr></table> ".
"<a href="donate.php"><img src="images/donate/donate.gif"></a>");

print("</td></tr></table></center>");
end_block();
?>


the main problem I have atm is that the info actually overwrites into/over the next block/frame when I use this..... lol and its the same on IE, Chrome and FF... and my stuff is very up to date.... but its no sweat, I am also playing with the code (time allowing) and as soon as I am happy with it I will also post MY results for TT...

and that end frame I removed before even installing it..... this is a nice touch for site, so I hope to get it right. BTW, marquee scrolling works PERFECTLY on my site, been using it for months for Favourite/Recommended torrents, but for some reason here it doesnt, will try your modified code as well... I also suspect we will have to do some stuff in the css for the newer themes maybe? I mostly use NB-52-v2 (not working right) and the std default theme, (also not right, doesnt put stuff in the right places.)
wow... never woulda guessed that thank you soooo much for the info mate, does that mean I am NOT allowed to try it on v 2.08 and tell others whether  it actually works correctly or not, and when i do GET IT WORKING, DO YOU SUGGEST I post the results or not?

geez....... if we all just followed the pack we'd actually stagnate......
lol doesnt work right on any of my v2.08 themes displays all stuffed lol will have to play with the code a LOt
HERE is my H&R FAQ:



<b><u>What is Hit And Run?</u></b>

<br />

<br />The term "Hit And Run" means very simply, to download a torrent and not seed it back.

<br />

It is an extremely rude thing to do as you are selfishly depriving others the privilege of downloading the same torrent. Removing a finished torrent from your Bittorrent client before it has reached the required stats is a H&R.

<br />

This gesture is prohibited. All download must be set to seeding status in your client for a period of from one to several days, depending on the amounts of data shared on the torrent or the time required for seeding.

<br />

When you complete a torrent you have to seed it for 36 hours and you have 7 days to do it.

After 7 days if your ratio on this torrent <1 or seedtime < 36 hours, you take a H&R.

When you have received 3 H&R, you will be warned.

You then have 7 days to fix the H&R by SEEDING. If you do not do this you WILL be banned .....

If you take 5 H&R (so 2 more while warnings are active) you are banned immediately.

Breaking this rule WILL cause a temporary suspension of your right to download or even permanent suspension of your account.

<br />

Thanks a lot, exactly what I wanted, a permanent add to the site log is a good idea.... and MY DB cannot become too big as I do backups and the clear the current logs regular... it serves my needs perfect, thanks,
Thanks yes, this was a bummer one of my mods regularly donates lol and it kept dropping her to power user again lol
yeah Arctic NOW we rockin...........
here we are Darknova, the only thing you have to change is the corresponding values in your paypal.php, and this line:

<input type="hidden" name="hosted_button_id" value="xxxxxxxxxxxxxxxxxx">

and replace the xxxxxxxxx with yr hosted button id from paypal and it should be good.....

I used Arctic's donate_1.php as the base, it all fits together beautifully....

to make the subs button go to merchant services and create a new button for the subs in paypal....

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

Remember to change the values for the donate amounts etc. in yr Paypal.php as well.....

The only thing I am struggling with here is the code to add so that the "amount donated so far this month" totals are updated correctly, perhaps someone better at php than me can help us there?
Thanks very very much that did the trick mate

:D  :lol:
ok, here is a screenshot of the modified donate page THANK YOU ARCTICWOLF...



if anyone is interested just let me know and I'll post the correct codes here for you.....
I am very happy with this addon, working perfectly in my v2.08....... I did change some stuff, BUT:

I would like to add an option for members to do a RECURRING MONTHLY DONATION .... my members asked for this specifically......

i.e. 1 or 2 euro a month to be done recurringly, automatically until cancelled.......   this must be in addition to the 5, 10, 20 and 30 euro options already available.......

Members will only receive a small GB bonus as in 5 or 10 GB, and a star with a "1" or a "2" in it next to their names......

I give my current code here, pls can someone help?



<?php

// TorrentTrader v2.08

// This file was last updated: 08/April/2012 by ArcticWolf

// Last Update: 11-11-2011

// Orginal Modified by BigMax

// Modified to TT V2.08 by ArcticWolf

require_once('backend/functions.php');

require_once('backend/funds_config.php');

dbconn(false);

loggedinonly();

global $DONATEMAIL,$totalneeded,$site_config;

$nick = ($CURUSER ? $CURUSER['username'] : ('Guest' . rand(1000, 9999)));

$userid = ($CURUSER ? $CURUSER['id'] : (0));

stdhead(T_("DONATE"));

begin_frame(T_("DONATE"));

//Start

//Set GB amount per Donation Amount here [ use same in Paypal.php]

$amount5 = 25; // For 5

$amount10 = 55; // For 10 Etc....

$amount20 = 110;

$amount30 = 170;

//Set the length of time in days[same in Paypal.php]

$length5 = 2;

$length10 = 4;

$length20 = 8;

$length30 = 12;

//Set the Currency Type

$currencytype = 'Euro'; //For Fonts

$currencytype2 = '&euro;'; //For Sign

$currencytype3 = 'EUR'; //Main Currency for Donations

//Set the Class for Donations

$class5 = 'VIP';

$class10 = 'VIP';

$class20 = 'VIP';

$class30 = 'VIP';

//Donate Email

$width = 180; // Change this to control the size of the blocks

//End

?>

<br /></br />

<h2><div align='center'><font size='3' color='orange'><?php echo T_("THANKS_YOU_DONATE"); ?> <?php echo $nick;?></font></div></h2>

<br />

<div align='center'><font size='2'><b> <?php echo T_("SUPPORT_DON"); ?></b></font></div>

<br />

<table width='100%' align='center' border='0' cellspacing='0' cellpadding='10'><tr><td>

<div align='center'>

<table width='90%' align='center' border='0' cellpadding='10'>

<tr>



<? // Start First Box ?>

<td>

<div align='center'>

<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>

<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate1.gif"></img></div></a>

<br>

<div align='center'><b><font color='red' size='3'><?php echo T_("DONATE"); ?> <?php echo $currencytype2;?> 5</font></b></div><br>

<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>

<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length5;?> <?php echo T_("WEEKS"); ?> <?php echo $class5;?> <?php echo T_("STATUS"); ?></b></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount5;?> <?php echo T_("GB_CREDITS_UP"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- 2 <?php echo T_("INVITES_SITE"); ?></div>

<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>

<input type='hidden' name='cmd' value='_xclick'>

<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>

<input type='hidden' name='item_name' value='Server Funds (<?php echo $nick;?>)'>

<input type='hidden' name='no_note' value='1'>

<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>

<input type='hidden' name='amount' value='5'>

<input type='hidden' name='tax' value='0'>

<input type='hidden' name='custom' value='<? echo $userid;?>'>

<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>

<input type="hidden" name="no_shipping" value="1">

<br />

<div align='center'><input type='submit' value='Donate'></div>

</form>

</div>

</div>

</td></tr></tbody></table>

</td>

<? // End First Box ?>

<? // Start Second Box ?>

<td>

<div align='center'>

<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>

<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate2.gif"></img></div></a>

<br />

<div align='center'><b><font color='red' size='3'>Donate <?php echo $currencytype2;?> 10</font></b></div><br>

<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>

<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length10;?> <?php echo T_("WEEKS"); ?> <?php echo $class10;?> <?php echo T_("STATUS"); ?></b></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount10;?> <?php echo T_("GB_CREDITS_UP"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- 4 <?php echo T_("INVITES_SITE"); ?></div>

<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>

<input type='hidden' name='cmd' value='_xclick'>

<input type='hidden' name='amount' value='10.00'>

<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>

<input type='hidden' name='item_name' value='(<?php echo $nick;?>)'>

<input type='hidden' name='item_number' value='1'>

<input type='hidden' name='no_note' value='1'>

<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>

<input type='hidden' name='tax' value='0'>

<input type='hidden' name='no_shipping' value='1'>

<input type='hidden' name='custom' value='<? echo $userid;?>'>

<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>

<div align=bottom>

<br />

<div align='center'><input type='submit' value='Donate'></div>

</div>

</form>

</div>

</td></tr></tbody></table>

</td>

<? // End Second Box ?>

<? // Start Third Box ?>

<td>

<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>

<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate3.gif"></img></div></a>

<br>

<div align='center'><b><font color='red' size='3'>Donate <?php echo $currencytype2;?> 20</font></b></div><br>

<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>

<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length20;?> <?php echo T_("WEEKS"); ?> <?php echo $class20;?> <?php echo T_("STATUS"); ?></b></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount20;?> <?php echo T_("GB_CREDITS_UP"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- 8 <?php echo T_("INVITES_SITE"); ?></div>

<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>

<input type='hidden' name='cmd' value='_xclick'>

<input type='hidden' name='amount' value='20.00'>

<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>

<input type='hidden' name='item_name' value='(<?php echo $nick;?>)'>

<input type='hidden' name='item_number' value='1'>

<input type='hidden' name='no_note' value='1'>

<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>

<input type='hidden' name='tax' value='0'>

<input type='hidden' name='no_shipping' value='1'>

<input type='hidden' name='custom' value='<? echo $userid;?>'>

<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>

<div align=bottom>

<br>

<center><input type='submit' value='Donate'></center>

</div>

</form>

</div>

</td></tr></tbody></table>

</td>

<? // End Third Box ?>

<? // Start Fourth Box ?>

<td>

<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>

<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate4.gif"></img></div></a>

<br>

<div align='center'><b><font color='red' size='3'>Donate <?php echo $currencytype2;

?> 30</font></b></div><br>

<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>

<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length30;?> <?php echo T_("WEEKS"); ?> <?php echo $class30;?> <?php echo T_("STATUS"); ?></b></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount30;?> <?php echo T_("GB_CREDITS_UP"); ?></div>

<div style="margin-left: 8px;text-align: left;font:10px">- 12 <?php echo T_("INVITES_SITE"); ?></div>

<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>

<input type='hidden' name='cmd' value='_xclick'>

<input type='hidden' name='amount' value='30.00'>

<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>

<input type='hidden' name='item_name' value='(<?php echo $nick;?>)'>

<input type='hidden' name='item_number' value='1'>

<input type='hidden' name='no_note' value='1'>

<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>

<input type='hidden' name='tax' value='0'>

<input type='hidden' name='no_shipping' value='1'>

<input type='hidden' name='custom' value='<? echo $userid;?>'>

<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>

<div align=bottom>

<br>

<div align='center'><input type='submit' value='Donate'></div>

</div>

</form>

</td></tr></tbody></table>

</td>

<? // End Fourth Box ?>

</td></tr></table>

</tr>

</table>

<br><br>

<table align='center' width='100%' border='0' cellspacing='1' cellpadding='10'>

<tr>

<td align='center' width='100%'><b><font color='orange' size='2'><?php echo T_("-IMPORTANT-"); ?></font></b></td>

</tr>

<tr>

<td align='center'>

<font size='2'><?php echo T_("PM_ADMIN_DON"); ?> <a href="mailbox.php?compose&id=1"> &nbsp;<font size=2><b><?php echo T_("HERE"); ?></b></font>&nbsp; </a><?php echo T_("CONFIRMED_ACCOUNT"); ?></font>

<br></br>

</td>

</tr>

</table>

<? // End Everything ?>

<?php

end_frame();

stdfoot();

?>




If you need any other files or info pls just tell me

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6504"]paypal.php[/url]
Is this meant to completely replace the code we already have in index.php?

lol I hope so, cos thts what I did, and this seems to have solved the problem spank !!!!!!

Great mod on the code, especially love the addition of the cat headers........

keep it up, u good !!!    :D

LOL..... 1 problem thuogh.... its good in FF and waterfox...... doesnt work in chrome???? see screenshot.....



just sits there and its right offf the page??

pls advise???
Issues, not refreshing in Firefox.... nice mod, if the firefox and waterfox issues can be addressed, could be nice to have....

However having to press F5 every time u come back into Home page just doesnt work...... removed.......
i use adblock..... zero ads
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