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)

DragonByte Tech 10-11-2012 04:47 PM

Quote:

Originally Posted by ejbreeze (Post 2371453)
Interesting it does show on the default vb style but not my custom syle.

Is it a style from here or one you made or one you got somewhere else? I'd like to play with it locally to see if I can find why the drop shadow doesn't work.

Dylan

DragonByte Tech 10-11-2012 04:49 PM

Quote:

Originally Posted by Alibass (Post 2371578)
@Dylan

I'm using 1.2.4 and vB 4.2.0 PL2

I have found that user's cannot delete their unwanted albums. The only way I can delete them is by going into the DB. :(

Do the users not see the option to delete their albums when they browse their albums? Or they see the option and try to delete and it just doesn't work? I haven't had the problem on my dev system and I've tried it as an admin and normal user.

Dylan

DragonByte Tech 10-11-2012 04:54 PM

Quote:

Originally Posted by Robbed (Post 2371618)
Can you add an option when you click on an image it will show full size in another window?

firefox lets you right click and choose view image but not in IE and a link would be easier.

dbtgallery.php?do=gallery_image&id=176&gal=gallery &type=full

I had the view full image option in there before but removed it when I added the enlarge option heh. I'll look at adding it back as an admin option on the next release.

Dylan

DragonByte Tech 10-11-2012 04:56 PM

Quote:

Originally Posted by snnggledel (Post 2372310)
Hello i'm getting this when i try to upload a picture
Warning: mkdir() [function.mkdir]: Permission denied in [path]/dbtech/gallery/includes/class_core.php on line 1174

Warning: copy(dbtech/gallery/images/upload/1/2/thumb/index.html) [function.copy]: failed to open stream: Permission denied in [path]/dbtech/gallery/includes/class_core.php on line 1176

Warning: mkdir() [function.mkdir]: Permission denied in [path]/dbtech/gallery/includes/class_core.php on line 1183

Warning: copy(dbtech/gallery/images/upload/1/2/wm/index.html) [function.copy]: failed to open stream: Permission denied in [path]/dbtech/gallery/includes/class_core.php on line 1185

Warning: mkdir() [function.mkdir]: Permission denied in [path]/dbtech/gallery/includes/class_core.php on line 1192

Warning: copy(dbtech/gallery/images/upload/1/2/full/index.html) [function.copy]: failed to open stream: Permission denied in [path]/dbtech/gallery/includes/class_core.php on line 1194
help please

Check the permissions on the folder
dbtech/gallery/images/upload/

That folder and all sub folders need to have permissions for php to be able to make directories and create files. Some servers it needs to be 755, others need 777. 755 is the preferable permissions it it works.

Dylan

Alibass 10-12-2012 08:51 PM

Quote:

Originally Posted by DragonByte Tech (Post 2372332)
Do the users not see the option to delete their albums when they browse their albums? Or they see the option and try to delete and it just doesn't work? I haven't had the problem on my dev system and I've tried it as an admin and normal user.

Dylan

Dylan, they can see the option but it doesn't work. I can see the option to delete their album(s) but when I try and delete them it doesn't work. I have to go to the DB to delete the unwanted albums.

Smiler2009 10-14-2012 09:42 AM

Running VB4.2 and latest DBTech Gallery but cannot get past the final installation step where it tells me to correct the permissions.

Both directories and contents are set to 777
Owner for both is root but I have also tried www-data as it's an Apache server, all to no avail.

Can anyone help here, it looks to be a very nice gallery mod and i'm trying to persuade the wife we should go for the pro version, need to get this working:)

Regards, Jeff.

MarkusB 10-14-2012 12:42 PM

Just a question, is there an importer for photopost vb Gallery available, would like to switch sooner or later to DB Gallery Pro....
Would need to import >150 Categories and more than 200k Pics, it`s not a small task!

cheers, Markus

DragonByte Tech 10-15-2012 06:43 AM

Quote:

Originally Posted by Smiler2009 (Post 2372859)
Running VB4.2 and latest DBTech Gallery but cannot get past the final installation step where it tells me to correct the permissions.

Both directories and contents are set to 777
Owner for both is root but I have also tried www-data as it's an Apache server, all to no avail.

Can anyone help here, it looks to be a very nice gallery mod and i'm trying to persuade the wife we should go for the pro version, need to get this working:)

Regards, Jeff.

I just checked the installer and it checks the write permissions on the dbtech/gallery/images/categories/1 folder as well. I'll have to take that out of the next version since I'm not really using that directory at this time.

Dylan

DragonByte Tech 10-15-2012 06:57 AM

Quote:

Originally Posted by Alibass (Post 2372600)
Dylan, they can see the option but it doesn't work. I can see the option to delete their album(s) but when I try and delete them it doesn't work. I have to go to the DB to delete the unwanted albums.


I can't replicate it locally. Does it give any kind of an error or just submits and returns with all the albums? Would I be able to get access to see what's going on?

Dylan

DragonByte Tech 10-15-2012 06:59 AM

Quote:

Originally Posted by MarkusB (Post 2372886)
Just a question, is there an importer for photopost vb Gallery available, would like to switch sooner or later to DB Gallery Pro....
Would need to import >150 Categories and more than 200k Pics, it`s not a small task!

cheers, Markus

There is a vBGallery importer. I would definitely test it out a bit first heh. The categories are no problem, but I've never tried with anything close to 200k pics.

Dylan

Alibass 10-15-2012 01:43 PM

Quote:

Originally Posted by DragonByte Tech (Post 2373098)
I can't replicate it locally. Does it give any kind of an error or just submits and returns with all the albums? Would I be able to get access to see what's going on?

Dylan

Dylan,

Check your PM's for login info to my site.

Smiler2009 10-15-2012 04:46 PM

Quote:

Originally Posted by DragonByte Tech (Post 2373095)
I just checked the installer and it checks the write permissions on the dbtech/gallery/images/categories/1 folder as well. I'll have to take that out of the next version since I'm not really using that directory at this time.

Dylan

That was it!:up:

Many thanks for the help Dylan.

Regards, Jeff.

Alibass 10-16-2012 02:47 PM

Quote:

Originally Posted by DragonByte Tech (Post 2373098)
I can't replicate it locally. Does it give any kind of an error or just submits and returns with all the albums? Would I be able to get access to see what's going on?

Dylan

Quote:

Originally Posted by Alibass (Post 2373146)
Dylan,

Check your PM's for login info to my site.

@Dylan

I've noticed you logged in at my site, did you see see what I'm talking about when it comes to deleting albums by users?

ejbreeze 10-16-2012 10:01 PM

Quote:

Originally Posted by DragonByte Tech (Post 2372329)
Is it a style from here or one you made or one you got somewhere else? I'd like to play with it locally to see if I can find why the drop shadow doesn't work.

Dylan

I can email you the skin if that will work for you. Thanks.

DragonByte Tech 10-17-2012 04:33 PM

Quote:

Originally Posted by Alibass (Post 2373460)
@Dylan

I've noticed you logged in at my site, did you see see what I'm talking about when it comes to deleting albums by users?

Yes, sorry, I did log on and see what you mean. I'm just not sure what's causing it as it doesn't do that on my local dev. I'll try and troubleshoot more today, I had some minor surgery and I'm still on the mend so I haven't been on much.

Dylan

DragonByte Tech 10-17-2012 04:34 PM

Quote:

Originally Posted by ejbreeze (Post 2373566)
I can email you the skin if that will work for you. Thanks.

That would help a lot. I'll pm you my email address.

Dylan

ejbreeze 10-17-2012 11:53 PM

Quote:

Originally Posted by DragonByte Tech (Post 2373804)
Yes, sorry, I did log on and see what you mean. I'm just not sure what's causing it as it doesn't do that on my local dev. I'll try and troubleshoot more today, I had some minor surgery and I'm still on the mend so I haven't been on much.

Dylan


Same thing happens on my test forum. Keep us posted and get well soon :)

Alibass 10-18-2012 04:55 AM

Quote:

Originally Posted by DragonByte Tech (Post 2373804)
Yes, sorry, I did log on and see what you mean. I'm just not sure what's causing it as it doesn't do that on my local dev. I'll try and troubleshoot more today, I had some minor surgery and I'm still on the mend so I haven't been on much.

Dylan

Thanks Dylan, hope you get better soon. I've never been fortunate enough to have minor surgeries, mine have all been major ones. :(

Take care...

AusPhotography 10-20-2012 06:06 AM

Hi -- running lite in our test system and waiting on ability to download paid version.

I found a bug in class_import.php for vBgallery... changed code below (Limit , 25)

PHP Code:

        if ($mod == 'pp_vbgallery')
        {
            
$getfileinfo $this->registry->db->query_read("
                SELECT 
                    * 
                FROM " 
TABLE_PREFIX "ppgal_images 
                ORDER BY imageid ASC 
                LIMIT " 
$start ", 25" //. $end
            
); 


Smiler2009 10-20-2012 02:14 PM

Probably a really dumb question but can anyone tell me which stylevar I should be editing to change the text colour on the buttons, specifically the "download" and "add to favourites" buttons when viewing photos.

Regards, Jeff.

AusPhotography 10-21-2012 03:19 AM

Some feature requests (we have the Pro version)...
  1. File size limits on uploads (per category)
  2. Pixel size limits (per category)

Thanks!

Kym

AusPhotography 10-21-2012 06:53 AM

After import from PP vBgallery all the images show with size = 0

Work around in dbtech/gallery/modules/gallery/actions/view_image.php:
PHP Code:

if (!$image_data['is_youtube'])
{
    
$img_location DBTECH_GALLERY::fetch_image_path($image_data['imageid'], 'local'$image_data['instanceid']) . '/full/' $image_data['imageid'] . '_' $image_data['dateline'] . '.' $image_data['filetype'];

    
$img_info getimagesize($img_location);
    
$image_data['filesize'] = filesize($img_location);  // this line added



DragonByte Tech 10-24-2012 03:49 PM

Quote:

Originally Posted by Alibass (Post 2373460)
@Dylan

I've noticed you logged in at my site, did you see see what I'm talking about when it comes to deleting albums by users?

I just released 1.2.5 which should fix this problem. I also incorporated ricktas' suggestions for the importer and image size. Sorry it took me a bit to get this worked out, hard to code when you can only sit at the computer for short periods of time heh.

Dylan

DragonByte Tech 10-24-2012 04:13 PM

Quote:

Originally Posted by ejbreeze (Post 2371452)
Box shadows only show up in explorer and not chrome or mozilla. Is that a function of chrome and mozilla not showing them?

I'm not sure what the problem is really, I installed the style you sent me and it looks fine with IE, Chrome and FF. Have you made any major modifications to it?

If you want to give me a temp admin account I can login to your site to see if I can figure out what's wrong.

Dylan

Alibass 10-24-2012 08:16 PM

Quote:

Originally Posted by DragonByte Tech (Post 2375664)
I just released 1.2.5 which should fix this problem. I also incorporated ricktas' suggestions for the importer and image size. Sorry it took me a bit to get this worked out, hard to code when you can only sit at the computer for short periods of time heh.

Dylan

Dylan, that solved the problem :):up:

Thanks so much, hope you get to feeling better.

AusPhotography 10-26-2012 06:57 AM

Found a bug...

dbtech/gallery/modules/gallery/functions/class_module.php added '&&' to line 'gi.deleted = 0 &&'
PHP Code:

            $thiscount self::$vbulletin->db->query_first("
                SELECT 
                    COUNT(imageid) AS thiscount 
                FROM " 
TABLE_PREFIX "dbtech_gallery_images gi 
                LEFT JOIN " 
TABLE_PREFIX "dbtech_gallery_albums ga ON gi.albumid = ga.albumid 
                WHERE 
                    ((gi.albumid = 0) || ((ga.hidden     = 0) && (ga.password = '')) || (gi.userid = " 
intval(self::$vbulletin->userinfo['uerid']) . ")) && 
                    gi.instanceid    = " 
intval(self::$current_instance['instanceid']) . " && 
                    gi.approved        = 1 && 
                    gi.deleted        = 0 &&  
                MATCH 
                    (gi.title, gi.text, gi.tagging, gi.username) 
                AGAINST 
                    " 
$boolean_query
            
); 


AusPhotography 10-26-2012 11:15 AM

Another error... looks like some strings need escaping...

('+king's* +canyon* ') needs to be ('+king\'s* +canyon* ')

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:

                                SELECT
                                        *,
                                        gc.catname,
                                        MATCH (gi.title, gi.text, gi.tagging, gi.username) AGAINST ('+king's* +canyon* ')
                                        AS relevance,
                                        u.username,
                                        ga.hidden,
                                        ga.title as albumname
                                FROM dbtech_gallery_images gi
                                LEFT JOIN dbtech_gallery_categories gc ON gi.catid = gc.catid
                                LEFT JOIN dbtech_gallery_albums ga ON gi.albumid = ga.albumid
                                LEFT JOIN user u ON gi.userid = u.userid
                                WHERE
                                        ((gi.albumid = 0) || ((ga.hidden = 0) && (ga.password = '')) || (gi.userid = 0)) &&
                                        gi.instanceid  = 1 &&
                                        gi.approved    = 1 &&
                                        gi.deleted      = 0 &&
                                MATCH
                                        (gi.title, gi.text, gi.tagging, gi.username)
                                AGAINST
                                        ('+king's* +canyon* ' IN BOOLEAN MODE)
                                ORDER BY
                                        relevance DESC
                                LIMIT
                                        0, 14;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's* +canyon* ')
                                        AS relevance,
                                        u.username,
                                        ga.hidden,
                                        ga.ti' at line 4
Error Number  : 1064
Request Date  : Friday, October 26th 2012 @ 07:40:58 PM


FIX: dbtech/gallery/modules/gallery/functions/class_module.php in public static function fetch_display_images

PHP Code:

            $boolean_query "('";
            for(
$i=0$i count($query_array); $i++)
            {
                
$boolean_query .= '+' self::$vbulletin->db->escape_string($query_array[$i]) . '* ';
            }

            
$select_query "MATCH (gi.title, gi.text, gi.tagging, gi.username) AGAINST " $boolean_query "')";
            
$boolean_query .= "' IN BOOLEAN MODE)"


AusPhotography 10-26-2012 10:41 PM

1 Attachment(s)
I found a couple of other bits that needed escaping.

Fixed file attached.

Bounce 10-27-2012 09:03 PM

Quote:

File path is not writeable. The script does not have access to write files to the correct directory.
get this error and driving me nuts as ive set permissions to uploads to 777, ive also searched thread and tried 755....

to no avail as yet :confused:

Bounce 10-27-2012 09:12 PM

im also getting Error:
You did not enter a valid value for this setting.

in admin cp on the settings

Image Options > Image Upload Path

Alibass 10-27-2012 09:52 PM

Quote:

Originally Posted by Bounce (Post 2376404)
im also getting Error:
You did not enter a valid value for this setting.

in admin cp on the settings

Image Options > Image Upload Path

Did you change dbtech/gallery/images/upload/ to something else, if so did you add the trailing / at the end?

Bounce 10-28-2012 12:30 AM

Quote:

Originally Posted by Alibass (Post 2376417)
Did you change dbtech/gallery/images/upload/ to something else, if so did you add the trailing / at the end?

No, its at the default setting- dbtech/gallery/images/upload/

Alibass 10-28-2012 12:51 AM

How about instance id and category id (i.e. 1,1) did you issue a folder for that to upload your images to?

The only other thing is you may not have all your folders set at 777

If you have all that set then I'm out of answers. You will have to wait on Dylan to sort it out.

DragonByte Tech 10-28-2012 11:01 AM

Thanks ricktas, I just uploaded a security hotfix package.

Anyone who needs to fix it, download the package again and upload the file dbtech/gallery/modules/gallery/functions/class_module.php

Dylan

DragonByte Tech 10-28-2012 11:01 AM

Quote:

Originally Posted by Bounce (Post 2376402)
get this error and driving me nuts as ive set permissions to uploads to 777, ive also searched thread and tried 755....

to no avail as yet :confused:


Do you get that error on install or does it install but doesn't let you upload images?

Dylan

Bounce 10-28-2012 12:32 PM

Quote:

Originally Posted by Alibass (Post 2376451)
How about instance id and category id (i.e. 1,1) did you issue a folder for that to upload your images to?

hmmmm not sure if I follow you mate, do I need to create a directory within the upload directory?


Quote:

Originally Posted by DragonByte Tech (Post 2376507)
Do you get that error on install or does it install but doesn't let you upload images?

Dylan

I get it when trying to upload images

Bounce 10-28-2012 01:08 PM

I got it, i created a new directory and 777'd it and they upload now, not sure if thats right but it works now lol

bolobala 10-30-2012 08:17 AM

I tried to CHMOD folder upload and 1 to 777 but still has error when I install this scripts
Quote:

The installation script created the folders for the default instance but the directory is not writeable. You will need to fix the permissions on the folders for the product to work correctly. Please check the permissions on the dbtech/gallery/images/upload/ and dbtech/gallery/images/upload/1 folders. Once you fix the permissions you can verify that future instances will be created correctly by checking the Image Upload Path in the ACP settings Gallery Image Options area. This is also the location that needs to be changed if you want to modify the file location.

Khent334 10-31-2012 04:26 PM

I receive this error anytime I try to upload an image:

"File path is not writeable. The script does not have access to write files to the correct directory. Please report this error to your site administrator."

This is a fresh install. I've tried using the default directory, making a new directory, chmod to 777, chmod to 755, uploading to an album, and uploading without an album. None of my troubleshooting has worked.

Any tips?

Robbed 11-01-2012 09:50 PM

Quote:

Originally Posted by DragonByte Tech (Post 2372334)
I had the view full image option in there before but removed it when I added the enlarge option heh. I'll look at adding it back as an admin option on the next release.

Dylan

Was this feature added again? I couldn't find the setting.

Can you disable comments completely per instance and not let the user choose, same with downloading the image. In some of my instances I want any file uploaded for download and not and option for the member to select.

Is there a way to add the all the stats and details under the image instead of on the right so we can display bigger pictures.

Thanks


All times are GMT. The time now is 04:58 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.02060 seconds
  • Memory Usage 1,891KB
  • 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
  • (4)bbcode_php_printable
  • (28)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
  • (40)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