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)
-   -   Forum Home Enhancements - vBGallery - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=123490)

R.Solutions 09-24-2006 10:14 PM

Any word on this?

GlobalFusion 09-26-2006 12:43 PM

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');


GlobalFusion 09-26-2006 01:03 PM

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'
                                                                    
)); 


GlobalFusion 09-26-2006 01:45 PM

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

Zachariah 09-26-2006 02:03 PM

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

Try here for some Pro hacks

GlobalFusion 09-26-2006 02:30 PM

ok. cheers Zac. Will have a look.

Hornstar 09-27-2006 05:04 AM

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.

Zachariah 09-27-2006 12:09 PM

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.

midirtrider 09-27-2006 03:46 PM

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.

Draygonia 09-28-2006 11:04 PM

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?


All times are GMT. The time now is 09:47 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.01283 seconds
  • Memory Usage 1,772KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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