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
  #222  
Old 09-19-2006, 02:06 AM
dholt's Avatar
dholt dholt is offline
 
Join Date: Aug 2006
Location: Somewere in Delaware
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/imagehosting Remove the forword slash if you added it.

Thanks dholt that worked
Reply With Quote
  #223  
Old 09-19-2006, 07:16 PM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

I am web site www.forumsitesi.info/forum > CMPS portal setup = ok
But
This page index how vbimage random to show?
Reply With Quote
  #224  
Old 09-19-2006, 08:26 PM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open Template :
adv_portal_randomprofile

clear in all and paste :

Code :


<tr>
<td class="alt2" valign="top">
<table>
<tr valign="top">


<td class="alt2" valign="top" align="center">
<img src="$profilepiclink" alt="$vbphrase[vbaCmps_randomprofile]" border="0" /></td>
</tr>
<tr valign="top">


<td class="alt2" valign="top">
<table>
<tr>
<td class="smallfont">
<div>
<img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" />
$vbphrase[vbaCmps_randomusername]
</div>
</td>
<td>
:
</td>
<td class="smallfont">
$randomusername
</td>
</tr>
<tr>
<td class="smallfont">
<div>
<img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" />
$vbphrase[vbaCmps_randomtitle]
</div>
</td>
<td>
:
</td>
<td class="smallfont">
$randomusernametitle
</td>
</tr>
<tr>
<td class="smallfont">
<div>
<img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" />
$vbphrase[vbaCmps_randomjoindate]
</div>
</td>
<td>
:
</td>
<td class="smallfont">
$randomusernamejoindate
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
Reply With Quote
  #225  
Old 09-19-2006, 08:27 PM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry mistake post
Reply With Quote
  #226  
Old 09-19-2006, 08:57 PM
toolblast's Avatar
toolblast toolblast is offline
 
Join Date: Mar 2004
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestion:
I would like there to be comments and rating added to the images when you view them in 'full view' only. This would be great!

IMPROVEMENT:
I have edited the imagebit somewhat. In the original script... all users always see that bbcode, permissions, and other stuff that for the user who owns the photos may be useful, but for other users it just seems to clutter up the photo gallery page in my opinion.

I was wanting something more like Facebook... where if they go to view their friend's gallery... it simply shows a gallery page with a bunch of thumbnails only... no details or stuff underneath. However, I didn't want to remove this stuff, so what I did was edited the template and added an extra condition so that:

1) When viewing photos, if the photos belong to the user that is logged in... they see all that extra bbcode and permission stuff underneath the photo.

2) For OTHER users viewing photos that belong to their friends... they will just see the gallery page with only the photo thumbnails listed.

3) In either case... clicking the thumbnail will open up the main view page and will have the large photo, and will have all the bbcode stuff showing.. but only when the image is viewed in the fullscreen size page.


CODE CHANGES:

OPEN template called "vbimghost_imgbits"

Delete everything in that template, and replace it with this:

Code:
<td>
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
	<tr>
		<td class="alt1" align="center" valign="center"><a href="$vbimghost[dispath]"><img src="$vbimghost[thumbpath]" <if condition="$vbimghost[thumbsize]!=0"> width="$vbimghost[thumbsize]"</if> border="0"></a></td>
	</tr>

<if condition="$vbimghost[private]!=None">
	<tr>
			<td class="alt2" align="center" valign="center">
				<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
					<thead>




						<tr>
							<td class="thead" colspan="2">$vbimghost[imgname]</td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_filesize]</td>
							<td class="alt2">$vbimghost[filesize] </td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imgdime]</td>
							<td class="alt2">$vbimghost[width] x $vbimghost[height] </td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_update]</td>
							<td class="alt2">$vbimghost[date] </td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imgdlink]</td>
							<td class="alt2"><input type="text" value="[img]$vbimghost[path][/img]"></td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imgflink]</td>
							<td class="alt2"><input type="text" value=""></td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imglink]</td>
							<td class="alt2"><input type="text" value="<a href='$vbimghost[dispath]' border=0><img src='$vbimghost[thumbpath]'></a>"></td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_perm] </td>
							<td class="alt2">$vbimghost[private]</td>
						</tr>
					</tbody>

				</table>
			</td>
	</tr></if>
	</table>
</td>

VIEW THIS IN ACTION: http://www.undrgrads.com/vbimghost.p...iewimages&id=3
Reply With Quote
  #227  
Old 09-19-2006, 10:12 PM
ryuji ryuji is offline
 
Join Date: Jan 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just a heads up, you use mysql_num_rows() in your script, which causes breakage when using it on a forum that uses msqli, changing every case of this command to mysqli_num_rows() fixed it on my forum... i dont know if theres a better way other then to manualy edit it tho, ill leave that to you ranma2k

edit: also you use mysql_fetch_array() which has same problem and solution
Reply With Quote
  #228  
Old 09-19-2006, 11:51 PM
ryuji ryuji is offline
 
Join Date: Jan 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've modified the code to automatically use the correct method, attached the fixed copy, can be used on any forum since i've added in the conditional, heres a example of that i've added
PHP Code:
    if($vbulletin->config['Database']['dbtype']=='mysqli' OR $vbulletin->config['Database']['dbtype']=='mysqli_slave')
        
$usercount mysqli_num_rows($result);
    else
        
$usercount mysql_num_rows($result); 
Reply With Quote
  #229  
Old 09-20-2006, 12:02 AM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by toolblast
I have edited the imagebit somewhat. In the original script... all users always see that bbcode, permissions, and other stuff that for the user who owns the photos may be useful, but for other users it just seems to clutter up the photo gallery page in my opinion.
Looks good on your site. But using that as the template gives this result:

Quote:
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_PRIVATE, expecting ']' in /http/circvs/includes/adminfunctions_template.php(3593) : eval()'d code on line 7

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #230  
Old 09-20-2006, 12:49 AM
ryuji ryuji is offline
 
Join Date: Jan 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Morrus
Looks good on your site. But using that as the template gives this result:
Code:
<td>
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
	<tr>
		<td class="alt1" align="center" valign="center"><a href="$vbimghost[dispath]"><img src="$vbimghost[thumbpath]" <if condition="$vbimghost[thumbsize]!=0"> width="$vbimghost[thumbsize]"</if> border="0"></a></td>
	</tr>

<if condition="$vbulletin->GPC['do']=='myimages'">
	<tr>
			<td class="alt2" align="center" valign="center">
				<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
					<thead>




						<tr>
							<td class="thead" colspan="2">$vbimghost[imgname]</td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_filesize]</td>
							<td class="alt2">$vbimghost[filesize] </td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imgdime]</td>
							<td class="alt2">$vbimghost[width] x $vbimghost[height] </td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_update]</td>
							<td class="alt2">$vbimghost[date] </td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imgdlink]</td>
							<td class="alt2"><input type="text" value="[img]$vbimghost[path][/img]"></td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imgflink]</td>
							<td class="alt2"><input type="text" value=""></td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_imglink]</td>
							<td class="alt2"><input type="text" value="<a href='$vbimghost[dispath]' border=0><img src='$vbimghost[thumbpath]'></a>"></td>
						</tr>
						<tr>
							<td class="alt1">$vbphrase[vbimghost_perm] </td>
							<td class="alt2">$vbimghost[private]</td>
						</tr>
					</tbody>

				</table>
			</td>
	</tr></if>
	</table>
</td>
made a modification that makes it both better and work, only shows the urls if you click on the images or your viewing your images through 'view my images'
Reply With Quote
  #231  
Old 09-20-2006, 12:57 AM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ryuji
made a modification that makes it both better and work, only shows the urls if you click on the images or your viewing your images through 'view my images'
That worked - thanks! Although it only works if you select "Columns (new view)" and not "Rows (old view)".
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 04:24 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.06980 seconds
  • Memory Usage 2,337KB
  • 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
  • (1)bbcode_php
  • (4)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