Version: 4.1.004, by cellarius
Developer Last Online: Apr 2022
Category: New Posting Features -
Version: 4.x.x
Rating:
Released: 06-02-2010
Last Update: 02-17-2012
Installs: 198
Uses Plugins Template Edits Auto-Templates
Additional Files Translations
No support by the author.
Important!
Old editor (vB 4.1.3 and below): use 4.0.008!
New editor (vB 4.1.4 and above): use 4.1.00x!
What does it do?
When creating or editing a post, your users can open a popup window that will show them their pictures in the chosen gallery, albums or attachment system.
Upgrade from vB3 version
Please uninstall the old version at AdminCP->Plugins & Products->Manage Addons. Also remove all files you uploaded for the vB 3 version apart from the editor icon, which will be reused. This will be /photo_popup.php and all /includes/photo_popup_config_[product].php files, relative to your forum root. Then follow the installation instructions below.
Installation
Extract the archive.
Choose the products you want to use and rename the configuration files in _UPLOAD/includes/cel/cel_pp_config from .php_new to .php
If you're using Photopost Pro, you need to fill in some crucial information into the config file. Please see the config file for more information.
Upload the contents of folder "_UPLOAD" to your forum root. Note how the folder structure mirrors the folder structure in your forum root, so every file will be in the right place.
Now the Photo Popup and your chosen product configuration files will be present with default settings on your server. Later on, you may want to make adjustments there.
Install the product file at AdminCP->Plugins & Products->Manage Addons.
Template edits?
If you are using new editor, you're done.
If you are using old Editor and Template Modification System (TMS), you're done.
If none of the above two conditions apply to you, do the template modifications explained in _DOCS/OLD_EDITOR_ONLY-template_edits.txt manually for the editors you want the popup accessible from.
Basic Configuration
Global configuration is done via AdminCP->Options->Cel Photo-Popup
If upgrading within the vB4 series, just reimport the product-xml-file, overwriting the old version, and reupload all files (skip the icon if you're using a custom one).
Most times you will be done, but please check in _DOCS/config_file_versions.txt whether the config file for one of the products you use has been changed since you last updated.
If the config file for one of your products has been updated, rename _UPLOAD/includes/cel/cel_pp_config from .php_new to .php and transfer your custom settings from your current config file to the new one. Then upload it to your server.
Version history For older versions see the vB3 version of this Mod.
### 4.1.004 ###
fixed several bugs, text-button re-added (full list)
### 4.1.002 ###
button not showing issue resolved
### 4.1.001 ###
adapted to new vB editor, added workaround for image spacing
### 4.0.004-008 ###
bugfix releases
### 4.0.003 ###
initial release
new (core): completely rewritten code
new: categories/user albums/folders listed hierachically in albums dropdown
new: Photopost Pro and vBGallery permissions for categories
new: global permissions check
new: cache system for albums dropdown
new: override all product related AdminCP-Settings in the product config file.
** Please note that the config files for Photoplog and CND Garage have not been converted. I do not have access to vB4 versions of those two softwares for testing and developing. Whether this will change in future, I don't know - at the moment, apart from having no software access, I'm very much out of time. Anyway, the config files are not too hard to figure out and there is a short introduction to adapting them. Please feel free to convert or develop for other software, if you like, and submit to this thread or to me personally by PM.
### Don't forget to click install! ###
(No support if you don't)
After we've moved our board to a more modern server than before, we've encountered a similar problem to what asabet mentioned above: The total image count and the pagination seemed correct, but there were not images to click on in the popup.
I poke around a bit in the code, and seems that the result set for the main database query did not get processed correctly. The SQL query itself delivered the correct results. But when photo_popup.php tried to construct the imagebits, it went wrong.
returned 0, even though the db result set had 9 rows.
Similarly, some lines further down,
PHP Code:
while ($array = $db->fetch_array($cel_pp_prod->mysql_result_main))
...
seemed to exit without any passes of the loop, because $db->fetch_array() didn't find any records in the result set either.
After I switched both functions to the "normal" PHP 5.x versions, mysql_num_rows() and mysql_fetch_array() respectively, the images appeared in the popup as they should.
I'm not really sure why this hotfix worked (and your mileage may vary, so use it on your own risk ). We modernized our hosting stack quite a bit, Nginx replacing Apache, newer MySQL and PHP versions etc., so I can only guess what's exactly the cause. But maybe my observations can help others or the author of the mod to further enhance it