Search found 4 matches

by linpi
Tue Sep 18, 2007 4:03 pm
Forum: Joombie Coding Q/A
Topic: acl for a frontend page
Replies: 1
Views: 1068

Re: acl for a frontend page

I found a very easy way to restrict a front page to only registered user:

Code: Select all

if ($my->id == 0) {
   // user is not registered if user id is 0
   echo '<p>You have to login before you an see this page!</p>';
} else {


cheers Pierre
by linpi
Fri Sep 14, 2007 1:26 pm
Forum: Joombie Coding Q/A
Topic: acl for a frontend page
Replies: 1
Views: 1068

acl for a frontend page

I woul'd like to restrict a page from a component in the frontend, for Registered user only , not over a menu button, over a link like: ... myhomepage/component/option,com_seminar/task,register/ I found in backend files the following example: if (!($acl->acl_check( 'administration', 'edit', 'users',...
by linpi
Tue Sep 04, 2007 8:02 pm
Forum: Joombie Coding Q/A
Topic: Poll Manager, how does the mechanism published/unpublished flag works?
Replies: 4
Views: 1926

Re: Poll Manager, how does the mechanism published/unpublished flag works?

Take a look at: m let me know if you have further questions. Ian Thank your for this great link! Meanwhile I found the mistake I made. in admin.poll.html.php, the is the line $checked = mosCommonHTML::CheckedOutProcessing( $row, $i ); and in the function CheckedOutProcessing there is $row->id. This...
by linpi
Tue Sep 04, 2007 4:52 pm
Forum: Joombie Coding Q/A
Topic: Poll Manager, how does the mechanism published/unpublished flag works?
Replies: 4
Views: 1926

Poll Manager, how does the mechanism published/unpublished flag works?

hi, i writing my first component taking com_poll as a example. In my admin interface (like the Poll Manager), I would like to modify a flag in the same way as the published/unpublished flag. I could see in the two files admin.poll.html.php and  admin.poll.php that this mechanism uses the javasc...