Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Free onboard Image Hosting - "photobucket" for your board. Details »»
Free onboard Image Hosting - "photobucket" for your board.
Version: 1.00, by Max Taxable Max Taxable is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 01-31-2014 Last Update: Never Installs: 15
Template Edits
 
No support by the author.

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:



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



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:



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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-07-2015, 03:35 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
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.
Hey Max, Now I am impressed! I was under the assumption that your mod used the third party hosting! If I still used an older version of Vbulletin I would have grabbed this for sure! Nice work!
Reply With Quote
Благодарность от:
CAG CheechDogg
  #43  
Old 08-07-2015, 03:42 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Hey Max, Now I am impressed! I was under the assumption that your mod used the third party hosting! If I still used an older version of Vbulletin I would have grabbed this for sure! Nice work!
Thanks and yes, I just believe it is unnecessary for vB4.2.x since it has a better uploader and a better attachment display. Plus as in earlier versions, you can choose to store images in the file system instead of the database.

I first installed this to discourage members from using their own 3rd party photo hosting accounts - make it easier to post your photos - and it worked. I hardly ever see any hotlinked images that aren't on the same server as the board.
Reply With Quote
  #44  
Old 08-07-2015, 03:45 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
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 !
Might be helpful:

https://vborg.vbsupport.ru/showthread.php?t=278828
Reply With Quote
Благодарность от:
CAG CheechDogg
  #45  
Old 08-07-2015, 04:11 PM
Vintum Vintum is offline
 
Join Date: Jan 2013
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
I just believe it is unnecessary for vB4.2.x since it has a better uploader and a better attachment display. Plus as in earlier versions, you can choose to store images in the file system instead of the database.
This is quite true. If it wasn't for the fact that my site has recently started building wikis for the games we play, we wouldn't need it either. But I installed vaultwiki, which has a SERIOUS lack of an easy means to upload and post images to the wiki without using external image hosts. This would do wonders for us.

So far I've managed to get the script installed and the button to appear on the editor in both the forum and the wiki, but I can't get the button to do anything. I can't find a template to just edit and add the code, though. I had to make plugins for ckeditor to do it.
Reply With Quote
  #46  
Old 08-07-2015, 09:58 PM
Vintum Vintum is offline
 
Join Date: Jan 2013
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HEY!

After hours of bashing my face on the keyboard trying to figure out why the button wasn't working, a friend of mine came online. He's a dev himself, so I tossed him the question to see if he can help me figure out why the button did nothing at all. Turns out all I had to do was remove the "onclick" event from the code. And now it works just fine!

Here is everything I did to make this work on VB 4.2.2 in the ckeditor

1. Install the image software as described above. I got the 1.6.5 download and it was working fine for me. All set up and good to go.

2. I followed the guide to add a button here: https://vborg.vbsupport.ru/showthread.php?t=278828, as was already pointed out.

3. And the thing that made it all work for me:
Replace
Code:
alert('Hello world!');
	    editor.insertHtml( 'Hello World! - Hello World!' );
With
Code:
window.open('http://IMAGEHOST/BASE-URL-HERE/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');
Aside from renaming all the 'celButtonDemo' into something else, that is all I can recall changing from his provided code. Didn't have much luck with changing where the button appeared. Replacing "Quote" with "Image" broke things for me.
I won't say the the setup is perfect, but it works. For example, by button is off center. Would love to know how to fix that.
Reply With Quote
3 благодарности(ей) от:
CAG CheechDogg, Manoel J?nior, Max Taxable
  #47  
Old 08-08-2015, 01:09 AM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vintum View Post
HEY!

After hours of bashing my face on the keyboard trying to figure out why the button wasn't working, a friend of mine came online. He's a dev himself, so I tossed him the question to see if he can help me figure out why the button did nothing at all. Turns out all I had to do was remove the "onclick" event from the code. And now it works just fine!

Here is everything I did to make this work on VB 4.2.2 in the ckeditor

1. Install the image software as described above. I got the 1.6.5 download and it was working fine for me. All set up and good to go.

2. I followed the guide to add a button here: https://vborg.vbsupport.ru/showthread.php?t=278828, as was already pointed out.

3. And the thing that made it all work for me:
Replace
Code:
alert('Hello world!');
	    editor.insertHtml( 'Hello World! - Hello World!' );
With
Code:
window.open('http://IMAGEHOST/BASE-URL-HERE/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');
Aside from renaming all the 'celButtonDemo' into something else, that is all I can recall changing from his provided code. Didn't have much luck with changing where the button appeared. Replacing "Quote" with "Image" broke things for me.
I won't say the the setup is perfect, but it works. For example, by button is off center. Would love to know how to fix that.
Please, share modification
Reply With Quote
  #48  
Old 08-08-2015, 06:15 PM
Vintum Vintum is offline
 
Join Date: Jan 2013
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not understanding what you want from me. Everything is already provided.
Reply With Quote
  #49  
Old 08-10-2015, 04:52 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vintum View Post
HEY!

After hours of bashing my face on the keyboard trying to figure out why the button wasn't working, a friend of mine came online. He's a dev himself, so I tossed him the question to see if he can help me figure out why the button did nothing at all. Turns out all I had to do was remove the "onclick" event from the code. And now it works just fine!

Here is everything I did to make this work on VB 4.2.2 in the ckeditor

1. Install the image software as described above. I got the 1.6.5 download and it was working fine for me. All set up and good to go.

2. I followed the guide to add a button here: https://vborg.vbsupport.ru/showthread.php?t=278828, as was already pointed out.

3. And the thing that made it all work for me:
Replace
Code:
alert('Hello world!');
	    editor.insertHtml( 'Hello World! - Hello World!' );
With
Code:
window.open('http://IMAGEHOST/BASE-URL-HERE/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');
Aside from renaming all the 'celButtonDemo' into something else, that is all I can recall changing from his provided code. Didn't have much luck with changing where the button appeared. Replacing "Quote" with "Image" broke things for me.
I won't say the the setup is perfect, but it works. For example, by button is off center. Would love to know how to fix that.
This tutorial definitely helped and I now have it up and running on my Vb4 forums, thank you Vintum !!!!
Reply With Quote
2 благодарности(ей) от:
Max Taxable, Vintum
  #50  
Old 08-30-2015, 07:37 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Max !!! help !!! I forgot my admin password and for some reason I can't recover my password .... it has a recover password link but nothing happens ....any clue?
Reply With Quote
  #51  
Old 08-30-2015, 03:04 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
Max !!! help !!! I forgot my admin password and for some reason I can't recover my password .... it has a recover password link but nothing happens ....any clue?
PM sent.
Reply With Quote
Благодарность от:
CAG CheechDogg
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10970 seconds
  • Memory Usage 2,359KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (3)bbcode_html
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete