VbImageHost Installation Guide |
Version: 1.0.1
Date: 2007-04-11
Author: Waiel Eid (Ranma2k)
For: Vbulletin 3.6.x
From: http://www.waieleid.com |
|
|
A |
Features |
Main Features : |
|
- Image hosting .
- Restrict # of file upload for each group.
- Allow/disallow group from upload.
- Restrict file uploaded based on file ext, dimensions and size.
- Users can manage their uploaded files.
- Users can set the view permission for each uploaded images.
- Admin can mange images uploaded by the members .
- Admin can set the number of images/users per page.
- 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. ( easy to translate ).
- Resizing and Watermarking.
|
|
B |
Change log: |
Ver 1.0.0 (23 Jan 2006) |
|
Initial release
|
Ver 1.0.1 (11 Aprl 2007) |
|
Security fix for image delete. fixed some mysql problem
|
|
C |
Installation (Upgrade from vb3.5.0 (1.3.x) | New Installation) |
Upgrade (from VB 3.5.x) |
|
- In order to upgrade to this version Make sure that the version that the old forum using is at least 1.4.1 ( older ver won't work )
- Step 1 (Backup)
- Always backup you database . I'll not be held responsible for any data lose .
- Step 2 ( File Upload):
- upload the files that in the folder forum into your forum directory overwriting the old ones.
(./ ) is your forum home directory.
./ vbimghost.php
./ admincp / vbimghost.php
./ includes / xml / bitfield_ao_vbimghost.xml
./ includes / xml / cpnav_ao_vbimghost.xml
./ includes / vbimghost_include.php
- step 3 (uninstall old product):
- uninstall the old ver of vbimghost and it will remove the stting but not the database nor the files Go to your admincp under Plugin System -> Manage Products : Select uninstall from the dropdown menu next to the product name
- Step 4 (Install Product ) :
- Go to your admincp under Plugin System -> Manage Products : click [Add/Import Product] and select the file product-ao_vbimghost.xml
- step 5 (install template ):
- modify the template as it descriped in the new installation
- step 6 (optional):
- If you want some additional stuf you can check section D ( Addons ) such as ( show last 5 images in the profile, number of photos in the postbit ..etc ).
- step 7 : ( Modify Options)
- Go to the Admincp and reconfigure the usergroup and the option
|
New Installation: |
|
-
Step 1 ( Backup):
- Always Always backup you database . I'll not be held responsible for any data lose .
- Step 2 ( Upload Files ):
- upload the files that in the folder forum into your forum directory overwriting the old ones.
(./ ) is your forum home directory.
./ vbimghost.php
./ admincp / vbimghost.php
./ includes / xml / bitfield_ao_vbimghost.xml
./ includes / xml / cpnav_ao_vbimghost.xml
./ includes / vbimghost_include.php
- Step 2a ( CHMOD DIRECTORY ):
- Change the permission for the upload directory to 777.
Note: The upload direcotry is where your files are going to be uploaded to [in the folder here it's called imagehosting]
- step 3 (Upload the product):
- Go to your admincp under Plugin System -> Manage Products : click [Add/Import Product] and select the file product-ao_vbimghost.xml and make suer that you set Allow Overwrite to YES
- Step 4 ( template modification ):
- Edit the Navbar template and do the following:
Find : <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
After it add:
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
<script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
in the same template
Find : <!-- PAGENAV POPUP -->
Above it add :
<!-- Image Host Popup -->
<div class="vbmenu_popup" id="vbimghost_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[vbimghost_title]</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
</table>
</div>
<!-- / Image Host Popup -->
- step 4a:
- If you want some additional stuf you can check section D ( Addons ) such as ( show last 5 images in the profile, number of photos in the postbit ..etc ).
- step 5 :
- Go to the Admincp and reconfigure the usergroup and the option
- Step 6:
- Go to Vbulliten.org and click install :)
|
|
D |
Addons: |
Showing last 5 images in the profile? |
|
- In MEMBERINFO Template
Find : </tr>
</table>
$footer
</body>
</html>
Above it add:
<tr>
<td class="tcat" colspan='2'>$vbphrase[vbimghost_last5img] $vbimghost[more]</td>
</tr>
<tr valign="top">
<td class="panelsurround" align="center" colspan="2">
<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
$vbimghost[last5]
</tr>
</table>
</div>
</td>
</tr>
|
Showing number of images hosted in postbit ? |
|
|
Adding quick uplaod and gallaries box in new thread / reply? |
|
- in editor_smiliebox
Find :
</fieldset>
<else />
<div id="smiliebox" style="display:none"></div>
</if>
after it add:
<fieldset id="vbimghostbox" title="$vbphrase[vbimghost_title]">
<legend>$vbphrase[vbimghost_myphotos]</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">
[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed=$editorid','vbimghost1','scrollbars=yes,resizable=yes,width=550,height=500'); return false" title="Pick">$vbphrase[open]</a>] [<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed=$editorid','vbimghost2','scrollbars=yes,resizable=yes,width=562,height=97'); return false" title="Upload">$vbphrase[vbimghost_quickup]]</a></td>
</tr>
</table>
</fieldset>
|
|
E |
Uninstall: |
How to uninstall vbimghost? |
|
- Go to your admincp under Plugin System -> Manage Products for VB image hosting select uninstall and click go.
- Remove the files related to the hack.
- Remove the image hosting directory that you set to store the images in it.
- Modify the navbar template and remove the one related to vbimghost.
- you'll have to manualy delete the table vbimghost from the database.
- go to vbulliten.org and click uninstall :(
|
|
|