vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Photo Popup - Insert pictures easily from vB Albums, Photopost, vBGallery, Photoplog (https://vborg.vbsupport.ru/showthread.php?t=202385)

intelgio2 07-13-2009 03:07 PM

Works great! A critical add to my photography community site...

http://www.PhotographersParadise.com

Konstantinos 07-18-2009 04:54 PM

any ideas why the popup shows the latest uploaded img first for me but for other users the order isnt right (photopost pro)

cellarius 08-16-2009 06:25 PM

3.4.1.: Fix for PHP 5.3.0 related bug. If you don't use PHP 5.3.0, there's no need to update, if you do, just reupload photo_popup.php

yotsume 08-17-2009 10:36 PM

Upgraded.... My only hope is that one day somehow the thumbs, med, or original images can be linked with no text and there not be a conflict with that Tcat image resizer mod.

Tom_M 08-30-2009 07:57 PM

Excellent mod and just what I've been looking for. I wonder if it's possible to modify the code so you can have a community album? The reason for wanting to do this would be to let members select photo's for birthdays, get well soon, and things like that, instead of hunting round the net to link to stuff.

Regards,
Tom

cellarius 08-30-2009 10:55 PM

Try this:

In photo_popup_albums_config.php around line 40 change
Code:

WHERE userid = $userid
to
Code:

WHERE userid = $userid OR albumid = XY
where XY is the id of the album you want to share.

Also change around line 77
Code:

WHERE userid = $userid " . $where_add . "
to
Code:

WHERE userid = $userid " . $where_add . " OR " . TABLE_PREFIX ."albumpicture.albumid = XY
Untested, might work. Note that the images of the shared album will also show up if the user selects "Show all my images" in the albums selector.

Please let me know if that works.

Tom_M 08-31-2009 11:48 AM

Thanks cellarius, I'll give a try and let you know how it turns out.

Regards,
Tom

fly 08-31-2009 01:59 PM

Strange.

On my site, this only works when there is no www in the URL. So it works correctly with uselessforums.com but not www.uselessforums.com. I couldn't find anything in the first post about this, nor by searching the thread. Thanks for any help.

Here is the debug info:
Code:


Debug information

Version: 3.4

Photo Popup Settings (from AdminCP)
num_of_cols: 3
num_of_rows: 3
num_total:9
widht: 600
heigth: 680
products: albums
insert_options_allowed: link_thumb_2_orig link_thumb_2_gallery link_med_2_orig link_med_2_gallery thumb med orig thumb_2_gallery_link_below med_2_gallery_link_below orig_2_gallery_link_below
allow_albums: 0
code_usergroups: 0

Code (this is what is inside the table cells)
<a href="#" onclick="thumbpaste('<img src=\'/picture.php?albumid=153&amp;pictureid=3076\' style=\'border: 0\' /> ','http://uselessforums.com/picture.php...pictureid=3076 ')"><img src="http://uselessforums.com/picture.php?albumid=153&amp;pictureid=3076&amp;thumb=1" style="border: 0" title=""/></a>

Images query
SELECT pictureid, albumpicture.albumid FROM albumpicture INNER JOIN album ON albumpicture.albumid = album.albumid WHERE userid = 1 AND albumpicture.albumid = 153 ORDER BY pictureid DESC LIMIT 0, 9

Albums query:

Link to Original
http://uselessforums.com/picture.php?albumid=153&pictureid=3076

Link to Thumb
http://uselessforums.com/picture.php?albumid=153&pictureid=3076&thumb=1

Used product: albums

Albums possible: 1

Albums override:

Cookie
Read Cookie: albums,153,orig
Set Cookie: albums,153,orig

Table building (rows and columns)
[td 1][td 2][td 3][tr][td 1][td 2][td 3][tr][td 1][td 2][td 3]


cellarius 08-31-2009 04:13 PM

Quote:

Originally Posted by flypaper (Post 1877182)
Strange.
On my site, this only works when there is no www in the URL. So it works correctly with uselessforums.com but not www.uselessforums.com. I couldn't find anything in the first post about this, nor by searching the thread. Thanks for any help.

Use .htaccess to use one domain only (yes - www.domain.com and domain.com are different (sub)domains). You should do this anyway for SEO reasons; in this case there's nothing that can be done (that I'm aware of), since all modern browsers don't allow javascript injection of data across domains (and that's basically what you're trying to do, since the popup internally uses the domain you have set in your AdminCP for the forum).

fly 08-31-2009 04:38 PM

Quote:

Originally Posted by cellarius (Post 1877235)
Use .htaccess to use one domain only (yes - www.domain.com and domain.com are different (sub)domains). You should do this anyway for SEO reasons; in this case there's nothing that can be done (that I'm aware of), since all modern browsers don't allow javascript injection of data across domains (and that's basically what you're trying to do, since the popup internally uses the domain you have set in your AdminCP for the forum).

The different (sub)domains is something I need on the forum because I have a lot of couples who post. One is logged into one domain and the other is logged into the "sub" domain. Is it not possible to use /album.php rather than {bburl}/album.php (or however that works, I forget)?

Since no one else has reported this problem, maybe I can just fix it for my forum...


All times are GMT. The time now is 06:35 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.01546 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete