HTML Block for Admin

HTML Block for Admin

by Mat Cannings -
Number of replies: 3
I have made a small modification to the standard HTML block.

With this block the admin can create a HTML block on the site home page that is available only to admins once logged in. All other users have no idea it even exists.

Can be used to place links to phpMyAdmin or other info that would only be relevant to admins.

I also had to add some code to this block and the standard HTML block as the header was displaying when empty. Code is below.

function hide_header() {
if ($this->config->title == "") {
return true;
} else {
return false;
}
}

which was added to the standard HTML block just above
}
?>

I believe this bit of code should be added to the HTML block in CVS

Average of ratings: -
In reply to Mat Cannings

Re: HTML Block for Admin

by Mark Little -
Why do i get two brackets in this block?

html tables have been set up correctly

thanks
In reply to Mark Little

Re: HTML Block for Admin

by Julian Ridden -
It saying its looking for the corresponding lang file
In reply to Julian Ridden

Re: HTML Block for Admin

by Mark Little -
yep found out what it meant and created a lang file for it...

works fine now...

Thanks