vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Image Hosting (https://vborg.vbsupport.ru/showthread.php?t=75293)

loneranger 03-02-2005 02:43 PM

ok i will update this version and get all problems sorted! thanks everyone for you help any suggestions on improvements

MiskaTorn 03-02-2005 02:50 PM

Quote:

Originally Posted by loneranger
ok i will update this version and get all problems sorted! thanks everyone for you help any suggestions on improvements

I know I am a pain to you, but I am just trying to help out.

When I view images, it doesn't show the images.

It is pointing to my

/bbb/hosted_images/ directory when it should be pointing to just hosted_images/


[*IMG*]http://www.doyouwantmybum.com/bbb/bbb/hosted_images/1.gif[*/IMG*]

MiskaTorn 03-02-2005 02:56 PM

In the admincp

The web address of upload images
Set this to the directory where images are stored eg. /forum/hosted_images/ (remember the / at the end)

Should be changed to

The web address of upload images
Set this to the directory where images are stored eg. /hosted_images/ (remember the / at the end)

Also where the image is called to show in the image viewr it should have the full path to the image as it's not showing up now.


One more thing, you link at the bottom is not correct to goto your website.
http://www.yahoo.com/www.sig....ect

loneranger 03-02-2005 02:58 PM

i have now updated the download so you can download and update your systems enjoy and let me know of any suggestions on updates

loneranger 03-02-2005 03:01 PM

yes just noticed that is a problem with the phrase that is also sorted in the new files

MiskaTorn 03-02-2005 03:57 PM

Now this script works 100% for me, here is a list of changes I made.

Ok, I have made some more changes to make this work correctly.

This will make the install pull the template file correctly
In install\hacks\image_hosting\12\index.php line 93 and 109
Code:

require_once('./template_mods.php');
to
Code:

require_once('./templates.php');
This will display the image correctly when the viewer views the image they uploaded.
In install\hacks\image_hosting\12\templates.php line 139
Code:

  <td class="alt1" colspan="2" valign="middle" align="center"><img src="$images[i_image]" width="" height="" alt="$images[i_name]" /></td>
to
Code:

<td class="alt1" colspan="2" valign="middle" align="center"><img src="$images[i_image]" alt="$images[i_name]" /></td>
This will display the correct example for the path to enter.
In install\hacks\image_hosting\12\settings.php line 17
Code:

$setting['host_upload_dir']['descphrase'] = 'The full local path to the upload directory eg. home/user/www/forum/hosted_images/ DO NOT FORGET THE TRAILING SLASH';
to
Code:

$setting['host_upload_dir']['descphrase'] = 'The full local path to the upload directory eg. /home/user/www/forum/hosted_images/ DO NOT FORGET THE TRAILING SLASH';
Also on line 26 change
Code:

$setting['host_url']['descphrase'] = 'Set this to the directory where images are stored eg. /forum/hosted_images/ (remember the / at the end)';
to
Code:

$setting['host_url']['descphrase'] = 'Set this to the directory where images are stored eg. /hosted_images/ (remember the / at the end)';
This will entire the entire URL to the image into the database.
In image_host.php change line 136
Code:

$imgurl = $vboptions['host_url'] . $_FILES['img']['name'];
to
Code:

$imgurl = $vboptions['bburl'] . $vboptions['host_url'] . $_FILES['img']['name'];

pxtek 03-02-2005 10:04 PM

when i upload images are not showing in the gallery?

MiskaTorn 03-03-2005 12:21 PM

Quote:

Originally Posted by pxtek
when i upload images are not showing in the gallery?

Follow my directione above, it will change the paths when the images get uploaded that go in the database and display them correctly.

Xtrato 03-04-2005 12:01 AM

hm.. i've tried most of what has been said, yet i seem to be getting the same error when clicking done after the templates...

PHP Code:

Warningmain(./upgrade_queries.php): failed to open streamNo such file or directory in /index.php on line 49

Fatal error
main(): Failed opening required './upgrade_queries.php' (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/strato/public_html/main/forums/install/hacks/image_hosting/12/index.php on line 49 


loneranger 03-04-2005 04:49 AM

try uninstalling imagehosting then do a full install unless you have got alot of images hosted then i will have to send you the upgrade queries php file


All times are GMT. The time now is 10:48 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.01662 seconds
  • Memory Usage 1,749KB
  • 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
  • (10)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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