Show in album list - album=lastalb Show in album list - album=lastalb
 

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]

Main Menu

Show in album list - album=lastalb

Started by johnfelipe, August 11, 2013, 03:36:02 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

johnfelipe

Hi please tell me how edit and where edit for add in album list "album=lastalb" option

Tnks

Αndré

Sorry, but I don't get what you're asking for. Do you want to change The content of the main page?

johnfelipe

No, how put in menu "album=lastalb" option

Please help


johnfelipe

Sorry, but file?, path? and line code for add

TNKS

Αndré

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

johnfelipe

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

johnfelipe

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

johnfelipe

Hi, but &cat=0, not refresh in other categories

Please help me

Tnks

Αndré

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
<!-- 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:
<!-- 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:
Quote from: Αndré on August 27, 2013, 01:22:18 PM
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'].

johnfelipe

I change but please see atach

"{LASTALB_ICO}{LASTALB_LNK}"

johnfelipe

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

Αndré

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.

johnfelipe

Quote from: Α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.

Hi again, and tell me how do in your way

Αndré

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.