no editting album pics in admin mode no editting album pics in admin mode
 

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

no editting album pics in admin mode

Started by z_bull, December 16, 2003, 08:20:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z_bull

:?
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

Joachim Müller

sounds strange. Do you have a screenshot? Did you change any files?

GauGau

rayne

Did you, by any chance, click on user mode? If so, you need to click on admin mode.
--Rayne

z_bull

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

Casper

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 -->
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

z_bull

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

Joachim Müller

{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

Casper

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;
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

z_bull

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


Casper

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:
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

z_bull

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