coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: rctycoon86 on May 25, 2004, 10:20:51 PM

Title: [Solved]: adding links
Post by: rctycoon86 on May 25, 2004, 10:20:51 PM
I would like to add a link to my website at the bottom of my photo album.  Which file should I change and where should I put the code for the link?  I took a look at the theme.php file, but couldn't quite figure out where to add it.  Thanks!

http://gallery.simtycoongamer.net/
Title: Re: adding links
Post by: Casper on May 25, 2004, 10:27:39 PM
To put the link at the bottom, just add it in your theme template.html.
Find this table row;
<tr>
<td align="center" valign="top">
{ADMIN_MENU}
{GALLERY}
</td>


And add a new row/cell with the link under it.
Title: Re: adding links
Post by: rctycoon86 on May 26, 2004, 10:19:02 PM
That worked.  Thanks.
Title: Re: [Solved]: adding links
Post by: iCoty on August 13, 2004, 01:52:53 PM
How would you add a link to the area with the other links (i.e. Album list, my gallery, upload file, search, etc.)

Let's say that i want to insert a link to my forum,,,what part of the code would I have to change?
Title: Re: [Solved]: adding links
Post by: Casper on August 13, 2004, 07:04:54 PM
Theme.php.. This is also in the docs.
Title: Re: [Solved]: adding links
Post by: iCoty on August 14, 2004, 01:00:37 AM
Okay, i tried to add the link. Now after I changed the cde it looks something like this:

Album list :: My gallery :: User mode :: Upload file :: {FORUM_LNK} :: Logout [iCoty]                         
Last uploads :: Last comments :: Most viewed :: Top rated :: My Favorites :: Search

I edited the "theme.php" file located in the themes>classic folder

I assuming that I have to input the url somewhere in the code but I don't know where. When i click {FORUM_LNK} it leads to a Not Found page.

the code looks like this:

// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> ::
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a>  ::
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a> ::
<!-- END my_profile -->
<!-- BEGIN faq -->
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> ::
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> ::
<!-- END upload_pic -->
<!-- BEGIN forum -->
                        <a href="{FORUM_TGT}" title="{FORUM_TITLE}">{FORUM_LNK}</a> ::
<!-- END forum -->
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->
                        <br />
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
                </span>
Title: Re: [Solved]: adding links
Post by: Nibbler on August 14, 2004, 01:05:37 AM
Don't just make up a {FORUM_TGT}, add the url straight in there. Same goes for the others.
Title: Re: [Solved]: adding links
Post by: iCoty on August 14, 2004, 01:28:32 AM
So just replace FORUM_TGT with my URL? When I do that it still doesn't work out.

Am i modifying the correct file? I am editing the "theme.php" file in the themes>classic folder
Title: Re: [Solved]: adding links
Post by: Nibbler on August 14, 2004, 01:31:18 AM
<a href="http://www.mydomain.com/forum" title="Go to my forum">Forum</a> ::

If it doesnt work, gimme a link to your gallery.
Title: Re: [Solved]: adding links
Post by: iCoty on August 14, 2004, 01:34:12 AM
Sweet...It works!

Thanks nibbler!