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: no editting album pics in admin mode  (Read 6302 times)

0 Members and 1 Guest are viewing this topic.

z_bull

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
no editting album pics in admin mode
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
no editting album pics in admin mode
« Reply #1 on: December 17, 2003, 12:06:01 am »

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

GauGau
Logged

rayne

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
no editting album pics in admin mode
« Reply #2 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
Logged

z_bull

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
no editting album pics in admin mode
« Reply #3 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
no editting album pics in admin mode
« Reply #4 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,
Code: [Select]
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
Code: [Select]
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 -->
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
no editting album pics in admin mode
« Reply #5 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
no editting album pics in admin mode
« Reply #6 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
no editting album pics in admin mode
« Reply #7 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
Code: [Select]
 <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

Code: [Select]
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;
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
no editting album pics in admin mode
« Reply #8 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:
Code: [Select]
<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
Logged

z_bull

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
no editting album pics in admin mode
« Reply #9 on: January 12, 2004, 08:16:05 pm »

here's my current theme file...
http://zbull.kicks-ass.net:8080/theme.txt
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
no editting album pics in admin mode
« Reply #10 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)

Code: [Select]
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>


Now add after,
Code: [Select]
<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:
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
no editting album pics in admin mode
« Reply #11 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:
Code: [Select]
<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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.