Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VB image Hosting Details »»
VB image Hosting
Version: 1.0.1, by Ranma2k Ranma2k is offline
Developer Last Online: Oct 2017 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.0 Rating:
Released: 08-08-2006 Last Update: 04-10-2007 Installs: 1108
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

VB Image Hosting Version 1.0.1

This is the port for my hack to vb 3.6.x
check it for vb 3.5.x here

A New installer replaced the old one so you should not face any problems with database

NOTE :
People who were using vbimghost in vb 3.5.x and moved to vb 3.6.0 MAKE sure that you have vbimghost 1.4.1 Since this port will only support upgrading from that ver only
People who do a fresh install use this ver.


Requirements:
  1. requires GD 2.0.1 or later (2.0.28 or later is recommended).
  2. PHP ver 4.3.x or later (newer ver is better).

Introduction:
What does it do ?
VB Image Hosting is a similar feature to imageshak and photopoket and online free image hosting, but this is for your members. it will allow them to upload and host their images on your servers, you can still manage the permissions and set the number of files for each group.
Main Features:
  • Image hosting
  • Restrict # of file upload for each group
  • Allow/disallow group from upload
  • Restrict file uploaded based on file extension, dimensions and size
  • Users can manage their uploaded files
  • Users can set the view permission for each uploaded images
  • Admin can mange all members images
  • Admin can set the number of images/users per page.
  • Admin can mange images uploaded by the members
  • Admin can set the default upload permission
  • Thumbnail system admin can turn it on/off.
  • Allow multiple uploads.
  • Admin can set upload slots for each group
  • Admin can recreate thumbnails from admin cp
  • Fully using the phrase system.
Time required to install
  • 1- 2 min max.

Update instruction :
Just replace the old files with the new ones and import the product file don't forget to select overwrite.

History:
1.0.0:
  • inital release contains everytverg in 1.4.1 ver.
1.0.1:
  • Fix security bug with delete image.
  • fix some minor mysql problems.
Download Tracking:
1.0.0 : 3886


Known Issues:
no known issues.

Screen shscreenshot.zip
screenshot.zip.


NOTE:
before you post any error here :
Set that path to your forums correctly in the vbimghost options.
if you getting the error "
"supplied argument is not a valid"
that's because you didn't set the path correctly

And for all the people asking when is the next release it will be in 2007 not this month .. due to some problems in real life ..



URGENT ISSUES:
you may contact me on msn id : waiel[at]waieleid.com
replace [at] with @ ok? -_-

Supporters / CoAuthors

Show Your Support

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

Comments
  #922  
Old 08-03-2007, 12:18 AM
glennno glennno is offline
 
Join Date: Jul 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the uninstall directions is this instruction:

"you'll have to manualy delete the table vbimghost from the database."

How exactly does one do this? Think newbie.
Reply With Quote
  #923  
Old 08-06-2007, 02:43 AM
msalman msalman is offline
 
Join Date: Jun 2007
Location: islamic-life.com
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ranma2k View Post
That's because you didn't set the correct path to your forums ..
/home/users/public_html/forums/ is the default setting which is not yours for sure ..!
i have set up the correct path but it still give that error. Let's say, if we do go with your answer then it means that it should give an error when you try to upload a file because it can't find the correct path but it doesn't happen. So could you please help me out, thank you! btw it is a great mod and i liked it

Quote:
Originally Posted by glennno View Post
In the uninstall directions is this instruction:

"you'll have to manualy delete the table vbimghost from the database."

How exactly does one do this? Think newbie.
the easiest solution would be to run a manual query in your admin control panel. Login to Admin Control panel, Maintenance->Execute SQL Query. Then in the manual query box copy the following
Quote:
DROP TABLE tableprefixvbimghost
this should work, do not forget to replace the "tableprefix" with your own table prefix if you have set up one.
Reply With Quote
  #924  
Old 08-06-2007, 05:42 AM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SupraT View Post
I am getting this error, after a first time install

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/clanspy/public_html/forum/includes/vbimghost_include.php on line 175


Also note that the image are actually in the folder on the server, but do not appear in the user account as an uploaded image.

Thanks in advance for the help.

Do you have GD library installed ?


Quote:
Originally Posted by glennno View Post
I have the same issue, JesterP. FWIW, I posted a similar yet broader question over at vBulletin.com here. If you've gotten an answer, please post it here? Thanks.

the only way to protect against that is using the hot link protection
which will not allow to use any other site except yours

Quote:
Originally Posted by msalman View Post
i have set up the correct path but it still give that error. Let's say, if we do go with your answer then it means that it should give an error when you try to upload a file because it can't find the correct path but it doesn't happen. So could you please help me out, thank you! btw it is a great mod and i liked it

the easiest solution would be to run a manual query in your admin control panel. Login to Admin Control panel, Maintenance->Execute SQL Query. Then in the manual query box copy the following
this should work, do not forget to replace the "tableprefix" with your own table prefix if you have set up one.
i can help you all you need is just ask ^_^

send me the info via pm and i'll take a look.
Reply With Quote
  #925  
Old 08-10-2007, 07:34 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you and installed
Reply With Quote
  #926  
Old 08-10-2007, 10:42 AM
dellow dellow is offline
 
Join Date: May 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you,

it is really good hack, but can't install it for security reason, i hope new feature be added to enable romote server for uploading images.

Regards,
Reply With Quote
  #927  
Old 08-15-2007, 08:49 PM
AntiThesis AntiThesis is offline
 
Join Date: Jan 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is fantastic thank you

Exactly what I've been looking for all this time.
Reply With Quote
  #928  
Old 08-17-2007, 03:35 AM
Johnny Utah Johnny Utah is offline
 
Join Date: Jul 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ranma2k View Post
Here you go
create a file with the following code:
Code:
<?
$rec = $vbulletin->db->query_read("
        SELECT imgid,imgfile,thumbname,imgwidth,imgheight,imgdate
        FROM ".TABLE_PREFIX."vbimghost
        WHERE imgprivate='0'
        order by imgdate DESC
        LIMIT 5
        "); 

$count = $db->num_rows($rec);

$rec2 = $vbulletin->db->query_read("
        SELECT count(*) mark
        FROM ".TABLE_PREFIX."vbimghost
        WHERE userid='$userinfo[userid]' and imgprivate='0'
        "); 
$row2 = $vbulletin->db->fetch_array($rec2);
if ($count){
	while ($row = $vbulletin->db->fetch_array($rec)) {
		$vbimghost['id']=$row['imgid'];
		$vbimghost['path']=$vbulletin->options['bburl']."/".$vbulletin->options['imgdir']."/".$row['imgfile'];
		$vbimghost['dispath']=$vbulletin->options['bburl']."/vbimghost.php?do=displayimg&imgid=".$row['imgid'];
		$vbimghost['width']=$row['imgwidth'];
		$vbimghost['height']=$row['imgheight'];
		$vbimghost['date']=date('Y-m-d', $row['imgdate']);
		if (file_exists($vbulletin->options['imgdir']."/".$row['thumbname'])){
			$vbimghost['thumbpath']=$vbulletin->options['bburl']."/".$vbulletin->options['imgdir']."/".$row['thumbname'];
			$vbimghost['thumbsize']=0;
		}else{ 
			$vbimghost['thumbpath']=$vbimghost['path'];
			if ($row['imgwidth'] <= $vbulletin->options['imgthumw'])
				$vbimghost['thumbsize']=$row['imgwidth'];
			else 
				$vbimghost['thumbsize']=$vbimghost['imgthumw'];
		}
			eval('$mimghost .= "'.fetch_template('vbimghost_memberbit') . '";');
			 $vbimghost['more'] = "<a href='vbimghost.php?do=viewimages&id=$userinfo[userid]'>" .construct_phrase($vbphrase['vbimghost_viewmore'],$row2['mark'])."</a>";
	 } 
}else{
		$vbimghost['more'] = "";
		eval('$mimghost ="'.fetch_template('vbimghost_memberbit_noimg') . '";');
}

$vbimghost['last5'] = $mimghost;

eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_vbimghost_module') . '";');
?>

Name the file (last5.php) and save it int he module folder

Now create a template with the following name ( adv_portal_vbimghost_module )
and put this code in it

Code:
<tr>
<td>
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody>
	<tr align="center">
		$vbimghost[last5]
	</tr>
</tbody>
</table>
</td>
</tr>

Now go to vbadvanced and chose Add Module --> select PHP FILE

in there set the following :

Module Title : Last 5 images uploaded
Column : center
Active : yes
Update All Pages: yes ( if you want it to be displayed on all pages )
File to include : last5.php
Templates Used : adv_portal_vbimghost_module
Clean File Output: no
Use Module Shell Template: yes


and it should work with you
Does anyone know if there is a way to show the username of the user who posted the image underneath each of the last 5 images uploaded?
Reply With Quote
  #929  
Old 08-17-2007, 10:15 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?

Excellent mod...

The only issue I have found is cosmetic. If you install the optional script mod to show the number of images (it's clickable) in the post function under the username, it works great. However, it also appears in PM's, but only the brackets show

ie: ()

Not with a clickable number like this (7)

Not sure why?

Thanks again ...

Regards,
Badger
Reply With Quote
  #930  
Old 08-20-2007, 09:50 AM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to upload the files on another server (different IP etc.) ?
Reply With Quote
  #931  
Old 08-23-2007, 01:11 AM
bostton1 bostton1 is offline
 
Join Date: Jun 2007
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any word when the description and comments part will be enabled?

will people be able to create different "albums" within their gallery?

this is a great mod, I just need those last two functions.

thanks
Reply With Quote
Reply


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 05:12 PM.


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.07293 seconds
  • Memory Usage 2,335KB
  • 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
  • (2)bbcode_code
  • (7)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
  • (4)pagenav_pagelinkrel
  • (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