Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Member_Approval_v1.0


skarra
 Share

Recommended Posts

This module will allow administrators to approve members before they have access to the shopping cart facilities.

 

Customers will follow the usual signup routine, whereby on completion the site administrator receives an e-mail notifying that a new customer has signed up.

 

The customer can then be approved or declined through the Administration panel.

 

http://www.oscommerce.com/community/contri...ons,1339/page,4

 

A thanks to Steve Kemp who supplied me with the basis of this code a while ago.

 

I have been knocking this together most of the afternoon so I am hoping there no mistakes in my haste to get something up. :lol:

 

Dave

Link to comment
Share on other sites

  • 4 weeks later...

This looks like a great contribution. Is it supposed to work with MS2? It looks like there are some differences. (if it doesnt, any hints?)

 

Thanks,

 

Walt

Link to comment
Share on other sites

Someone help, please.

 

Ive installed this contribution onto 2.2MS2. But there appears to be no create_account_process.php file in the new version of OSC.

 

So, where the instructions said to modify create_account_process.php, I found similar code in create_account.php and made the modifications there.

 

This doesnt appear to have worked. :)

 

The following is the error I'm getting:

 

osc_error_small.jpg

 

A larger copy is located at http://www.mindfieldmedia.com/error/osc_error.jpg, just in case you cant read the above.

 

It reads "Fatal error: Call to undefined function: tep_array_merge() in /home/***/public_html/catalog/admin/members.php on line 88

 

Does anything come to mind when looking at this? I can post the modified code, section by section if need be. There appears to be only two or three problem areas, but I'm not a great programmer (yet!) so I cant be sure. There may also be an issue with the login.php file, but one thing at a time.

 

Thanks for any help!

 

Walt[/url]

Link to comment
Share on other sites

Hey, I found a post in the forums that the file tep_array_merge was renamed to 'array_merge'.

 

So I went into members.php and changed two instances of the file to the new file name. Its too early to say everything is fixed, but Im no longer getting the error posted above.

 

Now to play around with this and try to break it again.

 

Walt

Link to comment
Share on other sites

I can create accounts and activate them through the admin. Works great!

 

However, right after signing up, I think this is supposed to return me to the main page, but not log me in. Right? The problem is that it doesnt do this. Im logged in when I first sign up and I can order stuff.

 

Everything else seems to be functioning. Once you log OUT, you cant log back in with your password until its approved through the admin.

 

Ideas? (or am I just talking to myself?)

 

Walt

Link to comment
Share on other sites

  • 1 year later...

Hi all,

 

I'm using the member approval mod by David beck, but I'm having a mare of a time trying to get it working.

 

Basically followed the instructions to the letter, but when a new user tries to sign up they just get a blank page instead of the signup form. The rest of the mod works fine.

 

I've done something wrong here, I just can't figure it out!

 

As well as the approval mod, I also have the login code on all relevant pages, so people can't view any products unless they login.

 

Please help!!

Link to comment
Share on other sites

  • 1 year later...

I have tried adding this mod (Member Approval 1.5). Followed instructions to the T and now can even log in to the admin area. Not sure where to go from here. Can someone help with fix?

 

Warning: main(includes/classes/navigation_history.php): failed to open stream: No such file or directory in /home/****/public_html/catalog/admin/includes/application_top.php on line 126

 

Warning: main(includes/classes/navigation_history.php): failed to open stream: No such file or directory in /home/****/public_html/catalog/admin/includes/application_top.php on line 126

 

Warning: main(includes/classes/navigation_history.php): failed to open stream: No such file or directory in /home/****/public_html/catalog/admin/includes/application_top.php on line 126

 

Fatal error: main(): Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/******/public_html/catalog/admin/includes/application_top.php on line 126

 

The file is there. I checked!

 

my luck it will probably something really stupid easy to fix! :-"

 

none of the file changes have anything to do with navigation_history.php

 

Ask any questions that may help.

 

Thanks in advance

 

dolly

Link to comment
Share on other sites

I removed the member approval hack and I am still getting the error. :angry:

 

I used winmerge to compare the application top file with another from a site with the same program. There was a big difference.

 

I told you it would be something simple stupid. :-"

 

I uploaded the catalog/includes/application_top.php file over the catalog/admin/includes/application_top.php

 

all better now!!! :lol:

 

thanks anyway! :thumbsup:

Link to comment
Share on other sites

  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...