mobe00
08-10-2010, 10:00 PM
This modifaction allows the forum members to directly edit album pictures online and save them back to their computer. When the user have finished the editing and exited the editor it returns you back to the specific album the user was browsing.
You can choose which language by setting &loc= parameter with the approriate language code under. For english use &loc=en
*de = German (0 lines)
*en = English (0 lines)
*dk = Danish (0 lines)
*he = Hebrew (0 lines)
*es = Spanish (72 lines)
*fr = French (0 lines)
*it = Italian (0 lines)
*pl = Polish (76 lines)
*pt-br = Brazilian-Portuguese (0 lines)
*ro = Romanian (53 lines)
*nl = Dutch (0 lines)
*ru = Russian (0 lines)
*uk = Ukrainian (0 lines)
*sv = Swedish (0 lines)
*sl = Slovenian(0 lines)
*el = Greek (45 lines)
*cs = Czech (45 lines)
*th = Thai (47 lines)
*tr = Turkish (52 lines)
*jp = Japanese (43 lines)
*tr = Korean (43 lines)
*zh-cn = Simplified Chinese (0 lines)
*zh-tw = Traditional Chinese (72 lines)
Create a new phrase under admincp->Phrasemanager->Add new phrase
Phrase type GLOBAL
Product VBULLETIN
Varname online_image_editor
Text Online Image editor
Find the template album_pictureview
Search for :
<vb:if condition="$show['add_group_link']"><li><a href="album.php?{vb:raw session.sessionurl}do=addgroup&albumid={vb:raw albuminfo.albumid}&attachmentid={vb:raw pictureinfo.attachmentid}" class="add">{vb:rawphrase add_to_group}</a></li></vb:if>
add below
<vb:if condition="$show['edit_picture_option']"><li><a href="http://www.pixlr.com/editor/?image={vb:raw pictureinfo.pictureurl}&loc=LANGUAGE PARAMETER&exit=http://FORUM-URL/album.php?{vb:raw session.sessionurl}albumid={vb:raw albuminfo.albumid}&attachmentid={vb:raw pic_location.next_attachmentid}" class="editinfo">{vb:rawphrase online_image_editor}</a></li></vb:if>
Your done. When you view an album picture you will now have an link called Online Image editor. See the screenshots below
You can choose which language by setting &loc= parameter with the approriate language code under. For english use &loc=en
*de = German (0 lines)
*en = English (0 lines)
*dk = Danish (0 lines)
*he = Hebrew (0 lines)
*es = Spanish (72 lines)
*fr = French (0 lines)
*it = Italian (0 lines)
*pl = Polish (76 lines)
*pt-br = Brazilian-Portuguese (0 lines)
*ro = Romanian (53 lines)
*nl = Dutch (0 lines)
*ru = Russian (0 lines)
*uk = Ukrainian (0 lines)
*sv = Swedish (0 lines)
*sl = Slovenian(0 lines)
*el = Greek (45 lines)
*cs = Czech (45 lines)
*th = Thai (47 lines)
*tr = Turkish (52 lines)
*jp = Japanese (43 lines)
*tr = Korean (43 lines)
*zh-cn = Simplified Chinese (0 lines)
*zh-tw = Traditional Chinese (72 lines)
Create a new phrase under admincp->Phrasemanager->Add new phrase
Phrase type GLOBAL
Product VBULLETIN
Varname online_image_editor
Text Online Image editor
Find the template album_pictureview
Search for :
<vb:if condition="$show['add_group_link']"><li><a href="album.php?{vb:raw session.sessionurl}do=addgroup&albumid={vb:raw albuminfo.albumid}&attachmentid={vb:raw pictureinfo.attachmentid}" class="add">{vb:rawphrase add_to_group}</a></li></vb:if>
add below
<vb:if condition="$show['edit_picture_option']"><li><a href="http://www.pixlr.com/editor/?image={vb:raw pictureinfo.pictureurl}&loc=LANGUAGE PARAMETER&exit=http://FORUM-URL/album.php?{vb:raw session.sessionurl}albumid={vb:raw albuminfo.albumid}&attachmentid={vb:raw pic_location.next_attachmentid}" class="editinfo">{vb:rawphrase online_image_editor}</a></li></vb:if>
Your done. When you view an album picture you will now have an link called Online Image editor. See the screenshots below