Quote:
Originally Posted by tricksodave
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&id=' . $id . '&gal=' . $gal . '][img]' . self::$vbulletin->options['dbtech_gallery_urlpath_text'] . self::$vbulletin->options['dbtech_gallery_filename_text'] . 'do=view_image&id=' . $id . '&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&id=' . $id . '&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