I welcome you Αndré. There was one problem, please help to solve it.
I need to have the text describing the album (class = "albdesc") is only output on the first page of the album.
Here:
http://i51.fastpic.ru/big/2013/0212/f7/63afa4053e107645199fcdaed01a39f7.jpg
It is also necessary to class = "albdesc" was under the photo. Here:
http://i51.fastpic.ru/big/2013/0212/c6/3dd3c8999bfe1eb2588fff7327ebe0c6.jpg
I guess you're using this mod (http://forum.coppermine-gallery.net/index.php/topic,67900.0.html) to display the album description on the thumbnails page? If so, it works for me as expected.
Please also post a link to your gallery.
Here is the link: http://www.krasivye-devushki.net/ :)
The album description is displayed for me on all three pages of that album: http://www.krasivye-devushki.net/thumbnails.php?album=2
Maybe I misunderstood your request. Do you want to display the album description additionally at the bottom of each thumbnail page?
Yes, at the bottom :)
I also want to description of the album is not duplicated on other pages, because it is bad for SEO :)
I would also like to description of the album was not a question of solid text, and was divided into paragraphs. And so you can use BB-code to identify the keys to the <strong> tag, well, the same as in the file anycontent.php
So you want to display the album description above and below the thumbnails, but just on the first thumbnail page of each album, correct?
Yes, the thumbnails below, and only on the first page of each album :)
Just below the thumbnails! Otherwise, why would two of the same type on a page!? :)
Undo your current mod to remove the album description above the thumbnails.
Copy function theme_display_thumbnails to your themes theme.php file if it doesn't exists. Then, find
CPGPluginAPI::action('theme_thumbnails_wrapper_end', null);
and replace with
CPGPluginAPI::action('theme_thumbnails_wrapper_end', null);
if ($page == 1) {
echo $CURRENT_ALBUM_DATA['description'];
}
Thank you very much Αndré, it works. And tell me how I can do to be able to use bb-code? And so you can share the text into paragraphs?
Here:
http://i51.fastpic.ru/big/2013/0213/0a/065eb799ffbba437c615ab240de5010a.jpg
Use this code:
CPGPluginAPI::action('theme_thumbnails_wrapper_end', null);
if ($page == 1) {
echo bb_decode($CURRENT_ALBUM_DATA['description']);
}
Since paragraphs worked and tagged unfortunately not :(
Here:
http://i54.fastpic.ru/big/2013/0213/99/da019d6459c5c7fa6d182f7633634099.jpg
Use [b] instead of [strong].
Thank you very much, I'll know now :)
I'll probably already tired at all, I only have one last question for.These pages are doubles:
http://www.krasivye-devushki.net/thumbnails.php?album=2
and
http://www.krasivye-devushki.net/thumbnails.php?album=2&page=1
Can I make the page to http://www.krasivye-devushki.net/thumbnails.php?album=2&page=1, always appear as http://www.krasivye-devushki.net/thumbnails.php?album=2 ?
That should be possible with an appropriate rewrite rule on web server level. Alternatively you have to modify the Coppermine code at probably various places.
In .htaccess 301 redirect? :)
Try something like
RewriteEngine on
RewriteCond %{QUERY_STRING} ^(.*)&page=1$ [NC]
RewriteRule ^thumbnails\.php$ http://www.krasivye-devushki.net/thumbnails.php?%1
Αndré once again thank you very much for the points that helped me optimize the photo gallery! ;)
Good day Andre!
I can not set the style in anycontent.php, namely:
echo <<< EOT
<tr>
<td class="tableb">
text
</td>
</tr>
EOT;
endtable();
When it is added before the line:
CPGPluginAPI::action('theme_thumbnails_wrapper_end', null);
Gallery stops working.
Please tell me where I need to insert these tags, it does not look very nice :)
Here are screenshots:
anycontent.php: http://i52.fastpic.ru/big/2013/0301/a0/8814355716320d3a5207f3b0a31a17a0.jpg
thumbnails: http://i54.fastpic.ru/big/2013/0301/4d/cef8f388f4f304d646037a681621a64d.jpg
I don't know what you try to accomplish and how anycontent.php is related to whatever you want to add before/after the plugin hook. Please post more details.
I wish that was the same table, and style of text in the description of each album in anycontent.php
Please come to my gallery and look :)
Andre, It does not matter of course, but I would like to make it all aesthetically pleasing :)
Here again, just so you know what I mean ;)
anycontent.php - tableb: http://i54.fastpic.ru/big/2013/0301/74/2bc1adddd71475aebad58d079a41a974.jpg
thumbnails - not tableb: http://i51.fastpic.ru/big/2013/0301/15/dd34431041b572bcdc76cdb5b4539b15.jpg
In style.css
.tableb {
background: #F2F5F7 ;
padding-top: 3px;
padding-right: 5px;
padding-bottom: 3px;
padding-left: 5px;
}
Undo your current mod. Then, find
endtable();
CPGPluginAPI::action('theme_thumbnails_wrapper_end', null);
and above, add
if ($page == 1) {
echo '<tr><td class="tableb" colspan="'.$thumbcols.'">'.bb_decode($CURRENT_ALBUM_DATA['description']).'</td></tr>';
}
Thank you very much Andre! :)