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

"shadows, post: 66789, member: 20311":

Yes, that works!

Now 2 bugs left:
1. After code is used, it should be removed automatically from the inviter list and reduce -1 to invites.
2. Delete and recreate code is still bugged you can recreate as many as you want codes because deleting doesn't reduce -1 to your invite list. It just let you recreate a new code.

Deleting a code gives you the code back that's what it's supposed to do confirming a pending member removes the created code after you have confirmed them and you don't get the invite back the invites are already reduced because you've created a code ie -1 invite or am I not understanding your post
ok ive got it working looks like the ajshoutbox code was cuasing it to bug out remove it from account-signup.php

  @SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'System', 'New User:".$wantusername." ')");


it working for me if it works for everyone else ill clean up the code a bit and post in completed ive found one bug that needs sorted
Turn it in to a block and add it to folder blocks in your website root folder
<?php
your varibles here ie $var =
begin_block(T_("YOUR_BLOCK_NAME"));
you're print/echo code here
end_block();
}
?>

then load the block from block management in admincp
if you need help post the code for the first cams script
The error is that in take-confirm line 6 the code is supposed to update the SQL table invites and field confirmed to yes then the code is no longer active ie disappears from bottom  if it does not you can use the code over and over and everybody can sign up with that code over and over that's the only error I'm assuming shadows issue is the same the implode string on line 6 is giving invalid arguments ie the inviteid isn't getting picked up from the implode string
"MicroMonkey, post: 66773, member: 311":

Is it just me, or are these wrong for everybody?
<form method="post" action="account-signup?takesignup=1">

should be
<form method="post" action="account-signup.php?takesignup=1">

I see a few of these errors in the code I have

Lol i don't need .PHP at the end of my urls I have nginx and use clean urls ie index not index.php account not account.php etc sorry forgot all about it tbh
"MicroMonkey, post: 66770, member: 311":

im stupid. How do I test this mod? lol I uploaded the files after I backed up the originals, but I dont know how to test it. Do I have to set the site to "invite only" in the config? Shouldn't it use this
if (!$site_config['ENABLEINVITES'])

instead of this
if (!$site_config['INVITEONLY'])

Just wondering

Yes set to invite only and once logged in navigate to invite.php the issue is in take confirm.php on line 6 ?
what page and line num  is the implode error your getting [USER=20311]@shadows[/USER] ?
lol i have hence why i know that one issue lies in takeconfirm.php the sql query isnt updating the field confirmed to yes but the other sql query updates users col and filed to confirmed which leads me to think that the

SQL_Query_exec("UPDATE invites SET confirmed='yes' WHERE inviteid IN (" . implode(", ", $_POST['conusr']) . ") AND confirmed='no'");

isnt matching up with the inviteid  in the implode and $post statment ['conusr']
so confirmed never gets updated to yes and i have no idea why ???
btw you may want to move this topic to mods in progress  :ROFLMAO:
im scartching my head on this one been out the game too long. the only thing that isnt doing what it should is takeconfirm.php isnt updateing the confirmed field in invites to yes its still saying no which makes the script think that the user is still pending which means the invite code dose not get deleted like it should  :unsure:
lol it was
missing double quotes on line 162 invite.php $GLobals["DBconnector"]  my bad  :rolleyes: but correcting both issues still dose not fix it ill keep at it
ive updated the zip file in first post and fixed the mistakes
problem is mate this mod was made for tbdev about 10 years ago i modded it to work with v2.05 nearly 9 yrs ago wow takes me back
needs a proper updating to newest version and im rusty as get out ill tinker with it if i get it ill post but wont be till weekend need to set a dev site up etc
and you said you had a
2. After signup, it shows "Database Error. Please report this to an administrator." (the account is being created)
and theres nothing in the sqlerr log in admincp?
whats the db error your getting ? and what version of tt are you using ?
and yeah ive just noticed its not deleteing the invite after confirm user mmm was working this morning
tbh i dont have alot of time to debug but im sure its to do with the $id = (int) $_GET["id"]; (not getting the id )
if anyone wants to give a hand its been a number of years since i messed with code
this works on v2.08 heavy modded and php 7.2  php7.2-fpm and maria 10.4 dont know about version ttv3 but should if ive missed anything let me know if anyone wants to improve go on ahead and if someone wants to add syles etc

edit ive removed the files as they were using clean urls and would not work correctly
Did not code this myself so creds to the creator found this on an old dev backup this replaces the default polls block which in my opinion is 'bone'  so here's what it looks like



Open up backend/functions.php

Find:

function stdfoot() {
   global $site_config, $CURUSER, $THEME, $LANGUAGE;
   require_once("themes/" . $THEME . "/footer.php");
   mysql_close();
}   Below Add:

function get_poolsleft($i)
{
global $site_config, $THEME;
if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar1-l.png border="0">";                                                                            
if ($i == 1 || $i == 6 || $i == 11 || $i == 16) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar2-l.png border="0">";                                                                          
if ($i == 2 || $i == 7 || $i == 12 || $i == 17) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar3-l.png border="0">";
if ($i == 3 || $i == 8 || $i == 13 || $i == 18) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar4-l.png border="0">";
if ($i == 4 || $i == 9 || $i == 14 || $i == 19) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar5-l.png border="0">";  
return "";
}


function get_poolsmiddle($i)
{
global $site_config, $THEME;
if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar1.png border="0"";                                                                          
if ($i == 1 || $i == 6 || $i == 11 || $i == 16) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar2.png border="0"";                                                                            
if ($i == 2 || $i == 7 || $i == 12 || $i == 17) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar3.png border="0"";
if ($i == 3 || $i == 8 || $i == 13 || $i == 18) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar4.png border="0"";  
if ($i == 4 || $i == 9 || $i == 14 || $i == 19) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar5.png border="0"";  
return "";
}

function get_poolsright($i)
{
global $site_config, $THEME;
if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar1-r.png border="0">";                                                                          
if ($i == 1 || $i == 6 || $i == 11 || $i == 16) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar2-r.png border="0">";                                                                            
if ($i == 2 || $i == 7 || $i == 12 || $i == 17) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar3-r.png border="0">";
if ($i == 3 || $i == 8 || $i == 13 || $i == 18) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar4-r.png border="0">";
if ($i == 4 || $i == 9 || $i == 14 || $i == 19) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar5-r.png border="0">";        
return "";
}Open up your themes css and add:

.pollsanswer {
background:#D2DDEA;
color:#000;
border: 1px solid #486386;
}
.pollspercent {
background:none;
color:#ff0000;
border-bottom: 1px solid #486386;
borderleft:1px solid #486386;
border-right: 1px solid #486386;
}
Upload attached polls folder to themes/your_default_theme/images and add polls_block to your blocks folder

you can add/delete surveys/polls from the current system in admincp

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7190"]polls.zip[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7192"]polls_block.php[/url]
VPS host for trackers — 2013-08-27 16:54:34 in General Chat
i use www.hosteen.co.uk you can host torrents on there offshore packages they start from £12 had no problems in over a year  :D
hello im looking for a cheap coder for various ongoing projects please message me if interested  :)
you sir are  the littlest fish in a very big pond little fish shouldnt be bold all i was saying was your claim to be the biggest TT site is poppycock

and as far as i know dogs "bark" shit "smells" but you would know since you talk a lot of it ;)
lol i have over 30,0000 torrents verified dont mean shit if you havent got the users to download them ;)
"ErvD, post: 82074":
you have a head and hands can do  :)

ok so basicly do it yourself i get ya not as if i havent tried but aye ho  :rolleyes:  ill keep on truckin on :P
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