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
  #312  
Old 04-15-2009, 05:49 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had a look at the database. I fear, the per category setting is too complex to handle it within the limitated structures of this mod. That's the downside of supporting more than one product - it's not flexible enough to support everything for every product. The problem is: Though it would probably be possible to add an additional query to the config that detects whether there are original images or not - as soon as the user clicks on "show all my images", there will be problems.

Sorry, this mod will have to handle it either as allow it or disable it...
Reply With Quote
  #313  
Old 04-16-2009, 02:45 AM
tandy tandy is offline
 
Join Date: Jun 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
Since the error descriptions on this have been more than vague up to now, there really is no way to address this issue. I do not experience any errors. At least state which browser you are using and what the error is (exact error message!). Are you sure you have uploaded the latest version of photo_popup.php?
I installed the mod on two forum with vb 3.8.2, i used IE7 And Firefox, i have no error message, the photo popup windows open normally on both with all the photos in the popup but on one of the forum when you click on a photo nothing happend.
Reply With Quote
  #314  
Old 04-16-2009, 05:23 AM
KenDude KenDude is offline
 
Join Date: Jul 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
Had a look at the database. I fear, the per category setting is too complex to handle it within the limitated structures of this mod. That's the downside of supporting more than one product - it's not flexible enough to support everything for every product. The problem is: Though it would probably be possible to add an additional query to the config that detects whether there are original images or not - as soon as the user clicks on "show all my images", there will be problems.

Sorry, this mod will have to handle it either as allow it or disable it...
Understood, it was just something that I was pointing out could be different in different configurations. I typically would never want to insert the full size original image anyway as it would likely be too large for the forum and throw the screen out of whack. I just uploaded the most recent vbgallery config file to the server and will ask my members to test.
Reply With Quote
  #315  
Old 04-16-2009, 05:35 AM
KenDude KenDude is offline
 
Join Date: Jul 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One other suggestion I have for this mod is that in the instance where the user has no photos uploaded in the Vbulletin Albums not only should it say no photos found, but it should also have a link to:

http://www.yourwebsitehere.net/album.php?do=addalbum

So the user could go "oh that's where I can upload a photo to insert into this message" otherwise if they aren't familiar with where the photo albums are they have to hunt around or ask, why not give them some pointers.

Likewise for vbulletin there should be the message that no photos are found but then also a link such as:

http://www.yoursitehere.net/gallery/upload.php?&c=

So the user can be taken to the vbgallery and start uploading to some category they choose.

As for the CND garage if they have no photos uploaded the link would depend on whether they had a car in the garage yet or not, so in that instance I would probably just suggest a link to the garage: http://www.yoursitehere.net/garage.php and let it go at that.

I suppose if you wanted to be more flexible you could make these links both optional and customizeable through your admincp options for this mod, let the admin decide whether or not to display "helper links" and if so what link they want for each (I would provide defaults which they could then change as needed).

I hope all that makes sense.

Last, but not least in the standard reply box rather than just the text that says My Pictures, there ought to be some sort of picture graphic above that text.
Reply With Quote
  #316  
Old 04-16-2009, 06:49 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Robi_Kenobi View Post
Hi, this is a great Plugin. Wonderfull

But i have a strange problem with Firefox.

If i insert a picture into quick Replay Window (in wysiwyg mode) then there is "/.../" to much in the path to the picture so the img link pasted into the reply window is

"______/forum/../picture.php?albumid=7______"

and should be

"______/forum/picture.php?albumid=7______"

So you can only see a "red cross" then.

If i send the Answer the image in the final post is right. If i switch to normal mode not wysiwyg then the correct Link is inserted.

strange thing this only happens in

quick reply, wysiwyg and with the vbulletin album and Firefox

If i paste in extended reply everything works fine.
If i paste from Photopost pro everything ok, also in the quick reply.

very strange, any idea where the problem is?

Thanks a lot for your help.

---- Update ----

I found the link from Photopost ist also inserted wrong ....

"_____forum/../../gallery/data____"

but since the /gallery/ is a root folder, the ../.. doesn't chance anything an the picture shows up normal

Where do the "/../"s come from ?
Quote:
Originally Posted by cellarius View Post
  • The problem reported in this post concerning not needed /.../ in image-paths can partly be reproduced. I do not experience it when inserting images from the albums (the folder is a subfolder of forum root), but always if the chosen product resides in a folder that is not a subfolder of forum root. This seems to be caused by the injection script that is part of the forum software and that this mod uses. I do not see a way around this.
O.k., I explored some more and this problem seems to be connected with the use of vbSEO, and indeed it only happens in Firefox. Robi_Kanobi, if you're still around, can you confirm that you are using vbSEO (or some other sort of SEO-Solution?). Confirmation from anybody else will be appreciated, too, of course.

I'll see whether I can get this fixed.
Reply With Quote
  #317  
Old 04-16-2009, 06:55 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KenDude View Post
One other suggestion I have for this mod is that in the instance where the user has no photos uploaded in the Vbulletin Albums not only should it say no photos found, but it should also have a link to:

http://www.yourwebsitehere.net/album.php?do=addalbum

So the user could go "oh that's where I can upload a photo to insert into this message" otherwise if they aren't familiar with where the photo albums are they have to hunt around or ask, why not give them some pointers.

Likewise for vbulletin there should be the message that no photos are found but then also a link such as:

http://www.yoursitehere.net/gallery/upload.php?&c=

So the user can be taken to the vbgallery and start uploading to some category they choose.

As for the CND garage if they have no photos uploaded the link would depend on whether they had a car in the garage yet or not, so in that instance I would probably just suggest a link to the garage: http://www.yoursitehere.net/garage.php and let it go at that.
I see the usefulness of such links, yes. They'll probably make it into some next release.

Quote:
I suppose if you wanted to be more flexible you could make these links both optional and customizeable through your admincp options for this mod, let the admin decide whether or not to display "helper links" and if so what link they want for each (I would provide defaults which they could then change as needed).
To get things in AdminCP not too confusing with all the products, I'll probably define a default setting in the config files that can then be changed if the need arises. I guess that most of the users will be happy with the standard upload page.

Quote:
Last, but not least in the standard reply box rather than just the text that says My Pictures, there ought to be some sort of picture graphic above that text.
You can always insert the icon already shipped with that mod
Reply With Quote
  #318  
Old 04-16-2009, 08:03 AM
tormento tormento is offline
 
Join Date: Jun 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi to all

sorry for my english

i'm newbie

i had just installed this product and made the modification. no problem

i work with vb 3.8.1 and photopost but when click on icona ,the message is this

"You have set the product "photopost" to use a different database than your forums. However, the script cannot connect to this other database. Please check your database settings.!

in photo_popup_config_photopost.php , i have this

"The values for the following settings can be found in Photopost Administration
// Center
// Full URL path to Gallery: http://www.yoursite/path/to/gallery/
//
$url_path = "http://news.tecnocomputer.it/forums/photopost/";
//
// Full URL path to Data Dir: http://www.yoursite/path/to/gallery/data/
// Look for this in PP-Administration->Global Options->URL to PhotoPost data directory
//
$data_dir = "http://news.tecnocomputer.it/forums/photopost/data/";
//
// Table prefix. pp_ is the default setting.
// You may have changed this on installation of Photopost Pro.
// Look for this in PP-Administration->Edit Config->PhotoPost Database Prefix
//
$db_prefix = "pp_";
//
// If you do not save medium sized images with Photopost Pro or want to disable
// medium image insertion for this product only, set this to TRUE;
//
$medium_override = FALSE;
//
// If you do allow albums selection in popup, but want to disable it for this
// product, set this to TRUE;
//
$album_override = FALSE;"


is it correct? thanks to all
Reply With Quote
  #319  
Old 04-16-2009, 08:20 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's probably not correct - else there would not be this error

All the settings you pasted have nothing to do with database setup, tho. But that's where the error probably is. The database settings come right after the part you copied.

Do the following:
  • find out whether you have your Photopost data in the same database as vBulletin.
  • If this is the case, make sure line 49 reads "$other_db = FALSE;" (w/o the "). If this is now set to TRUE, this is most likely to cause your problem.
  • If you indeed use another database for Photopost, set this variable to "TRUE" and make sure the settings that follow are correct.
Reply With Quote
  #320  
Old 04-16-2009, 08:27 AM
tormento tormento is offline
 
Join Date: Jun 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

now i have put FALSE like this

$medium_override = FALSE;
//
// If you do allow albums selection in popup, but want to disable it for this
// product, set this to TRUE;
//
$album_override = FALSE;
//
// ### If your vB and Photopost run from the same Database, ###
// ### skip the following. To use different database, set ###
// ### $pp_other_db to TRUE and fill in the variables ###
//
// Set to TRUE if using different database for vB and PP
$other_db = FALSE;
// Database Name
$db_name = "photopost";
// Database Host
$db_host = "localhost";
// Database Username
$db_user = "root";
// Database Password
$db_pass = "";


this is the error now

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT id, catname
FROM pp_categories
WHERE cattype = 'a' AND parent = 1418
ORDER BY catname;

MySQL Error : Table 'tcportal.pp_categories' doesn't exist
Error Number : 1146
Request Date : Thursday, April 16th 2009 @ 11:23:42 AM
Error Date : Thursday, April 16th 2009 @ 11:23:42 AM
Script : http://news.tecnocomputer.it/forums/...e=vB_Editor_QR
Referrer : http://news.tecnocomputer.it/forums/...ad.php?t=20763
IP Address : XXXXXXX
Username : XXX
Classname : vB_Database
MySQL Version : 5.0.45
Reply With Quote
  #321  
Old 04-16-2009, 08:39 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tormento View Post
MySQL Error : Table 'tcportal.pp_categories' doesn't exist
As the error states: There is no table pp_categories in your database tcportal.

I'm sorry, but I cannot say what your database setup looks like - that's something you'll have to know .

Is the prefix "pp_" correct? Are you sure you installed Photopost into the same database as vBulletin (the one called "tcportal") - it does not seem to be there?
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 09:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05735 seconds
  • Memory Usage 2,388KB
  • Queries Executed 26 (?)
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
  • (9)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_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