MyBB Community Forums

Full Version: Custom Links?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How do I add custom variable links like...
Quote:{$admincplink} or {$modcplink}

In other words, how do I add links that are only viewable by admins or moderators or another specific user group?
With a plugin.
Is there a way to edit the Mod CP text?
(2009-12-06, 07:09 PM)Dutchcoffee Wrote: [ -> ]Is there a way to edit the Mod CP text?

Yes, it is. Edit the language strings at the modcp.lang.php file in the /languages/ directory.

Find:

$l['nav_modcp'] = "Mod CP";

And replace the Mod CP with your own text.
It'll be in global.lang.php
An easy way to do this is to include those links in your "header_welcomeblock_member_admin" and "header_welcomeblock_member_moderator" theme templates.

You can just add this in the template "header_welcomeblock_member_admin" as an example :

&mdash; <a href="{$mybb->settings['bburl']}/{$config['admin_dir']}/index.php">{$lang->welcome_admin}</a> - <a href="http://translate.google.com/">Translator</a>
because how add ad link that guests do not look
Just don't add it to Header_welcomeblock_guest. I think thats what you mean anyways.
because i need add this in another template
So add it in the templates you want, and just don't add it to Header_welcomeblock_guest, on all the themes.
Pages: 1 2