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

Quote:
Originally Posted by woffie View Post
Added this to my test forum. Does not seem to work right. Click on the images and it does nothing. And yes, I did the edits
Quote:
Originally Posted by woffie View Post
Nope, just the vbgallery
Quote:
Originally Posted by woffie View Post
Still does not work. Oh well
The information you provide makes bugfixing somewhat - difficult
What version of vB and vBG? Heaviliy modified skin? Which browser? Why don't you paste the debug-information the mod provides?
Have you tried it on a clean out-of-the-box installation?
Reply With Quote
  #293  
Old 04-11-2009, 07:09 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by macc View Post
could not get image button on my editor and no link also to use this mod ...
some help?

use only albums and photoplog.
Quote:
Originally Posted by jdougher View Post
Same here. Did the install, followed directions, added code to templates.

No image in threads to access albums/pictures.

Have both photopost and albums, latest vB.
The display of the button or the link to open the popup window in the editors is independent of products used. If you did the template edits and upload of the image file properly, it will show up. If it does not, there may be several causes you have to check for yourself, since nobody here knows your independant setup:
  • you use a custom made style or custom buttons and therefore use a different than standard directory for your button image files. This mod looks for the image file in the directory you have defined in AdminCP->StyleManager->StyleVars->Imagepaths->Button Images Folder.
  • Your style is heavily modified. If this is the case, the reference code given (i.e.: insert after XY, replace XY) may not work for you. In this case, you'll have to find out yourself or ask the person who provided your style
  • You use another mod that modifies the editors - there are quite some of them out there. If this is the case, read the note in the second post of this thread.
Reply With Quote
  #294  
Old 04-11-2009, 08:23 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made some changes to the config file for vBGallery. Up to now there was an issue I was not aware of concerning user categories: user categories not belonging to the current user were visible in the albums drop down menu as an empty line. This should be fixed now: only user categories belonging to the user are shown and, of course, with title.

The .zip file in the first post has been updated. If you already downloaded 3.1, you can download just the attached config file and upload it to your includes folder. If you modified your vBG config file (because you use an older version and needed to account for the different data folder structure), you can also do the following file edit:

Find:
Code:
    $albums_select = "
        SELECT catid, title_clean
        FROM " . $db_prefix . "categories
        WHERE hasimages = 1
        ORDER BY title_clean
Replace with:
Code:
        SELECT catid, title
        FROM " . $db_prefix . "categories
        WHERE hasimages = 1 AND (catuserid = 0 OR catuserid = $userid)
        ORDER BY parent, displayorder


File removed for newer version. Check following posts! Please note that there are further improvements going on, so it is recommended not to do the file edit, but to upload the updated config file.
Reply With Quote
  #295  
Old 04-11-2009, 10:34 AM
mr3oobqatar mr3oobqatar is offline
 
Join Date: May 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks....
Reply With Quote
  #296  
Old 04-11-2009, 11:57 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did say this earlier, but it needs saying again, this is one of the most useful and practical mods for vB for a long time.

It provides another much needed "link" between the vb album functionality and the forum posts, which is sadly lacking in many ways by default. It also works perfectly out of the box and looks like it came as part of vB.

The default nonsense about copying and pasting URLS from the album into the post is just impractical and nobody uses it. Now lots of my members are utilising the albims a lot more.

On that basis I have now nominated this mod for "Mod Of The Month".

A note for the future, it would be good to have something similar for "Add picture to group" as that also requires this nonsense of pasting in a URL which you don't at that point have access to. It's messy.
Reply With Quote
  #297  
Old 04-11-2009, 04:20 PM
nohuhu nohuhu is offline
 
Join Date: Dec 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cellarius,

a) i've made russian translation for this hack, there are two language files since it is customary to run cyrillic forums either in windows-1251 (ansi) codepage or utf-8. i've attached them to this message.
b) i've made a little patch to make the script itself more friendly to non-ansi codepages. the diff is attached as well.
Attached Files
File Type: zip photo_popup-russian-cp1251.xml.zip (2.7 KB, 26 views)
File Type: zip photo_popup-russian-utf8.xml.zip (3.0 KB, 20 views)
File Type: txt photo-popup-diff.txt (1.2 KB, 27 views)
Reply With Quote
  #298  
Old 04-11-2009, 10:20 PM
NetRover NetRover is offline
 
Join Date: Jul 2004
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
I did say this earlier, but it needs saying again, this is one of the most useful and practical mods for vB for a long time.

It provides another much needed "link" between the vb album functionality and the forum posts, which is sadly lacking in many ways by default. It also works perfectly out of the box and looks like it came as part of vB.

The default nonsense about copying and pasting URLS from the album into the post is just impractical and nobody uses it. Now lots of my members are utilising the albims a lot more.

On that basis I have now nominated this mod for "Mod Of The Month".
I second these comments. This is going to be one of those must have mods. Probably one of the ones you would think twice about upgrading your forums if it no longer worked.

That's what I think anyway as my members would hate me if they lost it.
Reply With Quote
  #299  
Old 04-12-2009, 09:08 AM
arcadian_girl's Avatar
arcadian_girl arcadian_girl is offline
 
Join Date: Mar 2006
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I just say I love this mod? It was always such a pain before when I want to post images in a certain order, and with attachments you cant, theyre just all on the bottom - no way to say "ok here is what happened first", and "then in this pic this happened" and "this is the pic I took last tuesday". Now with this mod, I can place pics wherever I want - love it and yeah, my members are suddenly using their photo albums a lot more
Reply With Quote
  #300  
Old 04-12-2009, 08:12 PM
KenDude KenDude is offline
 
Join Date: Jul 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your vbgallery directory structure is not parsed correctly. For example I have a member who selected a photo and he gets this:

http://www.planetporsche.net/gallery...tige_thumb.jpg

What it "should" be is the following:

http://www.planetporsche.net/gallery...tige_thumb.jpg

The number corresponding to the memberid isn't a single directory (like 170 in this case for member #170) but rather it is parsed by each digit 1/7/0

Please fix and distribute an update!

Thx!
Reply With Quote
  #301  
Old 04-12-2009, 11:21 PM
KenDude KenDude is offline
 
Join Date: Jul 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wottech View Post
Well, I was having some issues with vbGallery and it not showing any images. After looking at the debug code, I realized that the directory structure wasn't the same as what mine is. I have an older version of vbGallery, so the structure might have changed. Mine is setup such that the userid is split into single characters, so a user with an id of 1234 has images in a dir starting with /1/2/3/4/ instead of /1234/. Anyway, I'm attaching part of the code that needs to be changed in case anyone else has a file structure like this.

Code:
/*
###### Construct image bits ######
*/
function imagebits ()
{
	global $array;
	global $data_dir;
	global $url_path;
		
	$new_userid = '';
        for($i=0; $i<strlen($array['userid']); $i++)
	{
	$new_userid .= $array['userid'][$i] . "/";
	} 
	$img['orig'] = $data_dir . $new_userid . $array['filename'];
	$filename_parts = pathinfo($array['filename']); 
	$img['thumb'] = $data_dir . $new_userid . $filename_parts['filename'] . "_thumb." . $filename_parts['extension'] ;
	$img['med'] = "";
	$img['gallery'] = $url_path . "showimage.php?i=" . $array['imageid'];	

	return $img;
}
Everything works great now! Now its time to attempt the config file for the garage module.

FYI I have the latest and greatest vbgallery, and it needed this too!
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 01:57 PM.


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.06485 seconds
  • Memory Usage 2,391KB
  • 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
  • (3)bbcode_code
  • (8)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
  • (10)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