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)

fly 08-31-2009 05:36 PM

I fixed it for mine. :D

Tom_M 08-31-2009 09:17 PM

Quote:

Originally Posted by cellarius (Post 1877043)
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.


It's coming up with database error cellarius - Unknown column 'XY' in 'where clause
I'll check to see if I've put the code in the right place.

Tom

cellarius 08-31-2009 09:36 PM

Please read and follow instructions carefully. As I pointed out, of course you have to replace XY with the album id of the album you want to share. If the album's id is 112, replace XY with 112. Both times, without saying.

Tom_M 08-31-2009 10:09 PM

Sorry, I didn't read your post properly, I just focused on the code, it's an awful habit of mine.
Will try again, the correct way this time :).

Tom

Wild Bronco 08-31-2009 10:13 PM

Thank you for this fantastic mod :)

Tom_M 09-01-2009 09:50 AM

The community album thing works great, cellarius. Thank you very much for your help.

Tom

cellarius 09-01-2009 10:16 AM

Good to hear, maybe that'll get an option in a future (vB4?) release.

madbatty1 09-01-2009 03:34 PM

Would it be possible to incorporate vbimagehost into this hack?

sherrym 09-02-2009 05:27 AM

Hi,

Thank you for your mod!! I installed it in two V3.8.4 forums and all went very well. The third install, however, throws an error. By looking at what is below, is it possible to tell me where I went wrong? Reinstalled twice, but no joy.

Thank you for your time,
Sherry


Photo Popup Settings (from AdminCP)
num_of_cols: 3
num_of_rows: 3
num_total:9
widht: 600
heigth: 680
products: albums photopost vbgallery photoplog (lite version)) photoplog_categories (pro version) photoplog_useralbums (pro version) cndgarage
insert_options_allowed: link_thumb_2_orig
allow_albums: 1
code_usergroups: 0


Photopost Settings (from config file, only if photopost is selected product)
Datadir: /
Other DB?:


Code (this is what is inside the table cells)
<a href="#" onclick="thumbpaste('<a href=\'/forum/picture.php?albumid=5&amp;pictureid=2073\'><img src=\'/forum/picture.php?albumid=5&amp;pictureid=2073&amp;thumb =1\' style=\'border: 0\' /></a> ','http://dolforum.com/forum/picture.ph...73&amp;thumb=1 ')"><img src="http://dolforum.com/forum/picture.php?albumid=5&amp;pictureid=2073&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 = 5 ORDER BY pictureid DESC LIMIT 0, 9

Albums query: SELECT albumid, title FROM album WHERE userid = 1 ORDER BY title

Link to Original
http://xxxxxx.com/forum/picture.php?...pictureid=2073

Link to Thumb
http://xxxxxxxx.com/forum/picture.ph...d=2073&thumb=1

Used product: albums

Albums possible: 1

Albums override:

Cookie
Read Cookie: albums,5,link_thumb_2_orig
Set Cookie: albums,5,link_thumb_2_orig

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

cellarius 09-02-2009 06:49 AM

Quote:

Originally Posted by sherrym (Post 1878230)
Hi,

Thank you for your mod!! I installed it in two V3.8.4 forums and all went very well. The third install, however, throws an error. By looking at what is below, is it possible to tell me where I went wrong? Reinstalled twice, but no joy.

It sure would help if you would tell me exactly what the error is and when it occurs.


Anyway,
Quote:

products: albums photopost vbgallery photoplog (lite version)) photoplog_categories (pro version) photoplog_useralbums (pro version) cndgarage
Do you really have all possible products installed? Photoplog in two different versions? Difficult to believe...

Quote:

Photopost Settings (from config file, only if photopost is selected product)
Datadir: /
Other DB?:
If indeed you have Photopost Pro installed, as you have set in AdminCP, there are settings missing in the config file.


Quote:

Code (this is what is inside the table cells)
<a href="#" onclick="thumbpaste('<a href=\'/forum/picture.php?albumid=5&amp;pictureid=2073\'><img src=\'/forum/picture.php?albumid=5&amp;pictureid=2073&amp;thumb =1\' style=\'border: 0\' /></a> ','http://dolforum.com/forum/picture.ph...d=2073&thumb=1 ')"><img src="http://dolforum.com/forum/picture.php?albumid=5&amp;pictureid=2073&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 = 5 ORDER BY pictureid DESC LIMIT 0, 9

Albums query: SELECT albumid, title FROM album WHERE userid = 1 ORDER BY title
Those look pretty normal, from what I can say.

Of course, those are completely useless if you take your domain out. You need to test them: Do those links work? Do they show the images?

Quote:

Table building (rows and columns)
[td 1][td 2][td 3][tr][td 1]
This looks weird. The table building process is incomplete, so there might be an error when processing the fifth image (first four are there).

Anyway, as long as you don't tell the exact error, this is guesswork.


All times are GMT. The time now is 08:04 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.01351 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_code_printable
  • (7)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