MyBB Community Forums
How do I add Admin & Mod to Footer? - Printable Version

+- MyBB Community Forums (
+-- Forum: 1.8 Support (
+--- Forum: General Support (
+--- Thread: How do I add Admin & Mod to Footer? (/thread-172866.html)

How do I add Admin & Mod to Footer? - Nathann - 07-07-2015

Hello, I can't get my head round this but how can I add the Admin and Mod links to the footer of the page for the users that are only Admin and Mods?

I want to be able to put it down the bottom with this code:

		<div class="bottommenu">
					<span class="smalltext"><a href="{$mybb->settings['contactlink']}">{$lang->bottomlinks_contactus}</a> | <a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a> | <a href="#top">{$lang->bottomlinks_returntop}</a> | <a href="#content">{$lang->bottomlinks_returncontent}</a> | <a href="<archive_url>">{$lang->bottomlinks_litemode}</a> | <a href="{$mybb->settings['bburl']}/misc.php?action=syndication">{$lang->bottomlinks_syndication}</a></span>


RE: How do I add Admin & Mod to Footer? - Ad Bakker - 07-07-2015

Bumping within 24 hours doesn't make sense because these messages are merged with the previous without changing the post time.

You mention the Administrator and the Moderator. But there can be more of those, how to choose which one must be displayed?

You can already show moderators in the index and forumdisplay pages through the AdminCP -> Configuration (settings) -> Forum Home Options.

RE: How do I add Admin & Mod to Footer? - Leefish - 07-07-2015

The moderator and admin links are output as part of the welcome_block. If you want to take them out of that block you will need a plugin or you can use Template Conditionals Plugin to hide the links based on usergroups.

RE: How do I add Admin & Mod to Footer? - Nathann - 07-08-2015

Yeah but I don't know the coding for it to be put in the footer but I know where it goes if you know what I mean because the Mod and Admin links aren't anywhere on the Forum

RE: How do I add Admin & Mod to Footer? - Ad Bakker - 07-08-2015

$admincplink and $modcplink are evaluated in lines 456 and 461 of glopal.php, respectively.

When you put these in de footer template like this:

			<ul class="menu bottom_links">
				<li><a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a></li>
				<li><a href="#top">{$lang->bottomlinks_returntop}</a></li>
				<li><a href="<archive_url>">{$lang->bottomlinks_litemode}</a></li>
				<li><a href="{$mybb->settings['bburl']}/misc.php?action=syndication">{$lang->bottomlinks_syndication}</a></li>

Then the links show up in the footer. But only as text, how to get them formatted like in the header must be found out.