vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - [DBTech] Dragonbyte Gallery v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=285074)

Mr_Running 06-28-2014 01:23 PM

Hey DreadsUK, Perhaps PM me a temporary access and I'll see If I can sort this out for you :)

Note: according to your images in the post above, assign a number to the 0 (zeros)

Macgiber 06-28-2014 09:33 PM

install the product, but does not show photos

y2ksw 07-08-2014 08:36 AM

Quote:

Originally Posted by Macgiber (Post 2504348)
install the product, but does not show photos

I have installed this product today on 4.2.2, too, but it does not show the photos.

I tried both the manual upload and the import system from vbulletin albums. The folders are created correctly, but they remain empty.

When switching to full path, I see the browser's placeholder, otherwise the "missing image" image.

I've been digging into the code but could not work out the problem. Maybe the lines (class_import.php), at "$filedir = $filedir . '/' . $path[$m];"?
PHP Code:

                $filedir $this->registry->options['dbtech_gallery_filepath_text'] . $old_image_data['instanceid'];
    
                
$path preg_split('//'$old_image_data['userid'],  -1PREG_SPLIT_NO_EMPTY);
    
                for (
$m 0$m count($path); $m++)
                {
                    
$filedir $filedir '/' $path[$m];
                } 

In manual upload via dialog boxes however I could not see anything wrong.

Disco_Dave 07-08-2014 08:47 AM

Quote:

Originally Posted by y2ksw (Post 2505854)
I have installed this product today on 4.2.2, too, but it does not show the photos.

I tried both the manual upload and the import system from vbulletin albums. The folders are created correctly, but they remain empty.

When switching to full path, I see the browser's placeholder, otherwise the "missing image" image.

I've been digging into the code but could not work out the problem. Maybe the lines (class_import.php), at "$filedir = $filedir . '/' . $path[$m];"?
PHP Code:

                $filedir $this->registry->options['dbtech_gallery_filepath_text'] . $old_image_data['instanceid'];
    
                
$path preg_split('//'$old_image_data['userid'],  -1PREG_SPLIT_NO_EMPTY);
    
                for (
$m 0$m count($path); $m++)
                {
                    
$filedir $filedir '/' $path[$m];
                } 

In manual upload via dialog boxes however I could not see anything wrong.

Have you set the maximum and minimum sizes in your option before importing? I also ask Dylan at the time if this mod could import all the picture that your mod imports, but I'm still waiting lol. Do you think this would be possible?

Dave

jason324 07-08-2014 11:25 AM

Thanks for this awesome Gallery!

Jay

y2ksw 07-20-2014 02:19 PM

Quote:

Originally Posted by Disco_Dave (Post 2505856)
Have you set the maximum and minimum sizes in your option before importing? I also ask Dylan at the time if this mod could import all the picture that your mod imports, but I'm still waiting lol. Do you think this would be possible?

Dave

Yes sure, but then eventually you would use twice as much space, since they are not linked together.

AusPhotography 08-15-2014 07:03 AM

Looks like the search needs to escape the search parameters '(' ')'...

See: http://dev.mysql.com/doc/refman/5.6/...t-boolean.html

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:

        SELECT
                COUNT(imageid) AS imagecount
        FROM dbtech_gallery_images
        WHERE
                instanceid      = 1 &&
                approved                = 1 &&
                deleted        = 0 &&
        MATCH
                (title, text, tagging, username)
        AGAINST
                ('+Bourke(NSW)* +Simga* +10-20mm* +Nikon* +D800E* ' IN BOOLEAN MODE);

MySQL Error  : syntax error, unexpected '+', expecting FTS_TERM or FTS_NUMB or '*'
Error Number  : 1064


AusPhotography 08-16-2014 10:06 AM

A fix...

In the following components... These fix the SQL issue

./dbtech/gallery/modules/gallery/actions/search.php

PHP Code:

for($n=0;$n count($query_array);$n++)
{
    
$element preg_replace("/[^A-Za-z0-9]/"''$query_array[$n]); //remove all special characters
    
if ($element != "")
    {
        
$boolean_query .= '+' $element '* ';
    }


./dbtech/gallery/modules/gallery/functions/class_module.php

PHP Code:

            for($i=0$i count($query_array); $i++)
            {
                
$element preg_replace("/[^A-Za-z0-9]/"''$query_array[$i]); //remove all special characters
                
if ($element != "")
                {
                    
$boolean_query .= '+' $element '* ';
                }
            } 

PHP Code:

            for($n=0;$n count($criteria_array);$n++)
            {
                
$element preg_replace("/[^A-Za-z0-9]/"''$criteria_array[$n]); //remove all special characters
                
if ($element != "")
                {
                    
$boolean_query .= '+' $element '* ';
                }
            } 

PHP Code:

            for($n=0;$n count($criteria_array);$n++)
            {
                
$element preg_replace("/[^A-Za-z0-9]/"''$criteria_array[$n]); //remove all special characters
                
if ($element != "")
                {
                    
$boolean_query .= '+' $element '* ';
                }
            } 


CoffeeLovesYou 09-16-2014 12:14 PM

How can I make the editor image show up in the quick reply, also? The button that lets you add pictures from the gallery on to your posts.

Thanks.

DragonByte Tech 09-18-2014 11:58 AM

I don't believe that's possible at this time, sorry :(


Fillip


All times are GMT. The time now is 08:13 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.01636 seconds
  • Memory Usage 1,780KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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