You are viewing the PKP Support Forum | PKP Home Wiki

PrettyPhoto Image gallery [for review]

OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page. While these are OJS-specific, the OCS codebase is similar enough to OJS they should be of help. There is also an [url=http://pkp.sfu.ca/ocs_documentation[/url]OCS Documentation[/url] page with some more general documentation that might also be of interest.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a technical support question, try the OCS Technical Support subforum.

PrettyPhoto Image gallery [for review]

Postby ramon » Tue Dec 14, 2010 6:03 am

Hello all,

I apparently have successfully added a modal media box functionality to my OCS installation.
I used GoogleAnalytics and TinyMCE plugin code for this.
The PrettyPhoto JQuery Plugin is available here, which serves any type of media actually in a lightbox.

Further, an implementation of automation to create the necessary HTML, with the appropriate list items, similar to the StaticPages plugin will be necessary for long lists of files.
The OCS Plugin should be installed in the plugins/generics folder (available as attachment below!), while the PrettyPhoto plugin should be installed in the lib/ folder (named prettyphoto), and is available for download here.

Once it's evaluated and approved/corrected, it should be posted in the Gallery forum, and I'll try to update it for 2.3, and develop it for OJS as well.
PrettyPhoto OCS Plugin
(4.06 KiB) Downloaded 207 times
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: PrettyPhoto Image gallery [for review]

Postby laurisnet » Thu Jul 28, 2011 11:38 am

I made this customization in few seconds :)
Here is how to:

Find this location: tinymce_3_2_3_1\jscripts\tiny_mce\plugins\advlink\
And there is a file - link.htm

Open this link.htm in some text editors, for example notepad and find following code:

<select id="rel" name="rel">
<option value="">{#not_set}</option>
<option value="lightbox">Lightbox</option>
<option value="alternate">Alternate</option>
<option value="designates">Designates</option>
<option value="stylesheet">Stylesheet</option>
<option value="start">Start</option>
<option value="next">Next</option>
<option value="prev">Prev</option>
<option value="contents">Contents</option>
<option value="index">Index</option>
<option value="glossary">Glossary</option>
<option value="copyright">Copyright</option>
<option value="chapter">Chapter</option>
<option value="subsection">Subsection</option>
<option value="appendix">Appendix</option>
<option value="help">Help</option>
<option value="bookmark">Bookmark</option>
<option value="nofollow">No Follow</option>
<option value="tag">Tag</option>

And insert this line after <select tag........

<option value="prettyPhoto[pp_gal]">prettyPhoto</option>

Hope this will help, for me it worked well!
Enjoy coding ;)

Posts: 1
Joined: Thu Jul 28, 2011 11:36 am

Return to OCS Development

Who is online

Users browsing this forum: No registered users and 0 guests