Membership login to admin backend

By (Deleted User) - December 8, 2010

Hi Guys

How do I redirect logged in users to the admin backend (http://www.smesa.co.za/cmsAdmin/admin.php) using the sample login page that I got with the membership plugin?

I've tried this below but it just makes me login again:

$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = 'http://www.smesa.co.za/cmsAdmin/admin.php'; // user gets redirected here after login

Kind regards
Shawn

Re: [smesa] Membership login to admin backend

By Chris - December 8, 2010

Hi Shawn,

Where is your login page? Is it also on http://www.smesa.co.za/?
All the best,
Chris

Re: [chris] Membership login to admin backend

By (Deleted User) - December 8, 2010

HI Chris,

The login page is http://www.smesa.co.za/login.php

Re: [chris] Membership login to admin backend

By (Deleted User) - December 9, 2010

Hi Chris,

Done as requested. Looking forward to hearing back.

regards

Shawn

Re: [smesa] Membership login to admin backend

By (Deleted User) - December 9, 2010

Hi Chris,

Another question: How do you stop spam bots submitting the sample signup form? I managed to setup a fake account just inputting rubbish.

The last thing I want to be doing daily is deleting dozens of spam user accounts.

regards

Shawn

Re: [smesa] Membership login to admin backend

By Chris - December 9, 2010

Hi Shawn,

Jason is looking into the session issue right now.

In my experience, spam bots usually target uncustomizable web software so they can exploit thousands of websites without human input.

I think the simplest way to avoid spammers is to manually approve new members by having your signup form insert new accounts with disabled = 1, and also send an email to someone (such as yourself) to let them know that a new user needs approval.

If this doesn't work for you, another option would be to include a CAPTCHA. We don't have a CAPTCHA plugin, but there are many free PHP CAPTCHA scripts available on the web which could be integrated.

Depending on how much traffic your site gets, spammers might not be an issue at all. It might be more cost effective to simply do nothing until spam becomes a problem.

I hope this helps!
All the best,
Chris

Re: [chris] Membership login to admin backend

By (Deleted User) - December 10, 2010

Hi Chris,

Thanks very much. Please just ask Jason to let me know what pages (if any) he changed so that I don't overwrite the changes. And let me know when he's done then I can carry on working.

If spam does become an issue then we can cross that bridge at a later time.

regards

Shawn

Re: [smesa] Membership login to admin backend

By (Deleted User) - December 10, 2010

Hi Chris,

Just noticed a problem with my RSS which could be caused by something Jason updated:

XML Parsing Error: syntax error
Location: http://www.smesa.co.za/rss/rss1.xml.php
Line Number 3, Column 1:Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/smesacoz/public_html/rss/rss1.xml.php:1) in /home/smesacoz/public_html/cmsAdmin/lib/init.php on line 325
^

Can you look into it for me?

regards

Shawn

Re: [smesa] Membership login to admin backend

By Chris - December 10, 2010

Hi Shawn,

I fixed this by moving this line of code down below "load viewer functions":

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

It works now. :)
All the best,
Chris