how to add link to the menu how to add link to the menu
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

how to add link to the menu

Started by YUKAHO89, August 31, 2004, 03:45:55 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

YUKAHO89

THx like this

Joachim Müller

edit themes/mac_ox_x/theme.php, find<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
EOT;
and replace with<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
                                                <a href="myfile.htm">my link text</a> |

EOT;


Find                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
and add after it                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="myfile.htm" onMouseOver="MM_showHideLayers('Menu1','','hide')">my link text</a>
                                        </td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>


In the future, please search before posting, as this has been asked before already.

Joachim

brownbabe

Quote from: GauGau on August 31, 2004, 11:46:58 PM
edit themes/mac_ox_x/theme.php, find<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
EOT;
and replace with<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
                                                <a href="myfile.htm">my link text</a> |

EOT;


Find                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
and add after it                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="myfile.htm" onMouseOver="MM_showHideLayers('Menu1','','hide')">my link text</a>
                                        </td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>


In the future, please search before posting, as this has been asked before already.

Joachim

HELP!!!!!
I did exactly as above and now everything's gone blank!!!!!

Nibbler

I expect you did the editting incorrectly. Attach your theme.php to this thread, rename it first.

brownbabe

Sorry, but do I just copy and paste it here? Is that what you are asking?

Joachim Müller

rename a local copy from theme.php to theme.txt, reply to this thread, click on "additional options" at the bottom left when composing your message and attach your file to your reply.

brownbabe


Joachim Müller

you didn't, there's no attachment that goes with your posting. If you're having issues with attaching a file, upload the theme.php renamed to txt or zipped and upload it to your server. Then post a link to the file so we can download it from there.

brownbabe

Quote from: GauGau on November 20, 2005, 10:34:09 PM
you didn't, there's no attachment that goes with your posting. If you're having issues with attaching a file, upload the theme.php renamed to txt or zipped and upload it to your server. Then post a link to the file so we can download it from there.

I am totally stupid when it comes to this stuff so here is the link to the file I attempted to attach.
http://womenmotorcyclistsunited.com/coppermine/themes/mac_ox_x/themes/mac_ox_x/macox

Is that OK? All I wanted to do was add a link so that people could get back to my homepage and now I am a big whiny baby :\'(

brownbabe

Can't I just re download the mac ox template somehow?

Nibbler

The idea is that you give us the version of the file that you modified so we can see what the problem is. Giving us a completely unmodified file is pointless.

brownbabe

Quote from: Nibbler on November 20, 2005, 11:51:28 PM
The idea is that you give us the version of the file that you modified so we can see what the problem is. Giving us a completely unmodified file is pointless.

Can you walk me thru this so I can do it right? Just tell me what buttons I need to press. I can follow step by step instructions well enough.

brownbabe

I have somehow managed to restore the moc_ox_x back into my photogallery where it doesn't revert to classic. Now I am afraid to do anything to it. Please tell me again in concise steps how I can place a link back to my homepage on that particular template. I don't want to lose it again by doing something stupid.


brownbabe

#13
Quote from: GauGau on August 31, 2004, 11:46:58 PM
edit themes/mac_ox_x/theme.php, find<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
EOT;
and replace with<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
                                                <a href="myfile.htm">my link text</a> |

EOT;


Find                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
and add after it                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="myfile.htm" onMouseOver="MM_showHideLayers('Menu1','','hide')">my link text</a>
                                        </td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>


In the future, please search before posting, as this has been asked before already.

Joachim


Sorry, I am having great difficulty understanding this. But a question or 2 that might help me get this a little clearly.

Step 1. OK I found this code:
find<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
EOT;


Step 2. Replace code with:
<!-- BEGIN logout -->
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a> |
<!-- END logout -->
                                                <a href="myfile.htm">my link text</a> |

EOT;


I just copied and pasted it....was that not what I do? Do I have to replace "myfile.htm" With a file of my own? Or do I leave it as is?

Step 3

Find second set of code. OK I did that too.

Step 4 Add after it.....I just copied and pasted that too. I have no clue if that is what I am to do.....or do I fill in or change something in this line under "myfile.htm":


  <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="myfile.htm" onMouseOver="MM_showHideLayers('Menu1','','hide')">my link text</a>
                                        </td>

For example do I write the line as such.

  <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="return to website.htm" onMouseOver="MM_showHideLayers('Menu1','','hide')">my link text</a>
                                        </td>

Or is it like this:
  <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="myfile.htm" onMouseOver="MM_showHideLayers('Menu1','','hide')">return to website</a>
                                        </td>

Sorry for all the code copying but I am trying to understand this.

P.S. Is there anywhere I can test this before I try it on my own gallery. I don't want to make a mistake again.


Joachim Müller

download the attached file, rename it from theme.php.txt to theme.php and replace the one you have inside your folder /coppermine/themes/mac_ox_x/ with the one I supplied. For the future, I recommend following instrctions more thoroughly and learning some HTML. Use a plain text editor to edit your files, notepad.exe is fine.

brownbabe

Gaugau,

THANK YOU!!!! so much. I really appreciate what you did. (((((BIG HUG)))))

And yes, I think I need to take some lessons of this code thing.

Thanks again. It works now. ;D

Loïc

I've already done this by myself and it works perfectly. But I want my gallery to be available in several languages. So I guess I have to add some new variables in the language files and to use it instead of "<a href="myfile.htm">my link text</a>". Can someone tell me where I have to difine those variables?