Current time: 05-23-2012, 02:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forum username is incorrect!
08-29-2011, 04:22 AM
Post: #1
Forum username is incorrect!
Hi,
I've entered correct MySQL informations in the P2H forums section of my THT site. But when I try to register a P2H account using the Order Form, at the step where it asks for my forum username and password, I entered the correct username and password, but it shows "Forum username is incorrect!"

How do I fix this? Thanks.

PS: Im using SMF Forum.
Find all posts by this user
Quote this message in a reply
08-29-2011, 05:53 AM (This post was last modified: 08-29-2011 06:24 AM by vengenz.)
Post: #2
RE: Forum username is incorrect!
Ok, I found the fix, here it is:

Find these lines in includes/types/p2h.php
Code:
case "smf":
                $result = mysql_query("SELECT * FROM `{$prefix}members` WHERE memberName = '{$fuser}'", $this->con);
                if(mysql_num_rows($result) == "0") {
                    return 3;
                }
                else {
                    $member = mysql_fetch_array($result);
                    if(sha1(strtolower($member['memberName']) . $fpass) == $member['passwd']) {
                        if($member['posts'] >= $signup) {
                            return 1;
                        }
                        else {
                            return 0;
                        }
                    }
                    else {
                        return 4;
                    }
                }
                break;

And replace memberName with member_name at:

Code:
`{$prefix}members` WHERE memberName = '{$fuser}'"
and
Code:
if(sha1(strtolower($member['memberName']) .

Hope this helps someone out there Big Grin

Another error occured, this time on Step 5, theres nothing shown on the page and the Next button is disabled. FYI, the WHM server is different with my web host server that I used to install THT. Should I still use 'localhost' on the Add Server page or should I use the WHM server IP?

Thx in advance.
Find all posts by this user
Quote this message in a reply
08-29-2011, 08:51 PM
Post: #3
RE: Forum username is incorrect!
I'll verify this fix and then patch it in subversion. Thanks!

Also, you should only use "localhost" for your WHM server if your WHM server is actually on the same server as THT.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
08-30-2011, 10:49 AM
Post: #4
RE: Forum username is incorrect!
(08-29-2011 08:51 PM)Kevin Wrote:  I'll verify this fix and then patch it in subversion. Thanks!

Also, you should only use "localhost" for your WHM server if your WHM server is actually on the same server as THT.

Thanks for the reply, I have entered the correct details but when it comes to step 5, theres nothing written on it, its just blank. Sad
Find all posts by this user
Quote this message in a reply
08-30-2011, 02:04 PM
Post: #5
RE: Forum username is incorrect!
here's the screenshot:
[Image: w8nckkd6w8.png]
Find all posts by this user
Quote this message in a reply
09-01-2011, 08:19 PM
Post: #6
RE: Forum username is incorrect!
Hmm. A PHP error is probably occurring somewhere down the line but isn't reporting it.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
09-03-2011, 03:10 PM
Post: #7
RE: Forum username is incorrect!
Woah, I think I install THT more than 50 times Sad Still couldn't get it working, changed to iPanel eventhough it does not support smf, I'll have to code my own script
Find all posts by this user
Quote this message in a reply
09-04-2011, 10:49 AM
Post: #8
RE: Forum username is incorrect!
I have the same error you fixed but with the user password being incorrect. I'm using mybb but do not know what to change. Could anyone help?

YouTube mp3 Download
Find all posts by this user
Quote this message in a reply
09-21-2011, 08:21 AM
Post: #9
RE: Forum username is incorrect!
Forum username is incorrect! Hi, I've entered correct MySQL informations in the P2H forums section of my THT site.


book-printing-services
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2011, 08:28 AM
Post: #10
RE: Forum username is incorrect!
Don't hold your breath. You won't get any help here, been waiting ages for a reply so I just moved to ipanel.

YouTube mp3 Download
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)