vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Module CMPS: PhotoPost vBGallery (https://vborg.vbsupport.ru/showthread.php?t=126697)

ZGeek 10-22-2006 09:46 PM

me too!

Zachariah 10-22-2006 10:09 PM

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
Code:

FROM " . TABLE_PREFIX . "adv_gallery_images
Is now: Ver 2.0 +
Code:

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

johnstires 10-23-2006 01:07 AM

This code change is for the vbgallery_block.php file. It fixed it for me. Thanks! Anyone have the vertical template for this?

elsupremo 10-23-2006 06:06 AM

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 10-23-2006 12:09 PM

Quote:

Originally Posted by joerns
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 10-23-2006 12:16 PM

Quote:

Originally Posted by Zachariah
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
Code:

FROM " . TABLE_PREFIX . "adv_gallery_images
Is now: Ver 2.0 +
Code:

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 10-23-2006 05:03 PM

Quote:

Originally Posted by TRR
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 10-26-2006 10:09 PM

Quote:

Originally Posted by elsupremo
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 11-02-2006 10:46 PM

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 11-02-2006 11:22 PM

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.


All times are GMT. The time now is 06:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01295 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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