| View previous topic :: View next topic |
| Author |
Message |
rsuplido
Joined: 24 May 2006 Posts: 15
|
Posted: Wed May 24, 2006 2:32 am Post subject: Changing theme's footer |
|
|
I'm posting this in this forum since it is Joomla related.
I'm using the Slate theme and thyme is wrapped inside Joomla and it's using auth.php. I want to change the footer of the template from the following:
Options : Sync : Event Requests : Admin : Logout - admin
to:
Event Requests : Options : Admin
Of course, Admin only appears if an admin is logged on.
Any way i can do this?
Thanks. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Wed May 24, 2006 1:43 pm Post subject: |
|
|
Hi rsuplido,
1) In modules/sync/register_module.php add:
on the line just after <?php
2) in modules/requests/register_module.php change:
| Code: |
| $_cal_modules['requests']['priority'] = -80; |
to
| Code: |
| $_cal_modules['requests']['priority'] = -100; |
3) In index.php search for _LOGIN_, you should find the word login around these 3 lines:
| Code: |
$url = new _cal_url(_CAL_PAGE_LOGIN_);
$links[] = "<a href='". $url->toString() ."' class='"._CAL_CSS_MAIN_HEADER_."'>".
_LOGIN_ ."</a>"; |
Remove those lines.
4) in modules/calendars/register_module.php remove this line:
| Code: |
| $_cal_modules['calendars']['parents'][] = "footer"; |
.. that should do it. Let me know if you have any questions / trouble. |
|
| Back to top |
|
 |
Guest
|
Posted: Wed May 24, 2006 1:55 pm Post subject: |
|
|
Worked out great!
I was wanting to remove the 'Login' and 'Logout' link at the end but it seems like logging out from Joomla doesn't log-out the user at Thyme automatically. Is there a hack to Joomla to clear the Thyme user's cookies?
Thanks ian. |
|
| Back to top |
|
 |
rsuplido
Joined: 24 May 2006 Posts: 15
|
Posted: Wed May 24, 2006 1:55 pm Post subject: |
|
|
| oops, that was me at the top. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Wed May 24, 2006 1:58 pm Post subject: |
|
|
| There's an option in the auth module called 'strict_logout', set that to 1 and it will log out of Thyme when you log out of Joomla. Note that with this enabled, you will not be able to log into Thyme when not also logged into Joomla. |
|
| Back to top |
|
 |
rsuplido
Joined: 24 May 2006 Posts: 15
|
Posted: Wed May 24, 2006 1:59 pm Post subject: |
|
|
| That's cool ian. Thanks! |
|
| Back to top |
|
 |
|