vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=123481)

glennno 08-03-2007 12:18 AM

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.

msalman 08-06-2007 02:43 AM

Quote:

Originally Posted by Ranma2k (Post 1306798)
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 (Post 1308591)
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.

Ranma2k 08-06-2007 05:42 AM

Quote:

Originally Posted by SupraT (Post 1307770)
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 (Post 1308501)
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 (Post 1310829)
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.

VBUsers 08-10-2007 07:34 AM

thank you and installed

dellow 08-10-2007 10:42 AM

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,

AntiThesis 08-15-2007 08:49 PM

This is fantastic thank you :)

Exactly what I've been looking for all this time.

Johnny Utah 08-17-2007 03:35 AM

Quote:

Originally Posted by Ranma2k (Post 1084505)
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?

BadgerDog 08-17-2007 10:15 AM

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

utw-Mephisto 08-20-2007 09:50 AM

Is there any way to upload the files on another server (different IP etc.) ?

bostton1 08-23-2007 01:11 AM

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


All times are GMT. The time now is 05:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01996 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete