Hello,
I want to edit some of the picture descriptions. But I couldn't find any edit button.
Bye Martin
FAP SUPPORT - How To Edit Picture?
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
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
: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
Subject: Re: How To Edit Picture?
you´re welcome.
maybe MG adds this to an next release. I think it would be very usefull.
cheers
MartinTruckenbrodt wrote: [View Post]
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
AFTER ADD
OPEN album_showpage_body.tpl
FIND
AFTER ADD
Modify to suit your preference.
OPEN album_showpage.php
FIND
AFTER ADD
'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') . '&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>' : '',
//'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') . '&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
AFTER ADD
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.
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?
FREE !!! :shock:
I guess I should apologize to my postman. I accused him of losing my check. :LOL:
Mighty Gorgon wrote: [View Post]
FREE !!! :shock:
I guess I should apologize to my postman. I accused him of losing my check. :LOL:
Subject: Re: How To Edit Picture?
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
KugeLSichA wrote: [View Post]
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
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?
'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?
Are you sure that this code isn't already there?
Page 1 of 2
You cannot post new topicsYou 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.0909s (PHP: 23% SQL: 77%)
SQL queries: 10 - Debug Off - GZIP Enabled