|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
disabling login
I want to able to have visitors Add Events to the calendar without having to login. I almost have it working. When you click on the Add Event link, you get a pop-up that says "Not logged in".
http://www.skinnymusic.com/cgi-bin/sanfran/calendar.php Here's what I did: 1. Commented out the lines in the displaymonth file starting with: if ( $this->auth->checkLogin() ){ except for lines 505 & 507 for Add Event. 2. In the calendar file commented out the lines starting with: case 'categories' except for lines 99-103 for event What do I need to change with the classes file? What else am I missing? Thanks, Michelle |
|
#2
|
|||
|
|||
|
RE: disabling login
comment out lines 75-85 in ltweventmgr.php...
if ( !$this->auth->checkLogin() ){ $this->auth->notLoggedIn(); return 0; } if ( !$this->auth->user->getPrivledge(UPEDIT+UPADMIN) ){ $this->auth->notPrivledged(); return 0; } You can allow anyone to EDIT or DELETE by commenting out the same lines in the appropriate functions in the file. |
|
#3
|
|||
|
|||
|
RE: disabling login
I attempted to disable the password requirement by commenting out those lines, but it didnt seem to change anything.
Is there something else I have to do? |
|
#4
|
|||
|
|||
|
RE: disabling login
It seems to work for me. I was able to successfully add an event called test for today, the 12th of January.
|
|
#5
|
|||
|
|||
|
RE: disabling login
You were able to accomplish that by simply removing the lines that were mentioned in the second post of this thread?
Thanks |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > disabling login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|