http://www.icyphoenix.com/viewtopic.php?f=24&t=1214
-----------------------------------
MartinTruckenbrodt
Wed 28 Feb, 2007 13:19

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

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

Re: How To Edit Picture?
-----------------------------------
Hello,
 :oops: . 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

Re: How To Edit Picture?
-----------------------------------
[quote user="MartinTruckenbrodt" post="9292"]Hello,
 :oops: . 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[/quote]

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

Re: How To Edit Picture?
-----------------------------------
This will place text links for Edit Delete Lock/Unlock Move

Modify to suit your preference.

OPEN [b]album_showpage.php[/b]
FIND
[codeblock]'NAV_CAT_DESC' => $album_nav_cat_desc,[/codeblock]
AFTER ADD
[codeblock]'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>' : '',
[/codeblock]

OPEN [b]album_showpage_body.tpl[/b]
FIND
[codeblock]<span class="genmed">{U_PIC_CLICK}&nbsp;</span><br />[/codeblock]
AFTER ADD
[codeblock]<span class="genmed">{EDIT}&nbsp;{DELETE}&nbsp;{LOCK}&nbsp;{MOVE}</span><br />[/codeblock]


-----------------------------------
Mighty Gorgon
Sun 04 Mar, 2007 18:33

Re: How To Edit Picture?
-----------------------------------
Users ask... Artie creates the customized code... and it is free. :icy_lol_flag:

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

Re: How To Edit Picture?
-----------------------------------
[quote user="Mighty Gorgon" post="9499"]Users ask... Artie creates the customized code... and it is free. :icy_lol_flag:[/quote]
FREE !!!  :shock: 

I guess I should apologize to my postman. I accused him of losing my check.  :lol:


-----------------------------------
felix968
Wed 07 Mar, 2007 19:07

Re: How To Edit Picture?
-----------------------------------
[quote user="Artie" post="9311"]This will place text links for Edit Delete Lock/Unlock Move

Modify to suit your preference.

OPEN [b]album_showpage.tpl[/b]
[/quote]

 :oops:  ehem....where is album_showpage.tpl?


-----------------------------------
KugeLSichA
Wed 07 Mar, 2007 19:28

Re: How To Edit Picture?
-----------------------------------
[quote user="felix968" post="9706"]
 :oops:  ehem....where is album_showpage.tpl?[/quote]

[b]templates/mg_themes/[/b]


-----------------------------------
felix968
Wed 07 Mar, 2007 19:48

Re: How To Edit Picture?
-----------------------------------
[quote user="KugeLSichA" post="9707"]

[b]templates/mg_themes/[/b][/quote]

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

Re: How To Edit Picture?
-----------------------------------
I'm sorry, album_showpage[highlight=#FFFFAA]_body[/highlight].tpl is correct


[size=10]Corrected above[/size]


-----------------------------------
felix968
Wed 07 Mar, 2007 22:52

Re: How To Edit Picture?
-----------------------------------
ok.....now it works.
Thank you again


-----------------------------------
buldo
Wed 07 Mar, 2007 23:03

Re: How To Edit Picture?
-----------------------------------
[b]Great Artie!![/b] :icy_lol_flag:


-----------------------------------
Peter
Sun 07 Feb, 2010 21:26

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

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

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

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):
[list][*]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...[/list]


