How do I setup CustomContent using FrontEndUsers + UserID

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
sadcox66

How do I setup CustomContent using FrontEndUsers + UserID

Post by sadcox66 »

I am using xammp with CMSMS 0.12-beta2 .

My goal is to get the examples of CustomContent working.

I installed from SVN
FrontEndUsers 1.0.0
SelfRegistration 1.0.3
CustomContent 1.4.0
UserID 0.3.5

I need help with two issues.
A.) UserID : I know there is something wrong with my setup. Please see attached image.
I tried UserID 0.35, 0.33 downloaded from SVN and also used the tar. 
For some reason I see SVN in the UserID module ... Any ideas ?

B.) Am I correct to assume that Users/groups created by module SelfRegistration will be used
by CustomContent and not the groups (admin/editor/designer) created for cmsms.

I have enabled permissions for all the modules.
I just cannot seem to get CustomContent working for me any advice and tips on how to do this would be greatly appreciated..


I want to thank everyone in advance for helping me out.
Scott  ;D

[attachment deleted by admin]
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by calguy1000 »

HI I thought I'd correct you on a couple of issues.

a) FrontEndUsers replaces UserId, you don't need both
b) SelfRegistration only works with FrontEndusers
c) Later versions of CustomContent only work with FrontEndUsers

incase your confused, the work flow is:
i) create the properties (fields) that you want for each group
ii) associate the properties with the groups
iii) (optional) create users for each group (or use selfreg)

Here's an example syntax that should work:
{cms_module module=SelfRegistration group="somegroupname"}
{cms_module module=FrontEndUsers}
{cms_module module=CustomContent}

You are logged in, welcome to the site

I don't know who you are!
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
sadcox66

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by sadcox66 »

Patricia wrote: is your code the same as the one found on SVN?
http://viewsvn.cmsmadesimple.org/viewsv ... oot=userid
Patricia,
The mistake was mine. Sorry to bother everyone with this. I corrupted the language file
when I downloaded it from the url above. There are no errors it just looks bad.
sadcox66

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by sadcox66 »

Calguy1000,
Thank you for giving the work flow and example. It works exactly as expected. I realize this is still a development module and part of a much larger project. Here are some quirks I noticed.


Background
I got CMSMailer 1.73.9 to send emails using mercury with xammp.
So I assumed SelfRegistration would use CMSMailer which it does - but gets stuck at.
FrontEndUsers.api.php
Line 706:    if( getmxrr($domain, $mxhost ) ) with function getmxrrr not defined -

I got the feeling that SelfRegistration is very much dependent on emails eventhough
I got the impression somewhere on the forum that email was not necessary to register.

Not a big issue for most people not using m$ windows.
I reinstalled  everything on linux with much better results ;)


I am using SelfRegistration 1.0.3 from svn.

The quirk I am noticing is the FrontEnd User does not define an email property by default only a username property. So to get FrontEnd User Management to talk to SelfRegistration I defined on
field with an email property and bang ! they example you gave above began working  :)

The stuff that does not work for me are:
a.) checkbox in Self Registration Module | Preferences
ii.) Require users to enter their email address twice:
--Add Me - module://cmsms/SelfRegistration string:error_nosecondemailaddress--
I think if I could display another email textbox then it may work - The cool thing is
it uses the email property field defined in FrontEnd User to validate the email.

In CustomContent 1.4.0 I have a few quick questions.
a.) Can I or Should I use more than one {cms_module module=CustomContent} or put everything in one big if-elseif-elseif-endif at the top of the page. I am having problems when I add stuff like.

Code: Select all

<br>
{cms_module module=CustomContent}
{if customcontent_loggedin}

 {if customcontent_memberof_xBox}
 xBox stuff only <br>
 {/if}

 {if customcontent_memberof_PS2}
 PS2 stuff only <br>
 {/if}

{/if}
b.) I am thinking of using Smarty tags because it's visually easier on the eye when writing articles instead of the embedded comments. I noticed errors when i try to use some tags such as.
syntax error: unrecognized tag 'customcontent_loginname' ... I can probably do without this tag but
the if-elseif content separation is what I need.

Calguy thank you for all the work you put in and the support on these modules.
This stuff is great, still trying to figure out how this works. Don't know how you do it.
have a great day !
-Scott
sadcox66

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by sadcox66 »

How can I add CustomContent to the menu system so only certain groups are presented with the appropiate menu. I am assuming a top level menu blocked off as such will block sub-menus below.
Mucho gracias
-Scott
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by calguy1000 »

Well, you coulld wrap the menu stuff in custom content tags.

i.e:





Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jean-guy

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by jean-guy »

Hello,

i'll try to use smarty variables like customcontent_loginname, but it doesn't work... this is my error message :
Fatal error: Smarty error: [in content:content_en line 3]: syntax error: unrecognized tag 'customcontent_loginname' (Smarty_Compiler.class.php, line 580) in /home/3181270888/www/web/lib/smarty/Smarty.class.php on line 1095
i'm using this code (exemple of the help of customcontent) :

{cms_module module=CustomContent}
{if customcontent_loggedin}
  Welcome {customcontent_loginname}
{/if}

somebody has already succeeds in using this tag?

thanks?

JG
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by calguy1000 »

Those tags aren't working properly yet, I'd work with the other tags.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jean-guy

Re: How do I setup CustomContent using FrontEndUsers + UserID

Post by jean-guy »

oky, thanks...
Locked

Return to “CMSMS Core”