Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Re: Adding a link to the main navigation?  (Read 3032 times)

0 Members and 1 Guest are viewing this topic.

BlackCactus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Adding a link to the main navigation?
« on: November 24, 2005, 07:07:27 pm »

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

Code: [Select]
<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

Code: [Select]
        '{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

Code: [Select]
'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....


« Last Edit: November 24, 2005, 07:23:14 pm by BlackCactus »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Adding a link to the main navigation?
« Reply #1 on: November 24, 2005, 07:15:55 pm »

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

BlackCactus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Adding a link to the main navigation?
« Reply #2 on: November 24, 2005, 07:25:12 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..
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.