The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB image Hosting Details »» | |||||||||||||||||||||||||
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:
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:
Time required to install 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: 1.0.1: 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 Supporters / CoAuthors Show Your Support
|
Comments |
#272
|
|||
|
|||
Quote:
|
#273
|
||||
|
||||
Quote:
|
#274
|
||||
|
||||
Your welcome Grendel! Glad you like it
|
#275
|
||||
|
||||
Quote:
feature request: + An image link for clickable thumbnails in a thread + (ie: so you can post the THUMBNAIL of an image not the full orginal image. then some can click that to see the full image or go to that users detailed info page of that image ) would anyone else be interested in that? |
#276
|
||||
|
||||
thanks added 5 starz for this
|
#277
|
||||
|
||||
Quote:
do you know how to make so you have 5 thumbnails images to appear... but I want the actual display page to only display 3 or whatever. ie: make it conditional. |
#278
|
||||
|
||||
hmm..tool. was testing it and registered users still see all the details..
is that correct? how do you change it so registered users only see the thumbnails? |
#279
|
|||
|
|||
Quote:
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 |
#280
|
|||
|
|||
Works great! Thanks for taking the time to clean this up and make it work
For anyone else who wants to try it out, you can limit the amount of pictures by changing the value of "LIMIT 5" to a smaller number. Also you may want to chage the size of your thumbnails and rebuild them. I halved the size of the default thumbnail values and it worked great. A Demo can be seen on my homepage Demo |
#281
|
||||
|
||||
Quote:
So... try uploading some photos in "johns" account.. and then login as user "mark", go and view "johns" photos while you're logged in as "mark" and you should see only thumbnails.. no details below. If you still see details... you haven't done the mod properly and need to refollow those steps I posted. @transitbus Ya, making the thumbnails 50% smaller works like a charm... they fit nicely. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|