Firefox PHP

Admin Link, main page link

Posted by EkosNarton 
Admin Link, main page link
January 22, 2007 10:49AM
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.
Re: Admin Link, main page link
January 22, 2007 11:40AM
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.
Re: Admin Link, main page link
January 22, 2007 11:44AM
I want admins to be able to access the admin section from one page every time.

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.
Re: Admin Link, main page link
January 23, 2007 03:30AM
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
I think what he means is:

A. If the admin is logged in, display a link to admin.php
B. If the admin isn't logged in, don't display the link.

I was about to request this as an add-on. :)
Re: Admin Link, main page link
January 28, 2007 05:32AM
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}


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Admin Link, main page link
February 09, 2007 11:12AM
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. :(
Re: Admin Link, main page link
February 09, 2007 11:23AM
Oh, {ADMINISTRATOR} is only used in the posting templates. Try this instead:
{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.

Click here to login