Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Greenflower Theme (same as wordpress)  (Read 22771 times)

0 Members and 1 Guest are viewing this topic.

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Greenflower Theme (same as wordpress)
« on: January 08, 2011, 10:02:41 pm »

In 1.4.x the Greenflower theme was available. Because I wanted to update my album to the latest version I've converted that version to 1.5.x.

I hope I've done a good job. This is the first time I changed/created a theme myself.

Enjoy it!


Demo - Download

Changes for version v1.4 read Reply #17 by allvip.
« Last Edit: July 03, 2015, 12:29:07 am by allvip »
Logged

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Re: Greenflower Theme (same as wordpress)
« Reply #1 on: January 08, 2011, 10:06:38 pm »

A little mestake was in the startpost ZIP file. The folder it's zipped in is incorrect. (greenfloweroriginal should be greenflower)

Attached you find the correct version.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Greenflower Theme (same as wordpress)
« Reply #2 on: January 09, 2011, 12:32:33 am »

Excellent work. I will fully review your contribution and add it to the repository tomorrow, many thanks.

I have added you to the contributor group so you can edit your initial posting with the most recent version of your contribution. Only contributors and above are allowed to edit posts but we would ask you to only make minor edits such as correcting typos or updating files. I only point this out as some new contributors have been deleting posts making threads hard to read.

Once again, many thanks for your contribution.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Re: Greenflower Theme (same as wordpress)
« Reply #3 on: January 10, 2011, 12:43:02 pm »

I've just found a little flaw. When logged on as administrator the admin buttons don't show under the pictures. Also the graphics for picture rating don't show. I'll look at it tonight. I'm at work now.
Logged

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Re: Greenflower Theme (same as wordpress)
« Reply #4 on: January 11, 2011, 09:26:00 pm »

Found another flaw. Tabs are not working. Tabs are pointing to the homepage.

I didn't find the time yet to look at it. It's realy busy at work and at home (kids :P)
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Greenflower Theme (same as wordpress)
« Reply #5 on: January 11, 2011, 11:35:23 pm »

Yep, I discovered a few mistakes. I too have little time to work on it at the moment so await your next release.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Re: Greenflower Theme (same as wordpress)
« Reply #6 on: January 12, 2011, 09:34:59 am »

If you have found other issues please let me know so I can check them out.
Logged

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Re: Greenflower Theme (same as wordpress)
« Reply #7 on: January 13, 2011, 09:19:00 pm »

I think I worked all out. Can you please check this version?
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Greenflower Theme (same as wordpress)
« Reply #8 on: January 14, 2011, 12:42:39 am »

Looking good. All seems to be working as it should. I will have a quick review of the code tomorrow and if all is good then I will add it to the demo and download. Well done.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Greenflower Theme (same as wordpress)
« Reply #9 on: January 19, 2011, 09:56:41 am »

Phill, is the theme ready to add it to the demo and download section?
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Greenflower Theme (same as wordpress)
« Reply #10 on: January 19, 2011, 05:12:09 pm »

Yes, it is ready. I had intended to add it on return from my road trip on Friday but feel free to do so if you have the time.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Greenflower Theme (same as wordpress)
« Reply #11 on: January 19, 2011, 06:54:39 pm »

Added links to demo and download section to initial post.
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 947
  • +Tinyportal Support team.
Re: Greenflower Theme (same as wordpress)
« Reply #12 on: January 19, 2011, 07:34:51 pm »

Nice theme, thanks for the effort.  ;)

Just a observation.  The theme doesn't work correctly in IE8, it shows scroll bars at the bottom and right hand side.   This doesn't happen with the old 1.4x version.

Just thought I'd mention it.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

CPGFleCs

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 7
Re: Greenflower Theme (same as wordpress)
« Reply #13 on: January 20, 2011, 08:56:59 pm »

I'll take a look at it. The problem is on the demo the image size for the random pics etc. are set to large for this theme.
Logged

jenepherre

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 54
  • there's beauty in the breakdown
Re: Greenflower Theme (same as wordpress)
« Reply #14 on: April 07, 2011, 09:38:49 pm »

There are still problems with this conversion. See my post here: http://forum.coppermine-gallery.net/index.php/topic,71938.msg348422.html#msg348422

I'd try to fix it myself, but I only know a little bit about PHP. This theme is perfect for what I want to use it for. Can these issues be fixed please?

Thanks in advance.
Logged
=================================
Jen Robertson
=================================
I don't want to explain, I just want to dance.

didy

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Greenflower Theme (same as wordpress)
« Reply #15 on: April 11, 2011, 12:05:29 pm »

Added links to demo and download section to initial post.
My themе is greenflower.
It looks as it should now, but SORT POSITION and SShow not work correctly.
http://arts.gpaeburgas.org
Pleace help!
Logged

cimona

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
    • Simona Mar
Re: Greenflower Theme (same as wordpress)
« Reply #16 on: April 15, 2011, 06:33:21 pm »

I noticed the images rate_full, rate_empty, rating and rate_new are missing so I made them for you.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Greenflower Theme (same as wordpress)
« Reply #17 on: May 21, 2015, 01:43:53 am »

THEME ERRORS:

1) In style_cpg.css I found an error ( ( instead of {) that causes all the styles after it not to work. Example:  the help overlay (?) from Config is transparent. This way you can not read the help. #GB_window background: #FFFFFF; is after .breadlink.

Code: [Select]
.breadlink (
        color: #657172;
        font-size: 9px;
    font-family: tahoma, arial, Microsoft Sans Serif;
}

should be:

Code: [Select]
.breadlink {
        color: #657172;
        font-size: 9px;
    font-family: tahoma, arial, Microsoft Sans Serif;
}

2) The filmstrip thumbnails have TOKENS (see attachment filmstrip.jpg). Can filmstrip thumbnails have admin menu?  :o
Maybe can have caption but not admin menu.

In function // HTML template for filmstrip display (in theme.php)

Code: [Select]
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->

should be replaced with:

Code: [Select]
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                </td>
<!-- END thumb_cell -->

In this topic Display Title for Filmstrip thumbnails.. http://forum.coppermine-gallery.net/index.php/topic,74799.0.html the picture title is added under the filmstrip thumbnails (see attachment film.jpg) but the edits are made in the coppermine files not the theme. I would not know how to make it in the theme.

3) Slideshow button is not working. When I click it: Not Found. The requested URL /cpg15x/{SLIDESHOW_TGT} was not found on this server. Error in theme.php function // HTML template for the image navigation bar:

Code: [Select]
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>

If I repace it with:

Code: [Select]
<!-- BEGIN slideshow_button -->
                <!-- button will be added by displayimage.js -->
                <td id="slideshow_button" align="center" valign="middle" class="navmenu" width="48"></td>
<!-- END slideshow_button -->
it works, but instead of the custom icon it shows Slideshow text.

He used the constant define('THEME_HAS_NAVBAR_GRAPHICS', 1); and the function // HTML template for the image navigation bar to add custom images. He should use only one option. The theme did not took the navbar images from the theme folder when he used define('THEME_HAS_NAVBAR_GRAPHICS', 1); because they need to be png files not gif and not in the greenflower/images folder but in greenflower/images/navbar

Remove from theme.php:

Code: [Select]
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

        <tr class="graybox">
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;

Convert with a photo editor ecard.gif, info.gif, report.gif, slideshow.gif, thumbnails.gif, next.gif, prev.gif to png files and also create start.png and end.png. Create folder navbar in the images folder and add the new created png files. (I attached the navbar images in the navbar.zip). Delete ecard.gif, info.gif, report.gif, slideshow.gif, thumbnails.gif, next.gif, prev.gif from the images folder.

4) Sort option for thumbnails page is not working. Example: sort by title ascending goes to invalid url http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album={AID}&page={PAGE}&sort=ta. I don't know how to edit the code to make it work. If I replace {AID} with {ALBUM_ID} it works, but I don't know with what to replace {PAGE}. {PAGE} is not working. It shows in the link as a token. Also title="{SORT_TA}" should be replaced with title="Title Ascending".

DELETE from theme.php:

Code: [Select]
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT
<h2>{ALBUM_NAME}</h2>

    <ul>
        <li class="sortorder_options">
            {TITLE}
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}"><img class="no_border" src="themes/greenflower/images/ascending.gif" alt="+" /></a>
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}"><img class="no_border" src="themes/greenflower/images/descending.gif" alt="-" /></a>
        </li>
        <li class="sortorder_options">
            {NAME}
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}"><img class="no_border" src="themes/greenflower/images/ascending.gif" alt="+" /></a>
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}"><img class="no_border" src="themes/greenflower/images/descending.gif" alt="-" /></a>
        </li>
        <li class="sortorder_options">
            {DATE}
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}"><img class="no_border" src="themes/greenflower/images/ascending.gif" alt="+" /></a>
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}"><img class="no_border" src="themes/greenflower/images/descending.gif" alt="-" /></a>
        </li>
        <li class="sortorder_options">
            {POSITION}
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}"><img class="no_border" src="themes/greenflower/images/ascending.gif" alt="+" /></a>
            <a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}"><img class="no_border" src="themes/greenflower/images/descending.gif" alt="-" /></a>
        </li>
    </ul>

<br class="clearboth" />
EOT;

Replace from style_cpg.css:

Code: [Select]
.sortorder_options {
float:right;
padding:0 10px;
font-size:80%;
list-style-type:none;
white-space:nowrap;
text-align:right;
}

with:

Code: [Select]
.sortorder_options
{
padding-left:15px;
list-style:none;
background:url(images/parl_bullet.png) no-repeat top left;
}

5) Rating images under image on displayimage are broken links.

Open theme.php and replace:

Code: [Select]
define('THEME_HAS_RATING_GRAPHICS', 0);


with:

Code: [Select]
define('THEME_HAS_RATING_GRAPHICS', 1);

Add the images from the folder rate to greenflower/images (I attached rating.zip).
« Last Edit: July 03, 2015, 12:23:04 am by allvip »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Greenflower Theme (same as wordpress)
« Reply #18 on: June 01, 2015, 10:25:41 pm »

Regarding 4)

The sort options are added via JavaScript. Please have a look at that block in themes/sample/theme.php. You need to replace all sort options with
Code: [Select]
<td style="text-align:right;" class="sortorder_cell" id="sortorder_cell">
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Greenflower Theme (same as wordpress)
« Reply #19 on: June 05, 2015, 12:05:45 am »

Thanks Andre.
I updated my reply.
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 20 queries.