kester Posted May 7, 2003 Posted May 7, 2003 Hello, I was wondering if anyone new how I could prevent the initial create_account_success from starting a session logged in. Instead I would like the create_account_success to show the login screen so that the user has to manually log in to the the site. Thanks in advance, k
kester Posted May 8, 2003 Author Posted May 8, 2003 anyone?? i need help pls. Control-Login contribution was added to my site so that new users wouldn't be able to login unless an administrator aproved the registration manually in the admin panel. The problem is that when they register, the session is activated without needing admin aproval. If they try to login again later on, (still pre aproval), they are informed of the policy of necessitating aproval. --- Also, regarding the same contribution, the status buttons in the admin don't seem to want to work. They work in the banners section, but not for customer_status. Anyone experience these difficulties at all? I am using the April 9th, 2003 snapshot.
M@rcel Posted May 8, 2003 Posted May 8, 2003 TRY this: In catalog/create_account_process.php Find: tep_session_register('customer_id'); tep_session_register('customer_first_name'); tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); and replace with: // tep_session_register('customer_id'); // tep_session_register('customer_first_name'); // tep_session_register('customer_default_address_id'); // tep_session_register('customer_country_id'); // tep_session_register('customer_zone_id'); Next find: tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); and replace with: tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); Greetings from Marcel |Current version|Documentation|Contributions|
kester Posted May 8, 2003 Author Posted May 8, 2003 Also, regarding the same contribution, the status buttons in the admin don't seem to want to work. They work in the banners section, but not for customer_status. Anyone experience these difficulties at all? I am using the April 9th, 2003 snapshot. Just posting the other open question..
M@rcel Posted May 8, 2003 Posted May 8, 2003 Glad I could help, thanks for the feedback :D I can't help you with your second question, I don't know this contribution. Greetings from Marcel |Current version|Documentation|Contributions|
kester Posted May 9, 2003 Author Posted May 9, 2003 second question fixed... just a problem calling the field in the proper query (i called it in the top query in customers.php instead of the one about 12 lines above the status controller).
Akshara Posted May 20, 2003 Posted May 20, 2003 the status buttons in the admin don't seem to want to work. I can't for the life of me get this to work, and I've been messing for several hours now. I tried moving it down to the area you refer to, but I must be putting it in the wrong location. The admin buttons don't change the status nor the color. Has anybody gotten this to work right? And could you explain how? Thank you.
gleeloyd Posted May 22, 2003 Posted May 22, 2003 the status buttons in the admin don't seem to want to work. From kesters last post I figured it out. The customers_status column needs to be added to the query above where the data gets used. In admin/customers.php Find this: $customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, a.entry_country_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . $search . " order by c.customers_lastname, c.customers_firstname"; Change to this: $customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_status, a.entry_country_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . $search . " order by c.customers_lastname, c.customers_firstname"; Gary
kester Posted May 24, 2003 Author Posted May 24, 2003 you indicated in a recent post you fixed the problem with the status buttons. can you please post a more complete explanation? Yes.. you got it gleeloyd, I got here as soon as I could. Make sure that if you added the c.customers_status field to the query at the top of the php file, remove it. It is not required and adds unecessary time to the process (not much, but always good practice -- it all adds up in the end).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.