Okay Guys n Gals
This is long winded topic but should cover all you need to add extra icons to the PlayGround Ultimate Theme - for this tutorial we are going to use the Rules Mod but the process will work with any Mod which works via an Action or URL (note most Chat links use and external URL)
Icons available are
admin.png arcade.png buddies.png cal.png chat.png
contact.png download.png favs.png forum.png friends.png
gallery.png help.png home.png login.png login1.png
logout.png logout2.png members.png moderate.png pm.png
pmsome.png profile.png quiz.png reg.png rules.png
search.png video.png
Now we need to decide what the URL is when you navigate to the mod - so set you theme to the SMF Core just for yourself
Go
Profile > Look and Layout > Change
Once you have clicked change select the "SMF Default Theme - Core" Theme this is because as Mods as designed to work with the Default SMF Theme
I love this ability to put images inline
Now once the default theme as loaded you should see the button for the mod you want to add an icon for (in this case The Rules mod)
Now click the Button created by the mod and look in the address bar of your browser and note the latter part of the URL in this case "?action=rules"
Okay on to the fun bit of actually adding the icon - again the simple if you follow these steps and do not rush
Download a copy of the index.template.php from the Playground Ultimate theme - open it in any good code editor (if you need one the Google is your friend) Note you can use notepad if you are using Windows but it can mess upp the file on odd occasions
DO NOT USE SOMETHING LIKE WORD AS THAT WILL SCREW THE FILE
No once the file is open do a search for the following
function template_dock_menu ()
This is the code which does all the menu work and I have kept is condensed so that life is easier for you Guys n Gals
Now we need to construct the dock item and assign a function to it - the code we need in this case is as follows - The pieces to note are in
RED
echo '
?action=rules" >
rules.png" alt="' . $txt['gmrules'] . '" />' . $txt['gmrules'] . ' ';
Now save the file and upload it to your server
Nearly there one more thing to do, we need to tell SMF what the text is to display under the icon - so now download the ThemeStrings.english.php file which can be found in the languages folder of the Theme
edit the file again and add a line similar to the following
$txt['
gmrules'] = '
Rules';
This will now tell SMF what text to put under the Icon
Now up load the file to your server and that is it all should now be working if for some reason it is not displayed then the server file cache needs to be flushed to do this go
Admin > Forum Maintenance > Routine
and at the bottom of the page click the button to empty the file cache
Voila all done
We can of course take this further by assigning permissions to the icon so that it shows only to people who have the right - but we can address that on a per mod basis - also if you want to change the order of the icons then that can be done in the same manner just but reordering the code in the "function template_dock_menu ()"
So enjoy but as always
BACKUP YOUR FILES BEFORE EDITING