Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Image Hosting Details »»
Image Hosting
Version: 1.20b, by loneranger loneranger is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 01-27-2005 Last Update: 03-01-2005 Installs: 37
DB Changes
 
No support by the author.

Image Hosting v1.20b

What Does it Do?
This script will allow your users to upload images onto your server and use them in forums and other sites. You can limit how many images a person can upload and how big the files can be. There is also a watermark feature which will allow you to watermark upload images with any text you want.

Features
- Admin cp settings
- Limit Filetypes
- Limit File size
- Limit What usergroups can upload
- Add Watermark to JPEG's (Removed )
- View uploaded images
- View Forum image code(NEW!!!)
- Different limits for different usergroups(NEW!!!!)
- Improved Layout and design
- Installer
- More....

Installer
I have used the Hack Installer System to make it easier for the end use to upload to their site

Live Demos
1.Sig-Mania
2. Pm me with your site

Support
I will fully support thios project and will fix and bugs or gliches in the script. I also offer a installation process for anyone who needs it.

Donations
This project takes alot of my time and so will the updates to come i would appricate any donation thought paypal email:martinj.porter@btinternet.com, Thanks

Future Features
- Moderate uploads
- Different Limits for users and usergroups(Compeleted)
- User Gallery for uploaded images
- Stats(in progress)

Bugs Fixed
1. Templates should be to the default vbstyle
2. Can't get image size fixed (hopefully)
3. blank screen when uploading an image

please visit www.sig-mania.co.uk
Supported on vbulletin version 3.0.7
Hope you enjoy
thanks
Loneranger

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 03-01-2005, 07:25 PM
loneranger loneranger is offline
 
Join Date: Dec 2004
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you all tried a clean install removing all the phrases

what version of vbulletin are you using plz try a 3.07 to keep the same as my server as can't find a fault
Reply With Quote
  #53  
Old 03-01-2005, 08:48 PM
MiskaTorn MiskaTorn is offline
 
Join Date: Aug 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by loneranger
have you all tried a clean install removing all the phrases

what version of vbulletin are you using plz try a 3.07 to keep the same as my server as can't find a fault
Yeah I used 3.0.7.

Also I had a lot of troubles during the install, also during the uninstall, the file edits did not work. So I manually uninstalled everything the reinstalled it manually. I opened the files and figured out the queries, I am going to try to do another clean install and see if I can come up with any solutions, I will let you know.
Reply With Quote
  #54  
Old 03-01-2005, 09:05 PM
MiskaTorn MiskaTorn is offline
 
Join Date: Aug 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You missed uninstall groups in your uninstall query.

Also, I redownloaded and uploaded, and installed...I still run into the same exact problem. User groups are set correctly too.
Reply With Quote
  #55  
Old 03-01-2005, 09:12 PM
MiskaTorn MiskaTorn is offline
 
Join Date: Aug 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found an error.

In index.php you have it looking for template_mods.php instead of template.php

Change: install\hacks\image_hosting\12\index.php
Code:
if ($_REQUEST['do'] == "genreadme") {
	if ($_REQUEST['upgrade'] != 1) {
		require_once('./file_mods.php');
		require_once('./template_mods.php');
	} else {
		require_once('./upgrade_mods.php');
	}
}
To
Code:
if ($_REQUEST['do'] == "genreadme") {
	if ($_REQUEST['upgrade'] != 1) {
		require_once('./file_mods.php');
		require_once('./templates.php');
	} else {
		require_once('./upgrade_mods.php');
	}
}
Also for correct unsinstall
Change: install\hacks\image_hosting\12\uninstall_queries.p hp
Code:
<?php

// Queries

$query['uninstall'][] = 'ALTER TABLE '.TABLE_PREFIX.'language DROP phrasegroup_imghost';

$query['uninstall'][] = 'DELETE FROM '.TABLE_PREFIX.'phrasetype WHERE phrasetypeid=956';

$query['uninstall'][] = 'DROP TABLE IF EXISTS '.TABLE_PREFIX.'hosted';

?>
To
Code:
<?php

// Queries

$query['uninstall'][] = 'ALTER TABLE '.TABLE_PREFIX.'language DROP phrasegroup_imghost';

$query['uninstall'][] = 'DELETE FROM '.TABLE_PREFIX.'phrasetype WHERE phrasetypeid=956';

$query['uninstall'][] = 'DROP TABLE IF EXISTS '.TABLE_PREFIX.'hosted';

$query['uninstall'][] = 'DROP TABLE IF EXISTS '.TABLE_PREFIX.'groups';

?>
Also in the filemod it has you look for though if you make this file mod it will pull a parse error because of the $ sign in there.
'subscription' => vbphrase['group_paid_subscriptions'],

which should be
'subscription' => $vbphrase['group_paid_subscriptions'],
Reply With Quote
  #56  
Old 03-02-2005, 01:28 AM
bamaster bamaster is offline
 
Join Date: Dec 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too am getting an error installing this.

It happens after I click the DONE button on the page that "Rebuild Style Information".

Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /path/forum/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/share/pear') in /path/forum/includes/db_mysql.php on line 389

I'm running 3.0.7
RedHat Linux 2.4.21-15.0.3.ELsmp
MySQL 3.23.58
GD 2.0.12

Hacks:
v3Articles
vBadvanced
Reply With Quote
  #57  
Old 03-02-2005, 04:53 AM
loneranger loneranger is offline
 
Join Date: Dec 2004
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i have noticed there is some errors with the installation process i will re-write this part and send you all the files hopefully i will be able to solve some problems
Reply With Quote
  #58  
Old 03-02-2005, 01:44 PM
MiskaTorn MiskaTorn is offline
 
Join Date: Aug 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could be wrong, but in image_host.php on line 144 aren't you missing a close bracket?
Reply With Quote
  #59  
Old 03-02-2005, 02:07 PM
loneranger loneranger is offline
 
Join Date: Dec 2004
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

right think i have sorted it if a couple of you can test it and let me know thanks

this file should fix the problem with the blank screen when attempting to upload images

try this now
Reply With Quote
  #60  
Old 03-02-2005, 02:11 PM
MiskaTorn MiskaTorn is offline
 
Join Date: Aug 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Almost

Warning: getimagesize(home/doyouwa/public_html/bbb/hosted_images/1.gif): failed to open stream: No such file or directory in /image_host.php on line 196
unable to get image size

Also I think you need to remove the / in the $dir/ in that copy
Code:
//upload image if all correct
	@copy($_FILES['img'][tmp_name], "$dir/".$_FILES['img']['name']) ;

//check the image size delete if too big and print error
	if(!$size = getimagesize($dir .$host_filename)) die('unable to get image size');
Reply With Quote
  #61  
Old 03-02-2005, 02:39 PM
MiskaTorn MiskaTorn is offline
 
Join Date: Aug 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,
My uploading is now working.

After doing the edit above, removing the / from the $dir/

In the admin panel where it has

Upload Directory
The full local path to the upload directory eg. home/user/www/forum/hosted_images

Change that to
The full local path to the upload directory eg. /home/user/www/forum/hosted_images/
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04445 seconds
  • Memory Usage 2,304KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete