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)

dougk 09-17-2006 08:47 AM

also the upload an inamge function doenst appear?

all i have are the buttons of host it and reset

Morrus 09-17-2006 05:35 PM

Seems to work, but when I try to upload an image I get the following page full of errors (screenshot attached).

Any ideas?

simon. 09-17-2006 06:00 PM

Quote:

Originally Posted by Ranma2k
yah there is a missing plugin for the pm system so i'll fix that in the next release
the next release will have many fixes and modifed stuff based on the members requests

So we will be able to change what it says on the Nav Bar?

VB Image Host ----> Gallery

Morrus 09-17-2006 06:04 PM

Quote:

Originally Posted by simon.
So we will be able to change what it says on the Nav Bar?

VB Image Host ----> Gallery

Just change the phrase. I changed it to "Image Hosting".

Ranma2k 09-17-2006 06:48 PM

Quote:

Originally Posted by Morrus
Seems to work, but when I try to upload an image I get the following page full of errors (screenshot attached).

Any ideas?

what did you set the path and the image directory ?!

Ranma2k 09-17-2006 06:49 PM

Quote:

Originally Posted by dougk
hi, i am stuck with a problem.

When i install and use the programs it keeps looking for the files under (my url)/upload/(whatever file). i need to change this so it is just (my URL)/(whatever file)

can anyone explain how?

so you want to remove the image host directory...?

Morrus 09-17-2006 07:12 PM

Quote:

Originally Posted by Ranma2k
what did you set the path and the image directory ?!

To clarify, the system is working (the images ARE uploading and displaying), but those erros are appearing in addition.

Reviewing the install instructions, where do I set a path an image directory? There's no mentin here - I quote them here in full (leaving out the template mod bit):

Quote:

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 ):

...

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 :)
The only thing I can think you might be refering to is the directory mentined in the AdminCP under the ImageHosting Options - which is entered, as indicated, as "imagehosting" with no trailing slash.

But, to repeat - the system does seem to work, it just throws ugly errors up as well.

Ranma2k 09-17-2006 09:17 PM

Quote:

Originally Posted by Morrus
To clarify, the system is working (the images ARE uploading and displaying), but those erros are appearing in addition.

Reviewing the install instructions, where do I set a path an image directory? There's no mentin here - I quote them here in full (leaving out the template mod bit):



The only thing I can think you might be refering to is the directory mentined in the AdminCP under the ImageHosting Options - which is entered, as indicated, as "imagehosting" with no trailing slash.

But, to repeat - the system does seem to work, it just throws ugly errors up as well.

you set up the path to the forums in the vbimghost options
is it set there correctly ?!

Morrus 09-17-2006 09:32 PM

Quote:

Originally Posted by Ranma2k
you set up the path to the forums in the vbimghost options
is it set there correctly ?!

It is set as indicated in the post you quoted.

Ranma2k 09-18-2006 07:20 AM

Quote:

Originally Posted by Morrus
It is set as indicated in the post you quoted.

morrus : in order to help you give me access ot the admin cp and i'll solve it for you

Please PM me the info

dougk 09-18-2006 08:56 AM

Quote:

Originally Posted by Ranma2k
so you want to remove the image host directory...?

you have lost me...

lol.

When using the program every time it looks for the files under url/upload/file. I want it to be url/file.

Also the problem of no boxes for uploading...

Ranma2k 09-18-2006 10:49 AM

Quote:

Originally Posted by dougk
you have lost me...

lol.

When using the program every time it looks for the files under url/upload/file. I want it to be url/file.

Also the problem of no boxes for uploading...

ok pm me with your fourm info and i'll help you out ..

Morrus 09-18-2006 01:22 PM

Quote:

Originally Posted by Ranma2k
morrus : in order to help you give me access ot the admin cp and i'll solve it for you

Please PM me the info

Thanks, Ranma2k. PM on its way.

Morrus 09-18-2006 06:03 PM

That solved that - thank you Ranma2k!

Incidentally, I don't know if you're accepting suggestions for the mod, but if you are - an image title and image description field would be very useful. Showing the file name as the title is kinda ugly! :)

Thanks again for your help.

Ranma2k 09-18-2006 06:14 PM

Quote:

Originally Posted by Morrus
That solved that - thank you Ranma2k!

Incidentally, I don't know if you're accepting suggestions for the mod, but if you are - an image title and image description field would be very useful. Showing the file name as the title is kinda ugly! :)

Thanks again for your help.

Yah i'm taking that in my next ver
everyone will be able to edit all aspects of the image :)

Derekclarke 09-18-2006 06:21 PM

it would also be good if the images displayed in My Images were in a Thumbnail size, rather than full size.

maybee an admin option to set the size of images in the users image folder.

Morrus 09-18-2006 06:22 PM

Quote:

Originally Posted by Ranma2k
Yah i'm taking that in my next ver
everyone will be able to edit all aspects of the image :)

Cool! Any idea on when that'll be available?

Ranma2k 09-18-2006 06:55 PM

Quote:

Originally Posted by Derekclarke
it would also be good if the images displayed in My Images were in a Thumbnail size, rather than full size.

maybee an admin option to set the size of images in the users image folder.

the images is shown in the tumbnail size by defualt ..
if there is no thumbnail it will show the image as uploaded
if there is no thumbnails rebuild it from the admincp

Derekclarke 09-18-2006 07:12 PM

i have already done this, and just tried again after reading your reply, yet i have most images in Thumbnail size others full size.

it is a little annoying when browsing my images.

dholt 09-19-2006 12:21 AM

vBulletin Message
Unable to delete the image

Great mod just can not delete what I uploaded not sure checked user groups

Warning: unlink(/imagehosting/2450b6f35eb8b6.gif) [function.unlink]: No such file or directory in /vbimghost.php on line 896

this is what is there
if(!unlink($imgfile)){
eval(standard_error(fetch_error('vbimghost_imgnotd eleted')));
}

dholt 09-19-2006 02:06 AM

/imagehosting Remove the forword slash if you added it.

Thanks dholt that worked

memomemo 09-19-2006 07:16 PM

Hello

I am web site www.forumsitesi.info/forum > CMPS portal setup = ok
But
This page index how vbimage random to show?

memomemo 09-19-2006 08:26 PM

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>

memomemo 09-19-2006 08:27 PM

Sorry mistake post :(

toolblast 09-19-2006 08:57 PM

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="https://vborg.vbsupport.ru/"></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

ryuji 09-19-2006 10:12 PM

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

ryuji 09-19-2006 11:51 PM

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); 


Morrus 09-20-2006 12:02 AM

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.

ryuji 09-20-2006 12:49 AM

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="https://vborg.vbsupport.ru/"></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'

Morrus 09-20-2006 12:57 AM

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)".

ryuji 09-20-2006 01:04 AM

Quote:

Originally Posted by Morrus
That worked - thanks! Although it only works if you select "Columns (new view)" and not "Rows (old view)".

i only fixed the error, i dont have the time to make both views work

Morrus 09-20-2006 01:07 AM

Quote:

Originally Posted by ryuji
i only fixed the error, i dont have the time to make both views work

No worries. It wasn't clear to me whether the original suggestion was supposed to apply to both view or just one.

memomemo 09-20-2006 11:25 AM

Please HELP

Hello

I am web site www.forumsitesi.info/forum > CMPS portal setup = ok
But
This page index how vbimage random to show?

Ranma2k 09-20-2006 11:45 AM

i managed to fix most of the stuff
the next ver is a complete rewrite for the hack . so it's taking a lot of time

the new ver will support both db and it will cover all the requests
starting next week I'll have a lot of free time to work on it so ver 2.0 will be available in the next few weeks

i appreciate everyone help please if you think there is something need to be added / or to be fixed please let me know

fly 09-20-2006 05:43 PM

A question that may have been covered, but why doesn't the uninstall remove the database stuff? How does one remove it then?

edit: I see we have to manually remove the DB. May I make the suggestion that the uninstall actually uninstall the whole thing? Otherwise, with all due respect, why have it?

toolblast 09-20-2006 06:38 PM

Quote:

Originally Posted by Morrus
No worries. It wasn't clear to me whether the original suggestion was supposed to apply to both view or just one.


Hi guys. Glad you liked my little mod. I forgot to meantion that yes, it only works in the 'column' view. The row view is a different template I believe.

But if you only have the images and not the 'detail' stuff, then it is probably best to have it in column view since I personally like the look of it better. But it is your preference, if you want it in the row view, on a site with a lot of images and smaller thumbnails it makes the page very large and a lot of scrolling.

Thanks Ryuji for your enhancement of the template, I'll give it a try :)

toolblast 09-20-2006 06:48 PM

*update:

Also, I see what someone would want the 'my images' to be in 'row view' or at least not have as many columns.

On my site for example, when I use my template mod imgbit... it just shows the image thumbnails.. nothing else. My thumbnails are set to be small (200x200) about that size... so I can end up fitting 4 images per row.

However... once the user goes to 'my images' and the permission occurs to show all the bbcode and other bits below the thumbnail... it ends up being too wide for each image and 4 columns of images ends up getting too wide and goes off the screen.

My request:

It would be nice to integrate my mod into the product and separate the settings to be for MY IMAGES and PUBLIC GALLERY VIEW. Something like this in the settings:

Public Gallery View:
- show image properties/bbcode, etc? YES/NO
- columns: x

My Images view:
- show image properties/bbcode, etc? YES/NO
- columns or rows?
- columns?: x number of columns.

That way I can set it so that if the user is in 'my images' he/she sees all the extra properties below his/her thumbnails, and there are only 2 columns of images so that it fits my layout. But when OTHER users are viewing that user's public gallery... none of the properties display under the thumbnails, allowing me to set it up to have 4 columns of thumbnails.

Make sense?

|oR|Greg 09-21-2006 01:59 PM

How come on my individual image pages, I get the word Array at the top?
Obviously it has to do with the addition of the code in the .php script:
Code:

define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');

...but why only on the Image Host pages, and only on individual picture pages.
Example

transitbus 09-21-2006 05:06 PM

Quote:

Originally Posted by Ranma2k
yes
check this post
https://vborg.vbsupport.ru/showpost....&postcount=667
if you want to set it up as a module
copy the code of the blugin into a php file and put it into the module folder
and set it up in the vbadvanced

Ok so I tried this and got nothing. Is there a module made by someone to use on CMPS?? I would really love to have a random pic shown. Would especially love if it had a time of once per day.

dholt 09-21-2006 05:22 PM

Quote:

Originally Posted by Morrus
Just change the phrase. I changed it to "Image Hosting".

I can seem to find were it changes it to i must have changed everything in that nav code


All times are GMT. The time now is 11:01 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.02453 seconds
  • Memory Usage 1,905KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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