ChrisTaylor Posted August 3, 2014 Report Share Posted August 3, 2014 Hey everyone, With the event booker by sim pilot group i get this "error" shown in the attached picture Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 4, 2014 Administrators Report Share Posted August 4, 2014 Take a look at the line near the top of /admin/modules/events_admin/Events_admin.php that looks something like: $this->set('sidebar', 'events/sidebar_events.php'); Make sure the ending ".php" matches the type of template you are using, most likely it needs to be ".tpl" 1 Quote Link to comment Share on other sites More sharing options...
ChrisTaylor Posted August 4, 2014 Author Report Share Posted August 4, 2014 Thanks for the reply, I will do that Quote Link to comment Share on other sites More sharing options...
ChrisTaylor Posted August 4, 2014 Author Report Share Posted August 4, 2014 I still have a problem, I change the code to this: $this->set('sidebar', 'events/sidebar_events.tpl’); I am using .tpl. It says /events/sidebar_events.tpl does this mean I need to put the tpl in the event admin as well templetes. Also when I do this I get this error Parse error: syntax error, unexpected '>' in /home/wwwbafsv/public_html/admin/modules/Events_admin/Events_admin.php on line 21 I get this in all of the admin centre so what do I do, im not sure. I will change it back to .php so i can use the site Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 4, 2014 Administrators Report Share Posted August 4, 2014 It looks like you have made a change to the code that has caused a php error. Try to only replace the "php" with "tpl" and save the file. Quote Link to comment Share on other sites More sharing options...
Iraklis Posted June 21, 2015 Report Share Posted June 21, 2015 works fine!! thank you!!! Quote Link to comment Share on other sites More sharing options...
muhammadgillfran Posted September 14, 2015 Report Share Posted September 14, 2015 Worked like a charm! Steps : 1. Copy all files in /admin/modules/Events_admin/ (All .php, copy all files to .tpl format into the same folder) 2. Edit the Events_admin.php in /admin/modules/Events_admin/ : Change "$this->set('sidebar', 'events/sidebar_events.php');" (Line 15 in default) to "$this->set('sidebar', 'events/sidebar_events.tpl');" Again worked! Thanks so much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.