Page 1 of 1

Registration not working

PostPosted: Wed Jun 07, 2006 4:49 am
Author: setthiscircusdown
My registration is not working. I took it down off the qbar as we are invitationly only but you could still find it on the Login page...now it wont work at all...when you click on it thru any link, it takes you to the profile.php and does nothing. I was thinking it would be easier to reinstall it. <img> but i am not so sure. Can anyone help me out? Thanks

PostPosted: Wed Jun 07, 2006 4:57 am
Author: Adrian Rea
Have you tried importing it from the backup menus in qbar admin?

A

PostPosted: Wed Jun 07, 2006 7:28 am
Author: setthiscircusdown
Ok i tried that...and nothing happens <img> It cant find it or something....its just takes it to

profile.php?mode=profil&sub=profile_prefer&mod=0

reg not working

PostPosted: Thu Jun 08, 2006 6:17 pm
Author: angisson
http://www.girlfriendshideaway.com/oasi ... e=register

When you go there it goes to the login page..


How do I fix that.. I am not sure what I did.. but I would like to get it fixed...


yesh, I work on the site <img>


Thanks, Chris Allen

PostPosted: Thu Jun 08, 2006 6:51 pm
Author: tmotley

PostPosted: Thu Jun 08, 2006 9:47 pm
Author: angisson
tmotley, Thank you.. but it did not help


I changed it.. and it still goes to the login page.. I am not sure whats wrong with it.

PostPosted: Fri Jun 09, 2006 2:53 am
Author: tmotley
The only other similar issue I found said pretty much the same thing... put the following for your register link in qbar:

profile.php?mode=profil&sub=profile_prefer&mod=0

It looks like that's what you have... <img>

PostPosted: Fri Jun 09, 2006 3:00 am
Author: Adrian Rea
is this the same for all templates?

A

PostPosted: Fri Jun 09, 2006 3:05 am
Author: Adrian Rea
topcs merged

A

PostPosted: Fri Jun 09, 2006 4:18 am
Author: found it
:mrgreen:

edited by found it

PostPosted: Fri Jun 09, 2006 6:02 pm
Author: setthiscircusdown
Um not sure...gonna go look right now A <img>

PostPosted: Fri Jun 09, 2006 6:09 pm
Author: setthiscircusdown
Yes, its that way for both templates i have :'(

PostPosted: Fri Jun 09, 2006 7:58 pm
Author: setthiscircusdown
this is angisson using her account b/c my is f*d at ATM (PM on the way)



anywho.

if you would of looked on the login page.. it does the same thing, I am almost certen its not a Caps issue


Chris Allen

PostPosted: Sat Jun 10, 2006 3:43 pm
Author: angisson
Ok, this is wierd really realyl wierd


I am not sure what the hell si going on.


I know 1.3.2 is different than 1.4.0 but I uploaded profilcp_register.php, and got it working (only with [url=http]this link[/url])

I know, 1.40 does not have that, but it seemed to work out.

Still, anyone know whats wrong with it ? mabe a file missing ?

PostPosted: Mon Jun 12, 2006 7:33 pm
Author: angisson
anyone got an anwser ? <img>

Re: Registration not working

PostPosted: Tue Jun 13, 2006 1:16 am
Author: found it
Hi

I tried to register on the site but as you said it goes to the log in page...as i am already a member of the site I logged in and then it took me to the register page or my edit profile page as I was logged in...

So IMO somewhere you have made it so only logged in users can access the register page and it is just a case of undoing whatever you did as it is not a qmenu issue...

I hope that helps somewhat...

:mrgreen:

PostPosted: Tue Jun 13, 2006 9:31 am
Author: setthiscircusdown
it is something in the login.php??? Because i notice when you click on register, it redirects to login.php




Code: Select all
//  // Allow people to reach login page if  // board is shut down  //  define("IN_LOGIN", true);      define('IN_PHPBB', true);  $phpbb_root_path = './';  include($phpbb_root_path . 'extension.inc');  include($phpbb_root_path . 'common.'.$phpEx);      //  // Set page ID for session management  //  $userdata = session_pagestart($user_ip, PAGE_LOGIN);  init_userprefs($userdata);  //  // End session management  //  #======================================================================= |  #==== Start] [http://phpbb-amod.com] === |  #==== End: ==== phpBB Security ========================================= |    #======================================================================= |      // session id check  if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))  {       $sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];  }  else  {       $sid = '';  }      if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) )  {       if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ) && (!$userdata['session_logged_in'] || isset($HTTP_POST_VARS['admin'])) )       {           $username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';           $password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : '';               $sql = "SELECT user_id, username, user_password, user_active, user_level, user_rank, user_actviate_date, user_expire_date, user_regdate               FROM " . USERS_TABLE . "               WHERE username = '" . str_replace("\'", "''", $username) . "'";           if ( !($result = $db->sql_query($sql)) )           {               message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql);           }               if( $row = $db->sql_fetchrow($result) )           {  #======================================================================= |  #==== Start: == phpBB Security ========================================= |  #==== v1.0.2 =========================================================== |  #====           if (md5($password) != $row['user_password'])               phpBBSecurity_InvalidLogin($row['user_id']);                                               phpBBSecurity_CheckTries($row['user_id']);  #====  #==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |  #==== End: ==== phpBB Security ========================================= |    #======================================================================= |               if( $row['user_level'] != ADMIN && $board_config['board_disable'] )               {                   redirect(append_sid("portal.$phpEx", true));               }               else               {                   if( md5($password) == $row['user_password'] && $row['user_active'] )                   {                       lw_check_membership($row);                       $autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE : 0;                           $admin = (isset($HTTP_POST_VARS['admin'])) ? 1 : 0;                       $session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE, $autologin, $admin);                           if( $session_id )                       {  #======================================================================= |  #==== Start: == phpBB Security ========================================= |  #==== v1.0.2 =========================================================== |  #====                                               phpBBSecurity_ResetTries($row['user_id']);  #====  #==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |  #==== End: ==== phpBB Security ========================================= |    #======================================================================= |                           $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";                           redirect(append_sid($url, true));                       }                       else                       {                           message_die(CRITICAL_ERROR, "Couldn't start session : login", "", __LINE__, __FILE__);                       }                   }                   else                   {                       $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';                       $redirect = str_replace('?', '&', $redirect);                           if (strstr(urldecode($redirect), "n") || strstr(urldecode($redirect), "r"))                       {                           message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');                       }                           $template->assign_vars(array(                           'META' => "<meta>")                       );                           $message = $lang['Error_login'] . '<br><br>' . sprintf($lang['Click_return_login'], "<a>", '</a>') . '<br><br>' .  sprintf($lang['Click_return_index'], '<a>', '</a>');                           message_die(GENERAL_MESSAGE, $message);                   }               }           }           else           {               $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "";               $redirect = str_replace("?", "&", $redirect);                   if (strstr(urldecode($redirect), "n") || strstr(urldecode($redirect), "r"))               {                   message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');               }                   $template->assign_vars(array(                   'META' => "<meta>")               );                   $message = $lang['Error_login'] . '<br><br>' . sprintf($lang['Click_return_login'], "<a>", '</a>') . '<br><br>' .  sprintf($lang['Click_return_index'], '<a>', '</a>');                   message_die(GENERAL_MESSAGE, $message);           }       }       else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] )       {           if( $userdata['session_logged_in'] )           {               session_end($userdata['session_id'], $userdata['user_id']);           }           if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))           {               $url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);               $url = str_replace('&', '&', $url);               redirect(append_sid($url, true));           }           else           {               redirect(append_sid("portal.$phpEx", true));           }       }       else       {           $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";           redirect(append_sid($url, true));       }  }  else  {       //       // Do a full login page dohickey if       // user not already logged in       //       include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx);        $jr_admin_userdata = jr_admin_get_user_info($userdata['user_id']);            if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && (!empty($jr_admin_userdata['user_jr_admin']) || $userdata['user_level'] == ADMIN)))         {           $page_title = $lang['Login'];           include($phpbb_root_path . 'includes/page_header.'.$phpEx);               $template->set_filenames(array(               'body' => $body_tpl . 'login_body.tpl')           );               if( isset($HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) )           {               $forward_to = $HTTP_SERVER_VARS['QUERY_STRING'];                   if( preg_match("/^redirect=([a-z0-9.#/?&=+-_]+)/si", $forward_to, $forward_matches) )               {                   $forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1];                   $forward_match = preg_split('[?|&]', $forward_to);                       if(count($forward_match) > 1)                   {                       $forward_page = '';                           for($i = 1; $i <count>assign_vars(array(               'USERNAME' => $username,                   'L_ENTER_PASSWORD' => (isset($HTTP_GET_VARS['admin'])) ? $lang['Admin_reauthenticate'] : $lang['Enter_password'],               'L_SEND_PASSWORD' => $lang['Forgotten_password'],                   'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),                   'S_HIDDEN_FIELDS' => $s_hidden_fields)           );               $template->pparse('body');               include($phpbb_root_path . 'includes/page_tail.'.$phpEx);       }       else       {           redirect(append_sid("portal.$phpEx", true));       }      }      ?>

Re: Registration not working

PostPosted: Tue Jun 13, 2006 10:56 am
Author: found it
hi

I do not know what is going on with that file but it shouldnt have a space between each line....not that it will make any diffearnce but a nightmare to find code....

as a suggestion have you thought of uploading another copy of login.php to see if it still happens...you can save the old one to your comp and any mods you have added involving that file can be added....

i will try and sort out thias file so i can compare it.....

:mrgreen:

PostPosted: Tue Jun 13, 2006 2:21 pm
Author: setthiscircusdown
I tried uploading a fresh copy and got all kinda errors [flash=,:gyhq6jgt]http://www.girlfriendshideaway.com/oasis/images/smiles/angst.gif[/flash:gyhq6jgt]

Re: Registration not working

PostPosted: Tue Jun 13, 2006 3:56 pm
Author: found it
What modifications have been done to your site as it will be easier to pinpoint
what is going on..

:mrgreen:

PostPosted: Tue Jun 13, 2006 5:07 pm
Author: setthiscircusdown
Let's see...

I know i had a registration ip cature, and I think that Angisson tried installing the invite only mod, and that was when it started acting up but I am not sure about the last part <img>

Re: Registration not working

PostPosted: Wed Jun 14, 2006 12:57 am
Author: found it
I will have a look later today...

:mrgreen:

Re: Registration not working

PostPosted: Wed Jun 14, 2006 5:46 pm
Author: Threat009
I had 2 problems w/this. First, I was brought to the login page. Changing the uri to the one below fixed it

profile.php?mode=profil&SUB=profile_prefer&mod=0

default, the only difference is sub lower case goes to SUB upper case

Second problem was it kept bringing me to a blank page. If that happens you should check the overall_header.tpl and look for the following code.

Code: Select all
{QBARS}<a></a><table><tr><td><table><tr><td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><END><td>     </td></tr></table>{QMENUS}<Added><table>   <BEGIN>   <tr>     <td><span> {L_LW_EXPIRE_REMINDER}</span></td>   </tr>   <END></table><END>

The code above will vary from theme to theme, however if you don't set it up right, the register page will keep taking you to a blank page. Why? who knows :D

PostPosted: Fri Jun 16, 2006 7:35 am
Author: setthiscircusdown
I tried the first one threat, and it still does the same thing...the 2nd one I am not sure because i never got a blank page...it just more or less refreshed the login page

I really hope someone can help me...I would like to have a contest and cant until that is fixed... pleeeeeeeeeease [flash=,:14zwr7g0]http://www.girlfriendshideaway.com/oasis/images/smiles/beg.gif[/flash:14zwr7g0]

Re: Registration not working

PostPosted: Mon Jul 03, 2006 9:11 pm
Author: Airborne328
Okay guys. I have installed many of these IMMODS for myself and countless others. Through your help and my headaches, I have always pulled them off.

I find myself again stumped.? :(


editAfter trying different themes, I am seeing this is NOT a theme issue but an IMMOD issue, which probably makes my situation worse. <!-- s]http://www.combatlifesavers.us/forum/images/register.jpg[/flash:neid012k]

PostPosted: Tue Jul 04, 2006 10:23 pm
Author: Airborne328
bump...

Re: Registration not working

PostPosted: Wed Jul 05, 2006 12:09 am
Author: Helter
I thought I had already fixed this. Ill have to check the dl again.
copy your template/fisubice/profilcp folder from fisubice to Polished Red

PostPosted: Wed Jul 05, 2006 9:50 am
Author: Airborne328
Thats a problem also, I through ACP-GenAdmin-Config. Changed the theme back to default, fisubice and got the same problem. Even with BB-Tech, I have that error.

That why I think maybe its a install issue. Don't know, just tired of this site building taking so long

Thanks for your help and time in looking at this matter, Ill do what you requested and report back.

Re: Registration not working

PostPosted: Wed Jul 05, 2006 3:03 pm
Author: Helter
have you added any additional mods to your site?

Re: Registration not working

PostPosted: Wed Jul 05, 2006 7:45 pm
Author: Airborne328
Not one..

Site is default pure IMMOD 1.4

I am thinking, that I might as well just try and delete all, including database and start again. Don't know what else to do.

Re: Registration not working

PostPosted: Wed Jul 05, 2006 8:49 pm
Author: Helter
Im thinking that it may be an incomplete phpbb update since both 18 and 19 had login issues. before you delete it, try the phpbb_to_IM140 update in the dl section. All the files have been updated to phpbb2.0.21. Just treat your current IM installation as though it were phpBB. dont wory about any sql errors as they will just be telling you that most fields already exist

Re: Registration not working

PostPosted: Wed Jul 05, 2006 8:50 pm
Author: Threat009
I forgot to mention one thing. This may be a server issue. I have installed IM atleast a half dozen times, and never had this problem until I tried to unzip from within the server. If you are going to do a fresh install, I would just suggest unzip the file first and upload the files one by one via ftp. It may sound dumb and will certainly take longer, but I have never gotten this error w/the longer method. This is of course if you have not tried it yet. Hope it works out for you man, really sorry to hear you having this much trouble <img>

Re: Registration not working

PostPosted: Thu Jul 06, 2006 9:20 pm
Author: Airborne328
Okay, I re-uploaded the updated files, and it seemed to haflway fix the issue.

The page loads now, but show all the info for the 2nd of only 3 members already filled in spaces.

So i though I could go into Database and delete the user. Now I have this error and site is now totally unreachable.

I have reuploaded a fresh def_userfuncs.php, what did I do... <img>

General Error
Could not read list informations

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND pa.pic_cat_id = 0)' at line 3

SELECT pa.*, (pa.pic_id) AS _list_key, (pa.pic_title) AS _list_txt, (pa.pic_id) AS _list_img
FROM (phpbb_album AS pa)
WHERE (pa.pic_user_id = AND pa.pic_cat_id = 0)



Line : 511
File : def_userfuncs.php

PostPosted: Thu Jul 06, 2006 9:48 pm
Author: Airborne328
Disregard, I am deleting the database and all files and starting over.