vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE vb2.0+] vB Photo Upload (https://vborg.vbsupport.ru/showthread.php?t=27475)

SirSteve 11-27-2001 04:17 AM

I got the same exact thing so I e-mailed Brad and he said he didn't know what was wrong... sigh........

Quote:

Originally posted by grumpy
Thanks for the addon update :) I installed it and it actually does work. However, I'm getting an error printing across the top of the forum...

Warning: getimagesize: Unable to open 'http://www.thingsarentwhattheyseem.com/vb/images/uploaded/1_photo.jpg' for reading. in /home/thingsar/public_html/vb/admin/functions.php on line 212


(btw, this forum is not open to the public, it's my test forum)


When I click the camera icon, I get the popup image. But it's very small and I have to resize it to view it well.

Any idea what is causing the error message?

thanks :)


grumpy 11-27-2001 04:22 AM

On a whim, I just deleted $imagehw = GetImageSize($thephoto); from the functions.php (part of the hack) and reloaded it, and it removed the error, and the popup still works :)

SirSteve 11-27-2001 04:46 AM

Quote:

Originally posted by grumpy
On a whim, I just deleted $imagehw = GetImageSize($thephoto); from the functions.php (part of the hack) and reloaded it, and it removed the error, and the popup still works :)
hey! That did do it! Thanks!

SirSteve 11-27-2001 04:46 AM

I get this when trying to view the install instructions:

Changes to admin/index.php:
find:

<center><a href="index.php?s=<?php echo $session[sessionhash]; ?>&action=home"> Control Panel Home </a></center>
<table width="100%" border="0" cellspacing="0" cellpadding="5" id="navtable">

<tr><td><hr></td></tr>

Immediately below the last line from above, paste the following:
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<br>
<b>Fatal error</b>: Call to unsupported or undefined function makenavselect() in <b>/usr/www/users/gandalf/starwarsguide.com/vbportal/forums/filechanges.html</b> on line <b>51</b><br>

and that's it. My guess is because of the new changes in 2.2.0...

ToraTora! 11-27-2001 02:49 PM

$imagehw = GetImageSize($thephoto);

that line and two other lines, are the one that gets the size of the image. With that it is what makes the popup window resize to fit the image, instead of being a default size.

and SirSteve I don't know what you did on your last post.. cause you should have the filechanges file on your hard drive to look at, not on your website. Cause you should only need to look at that once, and why are you looking at that.. for the postbit addon.

grumpy 11-27-2001 03:00 PM

It wouldn't get my image size though, just the error message. Should the code be different to achieve this?

Or could it be a permissions error since it says it cant 'read' it? Just guessing at that. The photos loaded set themselves at 600. I dont have a clue if this matters.

SirSteve 11-27-2001 04:37 PM

Quote:

Originally posted by ToraTora!
$imagehw = GetImageSize($thephoto);

that line and two other lines, are the one that gets the size of the image. With that it is what makes the popup window resize to fit the image, instead of being a default size.

and SirSteve I don't know what you did on your last post.. cause you should have the filechanges file on your hard drive to look at, not on your website. Cause you should only need to look at that once, and why are you looking at that.. for the postbit addon.

It's not for the postbit addon but vb Photo Upload (from the beginning). I uploaded vbpinstall and html file, skipped the table creation and that's where the errors are. I need to re-install this hack.

grumpy 11-28-2001 12:41 AM

Regarding the $imagehw = GetImageSize($thephoto); in the postbit-addon hack, I put it back in to try to get it to work because the thumbnails sucked.

When I originally loaded this hack, I received the error at the top of the page:

Warning: getimagesize: Unable to open 'http://www.thingsarentwhattheyseem.com/vb/images/uploaded/1_photo.jpg' for reading. in /home/thingsar/public_html/vb/admin/functions.php on line 212



Then it worked for the day (not sure why), I showed it off to friends. But just now, it's doing it again, and I haven't changed it anymore.

I found an interesting site that examined why GetImageSize doesn't always work. There are several workarounds but I don't know how to make them work here, if they even will in this situation. Maybe someone that knows what they are doing could take a look when you get a chance?

http://www.php.net/manual/en/function.getimagesize.php

SirSteve 11-28-2001 03:24 AM

Just make your pop-up window the same size as your max allowed image size...

grumpy 11-28-2001 04:00 AM

Well thank you, SirSteve :) I'm well known for making this much more complicated than they have to be. I have altered the height/width accordingly and now it's all safe to release, thanks :)


All times are GMT. The time now is 03:16 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.01603 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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