Welcome to Geeklog, Anonymous Sunday, December 01 2024 @ 12:09 pm EST
Geeklog Forums
Adding another option to user functions menu
Status: offline
ItsCurly
Forum User
Junior
Registered: 12/05/05
Posts: 24
Hi,
I am tweaking again, one day I will find something Geeklog won't let me do, but that day has not yet arrived.
I read in another post that to reorder the entries in User Functions menu I edit something in the lib-common.php (function called COM_userMenu)
I don't need to do this but I do need to add a static link in there (just to webmail) so is there any code I can drop in? all the HTML equivalent would be is something like:
This code is static so no variables involved. Where abouts would i drop that in that function, I just need it somewhere in the User Functions block and not visible to non members.
Thanks.
I am tweaking again, one day I will find something Geeklog won't let me do, but that day has not yet arrived.
I read in another post that to reorder the entries in User Functions menu I edit something in the lib-common.php (function called COM_userMenu)
I don't need to do this but I do need to add a static link in there (just to webmail) so is there any code I can drop in? all the HTML equivalent would be is something like:
Text Formatted Code
<a href="http://urlforwebmail">Webmail</a>This code is static so no variables involved. Where abouts would i drop that in that function, I just need it somewhere in the User Functions block and not visible to non members.
Thanks.
12
11
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
I would create separate block and add the HTML in the block. Then you can give the appropriate rights to the block.
12
12
Quote
Status: offline
ItsCurly
Forum User
Junior
Registered: 12/05/05
Posts: 24
Yeah that kind of worked, and it looked exactly right when I was logged in, but as soon I logged out I hit the other problem. I don't have a login box on the front page any more, as thats obviously part of the gldefault 'user functions' block.
So now I can't get into my site, well unless I go to users.php
So now I can't get into my site, well unless I go to users.php
20
10
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Setup two blocks. One, the default user block. Give it permissions such that only anonymous can see it. The other block is your set of links, set it so anonymous cannot see it. Make sure the two blocks are next to one another.
13
10
Quote
Status: offline
ItsCurly
Forum User
Junior
Registered: 12/05/05
Posts: 24
Setup two blocks. One, the default user block. Give it permissions such that only anonymous can see it. The other block is your set of links, set it so anonymous cannot see it. Make sure the two blocks are next to one another.
That does the job perfectly. Admin can see them both but thats not biggie.
Thanks for you help, didn't think of doing something that only anonymous could see.
14
10
Quote
All times are EST. The time is now 12:09 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content