When creating or editing a post, your users can open a popup window that will show them pictures in the chosen gallery or albums. Now also supports attachments: Reuse what you uploaded! A click on the picture inserts it into the editor.
Works with
vBulletin 3.7.x and 3.8.x, vB Blog (probably anything that uses the vB editor)
Upload the contents of folder "UPLOAD" to your forum root. Note how the folder structure in this folder mirrors the folder structure in your forum root, so every file will be in the right place.
a) If you intend to use only the vBulletin forums albums, proceed to step 4.
b) If you intend to use any other gallery product, see "Product configuration" in second post.
Install the product.
a) If you are using Template Modification System (TMS), you're done.
b) If not, do the template modifications explained in template_edits.txt manually.
Basic Configuration
if you're using only vB albums, everything is done via AdminCP->Options->Photo-Popup
Decide there how many rows and columns the popup table will have, what gallery products to use, which insert options you want to allow, activate code mode on a usergroup permission basis, or activate debug mode
Just reimport the product-xml-file, overwriting the old version, and reupload the photo-popup.php.
Please check in config_file_versions.txt whether the config file for one of the products you use has been changed since last update.
If the config file for one of your products has been updated, upload it from config files folder to your includes directory. Don't forget to take note of any any changes and settings in the old file and adapt the new one accordingly, if necessary.
Support and debugging
Ill help whenever I find the time. Before asking, please activate debug mode and post the information given there (especially under "Code". Please try the two links given - do they look "normal" and do they work? Debug information is only shown to Administrators (usergroup 6). Always state the products you use, including the software versions. Also read the infromation in the second post of this thread.
Hopes for the future
World peace, happiness, health and lot's of money
Version history
Version 3.5
new: supports attachments
new config file for CND Garage > 2.x
Version 3.4 / 3.4.1: Album dropdown not populated if using mysqli,Photopost not saving medium sized images, Fix for PHP 5.3.0 related bug (bugfixes)
Version 3.3 new/updated config file vBGallery (bugfixes); session-handling fixed; workaround for vbseo problem with Firefox in WYSIWYG editor
Important: template edits have to be redone!In every manually done template edit find: photo_popup.php?e=$editorid and replace with photo_popup.php?$session[sessionurl]e=$editorid
Version 3.2 new/updated product config file vBGallery (bugfixes), some additional error checking and error messages, debug information enhanced
Version 3.1 new/updated product config files: cnd garage (thanks to wottech for cooperation), photoplog categories, photoplog albums, photoplog, vBGallery; some additional cookie error checking; error checking in AdminCP removed; bugfixes from this thread.
Version 3.0 code reorganisation: implemeting of new galleries made easier by outsourcing of the relevant settings and database queries into seperate config files; new feature: support for vBGallery and Photoplog (lite?) added; minor bugfixes
3.0.1 Important bugfix if you are using vB albums: wrong database query in config file. To fix this, it's enough to reupload photo_popup_config_albums.
2.2 New feature: 2 plugins to show correct location and activity in "who's online". Bugfix: Bit of unphrased German removed from template (in pagenav dropdown). For upgrade from 2.1 just import product file, no uploads necessary.
2.1 New feature: Code mode. Lets you see the corresponding bb- or html-code instead of sending the image to the editor. If your browser allows that, the code is also copied to clipboard. Bugfix: Fixed a problem where pagination misbehaved when working with vB albums
2.0 New feature: Support for quickreply and quickedit!
1.4 New feature: Three new insert-options: thumbnail, medium and original image not linked themselves, but with a link to the gallery/album in the line below. This should be especially interesting for the users of the image resizer mod.
1.3 feature improvement/bugfix: default popup size is now determined before opening, not after (window.resize method causing issues in Firefox). Auto-close of the popup now using the YUI Event Listener; the needed library is already part of vB's standard distribution. New feature: title bar with "close this window"-link.
1.2 new feature: popup closes after editing is completed; smaller changes in Layout
1.1 new feature:set popup window size, to go with your table settings; minor bugfixes
1.0 Initial release
Development and bugfix releases for config files
If the need arises, there will be development or bugfix releases of config files between official releases of this mod. The zip file attached to this post will always be up to date. At the moment, there are no development/bugfix-releases.
You have set it to use photopost in the options for this mod, not photoplog. Change that - it is looking for the photopost config file, just as the error states.
Thanks. I've changed it I'll post back if I still have problems with it.
I think the reason Photoplog pro was added, even though it has its own, is because people who used it and another image program didn't want to have 2 different ways to insert images. With Photoplog Pro incorporated, users could turn off the default one and use this one in its place.
Can't get my Album List to populate. I just reinstalled Photo Popup 3.3, re-uploaded all files, and imported the XML and allowed overwrite. When I go to post images, I only have the "all my photos" option.
I'm using vBulletin 3.8.3 with the default vBulletin albums.
Code (this is what is inside the table cells) <a href="#" onclick="thumbpaste('<a href=\'/forums/picture.php?albumid=4&pictureid=80\'><img src=\'/forums/picture.php?albumid=4&pictureid=80&thumb=1\' style=\'border: 0\' /></a> ','[url=\'http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80\'][img]https://vborg.vbsupport.ru/[/img][/url] ')"><img src="http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80&thumb=1" style="border: 0" title=""/></a>
Database Query SELECT pictureid, vb_albumpicture.albumid FROM vb_albumpicture INNER JOIN vb_album ON vb_albumpicture.albumid = vb_album.albumid WHERE userid = 1 ORDER BY pictureid DESC LIMIT 0, 21
Link to Original [url]http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80[/url]
Link to Thumb [url]http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80&thumb=1[/url]
Used product: albums
Cookie Read Cookie: albums,all,link_thumb_2_orig Set Cookie: albums,all,link_thumb_2_orig
I even disabled all of my add-ons and still can't get it to work. Everything else about the mod works, I can insert images, change rows and columns, etc.
For the record... It has been posted here a few times... The drop-down for album categories does not populate.
If I open photo-popup, everything works fine, but the only option I have is ALL IMAGES.
Thus I have to flip through 1000s of photos to find the ones I want.
I cannot drill down through my albums.
Yes...
I have seen and tried the filter override settings.
Quote:
Originally Posted by stylez84
Can't get my Album List to populate. I just reinstalled Photo Popup 3.3, re-uploaded all files, and imported the XML and allowed overwrite. When I go to post images, I only have the "all my photos" option.
I'm using vBulletin 3.8.3 with the default vBulletin albums.
Code (this is what is inside the table cells) <a href="#" onclick="thumbpaste('<a href=\'/forums/picture.php?albumid=4&pictureid=80\'><img src=\'/forums/picture.php?albumid=4&pictureid=80&thumb=1\' style=\'border: 0\' /></a> ','[url=\'http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80\'][img]http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80&thumb=1[/img][/url] ')"><img src="http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80&thumb=1" style="border: 0" title=""/></a>
Database Query SELECT pictureid, vb_albumpicture.albumid FROM vb_albumpicture INNER JOIN vb_album ON vb_albumpicture.albumid = vb_album.albumid WHERE userid = 1 ORDER BY pictureid DESC LIMIT 0, 21
Link to Original [url]http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80[/url]
Link to Thumb [url]http://www.brickjunkies.com/forums/picture.php?albumid=4&pictureid=80&thumb=1[/url]
Used product: albums
Cookie Read Cookie: albums,all,link_thumb_2_orig Set Cookie: albums,all,link_thumb_2_orig
I even disabled all of my add-ons and still can't get it to work. Everything else about the mod works, I can insert images, change rows and columns, etc.
Same here, using standard vb albums. I get "From which album", Then only "all my photos". On 3.8.3. Will post debug shortly.
Code (this is what is inside the table cells) <a href="#" onclick="thumbpaste('<div align=\'center\'><img src=\'/forum/picture.php?albumid=2&pictureid=80\' style=\'border: 0\' /><br /><a href=\'/forum/album.php?albumid=2&pictureid=80\'><font size="1">View image in gallery</font></a></div><br /> ','[center][img]http://www.rletc.com/forum/picture.php?albumid=2&pictureid=80[/img]\n[url=\'http://www.rletc.com/forum/album.php?albumid=2&pictureid=80\'][size=1]View image in gallery[/size][/url][/center]\n\n ')"><img src="http://www.rletc.com/forum/picture.php?albumid=2&pictureid=80&thumb=1" style="border: 0" title=""/></a>
Database Query SELECT pictureid, vbalbumpicture.albumid FROM vbalbumpicture INNER JOIN vbalbum ON vbalbumpicture.albumid = vbalbum.albumid WHERE userid = 5 ORDER BY pictureid DESC LIMIT 0, 16
Link to Original [url]http://www.rletc.com/forum/picture.php?albumid=2&pictureid=80[/url]
Link to Thumb [url]http://www.rletc.com/forum/picture.php?albumid=2&pictureid=80&thumb=1[/url]
Used product: albums
Cookie Read Cookie: albums,all,orig_2_gallery_link_below Set Cookie: albums,all,orig_2_gallery_link_below
OK - I see there seems to be a problem with populating the albums dropdown (reported for the albums and once for photoplog). I myself can not reproduce this on any of my forums - this is what makes debugging kinda hard.
To get a hold on this, I added some extra information to debugging. If you have this problem, please upload the attachted photo-popup.php and post the results here. Hopefully this will help tracking this down, it will show whether the query is constructed correctly and there is a result at all.
// Attachment removed, bug fixed in 3.4.