My users always, for some reason, seem to think that the comments section of the gallery is a chat or even a forum. I remind them over and over again that the comments have to be 100% related to the pictures, but they don't understand, so I decided to modify Coppermine to show the comments in a popup window. It also helps so that when you just want to browse the Gallery you don't have to wait for the comments to load everytime. Now, if I want to read the comments for a speciif picture, I choose to do it when I want to
.
There are two ways of installing this mod: the
Pre Modded Files and the
Code Changes.
With the Pre Modded files the files can just be replaced that's about it. Doing the Code Changes takes longer, but it is helpful if there are any other mods already installed in your CPG (The mod instructions follow, almost, the mod template for phpbb mods ;-)
here you can find the guide to install this kind of mods, if you choose to do the code changes)
Here is what it looks like after installing this mod:As you can see, the comments section is gone. Only a link appears now in the form:
Comments (<number of comments here>)(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg151.imageshack.us%2Fimg151%2F6445%2Fex15py.th.jpg&hash=5d5c4738cc0c09abb0bd9e85f31365668b853256)When the link is clicked, the popup shows up with all the comments and a thumbnail of the picture. The template can be modified easily to show only what you want.
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg388.imageshack.us%2Fimg388%2F208%2Fex25xh.th.jpg&hash=b14e00932bcb693a4207b4821a46d532c0b83519) ##############################################################
## MOD Title: Comments in a popup window
## MOD Author: isloera < isloera AT sbcglobal DOT net > (Israel J. Sustaita)
www.calvilloweb.com## MOD Description: This mod enables Coppermine to display the comments in a
## popup window. The number of comments available is shown as a link under the
## picture description, kind of like a blog does.
##
## MOD Version: 1.0.1
##
## Coppermine Version: CPG 1.4.3 (stable) and Up
##
## Installation Level: (easy)
## Installation Time: 1 Minute
## Included Files:
## root/comments.php,
## root/displayimage.php,
## root/include/themes.inc.php,
## root/delete.php,
## root/db_input.php,
## root/lang/english.php
## root/lang/spanish.php
##
##
## License:
http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes: The popup generates valid HTML and CSS code.
## It works with all the themes available in CPG 1.4.3 (stable) version and Up
## Deleting, updating and posting comments is done within the same popup window.
## It also respects group permissions and album settings.
##
##############################################################
## MOD History:
##
## 2006-01-22 - Version 1.0.1
## - Fixed a bug that stopped the popup link from showing
## when there was no title and image description
##
## 2006-01-22 - Version 1.0.0
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Gallery, You Should Back Up All Files Related To This MOD
##############################################################
Mod Is attached below