Quote Originally Posted by DJHicks View Post
Hi.

I want to manually add customers rather then have them sign up themselves.

I made a backup of the tpl_login_default and then removed the following code...

Code:
<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);" id="createAccountForm"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<fieldset>
<legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>

<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>

<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>

</fieldset>

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
</form>
This means my site just runs with a simple log in screen.... when adding new customers I quickly rename the tpl_login_default to tpl_login_default1 or something and then change the backup (original) file back to the tpl_login_default and then enter the customer details and submit then change file names back so sites just a log in page.

Its a pain in the ... but it works...

I was wondering what I would need to do to be able to simply change login on the main page to something totally random and beable to access the original login page to reg users.

As it is now going to home goes to domain/index.php?main_page=login

How could I get it so that I could manually enter say domain/index.php?main_page=onlymeregyou

I have tried copying the login folder in modules/pages and renaming... adding the name to the filenames list and such but theres more i'm missing and trying to figure out.

Could anyone help at all? Thank you very much in advance!
Okay, so primary thing is, why the manual entry part? Why not just let them enter, but you have to "authorize" them or similar?

Secondly, if you recreate the page so that it is still accessible via the internet under some "obscure" name, you're just asking for trouble/people to still end up on it doing what you were trying to avoid (allowing guest to fill it out.)

So that leads to an option that if you don't want people to be able to fill out the information themselves and you want to spend your time filling it out instead of something else, then I would suggest an admin plugin that allows adding/creating customers.

If you still want to go down the path of some super secret place that only know about that allows you to enter the data to create an account, that upon completion will have all of the access rights that are normally provided to a guest of your site, then I suggest looking into how to implement define pages and of course the other code included in the newly filename scrambled version. Take a look at the requires and includes calls, the referenced file(s) may need to be renamed/copied/relocated/or...