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 07-15-2012 08:24 PM

What are you doing when you see this? I have like 20 DBT mods installed on my local dev, thanks included, and I haven't run into an error like this.

With the image upload, double check your instance and make sure the instance has values set for the width/height thumb/full dimensions.

Dylan

Quote:

Originally Posted by PattiOz (Post 2347449)
Hmmmm. SQL error after installing the gallery. I disabled your "Thank You" mod and the error disappeared. Then I re-enabled the "Thank You" mod and disabled the Gallery mod, and there was no error. Seems there is a conflict with running your two mods together on my install, or I missed some steps somewhere.

Database error in vBulletin 4.2.0:

Code:

Invalid SQL:

            SELECT
                entry.*,
                user.*
                ,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
            FROM (
                (
    SELECT
        post.postid,
        post.title AS posttitle,
        thread.title AS threadtitle,
        thread.title AS title,
        thread.threadid,
        thread.forumid,
        entry_post.*
    FROM (SELECT * FROM dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'post' ORDER BY entryid DESC LIMIT 5) AS entry_post
    LEFT JOIN post AS post ON (post.postid = entry_post.contentid)
    LEFT JOIN thread AS thread ON (thread.threadid = post.threadid)
) UNION ALL (
        SELECT
            image.imageid AS postid,
            image.title AS posttitle,
            image.filename AS threadtitle,       
            image.userid,
            image_instance.shortname AS threadid,
            0 AS forumid,
            entry_dbgallery_image.*
        FROM (SELECT * FROM dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'dbgallery_image' ORDER BY entryid DESC LIMIT 5) AS entry_dbgallery_image
        LEFT JOIN dbtech_gallery_images AS image ON (image.imageid = entry_dbgallery_image.contentid)
        LEFT JOIN dbtech_gallery_instances AS image_instance ON (image_instance.instanceid = image.instanceid)       
    ) UNION ALL (
        SELECT
            groupmessage.gmid AS postid,
            groupmessage.title AS posttitle,
            firstgroupmessage.title AS threadtitle,       
            groupmessage.postuserid AS userid,
            groupmessage.discussionid AS threadid,
            0 AS forumid,
            entry_socialgroup.*
        FROM (SELECT * FROM dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'socialgroup' ORDER BY entryid DESC LIMIT 5) AS entry_socialgroup
        LEFT JOIN groupmessage AS groupmessage ON (groupmessage.gmid = entry_socialgroup.contentid)
        LEFT JOIN discussion AS discussion ON (discussion.discussionid = groupmessage.discussionid)       
        LEFT JOIN groupmessage AS firstgroupmessage ON (firstgroupmessage.gmid = discussion.firstpostid)       
    ) UNION ALL (
        SELECT
            usernote.usernoteid AS postid,
            usernote.title AS posttitle,
            'N/A' AS threadtitle,       
            usernote.posterid AS userid,
            usernote.userid AS threadid,
            0 AS forumid,
            entry_usernote.*
        FROM (SELECT * FROM dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'usernote' ORDER BY entryid DESC LIMIT 5) AS entry_usernote
        LEFT JOIN usernote AS usernote ON (usernote.usernoteid = entry_usernote.contentid)
    ) UNION ALL (
        SELECT
            visitormessage.vmid AS postid,
            visitormessage.title AS posttitle,
            'N/A' AS threadtitle,       
            visitormessage.postuserid AS userid,
            visitormessage.userid AS threadid,
            0 AS forumid,
            entry_visitormessage.*
        FROM (SELECT * FROM dbtech_thanks_entry WHERE varname IN('thanks', 'likes') AND contenttype = 'visitormessage' ORDER BY entryid DESC LIMIT 5) AS entry_visitormessage
        LEFT JOIN visitormessage AS visitormessage ON (visitormessage.vmid = entry_visitormessage.contentid)
    )
            ) AS entry
            LEFT JOIN user AS user USING(userid)
            LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
            WHERE 1=1;

MySQL Error  : Illegal mix of collations for operation 'UNION'
Error Number  : 1271
Request Date  : Thursday, July 12th 2012 @ 07:56:47 PM
Error Date    : Thursday, July 12th 2012 @ 07:56:47 PM
Script        : http://www.MYSITE.com/dev2012/forum/activity.php
Referrer      : http://www.MYSITE.com/dev2012/forum/...hp?gal=gallery
IP Address    : 49.176.65.59
Username      : admin
Classname    : vB_Database
MySQL Version : 5.0.95-community

Errors on image upload:

Code:

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in [path]/dbtech/gallery/includes/class_core.php on line 755

Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 763

Warning: imagecolortransparent() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 764

Warning: imagealphablending() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 765

Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 766

Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 770

Warning: imagejpeg() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 785

Warning: imagedestroy() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 792

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in [path]/dbtech/gallery/includes/class_core.php on line 755

Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 763

Warning: imagecolortransparent() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 764

Warning: imagealphablending() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 765

Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 766

Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 770

Warning: imagejpeg() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 785

Warning: imagedestroy() expects parameter 1 to be resource, boolean given in [path]/dbtech/gallery/includes/class_core.php on line 792

Warning: filesize() [function.filesize]: stat failed for [path]/dbtech/gallery/images/upload/1/1/full/4_1342146302.jpg in [path]/dbtech/gallery/includes/class_core.php on line 664

Warning: filesize() [function.filesize]: stat failed for [path]/dbtech/gallery/images/upload/1/1/thumb/4_1342146302.jpg in [path]/dbtech/gallery/includes/class_core.php on line 665



DragonByte Tech 07-15-2012 08:26 PM

Quote:

Originally Posted by Geisthund99 (Post 2347587)
Hi

Install appeared to go OK but on trying to upload image


HTH
Gareth

Did you edit the instance and set the width/height for the thumb/full dimensions? That sounds like what's causing the error.

Dylan

DragonByte Tech 07-15-2012 08:28 PM

Quote:

Originally Posted by Craigr (Post 2347593)
Doesn't seem to be working for me. Just shows block, but no images. EDIT: Works fine if horizontal rather than vertical used.


In the gallery are we allowed to change the title from 'Dragonbyte Gallery' to our own name? Also the DBTech - Gallery line at the top.

Also for some reason when i upload a 514Kb file it ends up 1.78Mb on the site? Any idea what is wrong there?

Are you using a watermark? I resize the image to fit, and add the watermark if it's set to etch. I didn't think it would be that much bigger though. If you want you can send me the image and I'll test it locally to see the size difference.

You can change any of the phrases you want :)

Dylan

DragonByte Tech 07-15-2012 08:29 PM

Quote:

Originally Posted by glen290 (Post 2348428)
Getting this huge error when I select latest albums in the drop down box..

Upgrade to 1.0.3, it looks like the error that I fixed in the latest release.

Dylan

glen290 07-16-2012 06:42 AM

That worked perfect, must have been the only DBTech mod i hadnt upgraded...

alhidaya 07-16-2012 10:53 AM

Hello,

I don't understand: the widget works horizontally but not vertically.

alhidaya 07-16-2012 02:57 PM

Hello,

When I'm in the picture gallery and I want to click on button "LIKES": a window opens and the message here:

Quote:

Pass error
/home/..../...../dbtech/thanks/contentypes/dbgallery__image/save.php
on line 128

Craigr 07-16-2012 04:08 PM

Quote:

Originally Posted by DragonByte Tech (Post 2348462)
Are you using a watermark? I resize the image to fit, and add the watermark if it's set to etch. I didn't think it would be that much bigger though. If you want you can send me the image and I'll test it locally to see the size difference.

You can change any of the phrases you want :)

Dylan

Thanks.

No watermarks used for image upload. Before adding it is 514Kb, but once uploaded to the gallery it becomes 1.78Mb. This is the image i am trying to add : http://www.specialforcesroh.com/gallery/file1308.jpg

Is it possibly because the original image is more than the 3020 pixels high and my limit is 3000 pixels so it is re-sizing it, but losing the compression.

DragonByte Tech 07-16-2012 04:53 PM

Quote:

Originally Posted by alhidaya (Post 2348630)
Hello,

I don't understand: the widget works horizontally but not vertically.

If you set it to vertical, does it not work or just shows but messed up looking? If it's messed up looking, can you take a screenshot and send it? It's working on my dev so I'm not sure what the problem is and "doesn't work" isn't descriptive enough :)

Dylan

DragonByte Tech 07-16-2012 05:11 PM

Quote:

Originally Posted by alhidaya (Post 2348695)
Hello,

When I'm in the picture gallery and I want to click on button "LIKES": a window opens and the message here:

We found the issue. The next advanced post thanks/likes release will have a fix for this.

Dylan

DragonByte Tech 07-16-2012 05:29 PM

Quote:

Originally Posted by Craigr (Post 2348712)
Thanks.

No watermarks used for image upload. Before adding it is 514Kb, but once uploaded to the gallery it becomes 1.78Mb. This is the image i am trying to add : http://www.specialforcesroh.com/gallery/file1308.jpg

Is it possibly because the original image is more than the 3020 pixels high and my limit is 3000 pixels so it is re-sizing it, but losing the compression.

Yes it looks like it's losing the compression. I have it set to max quality. If you want to see what it's like, try changing the setting.

Open
dbtech/gallery/includes/class_core.php

Find
PHP Code:

imagejpeg($destination_image_handle$new_name100); 

and change it to something like
PHP Code:

imagejpeg($destination_image_handle$new_name75); 

That reduced the size down to 363k for me and I can't tell the difference between it and the 100 one. If that works, I'll add a setting in the next version for the admin to specify the quality on JPG images

Dylan

alhidaya 07-16-2012 09:10 PM

Quote:

Originally Posted by DragonByte Tech (Post 2348723)
If you set it to vertical, does it not work or just shows but messed up looking? If it's messed up looking, can you take a screenshot and send it? It's working on my dev so I'm not sure what the problem is and "doesn't work" isn't descriptive enough :)

Dylan

Hello Dylan,

It's simple, the widget is in vertical blank. And even when I put images in my galery, the vertical widget remains empty.

alhidaya 07-16-2012 09:12 PM

Quote:

Originally Posted by DragonByte Tech (Post 2348728)
We found the issue. The next advanced post thanks/likes release will have a fix for this.

Dylan

Hello Dylan,

Thank you for your reply, I will await the next update

DragonByte Tech 07-17-2012 01:29 AM

Quote:

Originally Posted by alhidaya (Post 2348777)
Hello Dylan,

It's simple, the widget is in vertical blank. And even when I put images in my galery, the vertical widget remains empty.

Ah ok, weird, I'll see if I can replicate it.

Quote:

Originally Posted by alhidaya (Post 2348778)
Hello Dylan,

Thank you for your reply, I will await the next update

If you use the one published on this site, it's already out :)

Dylan

andyv72 07-17-2012 02:02 PM

HI..

it works fine on 4.2.

how i can delete:

Direct Image Code:
BBCode Image Link:
and
BBCode Image:
???

thx

Edit:
http://www.dragonbyte-tech.com/forums/91-Translations <---Not work!

DragonByte Tech 07-17-2012 03:58 PM

Quote:

Originally Posted by andyv72 (Post 2348974)
HI..

it works fine on 4.2.

how i can delete:

Direct Image Code:
BBCode Image Link:
and
BBCode Image:
???

thx

Edit:
http://www.dragonbyte-tech.com/forums/91-Translations <---Not work!

Sorry, fixed the link to the forum.
Are you saying you want to remove those from being visible to the user? If you are, just edit the templates
dbtech_gallery_view_image_vb - If you are using vB Style
And delete
PHP Code:

                        <div style="margin-bottom: 15px; margin-top: 15px;">
                            <
div id="gallery_image_link_url">
                                {
vb:rawphrase dbtech_gallery_ref_dir_link}:<br />
                                <
input class="primary textbox" type="text" name="link_url" style="width: 95%" value="{vb:raw image_data.link_url}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                            </div>
                            <div id="
gallery_image_link_bbcode">
                                {vb:rawphrase dbtech_gallery_ref_bbcode_link}:<br />
                                <input class="
primary textbox" type="text" name="link_bbcode"  style="width95%" value="{vb:raw image_data.link_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                            </
div>
                            <
div id="gallery_image_link_bbcode">
                                {
vb:rawphrase dbtech_gallery_ref_bbcode_img}:<br />
                                <
input class="primary textbox" type="text" name="img_bbcode" style="width: 95%" value="{vb:raw image_data.img_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                            </div>
                        </div> 

dbtech_gallery_view_image - If you are using New Style

And delete
PHP Code:

            <div style="margin-bottom: 10px;">
                <
div id="gallery_image_link_url">
                    {
vb:rawphrase dbtech_gallery_ref_dir_link}:<br />
                    <
input class="primary textbox" type="text" name="link_url" style="width: 95%" value="{vb:raw image_data.link_url}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                </div>
                <div id="
gallery_image_link_bbcode">
                    {vb:rawphrase dbtech_gallery_ref_bbcode_link}:<br />
                    <input class="
primary textbox" type="text" name="link_bbcode" style="width95%" value="{vb:raw image_data.link_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                </
div>
                <
div id="gallery_image_link_bbcode">
                    {
vb:rawphrase dbtech_gallery_ref_bbcode_img}:<br />
                    <
input class="primary textbox" type="text" name="img_bbcode" style="width: 95%" value="{vb:raw image_data.img_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                </div>
            </div> 

Dylan

Craigr 07-17-2012 06:16 PM

Quote:

Originally Posted by DragonByte Tech (Post 2348737)
Yes it looks like it's losing the compression. I have it set to max quality. If you want to see what it's like, try changing the setting.

Open
dbtech/gallery/includes/class_core.php

Find
PHP Code:

imagejpeg($destination_image_handle$new_name100); 

and change it to something like
PHP Code:

imagejpeg($destination_image_handle$new_name75); 

That reduced the size down to 363k for me and I can't tell the difference between it and the 100 one. If that works, I'll add a setting in the next version for the admin to specify the quality on JPG images

Dylan

Much better, works great. :up:

Also noticed if a member posts a comment the link to their profile doesn't work. This is the link that appears : member.php?1-Admin

Fixed by editing template dbtech_gallery_view_image_comment_bits_vb
Find:
Code:

<a href="member.php?1-Admin" class="username">{vb:raw comment_data.musername}</a>
Replace With:
Code:

<a class="username" href="{vb:raw comment_data.user_path}">{vb:raw comment_data.musername}</a>

Disco_Dave 07-19-2012 10:33 AM

Hi Guys

Still getting unknown locations when peeps are viewing pics and albums etc. I've also seen on your site lifetime pro $79.95 and $99.95 can you confirm which one it is? Can this price be agreed in sterling?

Regards,
Dave

andyv72 07-19-2012 02:06 PM

Quote:

Originally Posted by DragonByte Tech (Post 2349003)
Sorry, fixed the link to the forum.
Are you saying you want to remove those from being visible to the user? If you are, just edit the templates
dbtech_gallery_view_image_vb - If you are using vB Style
And delete
PHP Code:

                        <div style="margin-bottom: 15px; margin-top: 15px;">
                            <
div id="gallery_image_link_url">
                                {
vb:rawphrase dbtech_gallery_ref_dir_link}:<br />
                                <
input class="primary textbox" type="text" name="link_url" style="width: 95%" value="{vb:raw image_data.link_url}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                            </div>
                            <div id="
gallery_image_link_bbcode">
                                {vb:rawphrase dbtech_gallery_ref_bbcode_link}:<br />
                                <input class="
primary textbox" type="text" name="link_bbcode"  style="width95%" value="{vb:raw image_data.link_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                            </
div>
                            <
div id="gallery_image_link_bbcode">
                                {
vb:rawphrase dbtech_gallery_ref_bbcode_img}:<br />
                                <
input class="primary textbox" type="text" name="img_bbcode" style="width: 95%" value="{vb:raw image_data.img_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                            </div>
                        </div> 

dbtech_gallery_view_image - If you are using New Style

And delete
PHP Code:

            <div style="margin-bottom: 10px;">
                <
div id="gallery_image_link_url">
                    {
vb:rawphrase dbtech_gallery_ref_dir_link}:<br />
                    <
input class="primary textbox" type="text" name="link_url" style="width: 95%" value="{vb:raw image_data.link_url}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                </div>
                <div id="
gallery_image_link_bbcode">
                    {vb:rawphrase dbtech_gallery_ref_bbcode_link}:<br />
                    <input class="
primary textbox" type="text" name="link_bbcode" style="width95%" value="{vb:raw image_data.link_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                </
div>
                <
div id="gallery_image_link_bbcode">
                    {
vb:rawphrase dbtech_gallery_ref_bbcode_img}:<br />
                    <
input class="primary textbox" type="text" name="img_bbcode" style="width: 95%" value="{vb:raw image_data.img_bbcode}" readonly="readonly" onfocus="highlight(this); onchange="highlight(this);" />
                </div>
            </div> 

Dylan


Perfect !!!
Big THX:D

DragonByte Tech 07-19-2012 07:25 PM

Quote:

Originally Posted by Craigr (Post 2349042)
Much better, works great. :up:

Also noticed if a member posts a comment the link to their profile doesn't work. This is the link that appears : member.php?1-Admin

Fixed by editing template dbtech_gallery_view_image_comment_bits_vb
Find:
Code:

<a href="member.php?1-Admin" class="username">{vb:raw comment_data.musername}</a>
Replace With:
Code:

<a class="username" href="{vb:raw comment_data.user_path}">{vb:raw comment_data.musername}</a>

Thanks, didn't catch that. It's fixed for the next version.

I'll add an ACP field to select the quality of JPG images so you can adjust as needed.

DragonByte Tech 07-19-2012 07:40 PM

Quote:

Originally Posted by tricksodave (Post 2349460)
Hi Guys

Still getting unknown locations when peeps are viewing pics and albums etc. I've also seen on your site lifetime pro $79.95 and $99.95 can you confirm which one it is? Can this price be agreed in sterling?

Regards,
Dave

Did you change the filename? It should still work with the name changed, but that's the only thing I can think of that might cause a problem. Can you pm me access to it?

The pro questions need to be asked in our presales forum.

Dylan

Disco_Dave 07-19-2012 07:45 PM

Quote:

Originally Posted by DragonByte Tech (Post 2349637)
Did you change the filename? It should still work with the name changed, but that's the only thing I can think of that might cause a problem. Can you pm me access to it?

The pro questions need to be asked in our presales forum.

Dylan

No, no file changes only phrase changes. Cheers I'll ask on your site.

Dave

lazytown 07-20-2012 02:39 AM

Quote:

Originally Posted by DragonByte Tech (Post 2346018)
I'm working on it. I'm just finishing up the vB Album importer then I'm working on the vBGallery one next.

Dylan

I would be very interested in a vbgallery importer... would definitely buy the pro version if it had this.

PattiOz 07-20-2012 04:57 AM

Quote:

Originally Posted by DragonByte Tech (Post 2348460)
What are you doing when you see this? I have like 20 DBT mods installed on my local dev, thanks included, and I haven't run into an error like this.

With the image upload, double check your instance and make sure the instance has values set for the width/height thumb/full dimensions.

Dylan

Ah that fixed it! Muchos gracias!

DragonByte Tech 07-20-2012 04:09 PM

Quote:

Originally Posted by vissa (Post 2349715)
I would be very interested in a vbgallery importer... would definitely buy the pro version if it had this.

I'm working on the next version and the importers for vbgallery and vb albums will be in it. They will be available for both pro and lite :)

Dylan

alhidaya 07-24-2012 02:35 AM

Hello Dylan,

I hope you are well.

Could you add an option to put the address of the image instead of importing the image from our pc.?

could you put a slidershow in the gallery to see the picture album. ?

Could you create a widget cms to see the parade pictures ?

Disco_Dave 07-25-2012 03:27 PM

1 Attachment(s)
Hi Guys

Is there a way I can align your copyright or make it all in white? I ask this earlier in the thread but think it has got lost.

Also when viewing who's online it tells me that the person is viewing main gallery (if I click on the link) it tells me I don't have permissions to view?

Dave

Preech 07-26-2012 10:41 PM

How can I make the navtab viewable only to certain usergroups.

Craigr 07-29-2012 04:51 PM

Noticed a small bug. If you have text in the image description page it loses the line breaks if you edit the image.

For example if i put this:
Picture taken September 2002
By Person Name


When edited it becomes this:
Picture taken September 2002 By Person Name

Even if you show the line breaks on the edit screen they disappear.

EDIT: Looks like the description is not updated at all when i press save. Tried entering different text, but it doesn't update.

DragonByte Tech 07-31-2012 05:38 AM

I just added v1.1.1

Included in the v1.1.0 release:

Added - Mass import of images from the ACP
Added - Import from vB Albums and vB Gallery
Added - Hide comment block on image view if no comments have been made
Added - Image blocks under gallery home categories
Added - Custom Fields!

With custom fields you can add as many fields you want to the image page. The types of fields you can add are:
  • Single line text field
  • Multi line text field
  • Select Dropdown field
  • Multiple checkboxs field
  • Multiple radio button field
The name of the custom field can either be a phrase (for multi lingual sites) or the text itself.

With the Mass ACP import, simply ftp your images to a folder inside of you gallery uploads folder. For instance, on my dev system, my images are at root/gallery_images. I added a folder root/gallery_images/uploaded and put all my images in there.

Dylan

DragonByte Tech 07-31-2012 05:39 AM

Quote:

Originally Posted by Craigr (Post 2352500)
Noticed a small bug. If you have text in the image description page it loses the line breaks if you edit the image.

For example if i put this:
Picture taken September 2002
By Person Name


When edited it becomes this:
Picture taken September 2002 By Person Name

Even if you show the line breaks on the edit screen they disappear.

EDIT: Looks like the description is not updated at all when i press save. Tried entering different text, but it doesn't update.

I believe the new release fixes this problem. Let me know if it doesn't though and I'll work on it.

Dylan

DragonByte Tech 07-31-2012 05:40 AM

Quote:

Originally Posted by alhidaya (Post 2350940)
Hello Dylan,

I hope you are well.

Could you add an option to put the address of the image instead of importing the image from our pc.?

could you put a slidershow in the gallery to see the picture album. ?

Could you create a widget cms to see the parade pictures ?

The first two are on the list of things to do. Not sure what you mean by parade pictures? There is a CMS widget included.

Dylan

DragonByte Tech 07-31-2012 05:43 AM

Quote:

Originally Posted by tricksodave (Post 2351343)
Hi Guys

Is there a way I can align your copyright or make it all in white? I ask this earlier in the thread but think it has got lost.

Also when viewing who's online it tells me that the person is viewing main gallery (if I click on the link) it tells me I don't have permissions to view?

Dave

Sorry about that, missed the copyright question. It should follow the standard footer until something is tweaked on your style. Can I get a link to the site to take a look?

I'm not sure what's causing the WOL problem, I'll check into it and let you know.

Dylan

DragonByte Tech 07-31-2012 05:44 AM

Quote:

Originally Posted by Preech (Post 2351741)
How can I make the navtab viewable only to certain usergroups.

If the nav is auto generated (If you're on 4.1.x or 4.2 and didn't manually creat the tab), if they do not have permission to view the gallery then they shouldn't see the tab.

Dylan

imported_dfmafia 07-31-2012 06:41 AM

installed latest version, updated on my vB 4.2.0 PL 2

1 data base error when I tried to import the vB Gallery.

Code:

Database error in vBulletin 4.2.0:
Invalid SQL:
  SELECT * FROM 'album';
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 ''album'' at line 1
Error Number  : 1064

that was with IE if it matters, shouldn't but i couldn't reply wtih IE here...


below is the error message i got when i tried firefox with YES selected to clean up previous import. I assume it there due to the fact the previous import didn't start thus no importid

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:

                DELETE
                FROM dbtech_gallery_categories
                WHERE
                    import_id        > 0 &&
                    import_type    = 'vb_album';

MySQL Error  : Unknown column 'import_id' in 'where clause'
Error Number  : 1054


Also lost my watermarks. "watermark text" is still displayed on images though i never changed my settings and my .png watermark was working properly

Disco_Dave 07-31-2012 06:45 AM

1 Attachment(s)
Quote:

Originally Posted by DragonByte Tech (Post 2352953)
Sorry about that, missed the copyright question. It should follow the standard footer until something is tweaked on your style. Can I get a link to the site to take a look?

I'm not sure what's causing the WOL problem, I'll check into it and let you know.

Dylan

Thanks for the reply, I've uploaded your newest version and tried the Gallery Import, getting the following error:

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT * FROM 'vbalbum';

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 ''vbalbum'' at line 1
Error Number : 1064
Request Date : Tuesday, July 31st 2012 @ 02:31:54 AM
Error Date : Tuesday, July 31st 2012 @ 02:31:54 AM
Script : http://www.nirc.co.uk/fresh/area51/d...3&mod=vb_album
Referrer : http://www.nirc.co.uk/fresh/area51/d...2&mod=vb_album
IP Address : 192.109.140.135
Username : Disco_Dave
Classname : vB_Database
MySQL Version : 5.5.23-55

I would like to import all are old images into the Gallery, is this possible with an old mod we used on our old vB3, now vB4 this mod no longer works but all the images are still there. The old mod was by Beebi.

http://www.nirc.co.uk/fresh



To have a look at your copyright.

Cheers
Dave


Also getting this after we updated, if you click on the Unknown Location, it loads up a dbtgallery.php file to save:

DragonByte Tech 07-31-2012 11:46 AM

Quote:

Originally Posted by imported_df+++++ (Post 2352965)
installed latest version, updated on my vB 4.2.0 PL 2

1 data base error when I tried to import the vB Gallery.

Code:

Database error in vBulletin 4.2.0:
Invalid SQL:
  SELECT * FROM 'album';
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 ''album'' at line 1
Error Number  : 1064

that was with IE if it matters, shouldn't but i couldn't reply wtih IE here...


below is the error message i got when i tried firefox with YES selected to clean up previous import. I assume it there due to the fact the previous import didn't start thus no importid

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:

                DELETE
                FROM dbtech_gallery_categories
                WHERE
                    import_id        > 0 &&
                    import_type    = 'vb_album';

MySQL Error  : Unknown column 'import_id' in 'where clause'
Error Number  : 1054

Also lost my watermarks. "watermark text" is still displayed on images though i never changed my settings and my .png watermark was working properly

Sorry about that. I was a bit overzealous checking my variables I guess.

If you open dbtech/gallery/includes/class_import.php
On line 170 change
PHP Code:

SELECT FROM " . $this->registry->db->sql_prepare($table

to
PHP Code:

SELECT FROM " . $table 

The watermark was never on the lite version, were you running the beta?

Dylan

DragonByte Tech 07-31-2012 11:50 AM

Quote:

Originally Posted by tricksodave (Post 2352967)
Thanks for the reply, I've uploaded your newest version and tried the Gallery Import, getting the following error:

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT * FROM 'vbalbum';

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 ''vbalbum'' at line 1
Error Number : 1064
Request Date : Tuesday, July 31st 2012 @ 02:31:54 AM
Error Date : Tuesday, July 31st 2012 @ 02:31:54 AM
Script : http://www.nirc.co.uk/fresh/area51/d...3&mod=vb_album
Referrer : http://www.nirc.co.uk/fresh/area51/d...2&mod=vb_album
IP Address : 192.109.140.135
Username : Disco_Dave
Classname : vB_Database
MySQL Version : 5.5.23-55

I would like to import all are old images into the Gallery, is this possible with an old mod we used on our old vB3, now vB4 this mod no longer works but all the images are still there. The old mod was by Beebi.

Cheers
Dave


Also getting this after we updated, if you click on the Unknown Location, it loads up a dbtgallery.php file to save:

Sorry, I'll fix the unknown location. It's trying to download the image the user is viewing. Need to fix the bug in the importer anyway. The fix for the importer for vB Albums is in the post above.

For the Beebi mod, I'd need to take a look at the files and structure of it.

btw, I changed the password but you might want to edit your post and remove the login info to your board and your IP address and that info. Best to send that info through PM's.

Dylan

Disco_Dave 07-31-2012 12:42 PM

Quote:

Originally Posted by DragonByte Tech (Post 2353024)
Sorry, I'll fix the unknown location. It's trying to download the image the user is viewing. Need to fix the bug in the importer anyway. The fix for the importer for vB Albums is in the post above.

For the Beebi mod, I'd need to take a look at the files and structure of it.

btw, I changed the password but you might want to edit your post and remove the login info to your board and your IP address and that info. Best to send that info through PM's.

Dylan

Thanks! I still have the old mod if you'd like to take a look?

Craigr 07-31-2012 03:29 PM

Quote:

Originally Posted by DragonByte Tech (Post 2352950)
I just added v1.1.1

Included in the v1.1.0 release:

Added - Mass import of images from the ACP
Added - Import from vB Albums and vB Gallery
Added - Hide comment block on image view if no comments have been made
Added - Image blocks under gallery home categories
Added - Custom Fields!

With custom fields you can add as many fields you want to the image page. The types of fields you can add are:
  • Single line text field
  • Multi line text field
  • Select Dropdown field
  • Multiple checkboxs field
  • Multiple radio button field
The name of the custom field can either be a phrase (for multi lingual sites) or the text itself.

With the Mass ACP import, simply ftp your images to a folder inside of you gallery uploads folder. For instance, on my dev system, my images are at root/gallery_images. I added a folder root/gallery_images/uploaded and put all my images in there.

Dylan

Awesome work. :) The description editor works fine now.

Small bug in template dbtech_gallery_view_image_comment_bits_vb

Missing " in this line:
Code:

<a href={vb:raw comment_data.user_path}" class="username">
Another small one:
If you try to delete a custom field via the admin-cp i get this error:
Code:

Fatal error: Call to undefined function fetch_image_path() in F:\_PORTABLE\xampp\htdocs\vb\dbtech\gallery\actions\admin\delcustfieldconf.php on line 46


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.01940 seconds
  • Memory Usage 2,004KB
  • 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
  • (12)bbcode_code_printable
  • (10)bbcode_php_printable
  • (31)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