phpScheduleIt
May 19, 2013, 12:30:09 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Help and Support
>
phpScheduleIt 2.x
>
User Profile
Pages: [
1
]
« previous
next »
Print
Author
Topic: User Profile (Read 213 times)
Trailblazer
Newbie
Karma: 0
Posts: 4
User Profile
«
on:
December 02, 2012, 06:45:43 PM »
Hi:
I am trying to set up my calendar where, for example, user has the "Default Homepage" of "Resource Calendar" and then not be able to change it to anything else. Actually, all the users should have it that way. Is this possible so that the user him/her self can not change it? Better yet, how can I remove the entire header altogether? I want to keep the "Change Calendar" pulldown. Can anyone help me with this hopefully quick and easy fix?
Logged
Jamie_facr
Newbie
Karma: 0
Posts: 42
Re: User Profile
«
Reply #1 on:
December 03, 2012, 07:26:05 AM »
Hi,
You can change the file "tpl/globalheader.tpl" to achieve this.
Insert the tag
{if $CanViewAdmin}
at the beginning of the menu (somewhere around line 84 I think, after the
<ul id="nav" class="menubar">
line)
You'll then need to chuck an
{/if}
tag down near line 181, above the
<!-- end #nav -->
That should hide the entire menu for all non admin users.
If you want to keep particular elements of the header then you can just surround the bits you want hidden with those two {if} tags.
Hope that makes sense.
Logged
Trailblazer
Newbie
Karma: 0
Posts: 4
Re: User Profile
«
Reply #2 on:
December 03, 2012, 07:58:08 PM »
Using 2.3.5, the lines would be inserted at 90 and 186 respectively should others want to do the same.
It hides almost everything perfectly, except it still displays the logo, user and signed in as. I am trying to get as much real estate as possible and could really use that space.
Logged
Jamie_facr
Newbie
Karma: 0
Posts: 42
Re: User Profile
«
Reply #3 on:
December 04, 2012, 08:04:01 AM »
If you want to hide more, you can move the opening {if} statement higher up the code. There should be a
<div id="logo">
tag around line 77 for you; moving the opening {if} to just before that should crop out the logo and the "signed in as" string, though bear in mind that will also remove the "sign out" link.
If you move it any higher then I think you're going to run into issues with the way the rest of the pages are displayed.
Logged
pepelepew1962
Newbie
Karma: 0
Posts: 3
Re: User Profile
«
Reply #4 on:
December 04, 2012, 07:00:40 PM »
Perfect, thank you !!!
\_/ Cheers
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...