coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: z_bull on December 16, 2003, 08:20:14 PM

Title: no editting album pics in admin mode
Post by: z_bull on December 16, 2003, 08:20:14 PM
:?
one day the ability to edit albums disappeared.  The "edit pics", "properties" links have disappeared.

anyone have an ideas how i could get this function back in there?

thanks!
z_bull
Title: no editting album pics in admin mode
Post by: Joachim Müller on December 17, 2003, 12:06:01 AM
sounds strange. Do you have a screenshot? Did you change any files?

GauGau
Title: no editting album pics in admin mode
Post by: rayne on December 19, 2003, 05:47:37 AM
Did you, by any chance, click on user mode? If so, you need to click on admin mode.
--Rayne
Title: no editting album pics in admin mode
Post by: z_bull on December 22, 2003, 09:01:07 PM
No, i'm in Admin mode for sure.

Yes gaugua...i did change the theme.php file...but the area that affects the album editing seems intact.

Here is a screen shot:
http://zbull.kicks-ass.net:8080/cpg_ss.gif

Here is the theme.php code...maybe ya'll can see something i am overlooking:

http://zbull.kicks-ass.net:8080/theme.txt

Thanks!
ZBull
Title: no editting album pics in admin mode
Post by: Casper on December 22, 2003, 09:50:40 PM
Looks like you have an empty cell where you should have the {ADMIN_MENU}

find this in your code,
margin-bottom: 0px; border: none;"><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->


And replace it with this
margin-bottom: 0px; border: none;"><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td height="100%">
                        <img src="images/spacer.gif" width="1" height="1">
                </td>
                <td width="100%" height="100%" valign="top" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->
Title: no editting album pics in admin mode
Post by: z_bull on December 22, 2003, 10:33:02 PM
Thanks for responding gaugau

Hmmm, well i made the change as you suggested but still nothing shows.  I completely removed the old theme.php and replaced it with the modified one...still to no avail.

Do you have any other suggestions?

i have updated the link with the your recommended changes....
http://zbull.kicks-ass.net:8080/theme.txt
Title: no editting album pics in admin mode
Post by: Joachim Müller on December 22, 2003, 11:41:01 PM
{ADMIN_MENU} doesn't belong into theme.php, but template.html (it was casper who responded btw).
Let's test this the other way round: use one of the unmodified themes that come with coppermine (add ?theme=default to the gallery url) and check if everything else works as expected - then we can be sure it's related to your modifications of theme.php.

GauGau
Title: no editting album pics in admin mode
Post by: Casper on December 23, 2003, 01:00:04 AM
I was refering to the theme.php, as posted by z_bull.

the {ADMIN_MENU} doesn't belong to this file, but it is called into play theme.php, as here in the hardwired theme.php,in the // HTML template for the album list section
 <td width="100%" height="100%" valign="top" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->


However, z_bulls theme.php has an empty cell where it is called in the usual theme.php

EOT;
// HTML template for the album list
$template_album_list = &lt;&lt;&lt;EOT
&lt;!-- BEGIN stat_row --&gt;
        &lt;tr&gt;
                &lt;td colspan="{COLUMNS}" class="tableh1" align="center"&gt;&lt;span class="statlink"&gt;&lt;b&gt;{STATISTICS}&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
&lt;!-- END stat_row --&gt;
&lt;!-- BEGIN header --&gt;
        &lt;tr&gt;
&lt;!-- END header --&gt;
&lt;!-- BEGIN album_cell --&gt;
        &lt;td width="{COL_WIDTH}%" height="100%" valign="top"&gt;
        &lt;table width="100%" height="100%" cellspacing="0" cellpadding="0"&gt;
        &lt;tr&gt;
                &lt;td colspan="3" height="1" valign="top" align="center" class="tableh2"&gt;
                        &lt;b&gt;{ALBUM_TITLE}&lt;/b&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
                &lt;td colspan="3"&gt;
                        &lt;img src="images/spacer.gif" width="1" height="1"&gt;&lt;br /&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr height="100%"&gt;
                &lt;td align="center" height="100%" valign="middle" class="thumbnails"&gt;
                        &lt;img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px;
 margin-bottom: 0px; border: none;"&gt;&lt;br /&gt;
                        &lt;a href="{ALB_LINK_TGT}" class="albums"&gt;{ALB_LINK_PIC}&lt;br /&gt;&lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
        &lt;/td&gt;
&lt;!-- END album_cell --&gt;
&lt;!-- BEGIN empty_cell --&gt;
        &lt;td width="{COL_WIDTH}%" height="100%" valign="top"&gt;
        &lt;table width="100%" height="100%" cellspacing="0" cellpadding="0"&gt;
        &lt;tr&gt;
                &lt;td height="1" valign="top" class="tableh2"&gt;
                        &lt;b&gt;&amp;nbsp;&lt;/b&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
                &lt;td&gt;
                        &lt;img src="images/spacer.gif" width="1" height="1"&gt;&lt;br /&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr height="100%"&gt;
                &lt;td width="100%" height="100%" valign="top" class="tableb_compact"&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
        &lt;/td&gt;
&lt;!-- END empty_cell --&gt;
&lt;!-- BEGIN row_separator --&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
&lt;!-- END row_separator --&gt;
&lt;!-- BEGIN footer --&gt;
        &lt;/tr&gt;
&lt;!-- END footer --&gt;
&lt;!-- BEGIN tabs --&gt;
        &lt;tr&gt;
                &lt;td colspan="{COLUMNS}" style="padding: 0px;"&gt;
                        &lt;table width="100%" cellspacing="0" cellpadding="0"&gt;
                                &lt;tr&gt;
Title: no editting album pics in admin mode
Post by: z_bull on January 12, 2004, 08:14:32 PM
Thanks for the responses gaugau and casper...much appreciated.

Ok...i have this in my theme.php now:
<td width="100%" height="100%" valign="top" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->

But it still doesn't show....BUT, if i click on an album and then in the crumb list, click the Category name, it will bring me back to the category WITH the album edit options there.  But only for that category, whereas it used to do it for all albums in all categories.

And yes, gaugau...i put ?them=default and it works like it should.  So it's gotta be in my theme.php somewhere i assume...just don't know where!  :shock:

Any ideas?

Thanks ya'll
Z_Bull
Title: no editting album pics in admin mode
Post by: z_bull on January 12, 2004, 08:16:05 PM
here's my current theme file...
http://zbull.kicks-ass.net:8080/theme.txt
Title: no editting album pics in admin mode
Post by: Casper on January 13, 2004, 12:05:51 PM
OK, I tried this on my test site, and found the same problem, which is caused by some missing code.

Find this (at line 350, 2nd time this appears)

<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>


Now add after,
<td height="100%">
                        <img src="images/spacer.gif" width="1" height="1">
                </td>
                <td width="100%" height="100%" valign="top" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>


That should cure your problem.  :wink:
Title: no editting album pics in admin mode
Post by: z_bull on January 13, 2004, 09:58:28 PM
awesome!  it worked... Thanks a lot Casper!   :lol:  :D  

I do have another question for ya if you can stand it...
now that i added that code...it leaves a description in user mode because of:
<p class="album_stat">{ALB_INFOS}</p>

I removed this section b/c it is unnecessary in my situation...but it still  leaves the table cell there.  

Is there a way to keep that cell out of the usermode and only appear in the admin mode?

Again thanks a lot...i have been scratching my head on that last problem for awhile now.  Much appreciated!!

Regards,
Z_bull