forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: sarunas on October 23, 2004, 04:34:16 pm

Title: How to insert links into gallery description field or the main user menu?
Post by: sarunas on October 23, 2004, 04:34:16 pm
Hello.

I need to insert links to my other sites. Ideally, they should be seen
1) in main user menu
2) in the 'gallery description' field at the top of each page and/or
3) under each picture and/or

I have searched for a while but didn't find that answered.

I found a guy who did added links to the menu (just to prove it's possible): http://www.yenlyma.com/pm/

Thanks in advance.
Title: Re: How to insert links into gallery description field or the main user menu?
Post by: Casper on October 23, 2004, 05:03:27 pm
To add links into the menu, edit your theme.php, as shown here for the classic theme;

Code: [Select]
<span class="topmenu">

<a href="your-firstlink-url" title="your-first-link-name">your-first-link-name</a> ::
<a href="your-secondlink-url" title="your-second-link-name">your-second-link-name</a> ::

<!-- 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 -->

To add links into album or pic descriptions, see these sections of the faq;

http://coppermine.sourceforge.net/faq.php#LinkInAlbumDescription
http://coppermine.sourceforge.net/faq.php#linksInCustomFields
Title: Re: How to insert links into gallery description field or the main user menu?
Post by: Nibbler on October 24, 2004, 02:00:10 am
With the link you posted, the admin has added the links into the template.html instead, which is also a valid method.
Title: Re: How to insert links into gallery description field or the main user menu?
Post by: Matt22 on October 26, 2004, 02:26:58 pm
I modified this post, it did have a valid respose but....
I did have a question, but the I solved it by thinking of the obvious and putting two and twp
together! I FEEL LIKE A GENIUS!. *cough*

Pleasure doing busniess with you gentlemen.

*delete this post - coz i cant*
Title: Re: How to insert links into gallery description field or the main user menu?
Post by: Joachim Müller on October 27, 2004, 06:30:59 am
we do not remove postings, just leave it as it is.

Joachim