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


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.01562 seconds
  • Memory Usage 1,841KB
  • 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_code_printable
  • (8)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
  • (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