coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: running-frag on March 18, 2008, 11:52:14 PM

Title: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 18, 2008, 11:52:14 PM
hi2all Please help me. I want to make some panel such as you can see in attachment... And there i want to see the names of albums i have. (maybe there wiil be a DIV or something else) But i can't understand, how can i get array with TITLEs in function -> $template_cat_list. And how make so, that this column accept value by himself (by script).... (now there is -> rowspan="100" =| ) I hope my idea is understanded.....
Use Coppermine Photo Gallery 1.4.10... I like it...

PS: Sory for my English, i'm from Ukraine.. Don't like use translaters. ;)

[Edit] Removed duplicate attachment {SaWey}
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: Joachim Müller on March 19, 2008, 07:45:51 AM
Quote from: running-frag on March 18, 2008, 11:52:14 PMUse Coppermine Photo Gallery 1.4.10...
Then upgrade as a first step.

Quote from: running-frag on March 18, 2008, 11:52:14 PMI want to make some panel such as you can see in attachment.
Add a right-handed sidebar by editing themes/yourtheme/template.html accordingly and populate that bar with static content for a start. Then go on to the next step.
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 19, 2008, 08:40:04 AM
Quote from: Joachim Müller on March 19, 2008, 07:45:51 AM
Then upgrade as a first step.
I don't want to change version. Because i've changed it a little, already..

Quote from: Joachim Müller on March 19, 2008, 07:45:51 AM
Add a right-handed sidebar by editing themes/yourtheme/template.html accordingly and populate that bar with static content for a start. Then go on to the next step.
I don't understand, have i to changed function to preview the {ALBUM_TITTLE}... If I insert new panel in tempalte.php will it show me my album names?
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: Joachim Müller on March 19, 2008, 08:43:42 AM
Quote from: running-frag on March 19, 2008, 08:40:04 AM
I don't want to change version. Because i've changed it a little, already..
That's not an option. It's mandatory to upgrade for security reasons. You won't lose your changes if you did as suggested in the docs and created a custom mtheme where your changes went into. If this is not the case, take a note of your changes to the core code and re-appyl them after upgrading. Note: I'm not suggesting that you perform a fresh install - I'm suggesting an upgrade that will not harm your gallery's content.

Quote from: running-frag on March 19, 2008, 08:40:04 AM
If I insert new panel in tempalte.php will it show me my album names?
No, it will display a static side bar for a start. Populate that side bar with dynamic content in the next stage. As a first step, you'll need to create the empty side-bar.
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 19, 2008, 11:05:04 AM
Quote from: Joachim Müller on March 19, 2008, 08:43:42 AM
That's not an option. It's mandatory to upgrade for security reasons. You won't lose your changes if you did as suggested in the docs and created a custom mtheme where your changes went into. If this is not the case, take a note of your changes to the core code and re-appyl them after upgrading. Note: I'm not suggesting that you perform a fresh install - I'm suggesting an upgrade that will not harm your gallery's content.
Ok. Do as you say...

Title: Re: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 19, 2008, 10:06:27 PM
So.. I've got something like that.. Attachment... What should I do next?
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: Joachim Müller on March 20, 2008, 07:41:37 AM
I assume that your custom placeholder token {links} comes after the {GALLERY} placeholder token. The {GALLERY} token is a separator between the stuff that  goes into the header and footer, so you will need to modify the pagefooter function accordingly. If this sounds too complicated for you, use the {CUSTOM_FOOTER} token instead of your custom token {links}. If this is an option for you, do as I suggested and replace {links} with {CUSTOM_FOOTER}. Then create a custom PHP file that is suppossed to create the content of the placeholder. Finally, go to coppermine's config and set the path to your custom footer there.
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 20, 2008, 12:33:03 PM
Quote from: Joachim Müller on March 20, 2008, 07:41:37 AM
I assume that your custom placeholder token {links} comes after the {GALLERY} placeholder token. The {GALLERY} token is a separator between the stuff that  goes into the header and footer, so you will need to modify the pagefooter function accordingly. If this sounds too complicated for you...
I don't think so... As i see in temp themes/mytheme/template.html there isn't such values to change. (In fisrt post i edit include/themes.inc.php... ) Where i can add this options? Page?
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: Joachim Müller on March 20, 2008, 07:26:12 PM
You mustn't edit include/themes.inc.php - under no circumstances. Undo your edits there!
Post a link to your gallery for a start.
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 20, 2008, 09:18:15 PM
It's in LAN..  :( For example http://anime.datasvit.net/gallery/... It's the same.
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: running-frag on March 23, 2008, 08:30:42 PM
Joachim Müller and what next? Or i did\say something wrong?
Title: Re: Add panel. (ALBUM_TITLE list)
Post by: Joachim Müller on March 23, 2008, 08:32:45 PM
No. But I can't help you if I can't see it. If your site is only accessible on the LAN and not the internet, you'll have to figure this out by yourself.