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?


All times are GMT. The time now is 07:24 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.01379 seconds
  • Memory Usage 1,750KB
  • 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_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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