Recent Topics

1 Dec 09, 2005 12:32    

I have a mailing list for my blog and would like to manage it from my blog by placing a URL link to the admin page of the mailing list.

BUT, I want the link to show when the blog admin log-in.

:lol:

3 Dec 09, 2005 19:29

I've done I think very nicely:

First I created this global varial in b2evocore/_functions_users.php

$admin = FALSE;

Next I added this line to the function "user_admin_link"

global $admin;


and at end of that function I put the flag

$admin = TRUE;

Last at the end of that same file I put the following function:


function mailinglist_admin_link() {
		global $admin;
		return $admin;
	}

And in my _main.php of my skin after where the link for the admin:


if( mailinglist_admin_link() == TRUE){
		echo '<li>', '<a href="http://www.alkhater.net/blog/addOns/mailinglist/admin">', 'Admin Mailing List', '</a>', '</li>';
	}

I hope someone could be helped by either method! :lol:


Form is loading...