Conditionnal {edit} for FrontEnd registered Users ?

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
pikkabbu

Conditionnal {edit} for FrontEnd registered Users ?

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Conditionnal {edit} for FrontEnd registered Users ?

Post 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 :)
pikkabbu

Re: Conditionnal {edit} for FrontEnd registered Users ?

Post 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
Locked

Return to “CMSMS Core”