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

Reply
 
Thread Tools
PP-Popup - Photo-Popup for Photopost Details »»
PP-Popup - Photo-Popup for Photopost
Version: 1.0, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 01-15-2009 Last Update: 01-17-2009 Installs: 10
Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

*************************************************
PLEASE NOTE:
This mod will be discontinued in this form. However, there now is a
completely remade version that integrates vB's Albums and Photopost Gallery. Either one can be used alone or both together.

URL to the new mod:
https://vborg.vbsupport.ru/showthread.php?t=202385
************************************************** *********


*** Preface and Credits ***


This is my fist released mod, so please be patient with me

When my long fostered Photopost-Popup, the well known and unrivaled Geek Gallery Popup, finally stopped working in IE I tried to find replacement. When I couldn't, I decided to tackle the job myself.

Credits go to the Geek not only for the idea, but also for parts of the code - or at least for a very great many of hints I took from looking at it. Since The Geek granted permission to use his abandoned code as base for new development, I felt free to do so. While some of the code is close to his, especially the trouble-rousing injection-process of the images into the editor follows different lines altogether.

Please note that this modification is Photopost only and there are no plans to change that - especially since I do not have other gallery software.


I use this on my own live board, but will not be liable for any problems it may cause. Use at your own risk.The mod is fully functional and has been tested on
  • vB 3.7.4 (Sorry, not yet upgraded - perhaps someone else could test it?)
  • PhotoPost 6.2
  • with Browsers: Firefox, IE, Opera, Safari(Win) - all in their latest versions at time of release.


*** So, what does it do?
***

If you have installed Photopost, your users can click on a link below the smilies on the right in the editor. A window will pop up, where your users can click on their uploaded photos to insert them into the editor. Upon insertion the script will detect whether editor is in wysiwyg or codeview-mode and act accordingly, so that in wysiwyg-mode the actual image will be visible.

Several insert-options are available, and your users can choose from their own personal albums (or see all their uploaded photos).



*** What's in it? ***

Not much:
1 file-upload
1 product to import: bunch of phrases, a new Options-page in AdminCP and one template will be installed
1 template hack, done automatically if you're using TMS.



*** Installation ***

Is simple: Just upload pp-popup.php into your forum root, import the product file and
- if you're using TMS, you're done,
- if not, follow the instructions in templateedits.txt



*** Configuration ***

Just as easy: In the AdminCP go to vBuletin Options -> PP-Popup
There you'll find detailed instructions. See screenshot below.



*** Upgrade ***

Just reimport the product-xml-file, overwriting the old version, and reupload the pp-popup.php. Thats all.



*** Possible Pitfalls ***

Different databases setup
If your vB and PP use different databases, you'll have to activate the different databases setup in AdminCP/Options/PP-Popup. Furthermore, you'll have to give some information concerning the other database at the top of pp-popup.php file.
*** Debug Mode ***

There is a limited debug mode that shows some information only to administrators of the forum. Go to admincp, options and activate debug mode (set to yes).
Now you'll find the debug informtion on the bottom of the popup. If you do not get mysql-errors, the popup seems to work but you do not see any photos, please provide the information given in the debug box (especially datadir and code). If there are links given to original image and thumbnail, you can click them. if they don't work, there's probably a problem with your path to datadir.



*** Languages ***
German language file included. Import via phrases system.



*** Version history ***

-- v1.0
- complete rewrite of different databases setup, now tested and working
- added insert-options (7 different possibilities to insert images)
- of course, everythings phrased (or so I hope)

-- v0.3.1.
- added several new phrases
- changed templates accordingly. Please update template edits, TMS-users will receive those automatically
- added debug system, see this post.

-- v0.3
- new approach to implementing external PP-Database (if vB-db and PP-db are not the same). Should work, all db-Settings for PP are pulled from PP's config.inc.php, no more configuration needed than a simple yes/no-choice.

-- v0.2
- fixed some issues in pp-popup.php that caused broken links (some hard coded paths changed into variables)
- extended javascript for image-injection, now detects whether wysiwyg- or codeview-mode is active; therefore in wysiwyg-mode no longer code is visible upon injection, but the actual image

-- v0.1
initial release

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-16-2009, 06:32 PM
mfowler70 mfowler70 is offline
 
Join Date: Apr 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
So you're not getting a db-error and the script is pulling information from the database; else you'd probably see a mysql-error or the result would be empty. Most likely there's something wrong with the path to data-dir where your photos are stored.

A possibility to check this would be:
Look at the source code of the popup window. Look for
Code:
onclick="thumbpaste(
The code should read something like:
Code:
onclick="thumbpaste('<a href=\'http://www.yoursite.com/path/to/gallery/datadir/category_number/filename.jpg\'><img src=\'http://www.yoursite.com/path/to/gallery/datadir/category_number/thumbs/filename.jpg\' style=\'border: 0\' /></a>'
I'm not finding that code anywhere in the pp-popup.php file or the template. Where exactly should I look?
Reply With Quote
  #13  
Old 01-16-2009, 06:38 PM
mfowler70 mfowler70 is offline
 
Join Date: Apr 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also the phrase geek_gallery_my_pictures isn't installed by the product file.
Reply With Quote
  #14  
Old 01-16-2009, 07:12 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mfowler70 View Post
I'm not finding that code anywhere in the pp-popup.php file or the template. Where exactly should I look?
Not in the files, but in your browser, the html-source code. But wait a few minutes, just adding some more phrases (the one you mentioned among them) and a debug system.
Reply With Quote
  #15  
Old 01-16-2009, 07:23 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There now is a debug modus that shows some information only to administrators of the forum.

Go to admincp, options and activate debug mode (set to 1).

Now you'll find the debug informtion on the bottom of the popup.

In the case of mfowler70: Are there Links for Original image and Thumbnail image? If you click them, do they work? If they do not work, there's something wrong with your paths.
You may want to give the informtion given on Datadir and Code.
Reply With Quote
  #16  
Old 01-16-2009, 07:29 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DaveS View Post
Just a vote to say very well done for doing this.

I'm just getting my dev server rebuilt and will install this on there with vB 3.8 to test it for you if you still need that.
I'd very much appreciate that, yes.
Reply With Quote
  #17  
Old 01-18-2009, 02:01 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.0: Lot's of new bells and whistles.

2 databases setup completely new, should work now (database settings in upload-file). Getting the info from PPs config-file did break several vB-variables.
Reply With Quote
  #18  
Old 01-18-2009, 04:11 AM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works with vb album pictures? and with vb 3.8?
Reply With Quote
  #19  
Old 01-18-2009, 07:52 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob01 View Post
this works with vb album pictures? and with vb 3.8?
No, at least not yet (with album pictures). That's why it's called "PP-Popup - Photo-Popup for Photopost". It's for Photopost.
Reply With Quote
  #20  
Old 01-19-2009, 03:45 PM
raugusto raugusto is offline
 
Join Date: Dec 2006
Location: Portugal
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working now.
Reply With Quote
  #21  
Old 01-19-2009, 07:41 PM
mfowler70 mfowler70 is offline
 
Join Date: Apr 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cellarius,

would you mind sending me the 1.0 version of this add-on to use until your new product comes out? I want to see if it works where the first one did not show the images.

thx
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 06:31 PM.


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.05296 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete