:?
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
sounds strange. Do you have a screenshot? Did you change any files?
GauGau
Did you, by any chance, click on user mode? If so, you need to click on admin mode.
--Rayne
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
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 -->
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
{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
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 = <<<EOT
<!-- BEGIN stat_row -->
<tr>
<td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
</tr>
<!-- END stat_row -->
<!-- BEGIN header -->
<tr>
<!-- END header -->
<!-- BEGIN album_cell -->
<td width="{COL_WIDTH}%" height="100%" valign="top">
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="1" valign="top" align="center" class="tableh2">
<b>{ALBUM_TITLE}</b>
</td>
</tr>
<tr>
<td colspan="3">
<img src="images/spacer.gif" width="1" height="1"><br />
</td>
</tr>
<tr height="100%">
<td align="center" height="100%" valign="middle" class="thumbnails">
<img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px;
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 -->
<!-- BEGIN empty_cell -->
<td width="{COL_WIDTH}%" height="100%" valign="top">
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="1" valign="top" class="tableh2">
<b>&nbsp;</b>
</td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="1"><br />
</td>
</tr>
<tr height="100%">
<td width="100%" height="100%" valign="top" class="tableb_compact"></td>
</tr>
</table>
</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
</tr>
<tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
</tr>
<!-- END footer -->
<!-- BEGIN tabs -->
<tr>
<td colspan="{COLUMNS}" style="padding: 0px;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
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
here's my current theme file...
http://zbull.kicks-ass.net:8080/theme.txt
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:
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