|
 |
| Main
> Programming
|
|
| |
|
|
We would not recommend that you try to make changes to the menu without some programming knowledge. Please remember we do not support 3rd party changes to the software. This aside, the following explains how to make menu changes.
Use FTP to navigate to the /lib directory of your installed site. Within this directory there are many class files. If your site is running under PHP5 you will need to edit the files in /lib/php5. The file that you need to edit is called class.MenuManager.php. Download the file and open it with your editor. Within this file are several arrays of links. These correspond to different areas of the site such as the member, guest and affiliate areasand also to the different 'Skin' areas. Taking one example, the member array that looks like this:
'member' => array( 'MENU_SEARCH' => CONST_LINK_ROOT."/search.php", 'MENU_MAIL' => CONST_LINK_ROOT."/myemail.php", 'MENU_PROFILE' => CONST_LINK_ROOT."/view_profile.php", 'MENU_CONTROL' => CONST_LINK_ROOT."/myinfo.php", 'MENU_MEDIA' => CONST_LINK_ROOT."/prgpicadmin.php", 'MENU_HOTLIST' => CONST_LINK_ROOT."/prghotlist.php", 'MENU_VIDEO' => CONST_LINK_ROOT."/video_list.php", 'MENU_BLOGS' => CONST_BLOG_LINK_ROOT."/blogs.php", 'MENU_GROUPS' => CONST_GROUPS_LINK_ROOT."/groups.php", 'MENU_BB' => CONST_LINK_ROOT."/forum/forums.php" ),
The member array is for the members area (i.e. after the user has logged in). Simply replicate a line of this array in the position that you wish your new link to be added. I will add one here called MENU_SAMPLE as an example.
'member' => array( 'MENU_SEARCH' => CONST_LINK_ROOT."/search.php", 'MENU_MAIL' => CONST_LINK_ROOT."/myemail.php", 'MENU_PROFILE' => CONST_LINK_ROOT."/view_profile.php", 'MENU_CONTROL' => CONST_LINK_ROOT."/myinfo.php", 'MENU_MEDIA' => CONST_LINK_ROOT."/prgpicadmin.php", 'MENU_HOTLIST' => CONST_LINK_ROOT."/prghotlist.php", 'MENU_SAMPLE' => CONST_LINK_ROOT."/sample.php", 'MENU_VIDEO' => CONST_LINK_ROOT."/video_list.php", 'MENU_BLOGS' => CONST_BLOG_LINK_ROOT."/blogs.php", 'MENU_GROUPS' => CONST_GROUPS_LINK_ROOT."/groups.php", 'MENU_BB' => CONST_LINK_ROOT."/forum/forums.php" ),
You can see in the example above I have now added a link called MENU_SAMPLE which point to the page sample.php. The text that will be displayed for this link needs to be added to the langauge file in /languages/english.php where I need to define this new language variable as follows
define("MENU_SAMPLE","Sample Link");
Now I have added the link to the menu and the link text to the language file. The last point to consider is the location of the sample.php. In the example above it is located in the root folder of my domain. Were it in a subfolder called "directory" then I may need to add the name of that folder as follows:
'MENU_SAMPLE' => CONST_LINK_ROOT."/directory/sample.php",
The result of what we have just done (after you have uploaded the files that you have edited) will be a menu link that displays the text "Sample Link" and links to a file http://www.mydomain.com/directory/sample.php
|
|
|
How do I change the images in the skin?
Let's take the first (index) page. If for example you have the yellow skin enabled, all the files you are interested in are in /skins/yellow/, you will need an FTP editor...
|
|
|
|
|
| |
| |
|