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 09-13-2013 05:33 AM

Quote:

Originally Posted by Rich (Post 2444913)
Thanks Dylan, I appreciate it. I have another suggestion that I was surprised wasn't already there. Could we amend the navbar to include a link to the homepage?

Example: My Homepage > Gallery > whatever gallery page

I currently have to click my logo to get out of the gallery. (I don't use the default vbulletin navbar on the site I am creating). Is this feasible?

Pretty easy to do.
Open /dbtgallery.php

Find
PHP Code:

$navbits = array();
$navbits[DBTECH_GALLERY::fetch_file_path(0'gallery_front'$gal)] = $vbphrase['dbtech_gallery_title']; 

replace with

PHP Code:

$navbits = array();
$navbits[fetch_seo_url('forumhome', array())] = $vbphrase['forum'];
$navbits[DBTECH_GALLERY::fetch_file_path(0'gallery_front'$gal)] = $vbphrase['dbtech_gallery_title']; 

Dylan

acmalin927 09-14-2013 02:22 AM

receiving this error... any help is appreciated

Warning: getimagesize([path]/dbtech/gallery/images/upload/1/1/thumb/9_1379124143.png) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170

acmalin927 09-16-2013 08:59 PM

any help? THANKS ;)

DragonByte Tech 09-17-2013 06:41 AM

Quote:

Originally Posted by acmalin927 (Post 2445483)
receiving this error... any help is appreciated


Warning: getimagesize([path]/dbtech/gallery/images/upload/1/1/thumb/9_1379124143.png) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170

Quote:

Originally Posted by acmalin927 (Post 2446050)
any help? THANKS ;)

Sorry,
Is this on just one image or is this happening on all of them?
If it's just one, it looks like you have an image that didn't upload correctly. Inside of the ACP there is an option to clean up the database.
ACP->Gallery->Maintenance->Remove Orphan DB Entries

Dylan

acmalin927 09-17-2013 01:30 PM

Quote:

Originally Posted by DragonByte Tech (Post 2446132)
Sorry,
Is this on just one image or is this happening on all of them?
If it's just one, it looks like you have an image that didn't upload correctly. Inside of the ACP there is an option to clean up the database.
ACP->Gallery->Maintenance->Remove Orphan DB Entries

Dylan

unfortunately it happens on random images and not always the same image THIS appears at the top of the HOME page only currently (there are always 5 error messages, some different some repeating (as you can see it shows the one error message 3 times for the same image) but always different)


Warning: getimagesize([path]/dbtech/gallery/images/upload/1/1/2/thumb/33_1374068048.jpg) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170

Warning: getimagesize([path]/dbtech/gallery/images/upload/1/8/thumb/25_1374002045.jpg) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170

Warning: getimagesize([path]/dbtech/gallery/images/upload/1/8/thumb/60_1379356921.jpg) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170

Warning: getimagesize([path]/dbtech/gallery/images/upload/1/8/thumb/63_1379356921.jpg) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170

Warning: getimagesize([path]/dbtech/gallery/images/upload/1/8/thumb/59_1379356921.jpg) [function.getimagesize]: failed to open stream: No such file or directory in [path]/dbtech/gallery/hooks/forumhome_complete.php on line 170


(the RANDOM IMAGE GALLERY shows, but with a few broken images)...... the FORUMS page shows the gallery with broken images, but NOT the error messages. Some times the images show and sometimes they do not. But again it is always different images and they are not always broken

I attempted the above suggestion (ACP->Gallery->Maintenance->Remove Orphan DB Entries) it made no change

Menno11 09-18-2013 06:41 AM

Hi,

great mod.thx

Bentmoron 10-01-2013 07:42 AM

Hi there,
I'm running vBulletin 4.2.1 and trying to get DBTech Gallery 1.2.9 to work. It install fine, but when I go to upload an image, I get the following error:
Code:

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 221228/221228 is not allowed to access [path]/dbtech/gallery/images/upload/1/1 owned by uid/gid 25000/25000 in [path]/dbtech/gallery/includes/class_core.php on line 1203

Warning: copy() [function.copy]: Unable to access dbtech/gallery/images/upload/1/1/thumb/index.html in [path]/dbtech/gallery/includes/class_core.php on line 1220

Warning: copy(dbtech/gallery/images/upload/1/1/thumb/index.html) [function.copy]: failed to open stream: No such file or directory in [path]/dbtech/gallery/includes/class_core.php on line 1220

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 221228/221228 is not allowed to access [path]/dbtech/gallery/images/upload/1/1 owned by uid/gid 25000/25000 in [path]/dbtech/gallery/includes/class_core.php on line 1228

Warning: copy() [function.copy]: Unable to access dbtech/gallery/images/upload/1/1/wm/index.html in [path]/dbtech/gallery/includes/class_core.php on line 1245

Warning: copy(dbtech/gallery/images/upload/1/1/wm/index.html) [function.copy]: failed to open stream: No such file or directory in [path]/dbtech/gallery/includes/class_core.php on line 1245

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 221228/221228 is not allowed to access [path]/dbtech/gallery/images/upload/1/1 owned by uid/gid 25000/25000 in [path]/dbtech/gallery/includes/class_core.php on line 1253

Warning: copy() [function.copy]: Unable to access dbtech/gallery/images/upload/1/1/full/index.html in [path]/dbtech/gallery/includes/class_core.php on line 1270

Warning: copy(dbtech/gallery/images/upload/1/1/full/index.html) [function.copy]: failed to open stream: No such file or directory in [path]/dbtech/gallery/includes/class_core.php on line 1270

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 221228/221228 is not allowed to access [path]/dbtech/gallery/images/upload/1/1 owned by uid/gid 25000/25000 in [path]/dbtech/gallery/includes/class_core.php on line 1203

Warning: copy() [function.copy]: Unable to access dbtech/gallery/images/upload/1/1/thumb/index.html in [path]/dbtech/gallery/includes/class_core.php on line 1220

Warning: copy(dbtech/gallery/images/upload/1/1/thumb/index.html) [function.copy]: failed to open stream: No such file or directory in [path]/dbtech/gallery/includes/class_core.php on line 1220

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 221228/221228 is not allowed to access [path]/dbtech/gallery/images/upload/1/1 owned by uid/gid 25000/25000 in [path]/dbtech/gallery/includes/class_core.php on line 1228

Warning: copy() [function.copy]: Unable to access dbtech/gallery/images/upload/1/1/wm/index.html in [path]/dbtech/gallery/includes/class_core.php on line 1245

Warning: copy(dbtech/gallery/images/upload/1/1/wm/index.html) [function.copy]: failed to open stream: No such file or directory in [path]/dbtech/gallery/includes/class_core.php on line 1245

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is 221228/221228 is not allowed to access [path]/dbtech/gallery/images/upload/1/1 owned by uid/gid 25000/25000 in [path]/dbtech/gallery/includes/class_core.php on line 1253

Warning: copy() [function.copy]: Unable to access dbtech/gallery/images/upload/1/1/full/index.html in [path]/dbtech/gallery/includes/class_core.php on line 1270

Warning: copy(dbtech/gallery/images/upload/1/1/full/index.html) [function.copy]: failed to open stream: No such file or directory in [path]/dbtech/gallery/includes/class_core.php on line 1270

Warning: imagejpeg() [function.imagejpeg]: Unable to access [path]/dbtech/gallery/images/upload/1/1/thumb/14_1380616891.jpg in [path]/dbtech/gallery/includes/class_core.php on line 936

Warning: imagejpeg() [function.imagejpeg]: Invalid filename in [path]/dbtech/gallery/includes/class_core.php on line 936

Warning: imagejpeg() [function.imagejpeg]: Unable to access [path]/dbtech/gallery/images/upload/1/1/full/14_1380616891.jpg in [path]/dbtech/gallery/includes/class_core.php on line 936

Warning: imagejpeg() [function.imagejpeg]: Invalid filename in [path]/dbtech/gallery/includes/class_core.php on line 936

Warning: filesize() [function.filesize]: Unable to access [path]/dbtech/gallery/images/upload/1/1/full/14_1380616891.jpg in [path]/dbtech/gallery/includes/class_core.php on line 815

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

Warning: filesize() [function.filesize]: Unable to access [path]/dbtech/gallery/images/upload/1/1/thumb/14_1380616891.jpg in [path]/dbtech/gallery/includes/class_core.php on line 816

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

I can't turn Safe Mode off; is there a way to fix this?

SLY LS1 10-01-2013 03:45 PM

Quote:

Originally Posted by acmalin927 (Post 2436938)
any way to remove the

Camera Make
Camera Model
Aperture
ISO
Image Date


from the edit section?

I simply don't need it for the type of photos my members update...

THANKS

I would also like to remove this information?

It would be good if there was an option to display this or not to display this, as a lot of forums people don't really care about that info.

Cheers

SLY LS1 10-01-2013 04:29 PM

Quote:

Originally Posted by acmalin927 (Post 2436938)
any way to remove the

Camera Make
Camera Model
Aperture
ISO
Image Date


from the edit section?

I simply don't need it for the type of photos my members update...

THANKS

Found it, to remove this info from the display

go to file /dbtech/gallery/modules/gallery/actions/view_image.php

From Approx Line Number 374 to 406 and remove the code below

Cheers

Code:

//Get Image exif data
$cam_info_array = unserialize($image_data['custom_data']);

if ($cam_info_array['Make'] != '')
{
        $camera_info['make']        = $cam_info_array['Make'];
}

if ($cam_info_array['Model'] != '')
{
        $camera_info['model']        = $cam_info_array['Model'];
}

if ($cam_info_array['aperture'] != '')
{
        $camera_info['aperture']        = $cam_info_array['aperture'];
}

if ($cam_info_array['ISO'] != '')
{
        $camera_info['iso']                = $cam_info_array['ISO'];
}

if ($cam_info_array['DateTime'] != '')
{
        $unix_date = strtotime($cam_info_array['DateTime']);
        $camera_info['cam_date']        = vbdate($vbulletin->options['dateformat'], $unix_date, true) . ' ' . vbdate($vbulletin->options['timeformat'], $unix_date, true);
}

$templater = vB_Template::create('dbtech_gallery_view_image_cam_info');
        $templater->register('camera_info'                , $camera_info);
        $templater->register('template_hook'        , $template_hook);
$cam_info_data = $templater->render();


crazyboy1661 10-03-2013 11:41 AM

thanks DragonByte Tech. I have installed this mod on my site. The concept is great. But It doesn't suits my requirements.

So, I decided to uninstall it. But when I tried to delete the files from my root folder, I can't enter either into admin panel or open the site. Just getting a blank pages. After restored all the deleted files to the root again, then my site is working.

Pls guide me how to uninstall it.


All times are GMT. The time now is 03:34 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.01813 seconds
  • Memory Usage 1,798KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)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