Page 1 of 1

Conditionnal {edit} for FrontEnd registered Users ?

Posted: Tue May 09, 2006 9:53 pm
by pikkabbu
This CMSMS is really PHantastic !

I need some more help at this time
(don't worry, I need help at any time  ;))

I've installed great module FrontEndUsers, which allows front end registration.

Now, as logical, I need to allow registered users to edit pages, depending upon which group they belong.

If I use the {edit} tag in the template, anyone can edit the page, not only registered users.

I guess I'll need a tag to filter that only FrontEnd registered users can see and apply the Edit tag, don't I ?

I supposed this is not a difficult nor long tag to write...
*********
if User is registered AND Group(users) is XYZ
     Then {edit}
endif
**********
or something like that in php.

BUT... I've (at this time) no idea about php programing, nor cmsms's variables names like username.

I wonder if any hearty people would agree to write this peace of code for me - in case I'm right thinking it's simple and short -

Well, my grand father used to say : there's not such things like easy or difficult. There's only things you know how to do, and others you don't  ;)

Hope I can give back soon 2 the group.

pik

Re: Conditionnal {edit} for FrontEnd registered Users ?

Posted: Tue May 09, 2006 10:35 pm
by tsw
sounds like you need customcontent in that soup :)

with customcontent you can hide some parts of the page or display totally different content for users that have logged in from feusers

take a look at customcontent help page (its pretty simple) and come back for more :)

Re: Conditionnal {edit} for FrontEnd registered Users ?

Posted: Wed May 10, 2006 3:32 pm
by pikkabbu
G.R.E.A.T. !

I'll try tomorrow at night.

(yes, I'm some Computering Vampire, except that during the day, my coffin is an office)  ;)


Thanks a lot.
I'll be right back  :D :D

pik