• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Custom Content Module for newbies (my way)
PostPosted: Tue May 30, 2006 4:52 pm 
Hello all

I've recently got some problems to understand how the Custom Content Module works, so here's detailed thread, at my way

Our goal: Create a Team Area with some pages for team group members only.
The members of the team group will be added manually from the administrator or will can register by themselves
(in any case they will have to be activated by the administrator)

Modules to install: CMSMailer, Frontend users, Self Registration, Custom Content.

To install the modules you need just to decompress the files and put the related folders inside the Modules folder of your CMSMS,
then install them from the admin control panel/modules. If you'll be warned right after installation to grant the permissions for the module, activate it under Users&Groups/Group permissions, choosing Admin group and click on the corresponding checkbox.
press Submit to save changes

CMS Mailer module: it's needed to install the Frontend users, so we'll install it first.
Go to the preferences of the module. (exstensions/CMS Mailer) Here follow the instructions in according of your host provider.
You can choose as method to send the emails : mail, sendmail, SMTP. Follow the instructions, and try if all works with the test option in the bottom. (under linux, my best choice has been sendmail )
press Submit

Frontend users: That's the module that gives you new controls on users of your site. It's used by Custom Content to the authentication of logging people in the private area. Install it and give the Admin group the requested permissions.
The Module allows you to create new groups assigning them, activating, deleteting new users.
(NOTE: the groups and the users are'nt the same as those created with the original group/user interface of the CMSMS.)

1) Go in Users&Groups/Frontend users Managements

2) we add a new property that will be used to build 2 groups: pending and team
The new (selfregistered) users will added automatically to the pending group (with no access to the private Team Area)
let's call it email, prompt Email address, type Email Address - press Submit

3) In Groups we Add new group: pending  check required for the email adress property - press Submit
                              Add new group: team (allowed access) check every choice you want for email - press Submit

4) Preferences: PageID/Alias to jump to after logout: home (or whatever page you want)

5) Logout Template: replace the code with the following


{$startform}

{$prompt_loggedin} {$username}   {$link_logout}
   {$link_changesettings}


{$endform}


press Submit
_______________________________

Self Registration: Preferences: check the box Send an email notification when someone registers
                                                  check the box Require the user to confirm registration via email
                                                  enter your email address were the notification will be sent and check the box
press Submit   

Now :

go to Content and create 2 pages:

Registration, parent: Home, in Options deactivate Show in Menu:
put as content the code: {cms_module module=SelfRegistration group=pending}
Submit

Team Area


Under Layout/Templates copy the template you want to apply to the protected pages:(2nd icon after CSS) Bulletmenuvert 1col
give it a name: i.e. Access_BullVert1col

open the new template, find the code:

     

Last edited by ivancar on Tue May 30, 2006 5:24 pm, edited 1 time in total.

Top
  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Tue May 30, 2006 5:14 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Mon Apr 24, 2006 1:01 am
Posts: 811
Location: Deatsville, AL
Wow, nice tutorial.  :)

It'd be cool if you'd post it in the wiki so it'll be easy for people to find it: http://wiki.cmsmadesimple.org/index.php/User_Handbook

_________________
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)


Top
 Profile  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Tue May 30, 2006 10:16 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 10682
Location: Arizona
real nice!...  :D

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get it's parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/

Image


Top
 Profile  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Tue Aug 01, 2006 9:10 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Feb 10, 2006 3:24 pm
Posts: 67
Location: Norway
Hmm
It seems that everyone can see the protected (Team Area) even after I followed this tutorial.

any sugestion?


Top
 Profile  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Tue Aug 15, 2006 9:19 am 
Offline
Forum Members
Forum Members

Joined: Tue Mar 21, 2006 5:30 pm
Posts: 81
Location: Bulgaria
mustis wrote:
Hmm
It seems that everyone can see the protected (Team Area) even after I followed this tutorial.

any sugestion?



You can add different custom content when login pending user. this should be more than enough for your imagine. I check the way of login. if you not a member yet you still login in pending team. just dont use {cms_module module=FrontEndUsers} because it will output that you can sign out and change settings. That makes the user still pending so message can be "sorry man, please wait the admin to approve you here :)"

I want to know how can I add login in frontend users with email for identification not username. Some users prefer to remember only their mail . I saw a option in FE users that disallow multiple accounts.

Svilen

_________________
CMSMS ADDICTED


Last edited by newclear on Tue Aug 15, 2006 9:55 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Thu Aug 17, 2006 8:16 pm 
Offline
Forum Members
Forum Members

Joined: Tue Oct 25, 2005 4:50 pm
Posts: 205
Location: Tenerife, Spain
I've just installed this, following the instructions to the letter, everything worked fine. I registered, moved myself from pending to team (or members as I called it)... however when I went to login, it took me to the members area but I also got the following messeage on the page :

Fatal error: Call to a member function GetContent() on a non-object in /home2/shb3_150/armadasur.com/public_html/content/lib/classes/class.module.inc.php on line 2531

I would also like to know how I can put a logout link on the page...?


Last edited by djkirstyjay on Thu Aug 17, 2006 8:49 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Thu Aug 24, 2006 5:20 pm 
Great tutorial! I followed all the steps and my restricted content page works exactly as it should.

I have one area of concern, however. I currently have 60 separate groups I want to create unique, restricted pages for, and I want to be able to scale to several hundred. Following the system outlined in the tutorial above, I would need to create an individual template for each group. Or I suppose there may be some sort of looping script that could be written to allow the same template to be used on every restricted-content page, but I'm not sure how this script would be written. Anyway I had assumed that the Custom Content module would have this kind of functionality right out of the box, so to speak.

This is the code in the template that concerns me:

Code:
<!--customContent: startif group=team -->


Any suggestions on how to proceed?


Top
  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Thu Sep 07, 2006 3:57 pm 
hello, im following the logic you used, but im stuck here.

whenever someone from the pending group logs in, the page design is mixed up and i get an eror message at the top of the page:
DEBUG: this user(6) is not a member of group team

so it seems that whenever someone is not from the team group, this error occures, just as the customcontent would NEED to have the suer from the team group.

here's my piece of code:

aaa

bbb


any thoughts how i could fix this?

BTW: Running 1.0beta6 with CustomContent 1.41


Last edited by paragulka on Thu Sep 07, 2006 4:11 pm, edited 1 time in total.

Top
  
 
 Post subject: Re: Custom Content Module for newbies (my way)  [SOLVED]
PostPosted: Thu Sep 07, 2006 4:15 pm 
PROBLEM SOLVED

I simply replaced the line

echo "DEBUG: this user($uid) is not a member of group $g
";

with

break;

in CustomContent.php

and now it works


Top
  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Sun May 09, 2010 11:10 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Aug 13, 2009 10:53 am
Posts: 10
Location: Sæby . Danmark
Still can not get this to work.

PROBLEM SOLVED
I simply replaced the line
echo "DEBUG: this user($uid) is not a member of group $g
";
with
break;
in CustomContent.php
and now it works


can not find CustomContent.php
can not find echo "DEBUG: this user($uid) is not a member of group $g
";
in ANY file


Top
 Profile  
 
 Post subject: Re: Custom Content Module for newbies (my way)
PostPosted: Sun May 09, 2010 5:39 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 10682
Location: Arizona
@VirtuRex

This is a real old post, you should make a new one describing your problem in full, especially since thew Custom Content module has under gone many changes since this was posted...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get it's parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner