FAP SUPPORT - How To Edit Picture?


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

Profile PM  
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

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

Profile PM  
Subject: Re: How To Edit Picture?
MartinTruckenbrodt wrote: [View Post]
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


you´re welcome.

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

cheers

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: [Download] [Hide] [Select]
'NAV_CAT_DESC' => $album_nav_cat_desc,

AFTER ADD
Code: [Download] [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: [Download] [Hide] [Select]
<span class="genmed">{U_PIC_CLICK}&nbsp;</span><br />

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

Profile PM  
Subject: 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.

Subject: Re: How To Edit Picture?
Mighty Gorgon wrote: [View Post]
Users ask... Artie creates the customized code... and it is free. :icy_lol_flag:

FREE !!! :shock:

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

Profile PM  
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


:oops: ehem....where is album_showpage.tpl?

Profile PM  
Subject: Re: How To Edit Picture?
felix968 wrote: [View Post]

:oops: ehem....where is album_showpage.tpl?


templates/mg_themes/

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

Profile PM  
Subject: Re: How To Edit Picture?
I'm sorry, album_showpage_body.tpl is correct


Corrected above

Profile PM  
Subject: Re: How To Edit Picture?
ok.....now it works.
Thank you again

Profile PM  
Subject: Re: How To Edit Picture?
Great Artie!! :icy_lol_flag:

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?

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?


Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0882s (PHP: 23% SQL: 77%)
SQL queries: 10 - Debug Off - GZIP Enabled