vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Free onboard Image Hosting - "photobucket" for your board. (https://vborg.vbsupport.ru/showthread.php?t=307803)

Max Taxable 01-31-2014 11:00 PM

Free onboard Image Hosting - "photobucket" for your board.
 
1 Attachment(s)
Should be same install on any vBulletin board, versions 3.0 and up to 3.8.7. I have not tried this yet on vBulletin 4 and up.

This uses NO:
  • Plugins
  • Auto template
  • Files to upload (except one icon image)
  • DB changes

Take a test drive here:

HTML Code:

http://usmessageboards.com
USERNAME vBTester
PASSWORD testmetestme

Simply go to any thread and have a look at quick reply and click the icon.




I've had this "hack" on my board for a few years and recently installed it on a couple other fellas boards and decided it was time to share the secret. Have your own image hosting tool that is independent of 3rd party ones that like to block hotlinking and take images down after awhile.

The software used is by another author and is not my code. The template edits to integrate it to your vBulletin installation however, is.

First of all go to: http://codefuture.co.uk/projects/imagehost/ and download the free image hosting software.

Upload this package to root level of your server using a clever name for the folder, like "imagemagic" or something related to your board's topic. For a baseball board recently, I styled this "picturecatcher."

You should now be able to use and administer this by going to the URL, yourboard.com/yournameforthis

Once it is installed and working and you have done the setup and configuration to your liking, it is time to integrate this to your board. The best place to do this is in the WYSIWYG editors and the quick editors throughout.

Use "Search In Templates" to find all templates that have the word "separator" or "separator.gif" in them. This will populate the list of all the editor templates in your style. The list looks like this:

https://vborg.vbsupport.ru/external/2014/02/29.jpg

And you want to edit the templates you see in red, above.

In these templates find:
HTML Code:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
And add after that:
HTML Code:

<td><div class="imagebutton">
<a href="javascript:void(0);" onclick="window.open('http://yoursite.com/yourimagehostfoldername/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');return false;"><img src="$stylevar[imgdir_editor]/uploadimage.png" width="21" height="20" alt="Upload Image for Posting" /></a></div></td>

You'll want to experiment with this, as not all styles have the same templates for the editors. But most do.

Upload this image to your server at location / and style it "uploadimage.png."

http://usmessageboards.com/myimagehost/?di=4PTR

Do this edit for each template indicated on the populated list above that are in red.

The result is, every member who is logged in will see the icon in the posting editors and on click, will give them a popup with the uploader loaded and ready for their images. You and your members will see this in your editors:

https://vborg.vbsupport.ru/external/2014/02/30.jpg

And that's it! The uploader itself is very user friendly and intuitive, not much different at all from photobucket, ImageShack, or any other image hosting feature including vBulletin's own attachment uploader. So your membership should have no problems with it.


I posted all images in this post, using this very same image uploader, on my board! So as you can see it can be used anywhere to post images. There are also links provided after upload, for direct sharing, email sharing, and so on.

Enjoy!

RSNF 02-01-2014 04:13 PM

I can't tell you all how much myself and my members love this feature...........Thank you Sooo much!!

blind-eddie 02-01-2014 04:21 PM

I like this image hosting software, I have been using it for a couple years on a few HTML sites I have. I am sure this will be used by many of our fellow 3.8 members.
Thanks for sharing.

Max Taxable 02-01-2014 04:24 PM

Quote:

Originally Posted by blind-eddie (Post 2478425)
I like this image hosting software, I have been using it for a couple years on a few HTML sites I have. I am sure this will be used by many of our fellow 3.8 members.
Thanks for sharing.

I added a "test drive" login credentials to the OP, thanks for the idea!

Max Taxable 02-01-2014 10:50 PM

Quote:

Originally Posted by RSNF (Post 2478421)
I can't tell you all how much myself and my members love this feature...........Thank you Sooo much!!

It's a handy little gadget glad you like!

Robert Waanders 02-06-2014 08:25 AM

Hey This is great, thanks for sharing this info! I wil implement this on my site.

Robert

Robert Waanders 02-06-2014 08:56 AM

Currently implementing this on my site, one question. Once clicked on the upload image button, a screen appears, fine, after selecting an image I don't get a scroll-bar to scroll down in the window to select the needed html code... Anyone else the same problem?

Robert

Robert Waanders 02-06-2014 10:10 AM

ha... found a solution... Added : resizable=yes Now works fine..

Max Taxable 02-06-2014 02:55 PM

Quote:

Originally Posted by Robert Waanders (Post 2479333)
ha... found a solution... Added : resizable=yes Now works fine..

Please feel free to post your code as used for the edification of others and do mark installed if you like it!

Robert Waanders 02-10-2014 10:50 AM

Quote:

Originally Posted by Max Taxable (Post 2479380)
Please feel free to post your code as used for the edification of others and do mark installed if you like it!

Will do, there is one thing that is concerning me, the coder of the image hosting software seems to be not so active on his site..

I did some more research, and i found http://chevereto.com Do you know about this script?

Max Taxable 02-10-2014 04:00 PM

Yep that needs its own database.... Writes to the DB instead of to file system.

Dunno about the developer of this being inactive, I haven't visited his site in some years. The software is fully editable and has all the features listed at the other, and isn't hard to support yourself. It's pretty simple and straight forward stuff.

But if support is better and you don't mind having another database and everything associated with that, looks at first blush like a good alternative.

GSMCare 02-13-2014 06:59 AM

Download link not available?

blind-eddie 02-13-2014 11:25 AM

Read first post again...

blackberry 02-19-2014 05:31 PM

please make it possible for vb 4.x

Max Taxable 02-19-2014 05:38 PM

Quote:

Originally Posted by blackberry (Post 2482419)
please make it possible for vb 4.x

It is, I just simply have never tried it. Shouldn't be that much dissimilar to the v3 install.

Mr_Running 03-26-2014 02:14 AM

Sweet!
First thought ...How to set up so that only members can use it?
... so that unregistered can not view script pages?

Max Taxable 03-26-2014 03:09 AM

Quote:

Originally Posted by Mr_Running (Post 2489566)
Sweet!
First thought ...How to set up so that only members can use it?
... so that unregistered can not view script pages?

That's built in, if you do not allow visitors to post they won't see the editor and therefore won't see the button for this - not even if viewing the script via page source reader..

You can also put a <if> conditional on the button, so they won't see it if you do allow visitors to post.

Mr_Running 03-26-2014 04:12 AM

I was thinking about search engines finding and indexing it...also if the URL is known.

I have it set up on 4.2.2 p1 but trying to figure out the editor button as the only two templates I have found so far are...

Code:

postbit_quickedit
and

Code:

socialgroups_discussion_quickedit
This is all the code
Code:

<vb:comment>obsolete -- does not appear to be used as far back as 3.7</vb:comment>

As far as the button ...it's probably ...totally different but could the button be set up as a custom bbcode?
Perhaps, I know the answer to that but I thought I throw it out there...LOL...need sleep ;)

Max Taxable 03-26-2014 03:12 PM

I've never installed this in a version 4 vBulletin so I must defer to others who have more experience with it - stay tuned.

blind-eddie 03-26-2014 03:30 PM

Try this to get button on 4. editor.
https://vborg.vbsupport.ru/showthread.php?t=278828

Gadget_Guy 03-26-2014 09:53 PM

Hi,

I have uploaded the files as per the instructions, however when I go to the URL to do the initial install all I get is a blank screen.

Any ideas?

D.

Max Taxable 03-26-2014 11:24 PM

Quote:

Originally Posted by Gadget_Guy (Post 2489725)
Hi,

I have uploaded the files as per the instructions, however when I go to the URL to do the initial install all I get is a blank screen.

Any ideas?

D.

Link?

viper357 08-28-2014 09:04 AM

Hi, is there any way to have this upload and store the images on to a different server?

Max Taxable 08-28-2014 12:29 PM

Quote:

Originally Posted by viper357 (Post 2512959)
Hi, is there any way to have this upload and store the images on to a different server?

Only to one you have control of.

viper357 08-28-2014 12:53 PM

Yes. My forum is on urljet but I have an account at siteground with a couple of other websites on, could I have the pics hosted on siteground?

Max Taxable 08-28-2014 01:31 PM

Quote:

Originally Posted by viper357 (Post 2512977)
Yes. My forum is on urljet but I have an account at siteground with a couple of other websites on, could I have the pics hosted on siteground?

You can install this on any host you use. Doesn't have to be the same one the board is hosted on.

viper357 08-28-2014 05:51 PM

That sounds awesome, thanks, will give it a try.

Cheeky request, but I have this mod at the moment - https://vborg.vbsupport.ru/showthread.php?t=123481 and it automatically inserts the links into the post without having to copy and paste, any chance you would be able to incorporate that feature into this mod?:)

Max Taxable 08-28-2014 06:25 PM

No idea.

Kwikms 07-10-2015 03:59 AM

Does the user still has control over the images he uploaded? Can he delete the image afterwards?

Max Taxable 07-10-2015 03:13 PM

That's a option you would set.

Kwikms 07-10-2015 03:36 PM

Where is the control panel for the user for this? Are there any screens around?

Max Taxable 07-10-2015 03:48 PM

Yeah it's not my code at all and I have no idea what if any updates the developer has done since I posted this. He's got a forum there on his site where you download this, for Q&A.

You can set it up so members can create their own accounts. I don't have mine set up that way because the whole point of it was to be able to control the images and not have them disappear.

Vintum 08-06-2015 07:16 AM

Wow, I would totally pay for instructions to get this going on 4.2.2 if it can be made to work with vaultwiki's editors, which I don't see why not...
Suffering from not being able to have an easy internal method to upload wiki images and have been using imgur so far.

Manoel J?nior 08-06-2015 11:28 PM

Please, update this excelent mod for vB 4.2.x

Max Taxable 08-07-2015 12:29 AM

Quote:

Originally Posted by Manoel J?nior (Post 2552280)
Please, update this excelent mod for vB 4.2.x

It's not my code or my mod, I merely show how to use it in vB 3.8.x and haven't tried to integrate it for 4.2.X. It can't be much different, it's just template edits after all.

Manoel J?nior 08-07-2015 12:33 AM

Quote:

Originally Posted by Max Taxable (Post 2552283)
It's not my code or my mod, I merely show how to use it in vB 3.8.x and haven't tried to integrate it for 4.2.X. It can't be much different, it's just template edits after all.

You can try to adapt it to 4.2?

Max Taxable 08-07-2015 12:36 AM

Quote:

Originally Posted by Manoel J?nior (Post 2552284)
You can try to adapt it to 4.2?

I could, but just haven't seen the need since vB 4.2.x has a really good image upload system and handling of attachments native already, with option to store them in the file system already. I don't need this on my 4.2.X sites, so haven't spent any thought or time trying to port it to v4.

The only difference would be what templates to edit, and where. There was instruction posted earlier in this thread on how to add this to the v4 editor templates.

RichieBoy67 08-07-2015 01:23 AM

Just a question, is there any time limit on how long Photbucket hosts the images? I have seen many older posts with images hosted on some of the major image hosting sites disappear after a few years.

Thanks

Max Taxable 08-07-2015 03:09 AM

Quote:

Originally Posted by RichieBoy67 (Post 2552288)
Just a question, is there any time limit on how long Photbucket hosts the images? I have seen many older posts with images hosted on some of the major image hosting sites disappear after a few years.

Thanks

Photobucket as in, this particular Mod? or the real photobucket?

The deal is, this is not any kind of 3rd party host you have no control over. This is totally controlled and hosted by you so nothing ever gets lost or taken down.

I have no idea if the major image hosts have time limits. I only know we can't control images hosted by them, and they definitely do disappear.

CAG CheechDogg 08-07-2015 03:13 AM

I want to add this to my vb4 but I have had no luck lol ... can't find the correct templates to edit ...im LOST !


All times are GMT. The time now is 04:57 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.01261 seconds
  • Memory Usage 1,830KB
  • 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
  • (3)bbcode_html_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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