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)

Zachariah 09-14-2006 10:00 PM

Module CMPS: PhotoPost vBGallery
 
/* ----------------- 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.

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 09-15-2006 12:26 PM

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.


*** 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 09-15-2006 12:37 PM

Install clicked :cool:

maroceve 09-15-2006 12:40 PM

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 09-15-2006 12:41 PM

Awesome! It's finally here for 3.6.1. Thank you! :D

FleaBag 09-15-2006 01:25 PM

About time punk! :P

SgtTechHead 09-15-2006 01:39 PM

Thank You! *installed*

MotoUp 09-15-2006 02:34 PM

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 09-15-2006 03:18 PM

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 09-15-2006 03:52 PM

Quote:

Originally Posted by SgtTechHead
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 09-15-2006 07:15 PM

Quote:

Originally Posted by MotoUp
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 09-15-2006 07:26 PM

It's not a template fix it is code.
- I'll have an update soon.

MotoUp 09-15-2006 07:38 PM

Ah! Thanks Zach, appreciate it. Not a huge deal, I just got a wild hair is all. :)

SMO 09-15-2006 10:16 PM

thx brotha...was looking forward to this

bolly.beats 09-16-2006 12:08 AM

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 09-16-2006 02:58 AM

I know it doesn't mention Photopost Pro, but will it work for that, or is there one for that? Thanks!

Zachariah 09-16-2006 09:11 AM

Quote:

Originally Posted by MustangLisa
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 09-16-2006 10:40 AM

somebody help me too plz :(

Zachariah 09-16-2006 10:48 AM

Quote:

Originally Posted by bolly.beats
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 09-16-2006 11:28 AM

Quote:

Originally Posted by MotoUp
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 09-16-2006 02:31 PM

Quote:

Originally Posted by Zachariah
No version change

- Fixed reply count
- Fixed last comment

Replace:
forums/modules/vbgallery_block.php

Thank you sir! Appreciate it!

Metal-R-US 09-16-2006 02:53 PM

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

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 09-16-2006 04:18 PM

ya, i got that too just now. Was wondering bc it was working fine before

Metal-R-US 09-16-2006 04:54 PM

I reverted to the 3.5.x code for now and I didn't get any database error notifications since....

Zachariah 09-16-2006 06:22 PM

I need to relook @ privatecatids

Code:

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

gator777 09-16-2006 07:16 PM

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 09-16-2006 07:51 PM

i have photopost installed

is vbgallery different ??

G_Man 09-16-2006 08:26 PM

Quote:

Originally Posted by lasto
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 09-16-2006 09:15 PM

Quote:

Originally Posted by Zachariah
- 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 09-16-2006 09:44 PM

Quote:

Originally Posted by bolly.beats
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 09-17-2006 04:34 AM

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 09-17-2006 05:51 AM

Quote:

Originally Posted by bolly.beats
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 :)
https://vborg.vbsupport.ru/showthread.php?t=123490

bolly.beats 09-17-2006 08:53 AM

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.

Quote:

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 09-17-2006 08:01 PM

*clicks install*

finally upgraded to the newest version. lol

MotoUp 09-18-2006 05:54 PM

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 09-19-2006 03:17 PM

Quote:

Originally Posted by MotoUp
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 09-19-2006 06:26 PM

Quote:

Originally Posted by Slave
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 09-29-2006 09:27 PM

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 09-29-2006 10:36 PM

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 10-03-2006 11:27 AM

i'm getting

Quote:



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??


All times are GMT. The time now is 12:23 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.01456 seconds
  • Memory Usage 1,840KB
  • 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
  • (2)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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