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

Reply
 
Thread Tools
vBGallery - Forum Home Details »»
vBGallery - Forum Home
Version: 1.8, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.0 Rating:
Released: 08-08-2006 Last Update: 08-14-2006 Installs: 134
Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

/* -----------------8/9/2006 6:20am -----------------
Add Gallery Images to your Forum Index v1.8

Tested on:
vBulletin 3.6
PhotoPost vBGallery v2.0 Beta

Zachariah - http://www.gzhq.net

// ---------------------------------------------------------

DEMO

- Feedback Please :squareeyed:

Overview:
  • import Product XML
  • 1 file edit
  • 2 file uploads
  • 1 image upload
  • Adds 1 Query to FORUMHOME

Hack includes:
- Hack Active (yes / no)
- Enable Navbar (yes / no)
- Image Count (number of images)
- Image Order (Random, Newest, Most Views, Most Comment, Highest Rated)
- Column Span (Choice of column count accross)
- Locations (Above Header, Below Header, Under Navbar, Above What's going on, Inside What's going on, Below What's going on, Custom)
- Exclude Catagories
- Only Catagories
- On/Off options for all of the "info" per image
- If gallery is not active hack will vanish (all usergroups)
- Admin will get "Alert: The gallery is currently turned off!" on FORUMHOME
- If gallery settings of a usergroup does not see "thumbnails" the hack will vanish
- No Template edits

Change Log
===========
1.8 - 8/9/2006
- Column Span: Choice of column count across.
- Locations: (were should be displayed on the forumhome)
  • Above Header
  • Below Header
  • Under Navbar
  • Above What's going on
  • Inside What's going on
  • Below What's going on
  • Custom
Select "Custom" and place $vbgallery in FORUMHOME template for custom location.


1.7 Beta 2 - 01.17.06
- Fixed usergroups not able to see the hack
- Fixed sort order problems

1.7
- Install w/ product and 2 edits 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.)

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

Show Your Support

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

Comments
  #82  
Old 09-24-2006, 10:14 PM
R.Solutions's Avatar
R.Solutions R.Solutions is offline
 
Join Date: Mar 2006
Location: Texas
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any word on this?
Reply With Quote
  #83  
Old 09-26-2006, 12:43 PM
GlobalFusion's Avatar
GlobalFusion GlobalFusion is offline
 
Join Date: Sep 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ditto.
After making the edit in init.php, the forums spit chips with a DB Error:

Code:
Database error in vBulletin 3.6.1:

Invalid SQL:

		SELECT 
			userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
			IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
			language.phrasegroup_cfmdirectory AS phrasegroup_cfmdirectory,
			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 dfusion_user AS user
		LEFT JOIN dfusion_userfield AS userfield ON (user.userid = userfield.userid)
		LEFT JOIN dfusion_usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN dfusion_language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid)) 
		
		WHERE user.userid = 1;

MySQL Error  : Unknown column 'language.phrasegroup_adv_gallery' in 'field list'
Error Number : 1054
Date         : Tuesday, September 26th 2006 @ 11:28:36 PM
Script       : http://some.url
Referrer     : http://some.url
IP Address   : My.IP
Username     : 
Classname    : vB_Database
I am running:
vBulletin 3.6.1
PHP version 5.1.4
MySQL version 4.1.21-standard
PhotoPost Version Pro v5.2.1


Oh.. and then there is this:
Code:
Warning: require_once(./includes/functions_gallery.php) [function.require-once]: failed to open stream: No such file or directory in /includes/vbgallery/forumhome_complete.php on line 16

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dfusion/public_html/forums/includes/vbgallery/forumhome_complete.php on line 16
But im looking into that atm.
[EDIT]
  • forumhome_complete.php - DOES exist in the forums/includes/vbgallery/ directory
  • ./includes/functions_gallery.php - does NOT exist (./includes/functions_gallery_store.php does however)

[EDIT]
  • edited forumhome_complete to reflect functions_gallery_store.php location (instead of functions_gallery.php)
  • Below Edit Fixed above problem (now to tackle the DB issue...)
    Code:
    //Latest Images In ForumHome BEGIN
    
    require_once('./includes/functions_gallery_store.php');  
    require_once('./includes/class_bbcode.php');
Reply With Quote
  #84  
Old 09-26-2006, 01:03 PM
GlobalFusion's Avatar
GlobalFusion GlobalFusion is offline
 
Join Date: Sep 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This File is causing my headaches....

functions_gallery_store.php:
PHP Code:
<?php

// ################### PRE-CACHE TEMPLATES AND DATA ######################

if (PHP_VERSION '5.0.0') {

    
// get special phrase groups
            
$phrasegroups array_merge($phrasegroups, array(
                                                                    
'adv_gallery'
                                                                    
));

    
// get special data templates from the datastore
            
$specialtemplates array_merge($specialtemplates, array(
                                                                    
'gallery_c_cache',
                                                                    
'adv_gallery_opt',
                                                                    
'gallery_ugroups',
                                                                    ));
}else{
    
     
/*
     PHP5.x - ONLY
     The behavior of array_merge() was modified in PHP 5. 
     Unlike PHP 4, array_merge() now only accepts parameters of type array. 
     However, you can use typecasting to merge other types.
    */
    
    // get special phrase groups
            
$phrasegroups array_merge((array)$phrasegroups, (array)array(
                                                                    
'adv_gallery'
                                                                    
));

    
// get special data templates from the datastore
            
$specialtemplates array_merge((array)$specialtemplates, (array)array(
                                                                    
'gallery_c_cache'
                                                                    
'adv_gallery_opt',
                                                                    
'gallery_ugroups',
                                                                    ));
}
?>
Possibly the PHP5 Inclusion?
PHP Code:
    // get special phrase groups
            
$phrasegroups array_merge((array)$phrasegroups, (array)array(
                                                                    
'adv_gallery'
                                                                    
)); 
Reply With Quote
  #85  
Old 09-26-2006, 01:45 PM
GlobalFusion's Avatar
GlobalFusion GlobalFusion is offline
 
Join Date: Sep 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you reading Zac. And im eagerly awaiting your reply... as im dead in the water atm (as far as the forumhome enhancement goes anyway.. )

[edit]
But Alas... you have vanished.. and without a response...
Reply With Quote
  #86  
Old 09-26-2006, 02:03 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@GlobalFusion
- This is not for PhotoPost Pro gallery. It is for PhotoPost vBGallery.

Try here for some Pro hacks
Reply With Quote
  #87  
Old 09-26-2006, 02:30 PM
GlobalFusion's Avatar
GlobalFusion GlobalFusion is offline
 
Join Date: Sep 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. cheers Zac. Will have a look.
Reply With Quote
  #88  
Old 09-27-2006, 05:04 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to get this positioned down the left hand side of the forumhome? as I am going to have a navigation system on the left hand side, and thought this would be nice to add in extra space.

Thanks.
Reply With Quote
  #89  
Old 09-27-2006, 12:09 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 hornstar1337
Is there anyway to get this positioned down the left hand side of the forumhome? as I am going to have a navigation system on the left hand side, and thought this would be nice to add in extra space.

Thanks.
Location: Custom

Select "Custom" and place $vbgallery in FORUMHOME template for custom location.
Reply With Quote
  #90  
Old 09-27-2006, 03:46 PM
midirtrider's Avatar
midirtrider midirtrider is offline
 
Join Date: May 2006
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

noticed something weird..

in the vb options>vbgallery... this is what it says..

Imagebit Title
Here you may select to enable items that you would like to display with thumbnails. Yes No
Error:
1

for every option.. under every heading.. the headings are all there.. but the
"Here you may select to enable items that you would like to display with thumbnails. Yes No " is displayed under them all..

Plus when I try to run it on my board I am getting a database error..

I uninstalled the xml. file and removed the require_once(CWD . '/includes/functions_gallery_store.php'); from the init.php file and now my board is back to working fine..
is there a way I can fix this error.. Im a noob and really know very little about coding.
Reply With Quote
  #91  
Old 09-28-2006, 11:04 PM
Draygonia Draygonia is offline
 
Join Date: Jun 2006
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After I add this below the init.php file I get a huge error...

require_once(CWD . '/includes/functions_gallery_store.php');

That gives a database error, its kinda bad Also, where are the template edits in the readme file?
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 04:58 AM.


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.04611 seconds
  • Memory Usage 2,341KB
  • 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
  • (2)bbcode_php
  • (1)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
  • (1)pagenav_pagelinkrel
  • (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