PDA

View Full Version : Image Hosting


loneranger
01-27-2005, 10:00 PM
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 (http://www.sig-mania.co.uk/upload_image.php)
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

loneranger
01-28-2005, 11:05 AM
Here are some screenshots

noppid
01-28-2005, 11:42 AM
You really should put the credits back in your watermark code. :)


/*
* phpWatermark 0.3 (c) 2003 Mario Witte <mario.witte@chengfu.net>
*
* The latest version of phpWatermark will always be available on
* http://www.chengfu.net/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/


http://www.chengfu.net/article.php?sid=23&mode=thread&order=0

Maybe you got the file from another source and it was removed?

loneranger
01-28-2005, 11:59 AM
thanks for the warning i got the code from another piece of code i will add the credits now

/i have now emailed the author of the script where i got the code and told him the same

sabret00the
01-28-2005, 03:22 PM
oooh this is nice, nice one.

RaZor Edge
01-28-2005, 05:08 PM
I always get this error when trying to upload an image

unable to get image size

Exernon
01-29-2005, 09:26 AM
Same error here but that's not all..

Check this screenshot:

SVTBlackLight01
01-29-2005, 10:24 AM
loneranger,

You should really use default vB template structures. I had to remove a lot of custom styling and extra cells with broken images. See Exernon's post above. This hack has good potential, though.

BamaStangGuy
01-29-2005, 07:07 PM
- Moderate uploads
- Different Limits for users and usergroups
- User Gallery for uploaded images
- Stats
- Ability to host video and sound clips as well with the same ability to limit users and usergroups, set size limits, and moderate these attachments as well.
- Use vBulletin Template Structures

boo.3
01-29-2005, 10:36 PM
how about 3.0.6 :)

Jenta
01-30-2005, 06:02 AM
if someone is allowed 1 image will it allow them to upload a new one and have it overwrite the older image?

loneranger
01-30-2005, 09:27 AM
if someone is allowed 1 image will it allow them to upload a new one and have it overwrite the older image?

no they will have to delete the old one first


as for the error some people are recieving i am looking into it, the function used is a php 3,4,5 function there is no gd involed

loneranger
01-30-2005, 11:03 AM
i have update the files and re posted them up all templates should now work with vb default style, you will need to uninstall then reinstall for the changes, those who had the can't get image size error that should also be fixed please can you keep me updated on this now.

i have included the updated file for the can't get image size bug

Elfo King
01-30-2005, 03:23 PM
OK, image upload work.
Need to uninstall then reinstall with new package files.
But...i have one line of tex on the upload_image and hosted_images (see the attach).

And....the Watermark not work...i have uploaded a jpg images...but the watermark text are not show...

loneranger
01-30-2005, 05:03 PM
OK, image upload work.
Need to uninstall then reinstall with new package files.
But...i have one line of tex on the upload_image and hosted_images (see the attach).

And....the Watermark not work...i have uploaded a jpg images...but the watermark text are not show...

sorry that do not remove is in both templates and can be removed i ment the copyright below that but you can't do comments in templates, for the water mark make sure you hace it switched on and some text set in the settings and that you have gd libray installed

Rireal
02-09-2005, 03:45 PM
Can this be modified for any filetype and different amounts of uploads per usergroup as mentioned above?

Xtrato
02-10-2005, 06:19 PM
hey.. I have uploaded the new files, i get same error, cant get file size, and try to re-install andi get this error.

Warning: main(../upgrade_queries.php): failed to open stream: No 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/user/public_html/forums/install/hacks/image_hosting/11/index.php on line 49

James T Brock
02-12-2005, 08:36 AM
This is the error I'm getting

Warning: getimagesize(home/XXXXXXX/public_html/forum/uploadernavbits_finallink.gif): failed to open stream: No such file or directory in /home/XXXXXXX/public_html/forum/upload_image.php on line 109
unable to get image size

Snatch
02-12-2005, 09:46 AM
If this hack use the Atachment DV of VB ? Because I need that it unse the DB to macke Stats like the Atachement Upload Stats.

James T Brock
02-12-2005, 06:46 PM
Ok, maybe this will help someone else. I was getting the getimagesize error I just posted about but I managed to fix it myself.

For upload directory the script says to use "home/user/www/forum/hosted_images", therefore I used -> home/MyUser/public_html/forum/hosted_images

When instead I should have used "/home/MyUser/public_html/forum/uploader/"

Note the slashes. That fixed it.

webrats
02-12-2005, 09:15 PM
i run a sep image server will this script work with it?

loneranger
02-20-2005, 12:54 PM
Here are the lastest screen shots for you enjoy

Osterling
02-20-2005, 04:39 PM
hack_install.php

when i downloaded it i never got that file..

loneranger
02-20-2005, 04:56 PM
sorry about that i have now recompiled the zip file and it shouldbe complete now hope you enjoy

James T Brock
02-20-2005, 07:20 PM
I don't understand, what exactly was changed? Was this just a cosmetic upgrade or does it add new features?

I already have the older version installed and working. Should I upgrade?

intrigue
02-20-2005, 08:04 PM
hmmm i get user permission not allowed do you know what i have missed?
.matt

loneranger
02-21-2005, 04:28 PM
you need to goto admin panel and select image hosting then add usergroup that you want to allow image hosting and their settings

loneranger
02-21-2005, 04:31 PM
I don't understand, what exactly was changed? Was this just a cosmetic upgrade or does it add new features?

I already have the older version installed and working. Should I upgrade?
no new features have been added you can now select different uploads,file extensions and amount of images that usergroups are allowed to update, i have also fixed a few problems with the script

Elfo King
02-22-2005, 05:54 PM
Argh...i have installed but..i cant upload and view any images...
i not have the privileges.....

MiskaTorn
02-22-2005, 07:46 PM
Argh...i have installed but..i cant upload and view any images...
i not have the privileges.....
Same problem

MiskaTorn
02-22-2005, 08:00 PM
Ok this might help...

It seems the installer is modding actual php files...mine did not edit.

I opened file_mods.php and saw the changes in there and did it manually.

MiskaTorn
02-22-2005, 08:14 PM
When I try to upload an image, all I get is a white page.

loneranger
02-23-2005, 03:57 PM
you will need to go into the admincp and add your usergroup, in admincp there is a section called 'Image Hosting' select add usergroup then add your information

liquid6
02-23-2005, 05:48 PM
Argh...i have installed but..i cant upload and view any images...
i not have the privileges.....


I also do not have the option under Image Hosting to add usergroups or permissions.

Elfo King
02-23-2005, 06:07 PM
I also do not have the option under Image Hosting to add usergroups or permissions.

Yes, i not have the option for select the usergroup permissions... :disappointed:

Elfo King
02-23-2005, 06:09 PM
I have this problem whit a fresh install of the 1.20 version....

loneranger
02-23-2005, 06:36 PM
have you followed all the file mods
find:

// ################################ NAVIGATION FRAME #############################

if ($_REQUEST['do'] == 'nav')
{
require_once('./includes/adminfunctions_navpanel.php');
print_cp_header();

echo "\n<div>";
?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" <?php $df = print_form_middle("L4181f6a"); ?> vspace="4" /><?php
echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";

// cache nav prefs
can_administer();

construct_nav_spacer();


paste below

// ############################## IMAGE HOSTING HACK #############################
construct_nav_spacer();
construct_nav_option('Edit Usergroup Premissions', 'imghost.php?do=view', '|');
construct_nav_option('Add Usergroup Premissions', 'imghost.php?do=add');
construct_nav_group('Image Hosting', '<hr />');
construct_nav_spacer();
// ########################### END OF IMAGE HOSTING HACK ########################

make sure you have done this mod in /admincp/index.php

loneranger
02-24-2005, 04:26 PM
did this work for everyone please let me know because if not i will look into it and modify the code

bigmonay2k
02-25-2005, 12:03 AM
I thinking, is there way to only limit it to post in your *forum only*if whoever use it post it somewhere else my forum logo will show up instead of the pic.?????

loneranger
02-25-2005, 11:44 AM
the only way to do that is use php and you will need to have html enabled, i think thats right anyway

uae
02-25-2005, 01:07 PM
Whenever I click on upload file, I get a blank page!

MiskaTorn
02-25-2005, 02:48 PM
you will need to go into the admincp and add your usergroup, in admincp there is a section called 'Image Hosting' select add usergroup then add your information
I've already done this and still get white pages :(

I am trying to figure it out myself, but I can't seem to, not so smart :o

Elfo King
02-26-2005, 11:02 PM
I've already done this and still get white pages :(

I am trying to figure it out myself, but I can't seem to, not so smart :o
Correct the link in /admincp/index.php to this:

// ############################## IMAGE HOSTING HACK #############################
construct_nav_spacer();
construct_nav_option('Edit Usergroup Premissions', 'img_host.php?do=view', '|');
construct_nav_option('Add Usergroup Premissions', 'img_host.php?do=add');
construct_nav_group('Image Hosting', '<hr />');
construct_nav_spacer();
// ########################### END OF IMAGE HOSTING HACK ########################

Elfo King
02-26-2005, 11:04 PM
loneranger pls contact me at ICQ 137659377, i have a lot of correction and problem.
1)white page after uploading..
2)no rule to access to file hosted_images.php....
3)modify the management of usergroup id (not easy 1 for 1 ...i have 35/40 usergroup....i need to manage simple and fast )

I wait u :-P
Thx

loneranger
02-27-2005, 11:01 AM
hi i have added you to my icq list just wait till your online i will see what i can do in the mean time

Xtrm2Matt
02-27-2005, 03:34 PM
Hi there,

Nice plugin. I've installed it but it doesn't.. work..

a) I cannot install the template mods as it doesn't tell me where to do this, I just get this nice juicy error:

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

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.;./includes;./pear') in \dir\forums\includes\db_mysql.php on line 389

b) I manually edited admin cp with the post you posted up there ( ---^^ ) and it's wrong. It should be:

// ############################## IMAGE HOSTING HACK #############################
construct_nav_spacer();
construct_nav_option('Edit Usergroup Premissions', 'img_host.php?do=view', '|');
construct_nav_option('Add Usergroup Premissions', 'img_host.php?do=add');
construct_nav_group('Image Hosting', '<hr />');
construct_nav_spacer();
// ########################### END OF IMAGE HOSTING HACK ########################

Also, where is the stuff for Watermarking etc? I don't see it.

:: edit ::

Just tested uploading. The files are not uploading and it just gives a white page.

loneranger
02-27-2005, 03:52 PM
hi can you give me your web address and i will have a look also if i can have admin priviliges as there seems to be a couple of ppl getting this error and i have yet recieved this error on my server

MiskaTorn
02-28-2005, 01:12 PM
Correct the link in /admincp/index.php to this:
I've tried all this and nothing worked, still white page on submit.

loneranger
02-28-2005, 08:18 PM
those getting error can you please post some information about your server type of OS version GD install and other hacks

Thanks i will try and resolve this error asap

MiskaTorn
02-28-2005, 08:36 PM
those getting error can you please post some information about your server type of OS version GD install and other hacks

Thanks i will try and resolve this error asap
Linux
Apache/1.3.33 (Unix)
PHP Version 4.3.10
GD bundled (2.0.28 compatible)

Other hacks include
VBJournal
vBadvanced
ibProArcade
xIRC Chat

loneranger
03-01-2005, 07:25 PM
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

MiskaTorn
03-01-2005, 08:48 PM
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.

MiskaTorn
03-01-2005, 09:05 PM
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.

MiskaTorn
03-01-2005, 09:12 PM
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

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

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

<?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

<?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'],

bamaster
03-02-2005, 01:28 AM
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

loneranger
03-02-2005, 04:53 AM
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

MiskaTorn
03-02-2005, 01:44 PM
I could be wrong, but in image_host.php on line 144 aren't you missing a close bracket?

loneranger
03-02-2005, 02:07 PM
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

MiskaTorn
03-02-2005, 02:11 PM
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

//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');

MiskaTorn
03-02-2005, 02:39 PM
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/

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
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

require_once('./template_mods.php');

to

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

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

to

<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

$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

$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

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

to

$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

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

to

$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
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...

Warning: main(./upgrade_queries.php): failed to open stream: No 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

Xtrato
03-04-2005, 01:17 PM
uninstall wont work ether, the tables are not deleted, I also go to myphpadmin, and remove the manually, but i still have the same problem.

.Tim
03-06-2005, 06:54 AM
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 having the same problem.

loneranger
03-06-2005, 10:31 AM
ok, are you upgrading image hosting or fresh install?

.Tim
03-06-2005, 06:01 PM
Fresh.

Scerina
03-06-2005, 06:51 PM
I installed this script and when I go to the uploader I cant upload nor can I view galleries cuz I have no permissions...where do I edit permissions? I dont see the section to edit permissions in Usergroup Manager for each usergroup...am i missin something?

MiskaTorn
03-06-2005, 07:35 PM
I installed this script and when I go to the uploader I cant upload nor can I view galleries cuz I have no permissions...where do I edit permissions? I dont see the section to edit permissions in Usergroup Manager for each usergroup...am i missin something?
Did you make the changes to the index.php file in the admincp directory?

If you did there would be a menu on the left side called "Image Hosting"

Scerina
03-06-2005, 08:45 PM
No, I wzn't aware of such changes...what are they? Can you tell me so I can fix it???

Scerina
03-06-2005, 08:46 PM
Here are the instructions:

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!!!!)
- Installer
- Admins can select different limits for different usergroups(NEW!!!)
- New improve style
- 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 this 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)

Hope you enjoy
thanks
Loneranger

installation
1. copy all files to your forum directory keeping the folder structure.
2. run http://www.yoursite/forum/install/hack_install.php
3. follow prompts when finished there are a couple of file mods you need to do
4. Just add links in your nav bar to:
image_host.php?do=uploader (this is the uploader)
image_host.php?do=images (this is the gallery of the users images)
5. All compelte please donate and i will keep the updates coming
thanks again
loneranger @ www.sig-mania.co.uk

I didn't see any Admincp/Index.php file edits...what are they?

MiskaTorn
03-07-2005, 02:37 PM
2. run http://www.yoursite/forum/install/hack_install.php

When you run that installer there will be a section in there and it'l give you the changes you need to make to two files.

amphicar770
03-07-2005, 09:06 PM
<?php

// Phrases
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 202
?>
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home2/amphicar/public_html/amphicarforum/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/amphicar/public_html/amphicarforum/includes/db_mysql.php on line 389

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

Scerina
03-07-2005, 10:57 PM
2. run http://www.yoursite/forum/install/hack_install.php

When you run that installer there will be a section in there and it'l give you the changes you need to make to two files.
I got these errors now:


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

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valeriou/public_html/includes/db_mysql.php on line 389

Database error in vBulletin 3.0.6:

Invalid SQL: ALTER TABLE vb3language ADD `phrasegroup_imghost` MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_imghost'

mysql error number: 1060

Date: Monday 07th of March 2005 07:55:57 PM


What should I do now?

loneranger
03-08-2005, 01:15 PM
i am in the process of re writing the installation procudure

gldtn
03-08-2005, 02:19 PM
Loneranger,

Can you provide a live demo with out the need of registration to the board? I'm highly interested in this hack.

Thank You!

Scerina
03-09-2005, 07:40 PM
i am in the process of re writing the installation procudure
When will ya next update or upgrade or next version be released? And when will you have these problems fixed????

Benj
04-04-2005, 05:30 PM
any news on any updates to this hack ???

swarangal.com
04-13-2005, 02:58 AM
i shud have read all the post before trying this hack ... neither i am able to install nor uninstall stuck now with so many errors :( any helping hand here??

cheers

Avalon111
04-14-2005, 08:03 AM
thats a very cool hack!!!

but it would be nice if it also creates a thumbnail and shows it in the forum code so i can add it to a post. anyone who wants to see the full image can click the thumbnail in my post and gets the full image.

automatical renaming the files after the upload would be also great like
14-04-2005_001.jpg and 14-04-2005_001TN.jpg

Benj
04-14-2005, 08:04 AM
User Gallery for uploaded images


im waiting for this !

JohnBee
04-15-2005, 11:47 PM
A ++++!

I installed this crap and now I'm stuck with an uninstallable hack that has made
a mess of things.

Put this in the beta section where it belongs!
until its ready to be released.

There needs to me be tighter moderation on people adding hacks to the forums
without proper testing!

JohnBee
04-15-2005, 11:53 PM
I want a list of areas this hack affects so I can clean this out of my db and
templates.

twoseven
04-15-2005, 11:55 PM
go through the php files to read what is inserted or revert to a db backup

JohnBee
04-16-2005, 12:06 AM
pathetic!

There is no excuse for this stuff, seriously we need moderation on hacks.
I will restore and learn from this.

Avalon111
04-16-2005, 05:00 AM
A ++++!

I installed this crap and now I'm stuck with an uninstallable hack that has made
a mess of things.

Put this in the beta section where it belongs!
until its ready to be released.
************************************************** ******
There needs to me be tighter moderation on people adding hacks to the forums
without proper testing!

pathetic!
There is no excuse for this stuff, seriously we need moderation on hacks.
I will restore and learn from this.

everyone tells that you should do backup of your files and database or try the hack in a test board first!

a IT professional never installs a new software or a big update (WinXP SP2) before testing it on a seperated PC.

the work from loneranger is very impressive and if anyone wants more good hacks you sould think before you post such agressive words.

Dean C
04-16-2005, 08:17 AM
JohnBee - please keep your flaming out of the forums. When you bought your license you agreed to modify your files at your own risk. Remember, it's often user error that causes problems and you should always make backups. Please be more polite or don't post in this thread. Thankyou :)

JohnBee
04-16-2005, 11:59 AM
There is beta and full release section.

If someone fails to take those steps the they will just have to take the responsability
for there lack of attention on that.

The hack should be moved to beta section .period. if the time was taken to develop the
hack properly this would not of happened. Yes I did a backup prior to the hack
installtion, but since I do not have SSH access on my server my forums are down
for the weekend.

Do I have a cause for complaint?
Could this of been avoided?

You bet!

j_86
04-16-2005, 12:09 PM
Yes, this should be moved from FULL RELEASE to the BETA section with a warning notice.

We have moderators of a forum, that is a community for hacks and hackers yet the moderators are not actually moderating the hacks themselves?

KTBleeding
04-16-2005, 12:48 PM
There is beta and full release section.

If someone fails to take those steps the they will just have to take the responsability
for there lack of attention on that.

The hack should be moved to beta section .period. if the time was taken to develop the
hack properly this would not of happened. Yes I did a backup prior to the hack
installtion, but since I do not have SSH access on my server my forums are down
for the weekend.

Do I have a cause for complaint?
Could this of been avoided?

You bet!
I normally don't like to point out ignorance because you've already done that enough with your post. But come on man.. have you ever taken the time to code a hack properly? Plus, if it's working for other people then the problem could be on your side.

Anyways, as stated above. You modify vBulletin at your own risk. Instead of getting mad at the coder himself, you should be mad at yourself for not trying it out on a test board first.

JohnBee
04-16-2005, 12:59 PM
I believe I raised a valid point in all of my posts other than my frustration on the
fact that my forum is offline.

KTBleeding I have read your previous reply as well as this one, and as much as
your intentions seem bound to protect the coders hard work and commendable
incentives by releasing hacks etc. it does not excuse his or her responsibility to
make use of the proper procedures to avoid unnecessary complications on the users
part.

Ignorance or not, At some point we have to draw a line and each side take some
initiative towards prevention. My point entirely revolves around the fact that this hack
should not be in the full release section.

Marco van Herwaarden
04-16-2005, 01:13 PM
We have moderators of a forum, that is a community for hacks and hackers yet the moderators are not actually moderating the hacks themselves?
Correct.

Avalon111
04-16-2005, 02:11 PM
Ignorance or not, At some point we have to draw a line and each side take some
initiative towards prevention. My point entirely revolves around the fact that this hack
should not be in the full release section.

the main problem is that this hack isnt working for you right?

but it works for me and other members.

its like developing software. you have a softwarebuild thats stable and testet, this version will be sold. after a few days a few people will pop up with a problem that the software isnt working on their PCs/Servers. should the developer realy take his product off the market and take it back to beta? well if that would be so how often would we have seen that with the Windows OS?

This hack isnt working for you, ok. but instead of argumenting why this hack should be moved to the beta forum you should better provide the coder with some informations. thats what you, what everyone has to do to help the coder find and fixing bugs in the code.

and now enough of that!

JohnBee
04-16-2005, 02:44 PM
There are "many" people in this thread who claim the same as I do.
Have you read it from the first to the last?

I am not alone with this problem, and the coder announced it he was rewriting
the uninstall functions. not to mention the countless code updates that seem to
crisscross between posts as the thread progresses.

I think that's is sufficient information to say this hack is not ready for this forum section.
Furthermore this thread is headed into a pointless argument.

If a hack maker admits his or her own hack is problematic and needs a rewrite
then there is plenty of reason to back that release into the beta section.

When I get my db back online and I can successfully uninstall the hack.
I will look into providing the proper documentation to troubleshoot it. At this point
I don't have that option.

KTBleeding
04-16-2005, 02:49 PM
I believe I raised a valid point in all of my posts other than my frustration on the
fact that my forum is offline.

KTBleeding I have read your previous reply as well as this one, and as much as
your intentions seem bound to protect the coders hard work and commendable
incentives by releasing hacks etc. it does not excuse his or her responsibility to
make use of the proper procedures to avoid unnecessary complications on the users
part.

Ignorance or not, At some point we have to draw a line and each side take some
initiative towards prevention. My point entirely revolves around the fact that this hack
should not be in the full release section.
I understand your point. You do have a valid arguement and I agree with what you have said about moderation and beta releases.

Be honest though, will this being in Beta really stop people from installing it? I for one do not usually install beta releases but there are quite a few who do. It is also clear that this is a Beta release in the original topic.

I don't know, while I agree with some of your points it is still modified at your own risk and recommended to install on a test forum first. That would have prevented your forum being down for the weekend. But as you said earlier, you've learned from this so it should all be good now.

Norbert
04-16-2005, 03:40 PM
Hello,

my english is not so good... sorry :)

I will try to explain my problem.
I install the mod like your script description. I put the links to Uploader under the Quick Links. All Okay :)

But in den AdminCP i see no user-rights.

What`s wrong? :cry:

Nice Greetings from Vienna (Austria)
Norbert

PS: I tryed to install it new, and i got this error-messages:


Warning: main(): Unable to access ../upgrade_queries.php in /index.php on line 49

Warning: main(../upgrade_queries.php): failed to open stream: No such file or directory in /index.php on line 49

Fatal error: main(): Failed opening required '../upgrade_queries.php' (include_path='.:/usr/lib/php') in /home/.sites/20/site854/web/forum/install/hacks/image_hosting/12/index.php on line 49

CommunityZ
04-17-2005, 03:26 PM
Is there a missing file in the zip?

Warning: main(./template_mods.php): failed to open stream: No such file or directory in /index.php on line 93

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

laeth
04-19-2005, 01:04 PM
I have the two options in my admincp to view and add usergroups, but the view usergroup page just comes up as a blank blue screen (the bg of the admincp color). Anyone have any idea why it's doing this?

Thanks.

007
05-30-2005, 08:37 PM
So does this hack work or not? I have been reading in the most recent posts that people are having trouble with it..

cdoyle
06-01-2005, 12:20 AM
Will this only work with VB 3.07?

I have 3.03 with all the patches, and was wondering if this hack could be installed with this version?

Thanks
Chris.

cdoyle
06-08-2005, 09:01 PM
anyone?

paul41598
06-19-2005, 03:09 PM
Yah Im still waiting on an update. Hoping its been coded properly by now.

loneranger
06-19-2005, 04:13 PM
hi ppl sorry for the lack of support and slow replies i have been very busy i have now recoded this for version 3.5 i have it working on the beta but won't release it until the stable vrsion comes out. i have tried ti iron out all the bugs i can i am also re-writing the install script so it will be easily installed and uninstalled seem as that is where mst of the problems were if any1 wants any features add please let me know

paul41598
06-19-2005, 04:22 PM
Crap, I was hoping for 3.0.7, as I dunno if Im upgrading to 3.5. Im sure all my current hacks wont work on 3.5

I mean, should I install this hack? Will it work with minor modifcation? Or dont bother? hard to say by all these replies

loneranger
06-19-2005, 07:30 PM
well if you are intrested i can install it on your server for you need to pm me an admin account details and i will do asap

lange
06-24-2005, 08:22 PM
Install

QATARAT
06-25-2005, 10:59 PM
hi

any one have the full Install and wark good with ?

hbalagh1
06-26-2005, 06:23 PM
Is there a missing file in the zip?

Warning: main(./template_mods.php): failed to open stream: No such file or directory in /index.php on line 93

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

I get the same thing.....

QATARAT
06-26-2005, 10:34 PM
ITS necessary TO ching the template_mods.php in install 2 template.php

https://vborg.vbsupport.ru/showpost.php?p=619879&postcount=66

Q-v-n-s-Q
07-12-2005, 10:14 AM
i only got fews setting:
1: Image Hosting Active?
2: Upload Directory
3: The web address of upload images:
thats all the setting i got

ZiG
07-15-2005, 12:23 PM
hi ppl sorry for the lack of support and slow replies i have been very busy i have now recoded this for version 3.5 i have it working on the beta but won't release it until the stable vrsion comes out. i have tried ti iron out all the bugs i can i am also re-writing the install script so it will be easily installed and uninstalled seem as that is where mst of the problems were if any1 wants any features add please let me know

yea, are you updating this anytime soon?

i installed it and it seems like it is working except in my admincp i cant change the usergroup permissions so i have no permission to even test if the script is working

StevenIsProek
07-15-2005, 06:14 PM
This crap dont work
Dont bother to install

EH-Jay
07-19-2005, 03:13 AM
Stop calling the hack stupid and crap etc.

Yea he should of went beta before releasing it with all these problems, but that's all done with now and lets help him fix it.

Now, loneranger the general error that I seen 1 of the most times was this error:


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

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.;./includes;./pear') in \dir\forums\includes\db_mysql.php on line 389


I also get this error when I do the fresh install, so I had to take the initiative and alter my DB tables and remove what was put in there. I'm back to normal again.

Anyway, this should be the first thing you fix because this is installation screwups which may cause problems to people who don't know what their doing.

Then worry about the other errors. I'm hoping your still working on this hack, as I want this hack very bad. It's 1 of the hacks I've been looking for to addon to my site to make it better.

Good luck.

csidlernet
07-20-2005, 08:20 AM
sweet.

EH-Jay
07-24-2005, 01:31 AM
So I guess this problem is going to stay in limbo then?

paul41598
07-25-2005, 05:20 PM
what problem exactly. Does the hack not work?

ben_erhan
07-25-2005, 08:45 PM
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/uydukurd/public_html/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/uydukurd/public_html/includes/db_mysql.php on line 389

Please help me .I want to make this hack.

yahoooh
08-20-2005, 10:35 AM
؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

Bk-LS
09-06-2005, 08:23 PM
any change since the last post? Looks like some got it to work right?

Hornstar
09-16-2005, 08:09 AM
@sig-mania site: You have a major error on your page, it says Fatal error: Call to undefined function: is_browser() in /home/madnele/public_html/forum/global.php on line 61

I also think that this may be a bit messed up right now,

Any news on when a update may come out?

And what about not just a image uploader, but a file uploader, but with more options like...once a user posts 100 times they get 5 megs per file, and then 500 posts they get 30 megs etc, this would be set by the admin in the admincp for what they would like.

Would this be possible to make, and is anyone willing to make it?

gasxtreme
09-17-2005, 04:30 AM
I have a quick question..... I recently upgraded my vBulletin to 3.0.9, and now when I go to the image hosting pages, its just a blank page.... I had two other mods that had the same problem, but I just re-installed the themes through the MOD's installer, but I'm not sure how to repair the themes on this mod........How do I accomplish this?

Thank You! :)
-steve

lem
10-13-2005, 06:50 PM
:ermm: Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/uydukurd/public_html/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/uydukurd/public_html/includes/db_mysql.php on line 389

Please help me .I want to make this hack.

I'm getting the same error. Any help?

Thanks

HaMaDa4eVeR
11-06-2005, 01:01 PM
hi

any one have the full Install and wark good with ?
Yes It work Properly with me

my vb version is 3.0.9

Tommy12345
12-24-2006, 01:17 PM
everyone tells that you should do backup of your files and database or try the hack in a test board first!

a IT professional never installs a new software or a big update (WinXP SP2) before testing it on a seperated PC.

the work from loneranger is very impressive and if anyone wants more good hacks you sould think before you post such agressive words.

This script is piece of crap, simple script that is made soo complex that looses track that users just need a simple script. Need to write the script myself!! The intention is good but will do more harm better not to share your script. This author went overboard with lack of quality control and negligence against fellow coders.

After reviewing the forum I am getting all the errors people gettting - missing files , error messages, errror log, upgrade quiries. Need to download from my master files going to waste another 30min. This mod should be banned and user banned also.

I recommend this coder tnguy3n, it works perfectly not sure if any security issues need to check when I have time. Very easy to customize to make it better. This is exactly what I was looking for, link is below
https://vborg.vbsupport.ru/showthread.php?t=69088&page=4&highlight=upload+image

Actual the mod above is not fully safe the guy is not using move_uploaded_file and is_uploaded_file command.

itsmeroro
12-03-2007, 10:04 PM
Hello - I am having some issues with the install - and getting this error:

Fatal error: Call to undefined function: query() in /home/content/i/t/s/itsmeroro/html/forums/install/his_files/hack_install_b3.php on line 48

Please advise! :) Thank You. RoRo

Marco van Herwaarden
12-04-2007, 08:02 AM
This modification is for vB 3.0.x. If you are using 3.5/3.6 it will most likely not work.

itsmeroro
12-04-2007, 03:54 PM
Oh! I should have realized... Thanks anyhow... :)