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
  #12  
Old 04-09-2006, 12:52 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_forumdisplay AS phrasegroup_forumdisplay,
language.phrasegroup_inlinemod AS phrasegroup_inlinemod,
language.phrasegroup_adv_gallery AS phrasegroup_adv_gallery,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep

FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 2, user.languageid))

WHERE user.userid = 265;

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Sunday, April 9th 2006 @ 06:39:38 AM
Script : http://www.njflyfishing.com/vBulleti...splay.php?f=12
Referrer : http://www.njflyfishing.com/vBulletin/index.php?
IP Address : 68.x.x.x
Username :
Classname : vb_database
-->
Reply With Quote
  #13  
Old 04-16-2006, 08:24 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 morrow
Database error in vBulletin 3.5.4:

MySQL Error : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date : Sunday, April 9th 2006 @ 06:39:38 AM
Script : http://www.njflyfishing.com/vBulleti...splay.php?f=12
Referrer : http://www.njflyfishing.com/vBulletin/index.php?
IP Address : 68.x.x.x
Username :
Classname : vb_database
-->
I would say you do not have PhotoPost vBGallery 1.0.2 installed.
Reply With Quote
  #14  
Old 04-17-2006, 08:58 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1st post updated.

Template Bug:

Edit: forumdisplay_vbgallery
Change:
Code:
colspan="$foruminfo[vbgcat]"
To:
Code:
colspan="$foruminfo[vbgcount]"
Reply With Quote
  #15  
Old 04-21-2006, 01:35 AM
mikeclarke's Avatar
mikeclarke mikeclarke is offline
 
Join Date: Nov 2005
Location: South Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did something bad. Now when I try to edit options in forum manager I get the error below. Any idea how to fix?

Fatal error: Field vbgcount is not defined in $validfields in class vb_datamanager_forum in \includes\class_dm.php on line 485

update: I uninstalled reinstalled works great.
Reply With Quote
  #16  
Old 04-21-2006, 04:37 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 mikeclarke
update: I uninstalled reinstalled works great.
Cool
Reply With Quote
  #17  
Old 04-26-2006, 08:12 PM
Magle Magle is offline
 
Join Date: Jul 2005
Location: Denmark
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a great hack, but it would be nice with a setting so showing the strip in the threads would be optional, please. (Personally I'd like it to show on the forum display but not in the threads as well)
Reply With Quote
  #18  
Old 04-26-2006, 10:32 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
This looks like a great hack, but it would be nice with a setting so showing the strip in the threads would be optional, please. (Personally I'd like it to show on the forum display but not in the threads as well)
Plugin: Add vBGallery - Main
Hook Location: global_start

Remove:
Code:
if (THIS_SCRIPT == 'showthread'){
$search_text = '$navbar';
$vbulletin->templatecache['SHOWTHREAD'] = str_replace($search_text,
$search_text.fetch_template('forumdisplay_vbgallery'),$vbulletin->templatecache['SHOWTHREAD']);
}

- I'll add later w/ option in AdminCP to toggle per forum.
Reply With Quote
  #19  
Old 04-27-2006, 10:37 AM
Magle Magle is offline
 
Join Date: Jul 2005
Location: Denmark
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

However, after installing there seems to be a serious conflict between this hack and VBSEO I believe. After installing (and re-installing without the edit from above above), most threads in the forum will not display and instead shows this:


Quote:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /*path removed*/music-forums/includes/functions_gallery_store.php on line 23

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /*path removed*/music-forums/includes/functions_gallery_store.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /*path removed*/music-forums/includes/functions_gallery_store.php:23) in /includes/functions_vbseo.php on line 393

Warning: Cannot modify header information - headers already sent by (output started at /*path removed*/music-forums/includes/functions_gallery_store.php:23) in /includes/functions_vbseo.php on line 394
Reverting the edit to the init.php file brings things back to normal (but then the hack will of course not function).
Reply With Quote
  #20  
Old 04-27-2006, 11:38 AM
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
Thanks

However, after installing there seems to be a serious conflict between this hack and VBSEO I believe. After installing (and re-installing without the edit from above above), most threads in the forum will not display and instead shows this:

Reverting the edit to the init.php file brings things back to normal (but then the hack will of course not function).
You are running PHP5.x on your webserver ?
Reply With Quote
  #21  
Old 04-27-2006, 12:24 PM
Magle Magle is offline
 
Join Date: Jul 2005
Location: Denmark
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, PHP version 5.0.4
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:35 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.08591 seconds
  • Memory Usage 2,321KB
  • 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
  • (3)bbcode_code
  • (5)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
  • (3)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