Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add PhotoPost vBGallery to each forum Details »»
Add PhotoPost vBGallery to each forum
Version: 1.00, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-31-2006 Last Update: 04-16-2006 Installs: 17
DB Changes Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

/* ----------------- 3/31/2006 4:37PM -----------------
Add PhotoPost vBGallery to each forum.

This hack will allow you to select what catagories from vBGallery to display in a film strip format under the $navbar. This will show in every thread of the forum as well.

/* Tested: PhotoPost vBGallery 1.0.2 + vBulletin 3.5.4

1 query
  • 1 template
  • 1 File edit
  • 1 file upload
  • 3 plugins
  • 5 phrases


DEMO
Subject: Science
Forum: 780
Gallery Catagories: 4,20
----------------------------------*/

Each forum extra options:

** Add vBgallery images on this Forum

- Image Count:
(How many images would you like to show ?)

- Image Order:
(Enter 1 for newest, 2 for most viewed, 3 for most comments, 4 for highest rated, 5 for random.)

- Select Catagory(s):
(Here you can list catagories you wish to show images from. EX: 1,10,20)

- Show Imagebit:
(Title, Description, Rating, Username, Views, Dimensions, and more.)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-27-2006, 05:04 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Magle
Yes, PHP version 5.0.4
Try this new file please.

/forums/includes/functions_gallery_store.php
Reply With Quote
  #23  
Old 04-28-2006, 07:37 AM
Magle Magle is offline
 
Join Date: Jul 2005
Location: Denmark
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That fixed the problem! Thanks!
Reply With Quote
  #24  
Old 04-28-2006, 12:46 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Magle
That fixed the problem! Thanks!
Cool beans.

The behavior of array_merge() was modified in PHP 5.
Unlike PHP 4, array_merge() now only accepts parameters of type array.
Reply With Quote
  #25  
Old 08-13-2006, 04:40 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hiya Zach baby! Does this work with 3.6.0 out of the box?
Reply With Quote
  #26  
Old 10-07-2006, 04:34 PM
bulbasnore bulbasnore is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ever get an answer on 3.6?
Reply With Quote
  #27  
Old 10-07-2006, 04:40 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just got the newest Gallery version and I plan to upgrade one of my sites to 3.6.2... I hope this works but if not I will share any code changes that were needed as this looks like a must have for my site!
Reply With Quote
  #28  
Old 12-31-2006, 05:05 AM
Delw Delw is offline
 
Join Date: Nov 2002
Location: peoria, az
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zach.

On my test board this hack works fine. running 3.6.4
however on my live board 3.6.3 I get this error

Quote:
Invalid SQL:

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

WHERE valid = 1
AND images.catid IN (4,13)
ORDER BY RAND()
LIMIT 4;

MySQL Error : Table 'xxxxxxx_vbulletin.vb3adv_gallery_images' doesn't exist
Error Number : 1146
Date : Sunday, December 31st 2006 @ 01:37:11 AM
Script : http://www.myforums.com/forums/showthread.php?t=49610
Referrer : http://www.myforums.com/
IP Address :
Username : Compa
Classname : vb_database
Reply With Quote
  #29  
Old 01-07-2007, 05:30 PM
Magle Magle is offline
 
Join Date: Jul 2005
Location: Denmark
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the same error after upgrading vBgallery to 2.1. Had to disable this mod. Btw, I'm running vB 3.6.4.

Any chance this could one day be included in the vBGallery itself, like the forum home and profile mods?
Reply With Quote
  #30  
Old 01-07-2007, 06:29 PM
Delw Delw is offline
 
Join Date: Nov 2002
Location: peoria, az
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its really easy to fix to make it work in 3.6.4. I did it on my first try.
if Zach ( or an admin) gives me the ok I will tell the changes.

I dont know if its ok or not as I never redid someones stuff before and dont know how that works.

http://www.azbasszone.com/forums/forumdisplay.php?f=36

Delw
Reply With Quote
  #31  
Old 01-08-2007, 08:31 PM
Delw Delw is offline
 
Join Date: Nov 2002
Location: peoria, az
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to make it work for vb 3.6.* - 3.6.4 and PhotoPost vBGallery v2.1
you just need only to change the xml file

line 41 was
Code:
$globaltemplates  = array_merge($globaltemplates, array('adv_gallery_imagebit','forumdisplay_vbgallery',));
change line 41 to


Code:
$globaltemplates  = array_merge($globaltemplates, array('ppgal_imagebit','forumdisplay_vbgallery',));

line 170 was

Code:
                FROM " . TABLE_PREFIX . "adv_gallery_images AS images
Change line 170 to
Code:
                FROM " . TABLE_PREFIX . "ppgal_images AS images
do not upload the file functions_gallery_store.php as vbgallery already has this file in there in the version 2.1

just follow the org. directions omitting the functions_gallery_store.php upload



Delw
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04760 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete