Admin Link, main page link
Posted by EkosNarton
|
Admin Link, main page link January 22, 2007 10:49AM |
Registered: 18 years ago Posts: 2 |
Hello, I love this phorum it is very nice and simple!
I would like to know what files to edit to add a couple of links.
LINK #1: Link from the main page to the admin login.
LINK#2: Link from the admin logout to the main page.
This might be simple and in other php bulletin boards I can figure it out but I'm having trouble here. If anyone can point me to the correct files I would appreciate it.
Thanks!
Edited 1 time(s). Last edit at 01/22/2007 10:49AM by EkosNarton.
I would like to know what files to edit to add a couple of links.
LINK #1: Link from the main page to the admin login.
LINK#2: Link from the admin logout to the main page.
This might be simple and in other php bulletin boards I can figure it out but I'm having trouble here. If anyone can point me to the correct files I would appreciate it.
Thanks!
Edited 1 time(s). Last edit at 01/22/2007 10:49AM by EkosNarton.
|
Re: Admin Link, main page link January 22, 2007 11:40AM |
Registered: 24 years ago Posts: 1,076 |
You can edit the templates to have a hardcoded value to admin.
ie the link should be "./admin.php". I'm not sure why you want to display admin link for all users though.
edit: and there's alink back to Phorum in admin page already.
---
-=[ Panu ]=-
Edited 1 time(s). Last edit at 01/22/2007 11:40AM by Panu.
ie the link should be "./admin.php". I'm not sure why you want to display admin link for all users though.
edit: and there's alink back to Phorum in admin page already.
---
-=[ Panu ]=-
Edited 1 time(s). Last edit at 01/22/2007 11:40AM by Panu.
|
Re: Admin Link, main page link January 22, 2007 11:44AM |
Registered: 18 years ago Posts: 2 |
|
Re: Admin Link, main page link January 23, 2007 03:30AM |
Registered: 24 years ago Posts: 1,076 |
Quote
EkosNarton
I want admins to be able to access the admin section from one page every time.
put a link like below to your template/page.
[www.yoursite.com]
Quote
EkosNarton
I see a link from the admin section to the forum but what I want is a link on the admn logout page, after an admin logs out they can click a link to go back to index.php.
But am I mistaken that you don't really need a logout for the admin section? You have to login to admin after you close the browser. But anyway, you can hardcode whatever to that logout page too. It's normal html...
---
-=[ Panu ]=-
|
Re: Admin Link, main page link January 28, 2007 12:03AM |
Registered: 18 years ago Posts: 12 |
|
January 28, 2007 05:32AM |
Admin Registered: 21 years ago Posts: 8,532 |
What about adding this to the templates?
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
{IF ADMINISTRATOR}
<a href="<?php print $PHORUM["http_path"] ?>/admin.php">Admin</a>
{/IF}
The http_path part would be needed on an embedded or portable Phorum install. On a standard install you could also use:
{IF ADMINISTRATOR}
<a href="admin.php">Admin</a>
{/IF}
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Admin Link, main page link February 09, 2007 11:12AM |
Registered: 18 years ago Posts: 11 |
Quote
mmakaay
What about adding this to the templates?
{IF ADMINISTRATOR} <a href="<?php print $PHORUM["http_path"] ?>/admin.php">Admin</a> {/IF}The http_path part would be needed on an embedded or portable Phorum install. On a standard install you could also use:
{IF ADMINISTRATOR} <a href="admin.php">Admin</a> {/IF}
Doesn't work for me. :(
|
February 09, 2007 11:23AM |
Admin Registered: 21 years ago Posts: 8,532 |
Oh, {ADMINISTRATOR} is only used in the posting templates. Try this instead:
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
{IF USERINFO->admin}
...doyouradminthing...
{/IF}
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.