vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=106127)

Makaveli105 04-10-2006 01:11 AM

^^what do you mean??

in the next release could u please have it so when a users secondary group's permission allows them to upload, but their primary doesnt, that they can still upload?

I have users who's primary usergroup says they cant, and they have 2 or more secondary, both of which say they can upload, but they cant because of their primary usergroup

kurtbarker 04-10-2006 01:48 AM

Quote:

Originally Posted by NR Fatal
now i'm wondering about this the images are comming up off color and I'm recieving an error at the top of my page when I click "view all user images"

Warning: getimagesize(imagehosting/thum_24438430dd43d0.bmp): failed to open stream: No such file or directory in /vbimghost.php on line 299

also, the thumbnails are of the pictures are distorted and the colors are off. (attached file below), when I click the image the picture looks fine its just the pics here that are distorted and also a huge black box around it. whats the matter with it?

jake25's prob. is like mine but slightly different. I'm receiveing the error while only clicking the "view all user images" link. the images come up, its just that error on the top of the window.


hey mate, I had the same probs... disable thumbnail option in ACP, but set thumbnail size... although this seems weird, if you enable thumbnail, it only shows half of the picture [oh couse this depends on the size], and it is discoloured. So disabling this shows the entire picture, and in the size you set in the thumbnail size option...

now for the error. I asumed I got this because I disabled thumbnails and it was looking for the thumb_ prefex of the file that didn't exist... So i manually went into the .php file and deleted that line of code... i've had no problems since.

I know it's probably a bit of a work-around than a fix, but it works :D

Ohiosweetheart 04-10-2006 02:17 AM

I like this feature!

Question... is there a way to make this password protected?
In other words, all of the members who are posting pics will set theirs to public, but ONE universal password is needed to view each members pics.

is this possible?

NR Fatal 04-10-2006 02:19 AM

Quote:

Originally Posted by kurtbarker
hey mate, I had the same probs... disable thumbnail option in ACP, but set thumbnail size... although this seems weird, if you enable thumbnail, it only shows half of the picture [oh couse this depends on the size], and it is discoloured. So disabling this shows the entire picture, and in the size you set in the thumbnail size option...

now for the error. I asumed I got this because I disabled thumbnails and it was looking for the thumb_ prefex of the file that didn't exist... So i manually went into the .php file and deleted that line of code... i've had no problems since.

I know it's probably a bit of a work-around than a fix, but it works :D

ok, I disabled the thumbnails, BUT its stil doing the same thing. I noticed one thing though, I only recieve the error
PHP Code:

Warninggetimagesize(imagehosting/thum_24438430dd43d0.bmp): failed to open streamNo such file or directory in /vbimghost.php on line 299 

after I click View all images and then click on my Name, it doesn't do it when I veiw another persons images. hm.. weird.

kurtbarker 04-10-2006 07:27 AM

Quote:

Originally Posted by NR_Fatal
ok, I disabled the thumbnails, BUT its stil doing the same thing. I noticed one thing though, I only recieve the error

Yeah mate, that should have only cleared up the pic so it isn't all discoloured.

The get rid of that error you need to delete that getimagesize line in the vbimagehost.php file... line 299

kurtbarker 04-10-2006 02:17 PM

guyz, now i've got a question of my own, lol

I want to make this a private system, so not giving users the option to make a pic public... So all pics private by default, no option to change it to public, and no drop down option to 'view all members pics'

can anyone shed any light on how I can do this?

NR Fatal 04-10-2006 11:06 PM

Quote:

Originally Posted by kurtbarker
guyz, now i've got a question of my own, lol

I want to make this a private system, so not giving users the option to make a pic public... So all pics private by default, no option to change it to public, and no drop down option to 'view all members pics'

can anyone shed any light on how I can do this?

hm. I know I'd like to see an option to make it all private or all public and make it so Guests and people not logged in CAN'T see the images.

Jake25 04-11-2006 01:47 AM

Quote:

Originally Posted by kurtbarker
hey mate, I had the same probs... disable thumbnail option in ACP, but set thumbnail size... although this seems weird, if you enable thumbnail, it only shows half of the picture [oh couse this depends on the size], and it is discoloured. So disabling this shows the entire picture, and in the size you set in the thumbnail size option...

now for the error. I asumed I got this because I disabled thumbnails and it was looking for the thumb_ prefex of the file that didn't exist... So i manually went into the .php file and deleted that line of code... i've had no problems since.

I know it's probably a bit of a work-around than a fix, but it works :D


Thanks for err, kind of answering my question. Ha.

Anyway, my problem was exactly the same as NR Fatal's, and deleting that line from the vbimagehost seemed to work.

Nice hack, but it needs to be fixed.

kurtbarker 04-11-2006 01:54 AM

I wanna know how to make this thing private... I'm willing to muck around with the code, but i'm no coder

Ranma2k 04-11-2006 05:45 AM

Quote:

Originally Posted by Queball_Beast
is there a way to make this work with vbbux & vbplaza? I want users to use vbbux to host images.. hehehee. :banana:


yes i'm planning to add inegration with vbplaza, so any ideas would be great :)

Ranma2k 04-11-2006 05:49 AM

Quote:

Originally Posted by Gehanna
When I upload an image they are all located in the upper left corner which leaves an unattractive black area around the image. Please refer to this link for an example: http://currentday.com/forums/vbimgho...iewimages&id=2 is there anything I can do to fix this?

Thanks,
Gehanna

that is a bug in the thumbnail ( since i wrote a very simple one ) to avoide it just turn the thumbnail function off in the vbimghosting setting the admincp

Ranma2k 04-11-2006 05:51 AM

Quote:

Originally Posted by rareclownfish
Thanks got it to work,

I have another question about this, when I click on my forum page I can use the imagehosting, upload etc. When I click on the my gallery and them try to load anything in the imagehosting it gives me a page error.
The url goes to this http://www.rareclownfish.com/gallery...hp?do=myimages
And I get this error
HTTP 404 - File not found
Internet Explorer

the file is not under the gallery
it under the main form durectory

so that link is poiting to the wrong location of the file

Ranma2k 04-11-2006 05:54 AM

Quote:

Originally Posted by Jake25
Nice, works great.

Cant wait for the next version though (ability to upload multiple images at once, and for an Admin to view all private images)

I do have a question though..
Would it be possible to make it so the default of the images is set at "public view", and not "private"? So, the user would have to make it private, instead of public. Thanks.


/clicks install

yes in vbimghost.php
go to line 404 & 405

find the code
Code:

$sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` )
                    VALUES ('', '".$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')";

replace it to

Code:

$sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` )
                    VALUES ('', '".$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '0')";

this will make all uploaded images public by default

if you want to remove the link that set it private remove the link from the templates

Ranma2k 04-11-2006 05:55 AM

Quote:

Originally Posted by NR Fatal
now i'm wondering about this the images are comming up off color and I'm recieving an error at the top of my page when I click "view all user images"

Warning: getimagesize(imagehosting/thum_24438430dd43d0.bmp): failed to open stream: No such file or directory in /vbimghost.php on line 299

also, the thumbnails are of the pictures are distorted and the colors are off. (attached file below), when I click the image the picture looks fine its just the pics here that are distorted and also a huge black box around it. whats the matter with it?

jake25's prob. is like mine but slightly different. I'm receiveing the error while only clicking the "view all user images" link. the images come up, its just that error on the top of the window.

gime a link to your site please

Ranma2k 04-11-2006 05:56 AM

Quote:

Originally Posted by rareclownfish
Hey Ran or anyone that can help, I would like to change the wording VB IMAGE HOST to say somthing else on the forum say Pictures Hosting or somthing like that.
Thanks

just edit the phrase in the language and phrases
search for vb image host and change it to what ever you want

Ranma2k 04-11-2006 05:58 AM

Quote:

Originally Posted by Makaveli105
^^what do you mean??

in the next release could u please have it so when a users secondary group's permission allows them to upload, but their primary doesnt, that they can still upload?

I have users who's primary usergroup says they cant, and they have 2 or more secondary, both of which say they can upload, but they cant because of their primary usergroup

it's should work this way ..
it will use the default inharitance in vb
i'm planning on improving it more

Ranma2k 04-11-2006 05:59 AM

Quote:

Originally Posted by Ohiosweetheart
I like this feature!

Question... is there a way to make this password protected?
In other words, all of the members who are posting pics will set theirs to public, but ONE universal password is needed to view each members pics.

is this possible?

yah but what's the point from doing that ?!

Ranma2k 04-11-2006 06:01 AM

Quote:

Originally Posted by kurtbarker
I wanna know how to make this thing private... I'm willing to muck around with the code, but i'm no coder

you can hide the menu from showing to the guest only to members

there ill be more features to be added and alot to fix XD.

NR Fatal 04-13-2006 12:44 AM

Quote:

Originally Posted by Ranma2k
gime a link to your site please

http://forum.norestrictions.net/index.php
their ya go. like i said, view all uploaded images, then click someone's name to view the images and boom, the error.

Ranma2k 04-13-2006 07:29 AM

Quote:

Originally Posted by NR Fatal
http://forum.norestrictions.net/index.php
their ya go. like i said, view all uploaded images, then click someone's name to view the images and boom, the error.

there is some misconfiguration ..
can you send me the admin login info

WNxWakko 04-13-2006 09:47 PM

When I upload an image, it appears as about 3x the size of actual. It is strange, not realy the actual image, but it makes this expanded black area for what is being added to the image size.

Notice all the black. That is not part of the original image and it does this to all the images.
https://vborg.vbsupport.ru/external/2006/04/70.gif

Any fix?

NR Fatal 04-13-2006 10:48 PM

Quote:

Originally Posted by WNxWakko
When I upload an image, it appears as about 3x the size of actual. It is strange, not realy the actual image, but it makes this expanded black area for what is being added to the image size.

Notice all the black. That is not part of the original image and it does this to all the images.
http://www.gamersphere.com/temp/blackimage.gif

Any fix?

Disable the Thumbnails
in your admin CP>Vbulletin options>vb image hosting>"Enable thumbnail option" NO.

rareclownfish 04-13-2006 11:14 PM

Hey Ran or anyone that can help, I would like to change the wording VB IMAGE HOST to say somthing else on the forum say Pictures Hosting or somthing like that.
Thanks

rareclownfish 04-13-2006 11:16 PM

Quote:

Originally Posted by Ranma2k
the file is not under the gallery
it under the main form durectory

so that link is poiting to the wrong location of the file


How do I change the location file?

Ranma2k 04-14-2006 10:34 AM

i now know the problem
going to release a fix for it soon ..

sorry for the bug

Ranma2k 04-14-2006 10:35 AM

Quote:

Originally Posted by rareclownfish
Hey Ran or anyone that can help, I would like to change the wording VB IMAGE HOST to say somthing else on the forum say Pictures Hosting or somthing like that.
Thanks

go to the Phrase Manager and search for it
replace it with what you want it to be

Ranma2k 04-14-2006 10:36 AM

Quote:

Originally Posted by rareclownfish
How do I change the location file?

you can modify the links in the navbar and put the complete link insted the name of the file
http://www.yoursiset.com/forums/vbimghost.php

NR Fatal 04-14-2006 10:35 PM

Quote:

Originally Posted by Ranma2k
go to the Phrase Manager and search for it
replace it with what you want it to be

Cool!

NoRespect 04-14-2006 11:56 PM

I had the older version working fine, upgraded, and now I get a blank PHP page when uploading. :confused:

There were some PHP errors (such as not starting the file with <?php) that I cleaned up, but still nothing.

This is on Apache 2.0.xx & PHP 5.1.1 by the way...

rareclownfish 04-15-2006 03:04 PM

Quote:

Originally Posted by Ranma2k
you can modify the links in the navbar and put the complete link insted the name of the file
http://www.yoursiset.com/forums/vbimghost.php

What file should I place this under or above in the navbar?

Ranma2k 04-15-2006 04:12 PM

Quote:

Originally Posted by NoRespect
I had the older version working fine, upgraded, and now I get a blank PHP page when uploading. :confused:

There were some PHP errors (such as not starting the file with <?php) that I cleaned up, but still nothing.

This is on Apache 2.0.xx & PHP 5.1.1 by the way...

Did you revert the templates !?

Ranma2k 04-15-2006 04:13 PM

Quote:

Originally Posted by rareclownfish
What file should I place this under or above in the navbar?

No edit the template Navbar
and replace the links with the absloute one

Nathan2006 04-15-2006 06:58 PM

Hi Waiel

Thank you for the update :)

Just one problem I find is that when a guest is viewing the main page they can view the image host link and click on the upload or view.

I know they cannot do anything but is there anyway to hide it from guests?

Thanks for your help :)

Ranma2k 04-15-2006 07:21 PM

Quote:

Originally Posted by Nathan2006
Hi Waiel

Thank you for the update :)

Just one problem I find is that when a guest is viewing the main page they can view the image host link and click on the upload or view.

I know they cannot do anything but is there anyway to hide it from guests?

Thanks for your help :)

yes

in navbar
search for

Code:

<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
                                <script type="text/javascript"> vbmenu_register("vbimghost");</script></td>



and replace it with
Code:

<if condition="$bbuserinfo['userid']">
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
                                <script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
</if>

this will only show the menu to registred members

Roms 04-15-2006 07:26 PM

Great idea!

rareclownfish 04-15-2006 09:18 PM

Quote:

Originally Posted by Ranma2k
No edit the template Navbar
and replace the links with the absloute one

Again what file am I looking for? Thanks

Nathan2006 04-15-2006 09:49 PM

Quote:

Originally Posted by Ranma2k
yes

in navbar
search for

Code:

<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
                <script type="text/javascript"> vbmenu_register("vbimghost");</script></td>



and replace it with
Code:

<if condition="$bbuserinfo['userid']">
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
                <script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
</if>

this will only show the menu to registred members



Thank you Waiel

Works great now :D

Ranma2k 04-16-2006 04:35 AM

Quote:

Originally Posted by rareclownfish
Again what file am I looking for? Thanks

in navbar find this :
Code:

<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="vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
                                        <tr><td class="vbmenu_option"><a href="vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
                                        <tr><td class="vbmenu_option"><a href="vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
                                        </table>
                                </div>


and replace it with this
Code:

<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="http://www.rareclownfish.com/vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
                                        <tr><td class="vbmenu_option"><a href="http://www.rareclownfish.com/vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
                                        <tr><td class="vbmenu_option"><a href="http://www.rareclownfish.com/vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
                                        </table>
                                </div>


rareclownfish 04-18-2006 06:23 PM

Quote:

Originally Posted by Ranma2k
go to the Phrase Manager and search for it
replace it with what you want it to be

Where is the phrase manager located?

Ranma2k 04-18-2006 06:56 PM

Quote:

Originally Posted by rareclownfish
Where is the phrase manager located?

in the admincp .. in the left side menu under language and phrases


All times are GMT. The time now is 04:51 AM.

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.02172 seconds
  • Memory Usage 1,873KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (30)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