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-02-2012 06:54 PM

Quote:

Originally Posted by FF|Skyrider (Post 2344434)
Uploaded an image, getting "MISSING IMAGE" with a large missing image picture.. what's this?

And how exactly do I remove images? When I click "delete" under "edit image" the black box floats around the screen and disappears from view.

Further more, the comment (reply) box is really messed up.
http://tf2lottery.com/images/Dragonb...lery-issue.jpg

(Check the bottom).. I've zoomed out to fit the image, but in reality the top bar goes through the smilies.

Could I get user access to take a look?

Dylan

DragonByte Tech 07-02-2012 06:56 PM

Quote:

Originally Posted by Mariner1 (Post 2344514)
Get this error when i click save

Invalid response from server: <br /><strong>Warning</strong>: require_once([path]/dbtech/gallery_pro/hooks/dbtech_gallery_ajax_image_submit_complete.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <strong>[path]/dbtech/gallery/actions/ajax.php(133) : eval()'d code</strong> on line <strong>1</strong><br /><br />
<b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sandboak/public_html/dbtech/gallery_pro/hooks/dbtech_gallery_ajax_image_submit_complete.php' (include_path='.:/usr/local/php52/pear') in <b>/home/sandboak/public_html/dbtech/gallery/actions/ajax.php(133) : eval()'d code</b> on line <b>1</b><br />

When i click save al though it works.Also if i buy the pro ver will i loose images when upgrading

That was fixed with the 1.0.1 package.

No, upgrading to pro will not cause you to lose any images

Dylan

Disco_Dave 07-02-2012 07:00 PM

This looks like a fantastic mod, I'm only just testing here everything looks great feels great. Just one problem for us, when you copy the [img] url into a post it doesn't display. Any ideas?

Dave

DragonByte Tech 07-02-2012 07:13 PM

Quote:

Originally Posted by tricksodave (Post 2344565)
This looks like a fantastic mod, I'm only just testing here everything looks great feels great. Just one problem for us, when you copy the [img] url into a post it doesn't display. Any ideas?

Dave

Sorry about that. There is an error in the code.

I'll fix it in the next release, if you want to manually fix it for now.

Open dbtech/gallery/includes/class_core.php

On about line 1295 Find

PHP Code:

        if ($type == 'link_bbcode')
        {
            
$file '[url=' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . '?do=view_image&amp;id=' $id '&amp;gal=' $gal '][img]' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . 'do=view_image&amp;id=' $id '&amp;gal=' $gal '&type=thumb[/img] [/url]';
        }

        if (
$type == 'img_bbcode')
        {
            
$file '[img]https://vborg.vbsupport.ru/[/img]';
        } 

Replace with

PHP Code:

        if ($type == 'link_bbcode')
        {
            
$file '[url=' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . '?do=view_image&amp;id=' $id '&amp;gal=' $gal '][img]https://vborg.vbsupport.ru/[/img] [/url]';
        }

        if (
$type == 'img_bbcode')
        {
            
$file '[img]https://vborg.vbsupport.ru/[/img]';
        } 

That should display the correct link with a thumb and full image bbcode.

Dylan

Disco_Dave 07-02-2012 07:44 PM

Quote:

Originally Posted by DragonByte Tech (Post 2344570)
Sorry about that. There is an error in the code.

I'll fix it in the next release, if you want to manually fix it for now.

Open dbtech/gallery/includes/class_core.php

On about line 1295 Find

PHP Code:

        if ($type == 'link_bbcode')
        {
            
$file '[url=' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . '?do=view_image&amp;id=' $id '&amp;gal=' $gal '][img]' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . 'do=view_image&amp;id=' $id '&amp;gal=' $gal '&type=thumb[/img] [/url]';
        }

        if (
$type == 'img_bbcode')
        {
            
$file '[img]' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . '?do=view_image&amp;id=' $id '&amp;gal=' $gal '[/img]';
        } 

Replace with

PHP Code:

        if ($type == 'link_bbcode')
        {
            
$file '[url=' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . '?do=view_image&amp;id=' $id '&amp;gal=' $gal '][img]https://vborg.vbsupport.ru/[/img] [/url]';
        }

        if (
$type == 'img_bbcode')
        {
            
$file '[img]' self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . '?do=gallery_image&amp;id=' $id '&amp;gal=' $gal '&type=full[/img]';
        } 

That should display the correct link with a thumb and full image bbcode.

Dylan

No need to be sorry, I'm sure there's some work that has gone into this. I was following your link to your main site, but it takes me to a blank page?

Was interested in the branding free option, and also the watermark facility.

Dave

kether1 07-02-2012 07:46 PM

Quote:

Originally Posted by DragonByte Tech (Post 2344096)
It's like any other remote image, it'll show a red x. If I retained all images the size on the server could get quite large.

Dylan

Thanks for the response. I didn't want to retain all images, but did want to keep any that had been used inside a thread. This way we would not have that 'missing image' notification or the dreaded red "x".

I was hoping there was a way that when a member deleted an image in the gallery that was being used inside a thread or post, that that image would remain - or perhaps not be deletable in the gallery once it is used in the thread. Just an idea that I think would be useful.

Thanks for your work on this regardless.

Kether

DragonByte Tech 07-02-2012 08:37 PM

Quote:

Originally Posted by tricksodave (Post 2344586)
No need to be sorry, I'm sure there's some work that has gone into this. I was following your link to your main site, but it takes me to a blank page?

Was interested in the branding free option, and also the watermark facility.

Dave

I just tried it and the link works for me?

DragonByte Tech 07-02-2012 08:44 PM

Quote:

Originally Posted by kether1 (Post 2344588)
Thanks for the response. I didn't want to retain all images, but did want to keep any that had been used inside a thread. This way we would not have that 'missing image' notification or the dreaded red "x".

I was hoping there was a way that when a member deleted an image in the gallery that was being used inside a thread or post, that that image would remain - or perhaps not be deletable in the gallery once it is used in the thread. Just an idea that I think would be useful.

Thanks for your work on this regardless.

Kether

I completely understand. The red X is ugly :)
The main problem I see is when a user goes to delete an image, I have to check if the full image or thumb is used in a post, which means doing a scan on a field in the post table that isn't indexed, which can be very bad on a forum with a lot of posts.

Dylan

kether1 07-02-2012 09:11 PM

Quote:

Originally Posted by DragonByte Tech (Post 2344598)
I completely understand. The red X is ugly :)
The main problem I see is when a user goes to delete an image, I have to check if the full image or thumb is used in a post, which means doing a scan on a field in the post table that isn't indexed, which can be very bad on a forum with a lot of posts.

Dylan

I understand. This made me think of two other possibilities:

1. Is there a way to make an image that is stored in the gallery and that is put in a post - use the attachment feature from the forum software? (I'm not really sure I'm explaining that correctly.) I mean, is there some way to cause the image to be stored as an attachment - if it is put into a post - and from the gallery? I currently have my forum set up so that members cannot delete attachments. After 48 hours, they can no longer edit a post either. If the inserted image code somehow triggered the attachment manager for VB, then the image would be safe even if the user deleted the image in their personal gallery. (I'm just dreaming here as I do not know how that system works and it may be the same issue as you described before.) :)

2. Alternatively, I wonder if after 'X' number of days of being posted into an album, if all images in that album can become non-deletable? I suppose that would do the trick, but not really what one looks for in a gallery setup I guess. haha.. I'm just trying to find away to offer a gallery to the members that will not result in broken threads/posts down the line.

Thanks for your time, Dylan.

Kether

bolobala 07-03-2012 04:24 AM

Quote:

Originally Posted by FF|Skyrider (Post 2344434)
Uploaded an image, getting "MISSING IMAGE" with a large missing image picture.. what's this?

And how exactly do I remove images? When I click "delete" under "edit image" the black box floats around the screen and disappears from view.

Further more, the comment (reply) box is really messed up.
http://tf2lottery.com/images/Dragonb...lery-issue.jpg

(Check the bottom).. I've zoomed out to fit the image, but in reality the top bar goes through the smilies.

I had the same mistake with you but when I set size for thumbnail and photo size, it's ok now :)
FOr the comment box, change to Vb Style it will be fix with your board.


All times are GMT. The time now is 05:52 AM.

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.03055 seconds
  • Memory Usage 1,808KB
  • 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
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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