jCore Modules

Tue, 21 Jul 2009 11:58:02 BST by pijulius, 4330726 views

Shopping / Modules

Tue, 05 Jul 2011 04:11:44 BST by pijulius

Modules are self powered classes that will extend your site to be more powerful and add further features to it like a Photo Gallery and so on.

Member Forms

Tue, 05 Jul 2011 09:06:04 BST by pijulius, 131280 views, Stock: available
Member Forms
Member Forms
Tue, 05 Jul 2011, 13142 views

This module extends your site with user registration/my account dynamic forms allowing you to have guests register on your site. You can customize both forms with any custom fields you want.

Content Codes / Details
Requires jCore ver. 0.8 or above. Extends content codes with:
  • {modules}members{/modules} - display Login/My Account forms
  • {modules}members/login{/modules} - only display Login Form
  • {modules}members/account{/modules} - only display Login/My Account forms
  • {modules}members/registration{/modules} - only display Registration Form
To logout a member just use ?logout=1 in any link you wish
Attachments (click to download)
Members ver. 0.9 (4 KB)
gzip compressed data, from Unix, last modified: Fri Aug 12 09:53:01 2011, 28539 downloads, uploaded on Tue, 05 Jul 2011

Comments (2)

These are broken. No matter what you pick they will not alternate.

IF you pick the modules in the content options then it only displays that one. So, if you choose "Registration" you expect it to show the register stuff only if you're not logged in. This is not the case, it shows it all the time, regardless.

For instance {module}members{/module} shows the registration stuff 100% of the time and never login or anything, which it should.

It's really hard to use this for a single link to a members page that lets you register or login.

Really loving this CMS, but that, and the inability to have some code that detects if you're logged in or not is killing me.
Sat, 05 Jan 2013 17:41:18 GMT (#280) by Kryten2k35
Hi Kryten,

You're right, registering will be shown even to logged in users as in my opinion registering and updating your account should never be the same page, why would you link users to the registration page to update their accounts? how would they login on the registration page???

But anyway, if you want to show account instead of registration if user is logged in just edit modules/members.class.php and search for function displayRegistration() and right above the line reading $form = new memberRegistrationForm();
add the following code:

if ($GLOBALS['USER']->loginok) {

and that's it.
Mon, 07 Jan 2013 02:29:05 GMT (#281) by pijulius
Only registered users can comment.