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)

fancominc 06-02-2008 10:24 AM

If I want to translate some phrases (like VB Image Host in the navigation bar), how can I do that?

fancominc 06-02-2008 10:26 AM

and when I tried to upload an image, it returned an error saying that I don't have permission to use the feature (I did activate it and did set the CHMOD to 777)? help please!

kether1 06-02-2008 11:55 AM

Quote:

Originally Posted by kether1 (Post 1531370)
Here is an odd question: I would like to use this as the image gallery for my forum, but I would like to have the images that are hosted placed on my other URL on my server. For example if my forum address is www.example.com/forum - instead of having the 'imagehosting' folder inside /forum - I would like to put it on my other site - www.othersite.com/imagehosting - that is not a forum site at all (but would serve as the image hosting site.)

This way all the images would be stored at that site and have that URL instead of my forum's url.

Ok - why do I want to do this? There are a couple of reasons but the main one is that I want to be able to cache the images in the forum using the ImageCache hack. If the image comes from my forum url, then the ImageCache hack will not cache the image and if a user deletes an image from his album to make room for another,--- if that image was used in the forum, --- it then disappeares and leaves a blank or red x where the image used to be :( thus screwing up that particular thread in the forum.

I thought about just turning off the 'delete' permissions in this modification, but decided that would mean no one could ever change his or her gallery. - That would not be cool. My users have lots of photos and I am sure they would run out of space and start deleting to make room for more.

But I don't want to have missing images in the forum either, so I would like to have the image cached.

I like this hack very much, but cannot use it unless there is a way to store the images on my non-forum site.

Any idea how to do that?

Thanks,
K

BTW - (I installed this on my test forum and it works wonderfully in 3.7 - I sure hope to be able to install it on my real forum and click INSTALL here!)

Anyone have any thoughts about how to do this?

Thanks,
Kether

Warlord 06-02-2008 12:32 PM

Not sure if it would work but I'd try this..

in the file product-ao_vbimghost.xml, go to line 750 and change the path to the complete url you want your pictures stored in on the other domain. So long as your database information is the same I think it should work. (You may have to set the final folder name in the vbIMG Options in the Admin panel.

You have a vb here: http://www.site1.com/vb
You want images hosted here: http://www.site2.com/vb/imagehosting
(On site2 create the folders vb (or forums or whatever your normal vbulletin folder is called) with a subfolder called imagehosting even if you don't have a vb on that site - and make sure you CHMOD it 777)

i.e. - if the path to where you want your images hosted is http://www.site2.com/vb/imagehosting I'd just try typing in http://www.site2.com (on line 750), then save the file and import and overwrite the product again (In the vbulletin cp).

Then type in the folder imagehosting in the admin control panel options for the image hosting in vbulletin. Just an idea, but it might work.

kether1 06-02-2008 10:58 PM

Quote:

Originally Posted by Warlord (Post 1538695)
Not sure if it would work but I'd try this..

in the file product-ao_vbimghost.xml, go to line 750 and change the path to the complete url you want your pictures stored in on the other domain. So long as your database information is the same I think it should work. (You may have to set the final folder name in the vbIMG Options in the Admin panel.

You have a vb here: http://www.site1.com/vb
You want images hosted here: http://www.site2.com/vb/imagehosting
(On site2 create the folders vb (or forums or whatever your normal vbulletin folder is called) with a subfolder called imagehosting even if you don't have a vb on that site - and make sure you CHMOD it 777)

i.e. - if the path to where you want your images hosted is http://www.site2.com/vb/imagehosting I'd just try typing in http://www.site2.com (on line 750), then save the file and import and overwrite the product again (In the vbulletin cp).

Then type in the folder imagehosting in the admin control panel options for the image hosting in vbulletin. Just an idea, but it might work.


I will give it a try and let you know! Thanks for the detailed instructions.

Regards,
Kether

ShiZoPhreN 06-03-2008 03:50 AM

Any1 have a Idea, i can 5 Pictures in a Profiltab?.. Like "Gallery-Profiltab"

Thanx in Advance

Ah and Ranma2k, this Hack is great for "Imagehosting" for external links an the intregated "Album"-Feature i find, is for Private or non-external-links so pls, :) upgrade your great hack pls =D eg. with Profiltab-Preview or so.

fancominc 06-03-2008 12:10 PM

Quote:

Originally Posted by fancominc (Post 1538610)
and when I tried to upload an image, it returned an error saying that I don't have permission to use the feature (I did activate it and did set the CHMOD to 777)? help please!

I'd appreciate very much if somebody could help me with this. I can't get it work properly.

Warlord 06-03-2008 03:14 PM

Quote:

Originally Posted by fancominc (Post 1539641)
I'd appreciate very much if somebody could help me with this. I can't get it work properly.


Sounds like you need to update your usergroup settings.

Admin Control Panel--->Usergroups--->Usergroup Manager

Once there, edit the usergroups you would like to be able to upload images.

jailer 06-03-2008 03:19 PM

Can anyone tell me what the tmp files are in the imagehosting folder? I've not that many images but 180mb of temp files..?

Thanks.

Warlord 06-03-2008 04:31 PM

Quote:

Originally Posted by jailer (Post 1539783)
Can anyone tell me what the tmp files are in the imagehosting folder? I've not that many images but 180mb of temp files..?

Thanks.

This is the only part of the code I could find anything about temp files in for the XML file...

Code:

                <plugin active="1" executionorder="5">
                        <title>vbimghost Precach template</title>
                        <hookname>member_start</hookname>
                        <phpcode><![CDATA[$temp = array('vbimghost_memberbit','vbimghost_memberbit_noimg');
cache_templates($temp, $style['templatelist']);]]></phpcode>
                </plugin>

Looks like it's a plugin to cache a template for the member profile page maybe? I'm not sure what they are, but I don't think think they're really all that important, it didn't seem to affect anything when I deleted them from my folder.


All times are GMT. The time now is 04:02 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.02470 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_code_printable
  • (5)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