PDA

View Full Version : Add-On Releases - Module CMPS: PhotoPost vBGallery


Pages : [1] 2

Zachariah
15 Sep 2006, 13:19
/* ----------------- 8/28/2007 6:41pm -----------------

Add Gallery Images to your vBAdvanced CMPS 3.x
Do you have PhotoPost vBGallery v2.0 + installed ?

Looking @ changes in the gallery. This hack will work with vbgallery 2.2, 2.3 out of the box.
- you can get a patch if you have 2.0, 2.1 - here (http://www.photopost.com/forum/showthread.php?t=131052).

Tested on:
- vBulletin 3.6.8
- PhotoPost vBGallery v2.3
- vBadvanced CMPS v3.0 RC1

1 query added to CMPS

Zachariah @ http://www.szone.us/

EX: 3 CMPS blocks 3 different settings
http://www.szone.us/index.php?id=gallery

--------------------------------------------------*/


Change Log
===========
2.6
- Added option for module title.
- Added option for module link.
- Added option to choose from thumbnail, normal, origianal


2.5
- Added Template: adv_portal_vbgallery_imagebit
- Edited Template: adv_portal_vbgallery_nav - added search dropdown
- Edited Template: adv_portal_vbgallery - changed to work with standard CMPS wrapper
- Multi-Modules can be used on the same page using the same php file with different settings
EX: 3 CMPS blocks 3 different settings http://www.szone.us/index.php?id=gallery


2.2
- reworked to work on CMPS 3.0

2.1
- Package added to: imagegallery.module
- Block settings per CMPS page
- Permissions fixed


2.0
- adv_gallery_images -> ppgal_images

1.9
- Added vb3.6

1.8
- Added functions_gallery_store.php
- Added column span support

1.7
- Install w/ product in 1 file.
- Killed the need for FORUMHOME template edit.
- AdminCP options to change the hack settings
- Added: Parts of the gallery's Nav bar w/ dropdowns
(My Stuff*, What's New, What's Popular,Search) to the hack with on/off option.

* My Stuff will not be seen if you are a guest.

1.6
- Added: If the gallery is off or disabled the hack not show up.
- Added: templates to support the hack vs. gallery templates
(allows you to customize the templates for the look and feel you want vs. mess up the way your gallery templates look.)


1.5
- <If> usergroup can not see thunbnails FORUMHOME edit will not show up.

1.4
- Removed Phrase to name gallery <table> now use $vba_options[gallery_title]
- Added 3 prases in "global" - filesize,category,dimensions

1.3
- Display images from specific categories.

1.2
- added Phrase support

Zachariah
15 Sep 2006, 13:26
Looking @ changes in the gallery. This hack will work with vbgallery 2.2, 2.3 out of the box.
- you can get a patch if you have 2.0, 2.1 - here (http://www.photopost.com/forum/showthread.php?t=131052).


*** How to Install:
======================

In your Admin Control Panel

1)
AdminCP => Plugins & Products => [Add/Import Product]
- Import Product:
- Browse "product-sz1_gallery_cmps.xml"
- [Import]

2)
Admincp => vBa CMPS => Download / Upload Module
Click [Browse]
Browse for the file "imagegallery.module"

3)
Settings can be set per page.
Admincp => vBa CMPS => edit/add Page
- Image Gallery

Betablocker
15 Sep 2006, 13:37
Install clicked :cool:

maroceve
15 Sep 2006, 13:40
hi ..i have this problem since i updated to 3.6 :[


Fatal error: Cannot redeclare empty_category() (previously declared in /home/maroceve/public_html/forums/includes/functions_gallery.php:2069) in /home/maroceve/public_html/forums/includes/local_links_include.php on line 2935

So i disabled the module.

Can you please help ?

Snake
15 Sep 2006, 13:41
Awesome! It's finally here for 3.6.1. Thank you! :D

FleaBag
15 Sep 2006, 14:25
About time punk! :P

SgtTechHead
15 Sep 2006, 14:39
Thank You! *installed*

MotoUp
15 Sep 2006, 15:34
What I want to do is only show "Posted by User" underneath the images in the module. What template do I edit to take the border off of the table that it includes when you turn on the user bit?

Installed! Thank you.

SgtTechHead
15 Sep 2006, 16:18
I have installed and everything, with the exception of two items, seems to be working great.

When I choose to show "Last Post", or "Posts", in the options, it will not reflect any data. Even if a picture does have replies, the "Posts" always shows as zero, and the "Last Post" always appears blank.

Zachariah
15 Sep 2006, 16:52
I have installed and everything, with the exception of two items, seems to be working great.

When I choose to show "Last Post", or "Posts", in the options, it will not reflect any data. Even if a picture does have replies, the "Posts" always shows as zero, and the "Last Post" always appears blank.

I'll take a look.

MotoUp
15 Sep 2006, 20:15
What I want to do is only show "Posted by User" underneath the images in the module. What template do I edit to take the border off of the table that it includes when you turn on the user bit?
I've looked everywhere for this template and just can't find it. Any suggestions?

Zachariah
15 Sep 2006, 20:26
It's not a template fix it is code.
- I'll have an update soon.

MotoUp
15 Sep 2006, 20:38
Ah! Thanks Zach, appreciate it. Not a huge deal, I just got a wild hair is all. :)

SMO
15 Sep 2006, 23:16
thx brotha...was looking forward to this

bolly.beats
16 Sep 2006, 01:08
hiii thank you for this and someone help me in installin this please.. i downloaded zipp. When I do this changes in init.php file:

- Edit:
forums/includes/init.php

- Find:
require_once(CWD . '/includes/class_core.php');

- Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');

I get an error, but when i remove this :
- Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');

when i remove code it starts working. Someone help me please.

MustangLisa
16 Sep 2006, 03:58
I know it doesn't mention Photopost Pro, but will it work for that, or is there one for that? Thanks!

Zachariah
16 Sep 2006, 10:11
I know it doesn't mention Photopost Pro, but will it work for that, or is there one for that? Thanks!

No Ma'am, this will not work with Pro.
- I have an old beta hack using Pro based on inc_feature.php. (used to output images to other places) I will dig that out of the archive and re-work it a bit.

bolly.beats
16 Sep 2006, 11:40
somebody help me too plz :(

Zachariah
16 Sep 2006, 11:48
somebody help me too plz :(

- This is not a gallery, but a way to display the images from the gallery to your forums.

Do you have vBGallery installed ?

Tested on:
vBulletin 3.6.1
PhotoPost vBGallery v2.0 (vB 3.6)
vBadvanced CMPS v2.2.1 (vB 3.6)

Zachariah
16 Sep 2006, 12:28
Ah! Thanks Zach, appreciate it. Not a huge deal, I just got a wild hair is all. :)

I try to pluck those by the handfull :knockedout:

Fixed :D

No version change

- Fixed reply count
- Fixed last comment

Replace:
forums/modules/vbgallery_block.php

SgtTechHead
16 Sep 2006, 15:31
No version change

- Fixed reply count
- Fixed last comment

Replace:
forums/modules/vbgallery_block.php

Thank you sir! Appreciate it!

Metal-R-US
16 Sep 2006, 15:53
Been getting following error since updating the module. Any idea why? I uploaded the file and re-imported the plugin. It doesn't happen all the time though.Database error in vBulletin 3.6.1:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title, images.dateline ,filesize, originalfilesize ,width, height, originalwidth, originalheight, images.views, images.posts, images.lastpostdateline, images.lastpostuserid, images.lastpostusername, votenum, votetotal, categories.title AS cattitle
FROM vb_adv_gallery_images AS images
LEFT JOIN vb_adv_gallery_categories AS categories USING (catid)
WHERE Array valid = 1


ORDER BY RAND()
LIMIT 1;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1


ORDER BY RAND()

Error Number : 1064

SMO
16 Sep 2006, 17:18
ya, i got that too just now. Was wondering bc it was working fine before

Metal-R-US
16 Sep 2006, 17:54
I reverted to the 3.5.x code for now and I didn't get any database error notifications since....

Zachariah
16 Sep 2006, 19:22
I need to relook @ privatecatids

WHERE $privatecatids valid = 1 $ignquery

For now remove bold.
- I did not test that part of the add-on in detail.
- I never hide things from users, Ill rework that a bit.

it almost works (http://www.gzhq.net/index.php?page=hacks) :D

gator777
16 Sep 2006, 20:16
I was running the 3.5 version of your hack, and all was fine. When I installed the latest version, I got SQL errors. I installed and reinstalled, but it will not work without db errors. I am a big fan of this hack and your help would be appreciated.

lasto
16 Sep 2006, 20:51
i have photopost installed

is vbgallery different ??

G_Man
16 Sep 2006, 21:26
i have photopost installed

is vbgallery different ??


Yes. vbgallery is an older version that used to be owned by the peeps over at vba cmps. Used to be vbagallery. Photopost owns it now and they (mostly Zach here) supports vbgallery on the Photopost forums.

Pretty sure this is NOT compatible with Photopost Gallery.

*and nice Avatar Btw! :p *

bolly.beats
16 Sep 2006, 22:15
- This is not a gallery, but a way to display the images from the gallery to your forums.

Do you have vBGallery installed ?




no I haven't please tell me how..??? it's all new to me :(

G_Man
16 Sep 2006, 22:44
no I haven't please tell me how..??? it's all new to me :(

Click on his PhotoPost link in his Sig. That will take you to the Photopost site which in turn will let you compare both PhotoPost Gallery and PhotoPost vbGallery.

bolly.beats
17 Sep 2006, 05:34
I have it installed now thank you so much for help :D

now is there anyway i can put it on homepage like here
http://forums.bollyjaan.com under Navbar or something?

the main page it http://forums.bollyjaan.com/gallery haven't put any image yet though.. will work on it tomorrow its night Sleepin time :p lol :D

thanxx again :D for this Great Hack :D

Zachariah
17 Sep 2006, 06:51
I have it installed now thank you so much for help :D

now is there anyway i can put it on homepage like here
http://forums.bollyjaan.com under Navbar or something?

the main page it http://forums.bollyjaan.com/gallery haven't put any image yet though.. will work on it tomorrow its night Sleepin time :p lol :D

thanxx again :D for this Great Hack :D

Forumhome :)
http://www.vbulletin.org/forum/showthread.php?t=123490

bolly.beats
17 Sep 2006, 09:53
thank you so much but now I get this error when I reply to any pic... only with the pic that has replies.. not in all posts. how do i fix it?
I also can't find this FROM adv_gallery_posts AS posts << template when i click on VBgallery edit template. May be that's the problem? I am not sure just saying.


Database error in vBulletin 3.6.1:

Invalid SQL:

SELECT posts.postid, posts.pagetext, posts.title, posts.userid, posts.username AS postusername, posts.dateline, posts.ipaddress AS ip, posts.iconid, posts.allowsmilie, posts.showsignature, user.*, userfield.* ,icon.title as icontitle, icon.iconpath ,avatar.avatarpath, NOT ISNULL(customavatar.filedata) AS hascustom, customavatar.dateline AS avatardateline, avatarrevision , level
FROM adv_gallery_posts AS posts
LEFT JOIN user AS user ON (posts.userid = user.userid)
LEFT JOIN userfield AS userfield ON (posts.userid = userfield.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN icon AS icon ON (posts.iconid = icon.iconid)
LEFT JOIN reputationlevel AS reputationlevel ON (user.reputationlevelid = reputationlevel.reputationlevelid)

WHERE imageid = '4' AND posts.visible = 1
ORDER BY posts.dateline
LIMIT 0, 10;

MySQL Error : Unknown column 'level' in 'field list'
Error Number : 1054
Date : Sunday, September 17th 2006 @ 12:33:42 PM
Script : http://forums.bollyjaan.com/gallery/***...
Referrer : http://forums.bollyjaan.com/gallery/***...
IP Address : ******
Username : kk
Classname :***

KevNJ
17 Sep 2006, 21:01
*clicks install*

finally upgraded to the newest version. lol

MotoUp
18 Sep 2006, 18:54
When I replaced vbgallery_block.php, my portal wouldn't load. It gave a database error, but didn't give any information as to what happened. I put the old file back, and everything loads just fine...any ideas?

Slave
19 Sep 2006, 16:17
When I replaced vbgallery_block.php, my portal wouldn't load. It gave a database error, but didn't give any information as to what happened. I put the old file back, and everything loads just fine...any ideas?
I've got something like this, although I've not tried yet using my old php file.

Everything is fine if I'm logged in, but if I log out then all I get when I go to cmps_index.php is a database error with no information. I also get this behaviour if I try to look at the page logged in as my non administrator user account

Deffo the gallery module causing the problem as when I disable it my cmps page is fine. A permissions problem?

Zachariah
19 Sep 2006, 19:26
I've got something like this, although I've not tried yet using my old php file.

Everything is fine if I'm logged in, but if I log out then all I get when I go to cmps_index.php is a database error with no information. I also get this behaviour if I try to look at the page logged in as my non administrator user account

Deffo the gallery module causing the problem as when I disable it my cmps page is fine. A permissions problem?

Perhaps
- I'll take a poke @ it.

joerns
29 Sep 2006, 22:27
Have created the module as per instructions, activated it and added it to the home page but nothing shows up - blank. Went into the CP and set the options to one column and one picture. The module is set to display in the right column. Wrecked my brain, but couldn't figure out what the problem may/could be. Any ideas? I'm running vBulletin 3.6.1, PhotoPost vBGallery v2.0 (vB 3.6) and vBadvanced CMPS v2.2.0 (vB 3.6.) I see you tested it on vBadvanced CMPS v2.2.1 (vB 3.6) but that does not seem to be availalbe for download on vbadvanced,.com yet?

bokas
29 Sep 2006, 23:36
Hi. I get an error when i do this. Although I do have photopost gallery pro. Is there a module for pro? I read that you were going to see if you have one as someone else has asked. Thanks for any help. This is what i get below

- Edit:
forums/includes/init.php

- Find:
require_once(CWD . '/includes/class_core.php');

- Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');

hannie
03 Oct 2006, 12:27
i'm getting




MySQL Error : Table 'hannie_vbulletinold.adv_gallery_images' doesn't exist
Error Number : 1146


can i just add this table in - if so whats the query??

hannie
06 Oct 2006, 07:36
anyone?

Zachariah
06 Oct 2006, 12:34
i'm getting

can i just add this table in - if so whats the query??

Do you have vBGallery installed ?

hannie
06 Oct 2006, 17:06
yes PhotoPost vBGallery v2.0 is all working fine

hannie
07 Oct 2006, 11:30
ok have narrowed it down to when i do this part...

- Edit:
forums/includes/init.php

- Find:
require_once(CWD . '/includes/class_core.php');

- Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');

thats when i get the database error come up. -- any ideas why?

dbabaev
12 Oct 2006, 01:50
i also get Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title ,width, height, originalwidth, originalheight, images.views, images.posts, votenum, votetotal
FROM vb_adv_gallery_images AS images

WHERE valid = 1


ORDER BY RAND()
LIMIT 4;

MySQL Error : Table 'mbacale_msmba.vb_adv_gallery_images' doesn't exist

maroceve
12 Oct 2006, 10:29
hi ..i have this problem since i updated to 3.6 :[


Fatal error: Cannot redeclare empty_category() (previously declared in /home/maroceve/public_html/forums/includes/functions_gallery.php:2069) in /home/maroceve/public_html/forums/includes/local_links_include.php on line 2935

So i disabled the module.

Can you please help ?


Thanks for letting me know ...Apparently this happens when i have both Links and download manager block and the gallery cmps block enabled....

smoknz28
14 Oct 2006, 23:47
I own Photopost v5.2, but I've not heard of vB Gallery til now. I've gone to Photopost's website and am not finding anything on it....then again I do have terrible eyesight....

Thanks,
Mark

hannie
20 Oct 2006, 20:12
I own Photopost v5.2, but I've not heard of vB Gallery til now. I've gone to Photopost's website and am not finding anything on it....then again I do have terrible eyesight....

Thanks,
Mark

http://www.photopost.com/compare.html

johnstires
22 Oct 2006, 02:47
MySQL Error : Table 'hannie_vbulletinold.adv_gallery_images' doesn't exist
Error Number : 1146

I'm getting this error too. I have vbgallery 2.0 installed and vb 3.6.1

elsupremo
22 Oct 2006, 07:29
I'm getting this error too. I have vbgallery 2.0 installed and vb 3.6.1

I get the exact same error. VBGallery 2.0 and VB 3.6.2

ZGeek
22 Oct 2006, 22:46
me too!

Zachariah
22 Oct 2006, 23:09
The tables have changed in vBGallery 2.0.
The prefix of tables changed from adv_gallery_ to ppgal_.


adv_gallery_categories --> ppgal_categories
adv_gallery_customfields --> ppgal_customfields
adv_gallery_customfields_entries --> ppgal_customfields_entries
adv_gallery_ecards --> ppgal_ecards
adv_gallery_exif --> ppgal_exif
adv_gallery_favorites --> ppgal_favorites
adv_gallery_filetypes --> ppgal_filetypes
adv_gallery_images --> ppgal_images
adv_gallery_moderator --> ppgal_moderator
adv_gallery_permissions --> ppgal_permissions
adv_gallery_posts --> ppgal_posts
adv_gallery_rate --> ppgal_rate
adv_gallery_search --> ppgal_search
adv_setting --> ppgal_setting
adv_settinggroup --> ppgal_settinggroup
adv_gallery_subscribecat --> ppgal_subscribecat
adv_gallery_subscribeimage --> ppgal_subscribeimage



EX: Ver. 1.0, 1.0.1, 1.0.2, 1.0.3, 2.0B1/B2
FROM " . TABLE_PREFIX . "adv_gallery_images
Is now: Ver 2.0 +
FROM " . TABLE_PREFIX . "ppgal_images

Please take note if you have problems with old hacks or want to work on new projects.

johnstires
23 Oct 2006, 02:07
This code change is for the vbgallery_block.php file. It fixed it for me. Thanks! Anyone have the vertical template for this?

elsupremo
23 Oct 2006, 07:06
Thanks for that fix, it did work.
Unfortunately, another problem has come up.

If I am logged in under my administrator account, the site loads and the portal shows up fine.

If I am logged in under a regular account or if I am logged out completely, I only get a database error and the site does not load.

Any help will be immensely appreciated - I installed and used this addition for a long time without any trouble under VB 3.5, and am hoping to continue using it under 3.6.

Thanks!

TRR
23 Oct 2006, 13:09
Have created the module as per instructions, activated it and added it to the home page but nothing shows up - blank. Went into the CP and set the options to one column and one picture. The module is set to display in the right column. Wrecked my brain, but couldn't figure out what the problem may/could be. Any ideas? I'm running vBulletin 3.6.1, PhotoPost vBGallery v2.0 (vB 3.6) and vBadvanced CMPS v2.2.0 (vB 3.6.) I see you tested it on vBadvanced CMPS v2.2.1 (vB 3.6) but that does not seem to be availalbe for download on vbadvanced,.com yet?
Had the same problem until I updated the init.php file.

TRR
23 Oct 2006, 13:16
The tables have changed in vBGallery 2.0.
The prefix of tables changed from adv_gallery_ to ppgal_.


adv_gallery_categories --> ppgal_categories
adv_gallery_customfields --> ppgal_customfields
adv_gallery_customfields_entries --> ppgal_customfields_entries
adv_gallery_ecards --> ppgal_ecards
adv_gallery_exif --> ppgal_exif
adv_gallery_favorites --> ppgal_favorites
adv_gallery_filetypes --> ppgal_filetypes
adv_gallery_images --> ppgal_images
adv_gallery_moderator --> ppgal_moderator
adv_gallery_permissions --> ppgal_permissions
adv_gallery_posts --> ppgal_posts
adv_gallery_rate --> ppgal_rate
adv_gallery_search --> ppgal_search
adv_setting --> ppgal_setting
adv_settinggroup --> ppgal_settinggroup
adv_gallery_subscribecat --> ppgal_subscribecat
adv_gallery_subscribeimage --> ppgal_subscribeimage



EX: Ver. 1.0, 1.0.1, 1.0.2, 1.0.3, 2.0B1/B2
FROM " . TABLE_PREFIX . "adv_gallery_images
Is now: Ver 2.0 +
FROM " . TABLE_PREFIX . "ppgal_images

Please take note if you have problems with old hacks or want to work on new projects.


I am still new to this; where do I make the corrections so that I don't get the "table does not exist" error?

elsupremo
23 Oct 2006, 18:03
I am still new to this; where do I make the corrections so that I don't get the "table does not exist" error?

You need to open the vbgallery_block.php file included in the mod download. Find "adv_gallery_images" in the line of code given above and replace it with "ppgal_images". Save file, reupload to to server/forums/modules/.

elsupremo
26 Oct 2006, 23:09
Thanks for that fix, it did work.
Unfortunately, another problem has come up.

If I am logged in under my administrator account, the site loads and the portal shows up fine.

If I am logged in under a regular account or if I am logged out completely, I only get a database error and the site does not load.

Any help will be immensely appreciated - I installed and used this addition for a long time without any trouble under VB 3.5, and am hoping to continue using it under 3.6.

Thanks!

I would still love some help with this problem...or at least a suggestion? I would hate to permanently lose the use of this mod!

WZZZ
02 Nov 2006, 23:46
Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title, images.dateline ,filesize, originalfilesize ,width, height, originalwidth, originalheight, images.views, images.posts, images.lastpostdateline, images.lastpostuserid, images.lastpostusername, votenum, votetotal
FROM forum_ppgal_images AS images

WHERE Array valid = 1


ORDER BY RAND()
LIMIT 4;

Ошибка MySQL : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1


ORDER BY RAND()
LIMIT 4' at line 4

Jaxx
03 Nov 2006, 00:22
Wow, you're not the only one getting that error WZZZ.

I had to disable it because my users couldnt' log in due to that.

Zachariah
03 Nov 2006, 23:55
I have a few things to update in this, Ill see about getting it done this weekend.

StuntFactoryX
04 Nov 2006, 18:09
did the edits in post 52 and its working on 3.6.2

Jaxx
04 Nov 2006, 19:25
:confused:
did the edits in post 52 and its working on 3.6.2

Cocko
05 Nov 2006, 19:01
Does it work with Photopost Pro 5.5 ?

johnstires
07 Nov 2006, 21:48
Why would I get a database error from someone's uploaded file:

Database error in vBulletin 3.6.1:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username
FROM vbulletinppgal_images AS images

WHERE Array valid = 1


ORDER BY dateline DESC
LIMIT 4;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1


ORDER BY dateline DESC
LI' at line 4
Error Number : 1064
Date : Tuesday, November 7th 2006 @ 03:48:44 PM
Script : http://www.forum-of-friends.com/
Referrer : http://www.forum-of-friends.com/gallery/showimage.php?i=34&c=2
IP Address :
Username :
Classname : vB_Database

dennisuello
08 Nov 2006, 18:05
Installed 3.6.3 and it diasppeared. I tried reinstalling the hack and it still doesn't work.

Zachariah
08 Nov 2006, 19:19
Installed 3.6.3 and it diasppeared. I tried reinstalling the hack and it still doesn't work.

When you updated the forums it killed the edit to the fourms/includes/init.php file.

dennisuello
08 Nov 2006, 20:07
thanks, i guess i missed that when i reinstalled it.

johnstires
12 Nov 2006, 14:12
I have a few things to update in this, Ill see about getting it done this weekend.

Have you been able to get around to this update? I have no clue why my module would suddenly stop working and cause a sql error. I think the only thing I did was add a cetegory, and everything stopped working:

Database error in vBulletin 3.6.1:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username
FROM vbulletinppgal_images AS images

WHERE Array valid = 1
AND images.catid IN (6)

ORDER BY dateline DESC
LIMIT 4;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1
AND images.catid IN (6)

ORDER BY dateline D' at line 4
Error Number : 1064
Date : Sunday, November 12th 2006 @ 08:07:57 AM
Script : http://www.forum-of-friends.com/
Referrer :

loonytune15
17 Nov 2006, 12:20
this doesn't work with gallery 2.1

At least not for me anyhow..

Zachariah
17 Nov 2006, 12:35
this doesn't work with gallery 2.1

At least not for me anyhow..

I have new update planed, is there any errors ?

Xil Ze
19 Nov 2006, 00:23
this doesn't work with gallery 2.1

At least not for me anyhow..
same for me. i get the aforementioned error message.

Zachariah
22 Nov 2006, 12:59
I am working on a new block.
- vs. 1 block with 1 set of settings it will have settings per VBA page.

johnstires
25 Nov 2006, 19:22
Is anyone else getting a database error or am I the only one? I am completely baffled on why it would suddenly stop working for me. I can't translate the error. Is it because I am vbgallery 2.1? Any help would be much appreciated.

jlaine
25 Nov 2006, 22:20
Is anyone else getting a database error or am I the only one? I am completely baffled on why it would suddenly stop working for me. I can't translate the error. Is it because I am vbgallery 2.1? Any help would be much appreciated.

I'm only getting it when I'm not logged in and viewing the main page now (and with regular users apparently, just got an e-mail on it), I just got it installed myself so I haven't started digging

The one other error was fixed by changing adv_gallery_images to ppgal_images in the php file, this one now that I'm getting would be after the aforementioned fix.

jcfuller
26 Nov 2006, 05:26
I'm only getting it when I'm not logged in and viewing the main page now (and with regular users apparently, just got an e-mail on it), I just got it installed myself so I haven't started digging

The one other error was fixed by changing adv_gallery_images to ppgal_images in the php file, this one now that I'm getting would be after the aforementioned fix.

Same for me. :cross-eyed:

bolobala
27 Nov 2006, 14:45
Installed!
But this images show in Forum Home not good, how can i arrange it into 1 row.
In my 4rum it just show into 3 rows
http://ngoichatnghenhac.biz/4rum/
Help me plz

Trana
27 Nov 2006, 19:44
The one other error was fixed by changing adv_gallery_images to ppgal_images in the php file, this one now that I'm getting would be after the aforementioned fix.

Can someone please post a complete version of the module so we can fix this in the meantime?

I'm still not sure why changing the names of all the tables for the gallery only constitutes a x.1 increment in revision numbers.

Thanks for keeping vbg going though.

gator777
05 Dec 2006, 03:01
Zach,

Any word on the fix? :)

TRR
15 Dec 2006, 14:03
Been a while, so I am bumping. Any word on a fix? Thanks!

carpzone
28 Dec 2006, 14:35
Yes the block works fine with the datbase call change.

But i get databse error when i'm not logged in.
The block only shows up ( and my website) when a users is registered.

Is there a fix to work this out ? ...

zetetic
31 Dec 2006, 15:43
In case this wasn't clear to anyone, most of the db errors are the result of an incorrect table name in the vbgallery_block.php file.

Make sure to edit vbgallery_block.php

find:

adv_gallery_images

and change to:

ppgal_images

Save changes and upload the file to your server.

carpzone
31 Dec 2006, 19:12
Hm Yes, I did change that database call fom ADV_..... to PPGAL_..... in the vbgalleryblock.

The block works only if logged in.
If i turn the block on for Unlogged visitors. My webpage dont open.

I get follow error by email


Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title, images.dateline, images.views, images.posts, images.lastpostdateline, images.lastpostuserid, images.lastpostusername, votenum, votetotal
FROM vb_ppgal_images AS images

WHERE Array valid = 1


ORDER BY dateline DESC
LIMIT 6;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1


ORDER BY dateline DESC
LIMIT ' at line 4
Error Number : 1064

zetetic
01 Jan 2007, 05:20
Hmm, I spoke to soon. It works fine for me in Firefox, but using IE I get that same db error.

gunitman247
01 Jan 2007, 22:57
any thing like this for photoplog?

johnstires
06 Jan 2007, 21:03
Hmm, I spoke to soon. It works fine for me in Firefox, but using IE I get that same db error.

That fix worked for me in FF and IE7! Thanks!

gator777
07 Jan 2007, 10:41
I'm unable to get this mod working no matter what I do. I've used this block for a long time, and I miss not having it on my site. I hope Zach has the time to fix it. For now, I am using the "Recent Comments Block" to fill the void. :confused:

I hope you read this Zach :)

johnstires
07 Jan 2007, 13:34
I'm unable to get this mod working no matter what I do. I've used this block for a long time, and I miss not having it on my site. I hope Zach has the time to fix it. For now, I am using the "Recent Comments Block" to fill the void. :confused:

I hope you read this Zach :)

Make sure the table prefixes match up. That was my problem.

First, make sure to edit vbgallery_block.php

http://www.vbulletin.org/forum/showpost.php?p=1148089&postcount=82

AND

Make this change.

http://www.vbulletin.org/forum/showpost.php?p=1102332&postcount=52

gator777
08 Jan 2007, 00:47
Make sure the table prefixes match up. That was my problem.

First, make sure to edit vbgallery_block.php

http://www.vbulletin.org/forum/showpost.php?p=1148089&postcount=82

AND

Make this change.

http://www.vbulletin.org/forum/showpost.php?p=1102332&postcount=52

Thanks for your help, but I'm still getting the error messages. I am using....

CMPS x2.2.1
VB v3.6.4
Photopost VB Gallery 2.1

All was goon until I installed Photopost VB Gallery 2.1. If I had know it was going to diable my block, I would not have upgraded to Photopost VB Gallery 2.1. :D

carpzone
21 Jan 2007, 11:29
Hm Yes, I did change that database call fom ADV_..... to PPGAL_..... in the vbgalleryblock.

The block works only if logged in.
If i turn the block on for Unlogged visitors. My webpage dont open.

I get follow error by email


Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username, images.title, images.dateline, images.views, images.posts, images.lastpostdateline, images.lastpostuserid, images.lastpostusername, votenum, votetotal
FROM vb_ppgal_images AS images

WHERE Array valid = 1


ORDER BY dateline DESC
LIMIT 6;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1


ORDER BY dateline DESC
LIMIT ' at line 4
Error Number : 1064

Nobody has a clue what the problem is ?

SolPal
22 Jan 2007, 17:50
will this work with PhotoPost 5.6 ?

thanks

da420
22 Jan 2007, 18:44
Unlikely as this is for vBGallery....

Zachariah
29 Jan 2007, 14:25
Change log:

v2.1

Whats New ?

* Package added to: imagegallery.module
* Independent Block settings
* Permissions fixed
* Imagebit Fields (check boxes )


** Independent Block settings
- This will allow you to have image block settings per CMPS page.

I would uninstall the old version of this hack before updates.
- The 1st series of hacks sat in the vBoptions menu area, this has it's settings within CMPS.

FleaBag
29 Jan 2007, 17:30
Doesn't seem to show up for me Zach. Wasn't the old one a product requiring a file edit?

carpzone
29 Jan 2007, 17:32
Thank u for ure hard work Zachariah :up:

This fixed the problem i had before

Jippie Yeah Go go go ....

Big Thanks for the second time !

carpzone
29 Jan 2007, 17:33
Doesn't seem to show up for me Zach. Wasn't the old one a product requiring a file edit?

Did u activate it in ure mainpage settings ?

FleaBag
29 Jan 2007, 17:34
I did yeah. Checked all permissions, page and module settings. All seems to be set up correctly. I used the old one prior to the table names getting changed with the Gallery update.

Zachariah
29 Jan 2007, 17:59
FLEA !!!! what did you do man ... ? :D

I did not have a problem doing an update @ gzhq.net.
What's not working ?

You know you need to turn the module on per page and edit settings per page of CMPS not in vboptions anymore right ?

carpzone
29 Jan 2007, 18:09
I did yeah. Checked all permissions, page and module settings. All seems to be set up correctly. I used the old one prior to the table names getting changed with the Gallery update.

Its better u delete ure old hack/modules after that import de new module via admincp.

I'm using :

Vb 3.6.4
Vbgallery 2.1
CMPS 2.2.1De module worls just fine for me

SMO
31 Jan 2007, 00:11
how about vbgallery 2.0? will it function?

Zachariah
31 Jan 2007, 02:39
how about vbgallery 2.0? will it function?

It should not have a problem. :)
If so yell and I'll patch it.

rinkrat
31 Jan 2007, 04:55
Oh good, this is working for me again! :)

Betablocker
01 Feb 2007, 00:22
Updated .....thank you :up:

curriertech
01 Feb 2007, 12:37
Any chance of getting something like this for Photopost Pro 5.6.2 and vb 3.6.4?

Zachariah
01 Feb 2007, 15:40
Any chance of getting something like this for Photopost Pro 5.6.2 and vb 3.6.4?

I thought about that.
I need to get with Chuck and get the current file used for thumbs output.

curriertech
01 Feb 2007, 15:48
I thought about that.
I need to get with Chuck and get the current file used for thumbs output.

I think a lot of people would love it! I just implemented latest and random gallery images on my VBA page but it wasn't a very straightforward setup.

Trana
02 Feb 2007, 06:42
Is it just me, or is it impossible to completely turn off the imagebit descriptors? When everything is unchecked it causes ALL the options to be on.

Trana
02 Feb 2007, 07:15
One other question for Zacahariah....

Please note that this is not in relation to the post above, totally new question.

Let's say I want to show 4 images but have them scrolling. I already have the jscript working to scroll them, but this requires putting the images into 4 different variables in order to work out the <LI> layout.

Can you recommend a way to do this, or alternatively a way to slip in my <LI> coding? The fact that a lot of html is written into $imagebit is screwing it up, I just need the image itself as a variable to display, I can get the rest of it done within my own templates.

Any suggestions you can offer would be appreciated.

Thanks!

Zachariah
02 Feb 2007, 15:25
Is it just me, or is it impossible to completely turn off the imagebit descriptors? When everything is unchecked it causes ALL the options to be on.

If you are editing a page there is a [default] check for the imagebit make sure that is off to use custom settings. If it is checked it will use the module default.

One other question for Zacahariah....

Please note that this is not in relation to the post above, totally new question.

Let's say I want to show 4 images but have them scrolling. I already have the jscript working to scroll them, but this requires putting the images into 4 different variables in order to work out the <LI> layout.

Can you recommend a way to do this, or alternatively a way to slip in my <LI> coding? The fact that a lot of html is written into $imagebit is screwing it up, I just need the image itself as a variable to display, I can get the rest of it done within my own templates.

Any suggestions you can offer would be appreciated.

Thanks!

I have plans of doing an ajax scroll.
I want to show as many images as there are in the query that requested the images.

EX: 1 block might show all the images in a gallery category vs. 4-8 value and need a refresh for more content. Maybe some mouse over effects as it scrolls by.

What are you playing with ? :D

Metal-R-US
02 Feb 2007, 18:32
With the latest update I'm having the problem again that the block won't show up if I don't let unregistered members view my gallery. As soon as I open it for unregistered members it shows but this is undesired behavior for me. Can you help out?

Zachariah
02 Feb 2007, 18:53
With the latest update I'm having the problem again that the block won't show up if I don't let unregistered members view my gallery. As soon as I open it for unregistered members it shows but this is undesired behavior for me. Can you help out?

I'll test it out.

Metal-R-US
02 Feb 2007, 20:33
A thing I would like to add, which led me to believe it's a permissions issue in the first place, is that it concerns all usergroups but the admins. I didn't notice this myself, but one of my mods pointed it out. I tested it with users in several groups...

Trana
03 Feb 2007, 17:28
I have plans of doing an ajax scroll.
I want to show as many images as there are in the query that requested the images.

EX: 1 block might show all the images in a gallery category vs. 4-8 value and need a refresh for more content. Maybe some mouse over effects as it scrolls by.

What are you playing with ? :D

I have it working with Web Effects from Opencube.com, but it is only for rotating the avatars of my recent donors. I would not recommend using Web Effects as it is not free and I have not found a way to make the cycling of images continuous, i.e. the picture area is empty at the beginning and end, it goes through some whitespace before it starts the images again.

Let me know what your using and I will try to play around with it. My main problem here is that the imagebit calculation and assembly is now done in the core VBA files. I don't want to make changes to those files as it will affect the rest of my site. Do I have this right?

Thanks!

Skavenger
11 Feb 2007, 05:54
Can you please tell me the unistallation instruccions for the 1.9 version?
Then i could install this new version

Edit: is not working for me, i don't see the block :S

Skavenger
13 Feb 2007, 16:37
It's working now!
The problem was that I forget editing the includes/init.php file after upgrading to 3.6.4 =P

Edit:
forums/includes/init.php

Find:
require_once(CWD . '/includes/class_core.php');

Below Add:
require_once(CWD . '/includes/functions_gallery_store.php');

johnstires
17 Feb 2007, 05:00
Is it possible to make 2 different modules for 2 separate page with this hack?

In vbgallery (not the vb gallery cmps addon) If I exclude a category in the Main Index Page Options, it breaks my cmps module and I get this error.


Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT imageid, images.title, images.description, filename, thumbname, originalname, extension, images.catid ,images.userid, images.username
FROM vbulletinppgal_images AS images

WHERE Array valid = 1

AND images.catid NOT IN (2,3,7)
ORDER BY RAND()
LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'valid = 1

AND images.catid NOT IN (2,3,7)
ORDER BY RA' at line 4
Error Number : 1064
Date : Friday, February 16th 2007 @ 10:57:21 PM
Script : http://www.forum-of-friends.com/
Referrer : http://www.forum-of-friends.com/gallery/
IP Address : 68.175.122.30
Username : waltercat
Classname : vB_Database

bela-meaad
26 Feb 2007, 16:58
Thanks

Sinistra
06 Mar 2007, 14:34
I hve had problems installing this it dosen't show up and I have all the settings right help?

http://www.animeinsight.net

Jesakos
07 Mar 2007, 14:51
i install the mod but i dont see any change.. only the link in navigation bar and when i press then nothing else :o

Zachariah
07 Mar 2007, 15:28
It's working now!
The problem was that I forget editing the includes/init.php file after upgrading to 3.6.4 =P

http://www.photopost.com/forum/showpost.php?p=1190873&postcount=2

Sinistra
09 Mar 2007, 20:28
Eather I did something wrong or its not showing up still.

http://www.animeinsight.net

berayiwu5
15 Mar 2007, 18:42
Eather I did something wrong or its not showing up still.

http://www.animeinsight.net

Did you enable the module?

vBa CMPS --> Homepage (or whatever page you are using) --> Go --> Modules Enabled --> Make sure "Image Gallery" is checked.

Hostboard
18 Mar 2007, 22:10
Not working with PP Pro I see.

Any time frame when you might get with Chuck and iron this out? This is something I really need to get working. Or maybe it does and the errors below are simple fixes/something I did wrong?


Warning: main(./includes/functions_gallery.php) [function.main (http://www.norra.us/function.main)]: failed to open stream: No such file or directory in /modules/vbgallery.php on line 17

Fatal error: main() [function.require (http://www.norra.us/function.require)]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/norraus/public_html/forums/modules/vbgallery.php on line 17

DuyNguyen
19 Mar 2007, 04:15
I did follow the instruction and I got exactly the error above. What's wrong? Is there anybody can help me pls?

Zachariah
19 Mar 2007, 12:46
Not working with PP Pro I see.

Any time frame when you might get with Chuck and iron this out? This is something I really need to get working. Or maybe it does and the errors below are simple fixes/something I did wrong?


Warning: main(./includes/functions_gallery.php) [function.main (http://www.norra.us/function.main)]: failed to open stream: No such file or directory in /modules/vbgallery.php on line 17

Fatal error: main() [function.require (http://www.norra.us/function.require)]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/norraus/public_html/forums/modules/vbgallery.php on line 17


I did follow the instruction and I got exactly the error above. What's wrong? Is there anybody can help me pls?

This is for Photopost vBGallery not Pro.
- I do not own the "Pro" program but have played with the code some.
- I'll see what I can do when I get a little time.

Sinistra
19 Mar 2007, 14:49
Did you enable the module?

vBa CMPS --> Homepage (or whatever page you are using) --> Go --> Modules Enabled --> Make sure "Image Gallery" is checked.

That was already dried before I posted that last message still nothing.

I looked in the templates but there is nothing there for the gallery amd I missing something?

Hostboard
27 Mar 2007, 01:41
Zachariah, sent you a PM but have not heard back. Willing to pay you to modify your add-on to work with Pro (I own a valid license). After it is working I gladly will allow you post it for public release so others that own pro can use it.

Zachariah
27 Mar 2007, 04:27
Zachariah, sent you a PM but have not heard back. Willing to pay you to modify your add-on to work with Pro (I own a valid license). After it is working I gladly will allow you post it for public release so others that own pro can use it.

I was gone for a few days.
- I will have a little time to work on it after I get vBGallery 2.2 out.

It will not be a big deal to create.

Hostboard
27 Mar 2007, 13:34
Thank you!

Metal-R-US
01 Apr 2007, 20:48
With the latest update I'm having the problem again that the block won't show up if I don't let unregistered members view my gallery. As soon as I open it for unregistered members it shows but this is undesired behavior for me. Can you help out?

I'll test it out.

A thing I would like to add, which led me to believe it's a permissions issue in the first place, is that it concerns all usergroups but the admins. I didn't notice this myself, but one of my mods pointed it out. I tested it with users in several groups...I suppose this hasn't been addressed yet? Will this be taken into account for Gallery 2.2?

Metal-R-US
04 Apr 2007, 20:10
Why do I get the feeling I'm being ignored? If you don't have an answer, just say it...

Zachariah
04 Apr 2007, 22:15
Why do I get the feeling I'm being ignored? If you don't have an answer, just say it...

I have put a small hold on hacks.
I have a lot of time into vBGallery 2.2 and to put work into an add-on that may change when I am done is not productive.

I'll take a look at issues as soon as the new version is out.

zand
22 May 2007, 20:23
Stopped working here when I upgraded to 3.0 RC1. Is this a bug or is just something wrong at my end?

sola
22 May 2007, 20:41
Proper video playback please. Even free apps do that. We paid for this.

zand
22 May 2007, 21:37
Proper video playback please. Even free apps do that. We paid for this.

You know this is just a mod for vBGallery and CMPS? This mod is completely free so if the free video playback referrs to vBGallery in general, you should post it in the PhotoPost forums.

DementedMindz
22 May 2007, 21:41
video playback is not even a part of vBGallery unless you do file edits so I don't think there going to help you or support you on that one anyway since its not default.

TheProphet
24 May 2007, 15:26
Is there an update for 3.0 vBadvanced comming?

gator777
25 May 2007, 01:01
Is there an update for 3.0 vBadvanced comming?
We are waiting for Zach to make a fix, so hopefully we will see someting soon. It's just a matter of time now. :D

Zachariah
25 May 2007, 17:07
I understand :)
- last few days or so I have been deep into system updates on my localhost DEV server.
- I'll take a look and see what changed on CMPS that stopped the plug from working.

I have a few other CMPS blocks not related w/ vBGallery that have no problems. It should not be to hard.

gator777
25 May 2007, 18:53
I understand :)
- last few days or so I have been deep into system updates on my localhost DEV server.
- I'll take a look and see what changed on CMPS that stopped the plug from working.

I have a few other CMPS blocks not related w/ vBGallery that have no problems. It should not be to hard.
That is great new Zach. It is very much appreciated. :D

TheProphet
27 May 2007, 14:24
Yes Zach, this is a great addon....

TheProphet
05 Jun 2007, 16:30
Any update yet Zach?

SMO
13 Jun 2007, 04:57
I understand :)
- last few days or so I have been deep into system updates on my localhost DEV server.
- I'll take a look and see what changed on CMPS that stopped the plug from working.

I have a few other CMPS blocks not related w/ vBGallery that have no problems. It should not be to hard.


how about vbg 2.0 as well. Can it be done with that version as well Z?

gator777
19 Jun 2007, 09:30
Zach, have you abandoned this plugin? I know you must have a full plate, but it would be great to have this back and operational on my site. :D

Thanks again for all your hard word.

Zachariah
19 Jun 2007, 13:33
I have it all working except extra info bits.

gator777
20 Jun 2007, 05:15
I have it all working except extra info bits.
That's great news. Thanks Zach. :D

Kahuna900
29 Jun 2007, 06:13
So does that mean we'll soon have a fix that will work in vb3.6.7?

zahidnextage
09 Jul 2007, 11:56
Plz give me any idea about this file i have error in main page that missing this file "functions_gallery_store.php"
also let me know which changes we will do after upload module file
waiting for ur reply.

Skavenger
02 Aug 2007, 05:55
I see this in the top of every page

Warning: unserialize() expects parameter 1 to be string, array given in \modules\vbgallery.php on line 20

Warning: unserialize() expects parameter 1 to be string, array given in \modules\vbgallery.php on line 21

Warning: unserialize() expects parameter 1 to be string, array given in \modules\vbgallery.php on line 22

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in \modules\vbgallery.php on line 25

how can I fix this?

sunnycher
05 Aug 2007, 14:27
I've installed this but it's not showing. Not sure what I missed. Any ideas?

Skavenger
05 Aug 2007, 17:47
I've installed this but it's not showing. Not sure what I missed. Any ideas?
maybe you missed to edit the includes/init.php file

sunnycher
05 Aug 2007, 17:53
Thank you, I'll try that :)

ThreeVisual
07 Aug 2007, 09:22
I just installed this, but I am getting this error:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions_gallery.php on line 452

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 452

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 979

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 979

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 979

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 979


Any ideas what's happening?

Ricsca
07 Aug 2007, 11:39
Dont work... :(


-----

Warning: require_once(./includes/functions_gallery.php) [function.require-once]: failed to open stream: No such file or directory in /modules/vbgallery.php on line 17

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.ravana/ricsca/modificazionecorporea.com/forum/modules/vbgallery.php on line 17

---


In vbgallery.php the line 17

require_once('./includes/functions_gallery.php');

But in forum/includes , i dont have the file functions_gallery.php

Whay?

sunnycher
14 Aug 2007, 20:27
I have vBadvanced CMPS v3.0 RC1, will it work with that?

Zachariah
15 Aug 2007, 02:00
I have vBadvanced CMPS v3.0 RC1, will it work with that?

No but I have a beta I want to get people to test.

sunnycher
15 Aug 2007, 03:02
Just let me know how I can help you Zach

maidos
15 Aug 2007, 19:51
is it possible to not make the entire page refresh when u click on the next image, its quite annoying and was wondering if u could make ajax script to make it load the nexy image?

Zachariah
20 Aug 2007, 03:47
1st post updated

Change Log
===========
2.5
- Added Template: adv_portal_vbgallery_imagebit
- Edited Template: adv_portal_vbgallery_nav - added search dropdown

- Edited Template: adv_portal_vbgallery - changed to work with standard CMPS wrapper

- Multi-Modules can be used on the same page using the same php file with different settings

EX: 3 CMPS blocks 3 different settings (http://www.szone.us/index.php?id=gallery)

SMO
20 Aug 2007, 04:12
nothing shows for me z...

using ppgallery 2.0 and cmps 3.0rc1 and vb 368

also, the directions are asking for an xml? I didnt see one in the folder

Kahuna900
20 Aug 2007, 04:26
Ditto, not working for me either, CMPS v3.0 RC1/VB 3.6.8. No XML file included and I'm getting the following error:

"Fatal error: Call to undefined function: make_image_fields() in vbgallery.php on line 141"

gator777
20 Aug 2007, 06:25
Hi Zach. I followed your instructions, but I got the following error mesage:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /modules/vbgallery.php on line 25

sensimilla
20 Aug 2007, 07:27
Where are the templates ? Am I blind ? thanks for the update Zachariach.

ntrance
20 Aug 2007, 12:23
Can you supply the beta so i can test it on CMPS v3.0 RC1

Zachariah
20 Aug 2007, 14:54
Hello, I made a boo boo :D
- missing files

Please look @ the readme.txt as install directions have been changed.

The 1st post is updated - no new email sent.

gator777
20 Aug 2007, 15:38
I applied your update, but I am still getting the following message:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /modules/vbgallery.php on line 25

TheProphet
20 Aug 2007, 17:24
I do get the same error message

Warning: array_merge() [function.array-merge]:
Argument #2 is not an array in /modules/vbgallery.php on line 25

Zachariah
20 Aug 2007, 17:48
I applied your update, but I am still getting the following message:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /modules/vbgallery.php on line 25

I do get the same error message

Warning: array_merge() [function.array-merge]:
Argument #2 is not an array in /modules/vbgallery.php on line 25


Ok this is looking for gallery options from the datastore and merging with CMPS options.
The options are added via. plugin from vbgallery. - THIS_SCRIPT = "adv_index" then add gallery options.

Q: The php files of your CMPS that display the image blocks are they default ?
define('THIS_SCRIPT', 'adv_index');

TheProphet
20 Aug 2007, 18:10
All my cmps pages and templates are default so far..

Zachariah
20 Aug 2007, 18:16
Looking @ changes in the gallery. This hack will work with vbgallery 2.2, 2.3 out of the box.
- you can get a patch if you have 2.0, 2.1 - here (http://www.photopost.com/forum/showthread.php?t=131052).

maidos
20 Aug 2007, 20:32
so is it not possible to have ajax ?

Zachariah
20 Aug 2007, 21:01
so is it not possible to have ajax ?
1 step @ a time :)
- I am working on one for the filmstrip (http://www.gzhq.net/gallery/showimage.php?i=2162&c=8) "hit << more .... more >>".

I'll have one for the CMPS block soon.

SMO
20 Aug 2007, 23:54
I still dont see anything.

I think I have some "rogue" edition of vbg

maidos
21 Aug 2007, 07:02
cool thanks i look forward to taht, so thanks :) do you have a release date for this?

ntrance
21 Aug 2007, 10:19
Hello, I made a boo boo :D
- missing files

Please look @ the readme.txt as install directions have been changed.

The 1st post is updated - no new email sent.


Works now

Thanks for this awesome mod :)

Kahuna900
21 Aug 2007, 15:43
ROCK ON!!!! It's back!!!

Thanks Zachariah!!!!!!

glorify
22 Aug 2007, 01:09
Hey zac--

Great work. I upgraded to 3 rc1 when you made this available.

Anyway:

EX: 3 CMPS blocks 3 different settings http://www.szone.us/index.php?id=gallery

When I attempt this, I am copying the module, then changing the settings in the second module.

It works, kind of. It displays both the first and second on the same page. The second looks fine, but the first gets combined with the second.

Example: I have module 1: 4 pics vertical. Module 2: 4 pics horizontal.

When I add them both to the same page, I get (module 2) looking like this:

pic1 pic2 pic3 pic4

And (module one) gets combined and looks like this:

pic1 pic1 pic2 pic3 pic4
pic2
pic3
pic4

Am I just installing the second module wrong?

Zachariah
22 Aug 2007, 04:22
What I did for more than one was to use the copy option.

vBa CMPS => Edit Modules => [Image Gallery]
- Copy Module

Change:
- Module Title
- Identifier ( this will add 1,2,3 depending on how many copies)

Image Gallery Options: (at bottom)
- set to what you need

glorify
22 Aug 2007, 11:51
Copying the module, no problem. The add new portion--Add new what? I don't see anything in the PHP File Module Options for an identifier.

The only thing I could think of to make it work correctly would be to take vbagallery.php for a second module, rename it to vbagallery1.php, upload it, and use it for the second module. Is that the correct way of doing it?

Zachariah
22 Aug 2007, 13:46
There were template changes, perhaps templates did not update.
Did you remove the old (cmps 2.x) version of this add-on before installing the new one ?

It is now using the standard CMPS wrapper vs. custom made one that was in all of the other versions.
In my current setup all 3 blocks use the same php file.


vBa CMPS => Edit Modules => [Image Gallery]
- Copy Module

(2 photos in one)
68882

Change:
- Module Title
- Identifier ( this will add 1,2,3 depending on how many copies , or make custom)

Image Gallery Options: (at bottom)
- set to what you need


Here is 4 blocks (http://www.gzhq.net/index.php?page=gallery2) that use the same php file.
» Most Viewed
- navbar, 6 images, 3 wide, views, category, name - (most viewed, all categories in gallery)

» Random Planes
- 8 images, 4 wide, views, category - (random, 1 category in gallery)

» This is who we are
- 1 image, category (random, 1 category in gallery)

» Random
- 4 image, 1 wide / 4 down (random, all categories in gallery)

glorify
23 Aug 2007, 01:52
Followed exact (identifier changes, actually was doing it correctly from the start), checked the templates against the module file in the zip, uninstalled, reinstalled.

Still no worky, and I've ran a VBA site for a couple years now. Running one module works fine.

http://www.glorifythepast.com

Zachariah
23 Aug 2007, 03:28
Followed exact (identifier changes, actually was doing it correctly from the start), checked the templates against the module file in the zip, uninstalled, reinstalled.

Still no worky, and I've ran a VBA site for a couple years now. Running one module works fine.

http://www.glorifythepast.com

Your site looks ok.
"Image Gallery" on the side. What did you change to make it work ?

glorify
23 Aug 2007, 04:49
it works with one box. When I try multiples, is when I have the problems.

glorify
23 Aug 2007, 05:17
Here is what happens when I add 2 on the same page. Notice the 1st box has it's pictures plus it has the same pics that are in the second.

MotoUp
23 Aug 2007, 17:44
I installed the patch, and mde the file edit, but the module doesn't show up at all, and it is active. I tried uninstalling it completely and reverting to the 3.6.4 version I was using, and I geta database error.

I am using vB 3.6.8, and vBGallery 2.0. Any ideas?

Zachariah
23 Aug 2007, 20:55
I'll install 2.0 and test it out w/ the patch. to see what the deal is.

glorify
24 Aug 2007, 00:35
If you wanna poke around in my admincp, lemme know.

CORSO
24 Aug 2007, 00:41
I have photopost pro 5.62, How i can do to use this hack???

Zachariah
24 Aug 2007, 02:10
If you wanna poke around in my admincp, lemme know.

Ya shoot me an PM.

I have photopost pro 5.62, How i can do to use this hack???

This is for Photopost vBGallery not Pro. I will see about updating a CMPS for Pro.

MotoUp
24 Aug 2007, 13:47
If you wanna poke around in my admincp, lemme know.

Ditto :D

Zachariah
24 Aug 2007, 18:58
@ glorify

As I entered the site's AdminCP there is a "For Your Information" block @ the top.
- Out-of-Date Custom Templates Found!
There are currently 16 customized template(s) that need to be updated or reverted. Some sections of vBulletin may not function if you do not do this!

You have 2 styles:
- GTP Blue Wide
- GTP Powder Blue Wide

The templates shown on this page have been updated in the default template set since you customized them.

Not related to CMPS but for vBGallery: (please take a look @ these)
- ADV_GALLERY
- adv_gallery_imagebit
- ADV_GALLERY_SHOWIMAGE
- ADV_GALLERY_BROWSEIMAGES

Related to CMPS: (I reverted these)
- adv_portal_vbgallery_newestbits
- adv_portal_vbgallery_nav
- adv_portal_vbgallery

I uninstalled the image gallery block [edit image gallery - delete: remove vbgallery.php]
This still left some traces of templates in your styles.

I have one running in the center 2x4 and on one the side 1x8.

glorify
24 Aug 2007, 23:39
OK. An idiot to think you were talking about the hack's templates and not the other templates. I had reverted the adv_portal templates that came with that hack.
Many thanks sir.

G

Zachariah
24 Aug 2007, 23:47
OK. An idiot to think you were talking about the hack's templates and not the other templates. I had reverted the adv_portal templates that came with that hack. The cbgallery.php was a kicker as well.

Many thanks sir.

G

I always work with the code, and may not have been as detailed as I could of been.
- glad the site is up :)

Xil Ze
25 Aug 2007, 22:51
i am getting the

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /modules/vbgallery.php on line 25

error as well. using cmps 3.6.4, vb gallery 2.1 (with zach's update), and cmps 3rc1. i've been looking around. is it connected to php 5?

Zachariah
28 Aug 2007, 20:37
Change Log
===========
2.6
- Added option for module title.
- Added option for module link.
- Added option to choose from thumbnail, normal, original

MotoUp
28 Aug 2007, 20:47
Well, I tried removing 2.5 and installing 2.6. Now, instead of it just not showing up, my CMPS won't even load....My users already miss this module a lot. Is there anything else you can think of that I can try?

Zachariah
28 Aug 2007, 20:54
Well, I tried removing 2.5 and installing 2.6. Now, instead of it just not showing up, my CMPS won't even load....My users already miss this module a lot. Is there anything else you can think of that I can try?

Shoot me some AdminCP access in PM.

TheAllusionist
28 Aug 2007, 20:55
Hey I just downloaded this or very similar from your website this weekend or so believed and it worked with gallery 2.3 and vBadvanced 3.0RC1, something I had really been missing. If this one is different from what was on your site this weekend, I might try it, however what I downloaded this weekend works great. I just wanted to thank you very much, I nominated it for the MOM Thanks again for your generosity.

Zachariah
28 Aug 2007, 20:58
Hey I just downloaded this or very similar from your website this weekend or so believed and it worked with gallery 2.3 and vBadvanced 3.0RC1, something I had really been missing. If this one is different from what was on your site this weekend, I might try it, however what I downloaded this weekend works great. I just wanted to thank you very much, I nominated it for the MOM Thanks again for your generosity.

:) I updated all places this hack today. That was 2.5.
- This is 2.6.

TheAllusionist
28 Aug 2007, 21:04
Thanks for letting me know, and thanks again! ;)

gator777
28 Aug 2007, 21:09
Zach,

Thanks for the update, as always, but the images are distorted and displayed at the bottom.

Zachariah
28 Aug 2007, 21:12
Zach,

Thanks for the update, as always, but the images are distorted and displayed at the bottom.

There were a lot of template changes.

Edit Modules
- Module Wrapper Template Options [x] NO

make sure this is selected.

Zachariah
28 Aug 2007, 21:18
gator777 - I see only

» Image Gallery
- 1 image right hand side. (sort order 1)

IE6.x , FF 2.x - looks ok.

gator777
28 Aug 2007, 21:47
I found the problem. The templates did not update my light theme (which I use)

adv_portal_vbgallery (could not locate)
adv_portal_vbgallery_imagebit (located in Custom Templates)
adv_portal_vbgallery_nav (located in Advanced CMPS Templates)
adv_portal_vbgallery_newestbits (located in Advanced CMPS Templates)

Once I found them, I manually copied them over to the other theme and got it to function properly. Also, I could not locate the adv_portal_vbgallery template.

Thanks for all your hard work Zach. :D

SMO
28 Aug 2007, 23:56
Well, I tried removing 2.5 and installing 2.6. Now, instead of it just not showing up, my CMPS won't even load....My users already miss this module a lot. Is there anything else you can think of that I can try?

same here with that

Zachariah
29 Aug 2007, 01:12
Well, I tried removing 2.5 and installing 2.6. Now, instead of it just not showing up, my CMPS won't even load....My users already miss this module a lot. Is there anything else you can think of that I can try?

I am using vB 3.6.8, and vBGallery 2.0. Any ideas?



In vBGallery 2.2 this was changed I see your @ 2.0

=======================================

Try this.

forums\modules\vbgallery.php

Find:

$categorycache =& $vbulletin->gallery_c_cache;
$galleryoptions =& $vbulletin->adv_gallery_opt;
$gallery_permissions =& $vbulletin->gallery_ugroups;

Change To:

$categorycache = unserialize($vbulletin->gallery_c_cache);
$galleryoptions = unserialize($vbulletin->adv_gallery_opt);
$gallery_permissions = unserialize($vbulletin->gallery_ugroups);

MotoUp
29 Aug 2007, 14:02
Thanks for looking. I tried that, it didn't do anything either. Can you think of anything I can do to get it back to the older version?

dsmoke
29 Aug 2007, 22:38
Does this only put images in vbadvanced or can you use this to put images under your nav bar in the regular forum as well?

Xil Ze
29 Aug 2007, 23:44
Thanks for looking. I tried that, it didn't do anything either. Can you think of anything I can do to get it back to the older version?

the function names changed in vbgallery 2.2.

MotoUp
29 Aug 2007, 23:49
I'm upgrading to 2.2, or trying anyway. I'll see what happens.

Trana
31 Aug 2007, 19:36
Will it work for vbgallery 2.1?

Littlebit
02 Sep 2007, 00:03
Thank you for this update Zachariah! And for all the time you've put into this for the cmps users :)

FleaBag
03 Sep 2007, 00:04
Hi Zach. Specifying fields to display seems to have no effect. Also, when choosing newest, random still shows. Reinstalled it all a couple o' times. Any ideas?

zetetic
03 Sep 2007, 15:49
Is there any way to exclude a gallery and all its sub-galleries without having to put the id of every sub-gallery in the "Exclude categories" field?

Zachariah
03 Sep 2007, 17:40
Is there any way to exclude a gallery and all its sub-galleries without having to put the id of every sub-gallery in the "Exclude categories" field?
- Not yet, I have it planed :D

zetetic
03 Sep 2007, 17:46
Cool, thanks! :)

Littlebit
08 Sep 2007, 21:38
Just upgraded cmps and I'm getting this error:


Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1014


What's the best place to edit in order to tell it what it needs?

Zachariah
08 Sep 2007, 22:21
Just upgraded cmps and I'm getting this error:


Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1014


What's the best place to edit in order to tell it what it needs?

There are 2 files in the hack, did you also import the XML product ?
- the error deals with you not getting data from category cache.

Littlebit
08 Sep 2007, 22:28
Yeah, I did. It had been working up until after upgrading.
Hmmm, maybe I need to update cache with cmps. I'm going to uninstall and reinstall too.
Thanks for the quick lookin btw :)

Littlebit
08 Sep 2007, 22:34
It's still there.
The new cmps has a Rebuild Module Cache in Diagnostics. I ran this as well, but it's still not getting data from category cache.

Zachariah
08 Sep 2007, 22:44
You will want to do a full removal of the old CMPS gallery block.
- after removal, please look for templates they may have been left behind. adv_portal_vbgallery_*.*

Littlebit
08 Sep 2007, 22:54
I removed all the adv_portal_vbgallery templates, uninstalled the module and uninstalled the product.
I then re-installed and I'm still getting the error for some reason. :confused:

Littlebit
09 Sep 2007, 02:15
Update:
After going through all of the cmps default settings and saving, the error was no more :) All better.

rinkrat
09 Sep 2007, 05:45
Mine worked before this update and now when I install it I get nothing as if it's not even there. I have it set up right with the preper permissions etc but nothing shows up even though it is listed as being there on the page. I completely uninstalled the old version and hand deleted all the templates and it still is not visible.

Any ideas?

dug320
09 Sep 2007, 21:38
I am also having the same problem. Blank Page.

rinkrat
10 Sep 2007, 04:36
My page is fine, there is just no thumbnails there even though it is on the page template as being turned on and the permissions are all set right.

Rüstü Elmas
14 Sep 2007, 20:41
vBadvanced CMPS v3.0 RC2 Update ?

rinkrat
14 Sep 2007, 20:51
Yes

Rüstü Elmas
14 Sep 2007, 21:59
vBadvanced CMPS v3.0 RC2 Version

:S Error Caps :
http://img443.imageshack.us/img443/4817/errorwh1.jpg

Help Me Please

Zachariah
14 Sep 2007, 22:04
vBadvanced CMPS v3.0 RC2 Version

:S Error Caps :

Help Me Please

There is a setting on the page that vbgallery Block is on.

AdminCP => vBa CMPS => Edit Pages
- The page :D
-- Main Options
--- Process PHP File Modules Within A Function
[ x ] YES

Take a look @ this setting please.

Rüstü Elmas
14 Sep 2007, 22:11
Very Thanx. :D

xRenegade85
17 Sep 2007, 15:38
hi

i am wondering is it possible to install my photoshop 2.2 in the forum root? instead of in forumroot/gallery/ folder? because if i install it in a folder then a lot of scripts fail, for example if you are viewing the gallery and press the logout button the forum displays an error saying it cant find the login.php file, similar problems arise with other pages.

Thanks

Skavenger
19 Sep 2007, 23:36
I see this error after upgrading to vBa 3 RC2

Warning: Invalid argument supplied for foreach() in \includes\functions_gallery.php on line 1014

Zachariah
20 Sep 2007, 01:00
I see this error after upgrading to vBa 3 RC2
Warning: Invalid argument supplied for foreach() in \includes\functions_gallery.php on line 1014


There is a setting on the page that vbgallery Block is on.

AdminCP => vBa CMPS => Edit Pages
- The page
-- Main Options
--- Process PHP File Modules Within A Function
[ x ] YES

Take a look @ this setting please.

Skavenger
20 Sep 2007, 03:35
Sorry, I dindn't see your post above before =P

Thanks, is working fine now =)

Wunderlust
05 Oct 2007, 07:05
Will this work on Photopost Pro v6.0?

Zachariah
05 Oct 2007, 13:16
Will this work on Photopost Pro v6.0?

No, but I have plans to design one for Pro.

JimmyJames
12 Oct 2007, 06:46
I got the following error once I added the module to my page

Warning: main(./includes/functions_gallery.php) [function.main]: failed to open stream: No such file or directory in /modules/vbgallery.php on line 33

Fatal error: main() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/Target01/333535/333536/www.musicbygoat.com/web/content/modules/vbgallery.php on line 33

JimmyJames
16 Oct 2007, 00:40
I got the following error once I added the module to my page

Warning: main(./includes/functions_gallery.php) [function.main]: failed to open stream: No such file or directory in /modules/vbgallery.php on line 33

Fatal error: main() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/Target01/333535/333536/www.musicbygoat.com/web/content/modules/vbgallery.php on line 33

Nevermind man......got vb gallery mixed up with photoplog:D

Thats why the file doesnt exist.

axi
25 Oct 2007, 17:22
great hack zach works fine
but i chose to show post details, image description etc they wont show up..any deatils pls??

rickyreter
26 Oct 2007, 22:52
Same here no text under images..any ideas please/

Pete

axi
27 Oct 2007, 07:01
bump !

Zachariah
27 Oct 2007, 16:54
bump !

Same here no text under images..any ideas please/

Pete

PHP 5.x on your servers ?

rickyreter
27 Oct 2007, 17:06
It should not affect what php i have i have.5.2.3.for such a simple mod ..?Confused

rickyreter
27 Oct 2007, 17:08
5.2.3

ConqSoft
27 Oct 2007, 17:21
There is a setting on the page that vbgallery Block is on.

AdminCP => vBa CMPS => Edit Pages
- The page
-- Main Options
--- Process PHP File Modules Within A Function
[ x ] YES

Take a look @ this setting please.

Same error, don't see this setting though?

ConqSoft
27 Oct 2007, 17:24
Nevermind. Found it. There's a Main Options at the top, but also an expandable Main Options at the bottom too. ;)

Zachariah
27 Oct 2007, 19:23
It should not affect what php i have i have.5.2.3.for such a simple mod ..?Confused
There was a bug reported because of an older line of code.
It stops the Imagebit Fields from showing in PHP5.x.

I'll track it down and yell once the update is ready. (maybe in vBGallery 2.4)

axi
28 Oct 2007, 09:29
PHP version 4.4.7
MySQL version 4.1.22-standard

rickyreter
30 Oct 2007, 13:50
were on 2.6 now?

Damm..wanted this for me car site :(