forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: johnfelipe on August 11, 2013, 03:36:02 am

Title: Show in album list - album=lastalb
Post by: johnfelipe on August 11, 2013, 03:36:02 am
Hi please tell me how edit and where edit for add in album list "album=lastalb" option

Tnks
Title: Re: Show in album list - album=lastalb
Post by: Αndré on August 21, 2013, 12:12:37 pm
Sorry, but I don't get what you're asking for. Do you want to change The content of the main page (http://documentation.coppermine-gallery.net/en/configuration.htm#admin_album_list_content)?
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on September 17, 2013, 08:30:32 pm
No, how put in menu "album=lastalb" option

Please help
Title: Re: Show in album list - album=lastalb
Post by: Αndré on September 18, 2013, 09:24:55 am
See http://forum.coppermine-gallery.net/index.php/topic,76573.msg369519.html#msg369519
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on September 20, 2013, 09:54:59 am
Sorry, but file?, path? and line code for add

TNKS
Title: Re: Show in album list - album=lastalb
Post by: Αndré on September 20, 2013, 10:03:47 am
There are already a lot of threads that describes how to add menu buttons. As this really depends on your theme, I cannot post a generic solution, as it won't work with all themes. However, here's one of the threads that describes in general what you have to add to your theme's theme.php file to edit the menu buttons: http://forum.coppermine-gallery.net/index.php/topic,68315.0.html
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on September 21, 2013, 05:28:00 pm
Hi

add this

<!-- BEGIN lastalb -->
                        <li>
                            <a href="{LASTUP_TGT}" title="Ultimas Plantillas" rel="nofollow"><span>{LASTUP_ICO}{LASTALB_LNK}</span></a>
                        </li>
<!-- END lastalb -->

But title show it {LASTALB_LNK}, please tell me how put it "Ultimas Plantillas"

Tnks
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on September 21, 2013, 05:33:34 pm
work with this:

<!-- BEGIN lastalb -->
                        <li>
                            <a href="thumbnails.php?album=lastalb" title="Ultimas Plantillas" rel="nofollow"><span>{LASTUP_ICO}Ultimas Plantillas</span></a>
                        </li>
<!-- END lastalb -->

But is not happy with that, please exactly how add with {___}

Tnks
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on September 27, 2013, 08:41:41 am
Hi, but &cat=0, not refresh in other categories

Please help me

Tnks
Title: Re: Show in album list - album=lastalb
Post by: Αndré on October 01, 2013, 04:13:39 pm
As already explained, please have a look at an already existing menu button like the "last uploads" button and search for all occurrences of its tokens (like {LASTUP_LNK}) to get an idea how the token thing works.

You added this
Code: [Select]
<!-- BEGIN lastalb -->
                        <li>
                            <a href="{LASTUP_TGT}" title="Ultimas Plantillas" rel="nofollow"><span>{LASTUP_ICO}{LASTALB_LNK}</span></a>
                        </li>
<!-- END lastalb -->
which is obviously incorrect. Please use this instead:
Code: [Select]
<!-- BEGIN lastalb -->
                        <li>
                            <a href="{LASTALB_TGT}" title="{LASTALB_TITLE}" rel="nofollow"><span>{LASTALB_ICO}{LASTALB_LNK}</span></a>
                        </li>
<!-- END lastalb -->


Now the post I already referred to applies:
I suggest to compare how it's done for the other buttons, e.g. search for {LASTUP_LNK} and you'll find another occurrence of that token in the function theme_main_menu. You'll have to add 4 new rows to the $param array. As there are no language strings in $lang_main_menu, you either need to hardcode them or you could use $lang_meta_album_names['lasthits'].
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on October 03, 2013, 10:16:20 pm
I change but please see atach

"{LASTALB_ICO}{LASTALB_LNK}"
Title: Re: Show in album list - album=lastalb
Post by: johnfelipe on October 03, 2013, 11:48:44 pm
Solved.

i change this

<!-- BEGIN lastalb -->
                        <li>
                            <a href="{LASTALB_TGT}" title="Ultimas Plantillas" rel="nofollow"><span>{LASTUP_ICO}Ultimas Plantillas</span></a>
                        </li>
<!-- END lastalb -->

and add in themes.inc.php this

'{LASTALB_TGT}' => "thumbnails.php?album=lastalb$cat_l2",

Tnks
Title: Re: Show in album list - album=lastalb
Post by: Αndré on October 04, 2013, 11:25:54 am
I don't get why you just follow my advice and replace all 4 tokens inside the function theme_main_menu in your theme's theme.php file.

However, as this seems to be solved for you, please mark your thread accordingly.
Title: Re: Re: Show in album list - album=lastalb
Post by: johnfelipe on May 13, 2014, 11:43:38 am
I don't get why you just follow my advice and replace all 4 tokens inside the function theme_main_menu in your theme's theme.php file.

However, as this seems to be solved for you, please mark your thread accordingly.

Hi again, and tell me how do in your way
Title: Re: Show in album list - album=lastalb
Post by: Αndré on June 16, 2014, 12:33:57 pm
I already told you several times. If you're not able to follow my advices, you at least need to follow our board rules and post a link to your gallery or attach your theme as zip file, so I can add those simple changes to your theme.