Admin Header Mod

From TNG_Wiki
Jump to navigation Jump to search


Admin Header Mod
Summary Adds TNG Community Forums and TNG Wiki links to the Admin top menu line
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link admin_header_v1.2.zip (for TNG V7 only)
Download stats {{{download_stats}}}
Author(s) Ken Roy
Homepage Admin Header Mod (This page)
Mod Support TNG Community Forums
Contact Developer {{{mod_contact}}}
Latest Mod 1.2
Min TNG V 7.0.0
Max TNG V 7.1.3
Files modified
admin/rightbanner.php
Related Mods
None
Notes
V1.2 of this mod no longer includes the link for the Backup / Restore Living Flag
This mod is obsolete since it is now incorporated into TNG V8


Introduction

This mod adds links for the TNG Forum and the TNG Wiki in the Admin header, thereby facilitating access to those resources and capabilities.

This mod applies to TNG 7.0 and above. It works with previous versions, although the line numbers may be different.

Note that the Backup / Restore Living Flag addon script no longer modifies the TNG Admin Header as of TNG 7.1.0.

Mod is obsolete since it is now incorporated into TNG V8.

Developer

This mod was developed by Ken Roy.

Requirements

  • A working TNG installation. The automated installation release was initially tested at TNG Version 7.1.0. Manual installation previously used on TNG 6 and 7.
  • A backup of your TNG admin/rightbanner.php file.
  • An installed current version of the Mod Manager.

Automated Installation

Procedure:

  1. Download the admin_header_v1.2.zip
  2. After downloading the zip file, unzip the config file into the admin/mod_folder
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the admin_header_v1.2.cfg.

Note that V1.2 of this mod no longer includes the link for the Backup / Restore Living Flag, since I moved it to a separate link in the left nav area with a button in the Admin frame.

Manual Installation

No longer recommended and may not be current.

This mod pertains to the admin/rightbanner.php script.

The following instructions allow manual installation of the Admin Header mod.

Where to add

Before line 35 in TNG 7.0 which is (make sure before the <?php).

<?php
	if( $allow_admin )
		echo " |  <a href=\"adminshowlog.php\" class=\"lightlink\" 
target=\"main\">$admtext[showlog]</a>\n";

What to add

Add the following lines of code. Note that this mod can apply to other versions where line numbers are likely different.

			 |  <a href="http://tngforum.us/" class="lightlink" 
target="tngforum">TNG Forum</a>
			 |  <a href="http://tng.lythgoes.net/wiki" class="lightlink" 
target="tngwiki">TNG Wiki</a>

Visualization of this mod

The image on the right shows the Admin header mod installed with the links to the TNG Forum and TNG Wiki.

Admin Header with V1.2 mod

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Or copy your backup admin/rightbanner.php file to your TNG admin directory
  • All should now be well.

Sites using this mod

Please add TNG sites that you have found that utilize this modification!

Note: unless you have admin rights to a site, you will not see this mod in action.

Related Links