Re: Adding a link to the main navigation? Re: Adding a link to the main navigation?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Re: Adding a link to the main navigation?

Started by BlackCactus, November 24, 2005, 07:07:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BlackCactus

OK Dont really know if this is the fastest way, but I like following the original coding format of the theme in use.
I wanted a home page link in the main menu. Theme used (Igames) I also wanted it next to the @ symbol, so anyways this is what i did

see example here http://www.blackcactusonline.com/gallery/index.php

1.)  I opened theme.php in the /themes/igames lines 66-69 I added this


<td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
<td class="top_menu_bttn">
<a href="{HOME_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{HOME_LNK}</a>
</td>

2.) then  lines 1013-1014 I added

        '{HOME_TGT}' => "../", //note used this url to goto mainsite homepage type what ever url u need
        '{HOME_LNK}' => $lang_main_menu['home_lnk'],


3.) then in the lang/english.php

line 120 I added

'home_lnk' => 'Home page',

After I had done these changes I added new directory in themes ,to a theme name of my choice, then copied contents of igames to it. Making sure to change all files refering to igames to the new directory, keeping all files and directory structure the same.Then I duplicated
/lang/english.php renamed to english_my_new_theme_name.php, then logged into admin of coppermine, config and pointed it to my new theme and my new language file, reason I did this is so when I update to new verisons if there is a conflict or change and it doesnt overwrite my modded content..


I am new to php and css stylesheet files ,but I look at so much code everyday after a month of reading tuitorials ,help files, and along with forums like this one It all starts making sense..Php just starts lookin like everyday language....maybe its just me, but thats how I learn..
Well Hope this helps and could  get posted in a place to help others as well....



Joachim Müller

split your posting from the sticky thread. Post a link to your site.

BlackCactus

Quote from: GauGau on November 24, 2005, 07:15:55 PM
split your posting from the sticky thread. Post a link to your site.

Thanks, I edited added my gallery link so you all can see what and where I had edited also seperated the code from steps taken..