Question DBTech Gallery Editor Image Link

Status
Not open for further replies.

chloe101

New member
Hi, I have the Editor Image Link enabled on my dev forum for your excellent mod. When I insert an image from the gallery into a thread or a post, it inserts the thumbnail (&type=thumb) which I don't want. I'd like it to insert the full image (&type=full) instead.

Can you please tell me what I should change to make that happen? Or at least point me in the right direction? I hope this isn't asking too much. As soon as our new forum makes a little money, we plan to upgrade to pro. Thanks again for another excellent mod!
 
I wonder if this is related to another issue I'm having. I can't get the "Enlarge" button to work. Under the image attachment options, I've set the limits very generously. All my uploaded large images are getting scaled down in the gallery and the Enlarge button appears but clicking it does nothing. I googled to see what was going on in other forums using this mod and saw that the enlarge button works so it's obviously something on my end.

Also when the images are inserted into the threads/posts using the direct BBCode image link, they're correctly resized to fit the post and when you click on the image it enlarges beautifully. But when a thumbnail is inserted using the image link editor, when you click on it nothing happens.

I tried setting the View Image Max Width in the stylevars and setting a width in my profile but that made no difference.

I wonder if these 2 issues are possibly related? How can I fix them?

There's also one other minor issue. When editing an image, if I click 'delete', the delete dialog is off the page. This happens in the default style also. GallCapture.JPG

Thanks for your assistance helping me with your great product
 
Can you check your browser's error console for any JS errors when you click the Enlarge button?
 
Can you check your browser's error console for any JS errors when you click the Enlarge button?

Hi Fillip H., There's nothing, nothing at all when I click the enlarge button on an image in the gallery but here are the errors I have when I load an image in the gallery:


dbtgallery.php?do=view_image&id=44&gal=gallery:113
Uncaught TypeError: $(...).live is not a function at HTMLDocument.<anonymous> (dbtgallery.php?do=view_image&id=44&gal=gallery:113) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.J (jquery.min.js:2)

(anonymous)@dbtgallery.php?do=view_image&id=44&gal=gallery:113
j@jquery.min.js:2
fireWith@jquery.min.js:2
ready@jquery.min.js:2
J@jquery.min.js:2
script.js:8
Uncaught TypeError: Cannot read property 'offsetHeight' of null at equalHeight (script.js:8)
equalHeight@script.js:8

dbtgallery.php?do=view_image&id=44&gal=gallery:84
Uncaught TypeError: $(...).nivoSlider is not a function at dbtgallery.php?do=view_image&id=44&gal=gallery:84 at dispatch (jquery.min.js:3) at r.handle (jquery.min.js:3)

(anonymous)@dbtgallery.php?do=view_image&id=44&gal=gallery:84
dispatch@jquery.min.js:3
r.handle@jquery.min.js:3

 
That will happen if a very old version of jQuery is running on your page. Can you open the HTML source and find any references to jquery older than 1.7.1, then change them in the templates?
 
That will happen if a very old version of jQuery is running on your page. Can you open the HTML source and find any references to jquery older than 1.7.1, then change them in the templates?

Hi Fillip H., Thanks for the quick reply. I may be looking in the wrong place, or at the wrong thing because this is a bit over my head but when I view source, I see jQuery v1.11.1 in the template headinclude. When I click on the jquery line https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js it shows it's v1.11.1

<!-- BEGIN TEMPLATE: headinclude -->

(-snip-)

<script src="https://www.dragonbyte-tech.com/images/tf_ideal/script.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build/yuiloader-dom-event/yuiloader-dom-event.js"></script>

<script type="text/javascript">
<!--
if (typeof YAHOO === 'undefined') // Load ALL YUI Local
{
document.write('<script type="text/javascript" src="clientscript/yui/yuiloader-dom-event/yuiloader-dom-event.js?v=424"><\/script>');
document.write('<script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v=424"><\/script>');
var yuipath = 'clientscript/yui';
var yuicombopath = '';
var remoteyui = false;
}
else // Load Rest of YUI remotely (where possible)
{
var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build';
var yuicombopath = '';
var remoteyui = true;
if (!yuicombopath)
{
document.write('<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build/connection/connection-min.js"><\/script>');
}
}
var SESSIONURL = "";
var SECURITYTOKEN = "1498073660-e555153d8f2a330a316830489387026690d41ed0";
var IMGDIR_MISC = "https://www.dragonbyte-tech.com/images/tf_ideal/blue/misc";
var IMGDIR_BUTTON = "https://www.dragonbyte-tech.com/images/tf_ideal/blue/buttons";
var vb_disable_ajax = parseInt("0", 10);
var SIMPLEVERSION = "424";
var BBURL = "https://xxxxxxx.com";
var LOGGEDIN = 1 > 0 ? true : false;
var THIS_SCRIPT = "dbtech_gallery";
var RELPATH = "dbtgallery.php?do=view_image&id=47&gal=gallery";
var PATHS = {
forum : "",
cms : "",
blog : ""
};
var AJAXBASEURL = "https://xxxxxxxx.com/";
// -->
</script>
<script type="text/javascript" src="https://xxxxxx.com/clientscript/vbulletin-core.js?v=424"></script>

EDITING POST TO ADD THAT
if I switch to the VBulletin default skin, I see no mention at all of jquery in the html page source.
 
Last edited:
That will happen if a very old version of jQuery is running on your page. Can you open the HTML source and find any references to jquery older than 1.7.1, then change them in the templates?

Hi Fillip H.,

I am obviously not understanding what you asked because I went to Viewing Image: 4-26-2012 Sunset Reds and Jack - Gulf Shores Pier Fishing Forum where the enlarge option works and when viewing the page source, I didn't see anything about jquery there.

Can you explain in greater detail for what and exactly where I'm supposed to look? Sorry for all the trouble/
 
Can you link me to an image that doesn't enlarge?

Yes... I sent you the information to my dev site via PM. It's also installed on my live site (same problem) but I haven't opened the gallery to our members yet. And thank you
 
Last edited:
This is because someone has edited the headinclude template and added the nivoslider script, and because the skin hasn't been installed correctly.

Please modify the headinclude template on all your skins and find:

Code:
<script type="text/javascript">
    $(window).load(function() {
        $("#slider").nivoSlider({
        captionOpacity: 1.0,
        pauseTime: 10000
        });
    });
</script>

Replace with

Code:
<vb:comment>
<script type="text/javascript">
    $(window).load(function() {
        $("#slider").nivoSlider({
        captionOpacity: 1.0,
        pauseTime: 10000
        });
    });
</script>
</vb:comment>

Then, find

Code:
<script type="text/javascript">
$(document).ready(function() {

Add above

Code:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

Then, find

Code:
<script src="images/tf_ideal/script.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>

Replace with

Code:
<vb:comment>
<script src="images/tf_ideal/script.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
</vb:comment>

Then, disable the "Resize Images" product, as it is broken.

That will remove the JavaScript errors from the page.

If it still doesn't work for you, please try this in a default (unmodified) skin and disable all other plugins & products.
 
This is because someone has edited the headinclude template and added the nivoslider script, and because the skin hasn't been installed correctly.

Hi Fillip H.,

Thank you for taking the time but it's sadly still not working. I saw you made all the template changes in the main style (99) so I used that to test it. I disabled all the plugins and tried in the default vbulletin style and it's still not working for me. I've tried in Chrome and Firefox on 2 different computers :(

I'm totally totally stumped. Does it work for you on my dev site?
 
Sorry I completely forgot about this, I will take a look as soon as I have time :)
 
I'm looking in my inbox and I can't seem to find the PM with the FTP credentials, can you please re-send them?
 
Sorry, I'm looking at the PM and it's identical to what I had before, but there's no FTP details in there.

I need the FTP Host, the FTP user and the FTP password. I can't use any online control panels to manage the files.
 
Status
Not open for further replies.

Legacy DragonByte Gallery

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
862
Customer rating
0.00 star(s) 0 ratings
Back
Top