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
Invite Code System [v3.0 Port]
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

Unknown User
2019-07-03 21:44:19
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
2019-07-03 22:17:08
GLOBALS IS ALL CAPS. I hope your post was a typo lol
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-07-03 22:27:23
lol it was
Unknown User
2019-07-04 00:19:41
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:
2019-07-04 01:50:02
did everyone run this? just out of stupid curiosity. Because if you didnt, there is no table
Execute this against your database using phpmyadmin or whatever you use. I still havent tested this. Im just looking at the code.
CREATE TABLE `invites` (
 `id` int(10) unsigned NOT NULL auto_increment,
 `inviter` int(10) unsigned NOT NULL default '0',
 `inviteid` int(10) NOT NULL default '0',
 `invite` varchar(32) NOT NULL default '',
 `time_invited` datetime NOT NULL default '0000-00-00 00:00:00',
 `confirmed` char(3) NOT NULL default 'no',
 PRIMARY KEY  (`id`),
 KEY `inviter` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-07-04 03:26:59
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:
Unknown User
2019-07-04 06:42:39
SQL  is the first thing i did. The codes are not delering when used and one code can be used infinite time.

Also it says that implode is an invalid argument i n 7.2
Unknown User
2019-07-04 14:01:29
what page and line num  is the implode error your getting [USER=20311]@shadows[/USER] ?
Unknown User
2019-07-04 14:05:12
"serph, post: 66768, member: 1398":

what page and line num  is the implode error your getting [USER=20311]@shadows[/USER] ?

Warning: implode(): Invalid arguments passed in takeconfirm.php on line 6
2019-07-04 16:10:27
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
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-07-04 16:21:34
"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 ?
2019-07-04 16:26:09
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
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-07-04 16:32:58
"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
2019-07-04 16:33:19
and what is this? in invite.php. What is checkuser.php? lol
$user = "<td align=left class=$class><a class=altlink href=checkuser.php?id=$arr[id]>$arr[username]</a></td>";

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-07-04 16:34:36
"serph, post: 66774, member: 1398":

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

no problem, just wanted to make sure I wasnt crazy or that my stupid ass dreamweaver wasnt acting like a dickhead again lol
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
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