FAP SUPPORT - How To Edit Picture? »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - How To Edit Picture?



MartinTruckenbrodt [ Wed 28 Feb, 2007 13:19 ]
Post subject: FAP SUPPORT - How To Edit Picture?
Hello,
I want to edit some of the picture descriptions. But I couldn't find any edit button.

Bye Martin


KugeLSichA [ Wed 28 Feb, 2007 13:29 ]
Post subject: Re: How To Edit Picture?
go in the related gallery category, and under every pic you have an edit link, if you have the rights to do it

cheers


MartinTruckenbrodt [ Wed 28 Feb, 2007 14:35 ]
Post subject: Re: How To Edit Picture?
Hello,
. Thank's a lot!

But IMO, a edit button on album_showpage.php would be a good idea too. At least this would be similar to phpBB edit post.

Bye MArtin


KugeLSichA [ Wed 28 Feb, 2007 15:24 ]
Post subject: Re: How To Edit Picture?
MartinTruckenbrodt wrote: [View Post]
Hello,
. Thank's a lot!

But IMO, a edit button on album_showpage.php would be a good idea too. At least this would be similar to phpBB edit post.

Bye MArtin


you´re welcome.

maybe MG adds this to an next release. I think it would be very usefull.

cheers


Artie [ Thu 01 Mar, 2007 00:42 ]
Post subject: Re: How To Edit Picture?
This will place text links for Edit Delete Lock/Unlock Move

Modify to suit your preference.

OPEN album_showpage.php
FIND
Code: [Hide] [Select]
'NAV_CAT_DESC' => $album_nav_cat_desc,

AFTER ADD
Code: [Hide] [Select]
'EDIT' => ( ($auth_data['moderator']) or ($userdata['user_id'] == $thispic['pic_user_id']) ) ? '<a href="'. append_sid(album_append_uid('album_edit.' . $phpEx . '?pic_id=' . $thispic['pic_id'])) . '">' . $lang['Edit_pic'] . '</a>' : '',
//'DELETE' => ( ($userdata['user_level'] == ADMIN) or ($userdata['user_id'] == $thispic['pic_user_id']) ) ? '<a href="'. append_sid(album_append_uid('album_delete.' . $phpEx . '?pic_id=' . $thispic['pic_id'])) . '">' . $lang['Delete_pic'] . '</a>' : '',
'DELETE' => ( ($auth_data['moderator']) or ($userdata['user_id'] == $thispic['pic_user_id']) ) ? '<a href="'. append_sid(album_append_uid('album_delete.' . $phpEx . '?pic_id=' . $thispic['pic_id'])) . '">' . $lang['Delete_pic'] . '</a>' : '',
'LOCK' => ($auth_data['moderator']) ? '<a href="'. append_sid(album_append_uid('album_modcp.' . $phpEx . '?mode=' . (($thispic['pic_lock'] == 0) ? 'lock' : 'unlock') . '&amp;pic_id=' . $thispic['pic_id'])) .'">'. (($thispic['pic_lock'] == 0) ? $lang['Lock'] : $lang['Unlock']) .'</a>' : '',
'MOVE' => ($auth_data['moderator']) ? '<a href="'. append_sid(album_append_uid('album_modcp.' . $phpEx . '?mode=move&pic_id=' . $thispic['pic_id'])) . '">' . $lang['Move'] . '</a>' : '',


OPEN album_showpage_body.tpl
FIND
Code: [Hide] [Select]
<span class="genmed">{U_PIC_CLICK}&nbsp;</span><br />

AFTER ADD
Code: [Hide] [Select]
<span class="genmed">{EDIT}&nbsp;{DELETE}&nbsp;{LOCK}&nbsp;{MOVE}</span><br />


Mighty Gorgon [ Sun 04 Mar, 2007 18:33 ]
Post subject: Re: How To Edit Picture?
Users ask... Artie creates the customized code... and it is free.

Thanks for the suggestion (which is really useful) and thanks for the solution as well... this is a bright example of open source project. These kind of things makes me happy of sharing my knowledge. Thanks.


Artie [ Sun 04 Mar, 2007 20:39 ]
Post subject: Re: How To Edit Picture?
Mighty Gorgon wrote: [View Post]
Users ask... Artie creates the customized code... and it is free.

FREE !!!

I guess I should apologize to my postman. I accused him of losing my check.


felix968 [ Wed 07 Mar, 2007 19:07 ]
Post subject: Re: How To Edit Picture?
Artie wrote: [View Post]
This will place text links for Edit Delete Lock/Unlock Move

Modify to suit your preference.

OPEN album_showpage.tpl


ehem....where is album_showpage.tpl?


KugeLSichA [ Wed 07 Mar, 2007 19:28 ]
Post subject: Re: How To Edit Picture?
felix968 wrote: [View Post]

ehem....where is album_showpage.tpl?


templates/mg_themes/


felix968 [ Wed 07 Mar, 2007 19:48 ]
Post subject: Re: How To Edit Picture?
KugeLSichA wrote: [View Post]


templates/mg_themes/


mmm. in my templates i have only subSilver ....and in subsilver there is only one like album_showpage.tpl, but his name is "album_showpage_body.tpl"
I've FAP 1.4.1 and phpbb 2.0.21


Artie [ Wed 07 Mar, 2007 22:28 ]
Post subject: Re: How To Edit Picture?
I'm sorry, album_showpage_body.tpl is correct


Corrected above


felix968 [ Wed 07 Mar, 2007 22:52 ]
Post subject: Re: How To Edit Picture?
ok.....now it works.
Thank you again


buldo [ Wed 07 Mar, 2007 23:03 ]
Post subject: Re: How To Edit Picture?
Great Artie!!


Peter [ Sun 07 Feb, 2010 21:26 ]
Post subject: Re: How To Edit Picture?
I've got version 1.5.1 and I also like to ad the edit/delete option to album_showpage. However, on album_showpage.php, I can't find
'NAV_CAT_DESC' => $album_nav_cat_desc,
Where should I put the new code?


Mighty Gorgon [ Sun 14 Feb, 2010 12:01 ]
Post subject: Re: How To Edit Picture?
I guess you are using Icy Phoenix, can you confirm that?

Are you sure that this code isn't already there?


Peter [ Wed 17 Feb, 2010 02:02 ]
Post subject: Re: How To Edit Picture?
No, I'm not (yet) using Icy Phoenix, but still using phpbb 2.0.22. Never wanted to migrate to phpbb 3 since I had several mods that made my forum almost completely spam free. Just discovered Icy Phoenix, sounds interesting, but have to discover more of it to see if I want to migrate.
And no, the code isn't already there, otherwise I wouldn't need this mod.
On the other hand, I'm a bit confused about the version I'm using. As far as I'm aware of, I'm using the Clown version of Smartors Album. Downloaded it most probably early 2007 from phpbbhacks.com at a time smartors site was down.


Mighty Gorgon [ Wed 03 Mar, 2010 09:58 ]
Post subject: Re: How To Edit Picture?
Oh... that is the reason...

Last FAP version for phpBB should be 1.4.1 I then stopped developing that for phpBB and only continue the development for Icy Phoenix.

So you have currently three alternatives (among the others):
  • Trying to guess yourself where to edit the code with your current Album + Clown version
  • Trying to install latest FAP for phpBB (even if it is not supported any more)
  • Trying to update your phpBB 2 to Icy Phoenix, which is still supported...




Powered by Icy Phoenix