Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Photo Popup - Insert pictures easily from vB Albums, Photopost, vBGallery, Photoplog Details »»
Photo Popup - Insert pictures easily from vB Albums, Photopost, vBGallery, Photoplog
Version: 3.5, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 01-18-2009 Last Update: 11-17-2009 Installs: 402
Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

Quote:
Whats new in Version 3.5
  • now supports attachments
    • config file will be installed automatically (from folder UPLOAD/includes)
    • remember to add the product option "attachments" in your AdminCP when upgrading
    • make sure you reupload photo_popup.php
  • new config file for CND Garage 2.x
    • new config file photo_popup_config_cndgarage.php
    • if you're using CND Garage in a lower version that 2.x,
      • and you're upgrading: just continue to use the old file
      • and you're doing a fresh install: delete the new config file, and rename photo_popup_config_cndgarage.php.old (remove the .old)



What does it do?


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)
  • Photopost Pro
  • Photopost vBGallery
  • Photoplog
  • CNG Garage

Detailed features list
Installation
  1. Extract the archive.
  2. 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.
  3. 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.
  4. Install the product.
  5. 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
  • See "Product Configuration" in second post.

Upgrade

  • 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.


Translations

Deutsche ?bersetzung bei vbulletin-germany.org.
Arabian translation, thanks to Subah.
Russian translation, thanks to nohuhu.


Screenshots

AdminCP, Photopost settings, Photo Popup in action, quickreply


### Don't forget to click install! ###
(No support if you don't)

Download Now

File Type: zip photo_popup_3-3.zip (24.6 KB, 426 views)
File Type: zip photo_popup_3-4.zip (24.5 KB, 234 views)
File Type: zip photo_popup_3-4-1.zip (24.6 KB, 376 views)
File Type: zip photo_popup_3-5.zip (27.2 KB, 958 views)

Screenshots

File Type: jpg screen_popup_1-3.jpg (154.1 KB, 0 views)
File Type: jpg screen_admincp_1-3.jpg (115.5 KB, 0 views)
File Type: jpg screen_quickreply_2-0.jpg (58.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
vn88.com

Comments
  #142  
Old 01-30-2009, 07:23 PM
PakFuse PakFuse is offline
 
Join Date: Jan 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those who have Quick Editor Improver Ver 2.5.0 by Hamed Haddadian (www.gtpland.com) ... Here are the template edits for Quick Reply (for both threads and PMs) and Quick Edit .... It works for me after I spent sometime in figuring things out

For all Three scenarios:

Template: imp_postbit_quickedit [Quick Edit in Threads]

Template: imp_showthread_quickreply [Quick Reply in Threads]

Template: imp_pm_quickreply [Quick Reply in PMs]


Find this:

Code:
<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
						<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
Add below:

Code:
<!-- Pop-up Image Window -->


<td><div class="imagebutton">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

		<td> <a href="#" onclick="window.open('$vboptions[bburl]/photo_popup.php?e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false" title="$vbphrase[photo_popup_insertlink]">
<img src="$stylevar[imgdir_editor]/photo_popup.png" border="0" /></a></td>					</tr>
					</table>
				</div></td>
<!-- Pop-up Image Window -->
Reply With Quote
  #143  
Old 01-30-2009, 08:14 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Photo Popup has reached a new level - version 3.0 is upon us! ;-)

Now with support for vBGallery and Photoplog!

The implementing of new galleries was made easier by reorganisation of the code and outsourcing of the relevant settings and database queries into seperate config files.
This means that, if you have installed this mod for Photopost, your old configuration file will be obsolete. Please read the installation/upgrade-instructions carefully. There are now configuration files for each supported product, thogh in the Photopost file the settings area has remained pretty much the same. Also the setting of products used in AdminCP has changed.

Thank you for using my mod!

Please note concerning upgrade to 3.0:
  • the configuration process has changed. Old config files will be obsolete.
  • the setting of products used in AdminCP has changed. Please review!
Reply With Quote
  #144  
Old 01-30-2009, 08:27 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yesssss , thanks alot
i`ll install it right now
=======================
Edit: Congratulations vBGallery finally it is work
Reply With Quote
  #145  
Old 01-30-2009, 10:22 PM
wottech wottech is offline
 
Join Date: May 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice! I will upgrade this weekend.

How hard do you think it would be to add 1 more program to the list if I supplied db information? I am talking about the CND Garage module (http://cnd-systems.com/cnd_garage.php). I would be more than willing to help you out on the testing. Thanks!!
Reply With Quote
  #146  
Old 01-31-2009, 05:24 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wottech View Post
How hard do you think it would be to add 1 more program to the list if I supplied db information? I am talking about the CND Garage module (http://cnd-systems.com/cnd_garage.php). I would be more than willing to help you out on the testing. Thanks!!
Not too hard, as long as that add-on installs into the vB-database and stores it's settings there. The new modulized code is quite straightforward.

What I need to know (I hope I don't forget too much ):
  • Does the installation go into vB database only or can the user choose? If this was the case, that would complicate matters.
  • What database prefix does the mod use, and can it be changed by the user?
  • Can the URL path to the add-ons main index page be changed by the user or is it always the same (meaning the directory name as well as its relative position to the forums root directory)?
  • Can the URL path to the add-ons data directory (where images are stored) be changed by the user or is it always the same (meaning the directory name as well as its position)
  • If the installation goes into vB database and any of the above three is yes: is there a settings table where the corresponding values ara stored? What's it's name and how can the values be identified? (vB for example stores the setting information in settings table, identifieable by varname and the information in value.
  • Next would be to identify the table where the uploaded images are stored. There I need imageid, userid, imagename and, if there are any categories, the category id.
  • This leads to the question whether there are any categories or albums that could populate the albums choice dropdown and where they are stored. Are they global categories or created and owned by individual users? The mod can handle only one at a time.
  • Last block: The structure inside the datadir. How does the mod save the uploaded images? Are there medium sized images? What are naming conventions, in what folders do they go?
Now, if one has some clue about php and mysql, the stuff in the config files is quite straightforward. It would not be too hard to write plugins for other products on the basis of the supplied config files. If anyone wants to try: go ahead. I'll happily include third party plugins into the distribution.
Reply With Quote
  #147  
Old 01-31-2009, 06:41 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Subah View Post
Yesssss , thanks alot
i`ll install it right now
=======================
Edit: Congratulations vBGallery finally it is work
That's good to hear! :up:
Reply With Quote
  #148  
Old 01-31-2009, 08:14 AM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
The Photo Popup has reached a new level - version 3.0 is upon us! ;-)

Now with support for vBGallery and Photoplog!

Great. Will test it asap.

Thanks.
Reply With Quote
  #149  
Old 01-31-2009, 08:27 AM
troppodel's Avatar
troppodel troppodel is offline
 
Join Date: Nov 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks
Reply With Quote
  #150  
Old 01-31-2009, 08:52 AM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cellarius,
What about add the Popup icon in the quike reply for the PM ?
Reply With Quote
  #151  
Old 01-31-2009, 10:32 AM
Dr. Bantham's Avatar
Dr. Bantham Dr. Bantham is offline
 
Join Date: Feb 2007
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by troppodel View Post
hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks
I am getting the same error when switching albums. I also integrated Photoplog and it would display the albums in the drop down list, but when you selected one it would always state that I had no images available to insert therein. Even if I had uploaded the images, it would not display or allow any to be inserted. I cannot recall the exact verbiage, since the database error is displayed now when I initiate the insert. I had no problems in the previous version. I also had Photoplog's custom insert code working well alongside this mod. I disabled it to be sure there was no conflict, but it did not resolve the issues.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08876 seconds
  • Memory Usage 2,377KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete