vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Add-On Releases - Simple Image Upload (https://vborg.vbsupport.ru/showthread.php?t=298017)

Sium 05-09-2013 10:00 PM

Simple Image Upload
 
1 Attachment(s)
Download: http://mod.postimage.org/download/si...in_english.zip

This is a very simple alternative to attachment mod. It works only with images and allows users to quickly add images to posts. All images are stored on third party image hosting service and bbcode for images is automatically inserted in posts when users upload images. Thumbnails are automatically created on image hosting server. This mod is very easy to install and very easy to use.

Code:

#
#---------[ 1. EDIT TEMPLATES ]------------------------------------------------
#

Log In and go to Admin Control Panel > Styles & Templates > Style Manager > Edit Templates > headinclude

#
#---------[ 2. BEFORE, ADD ]---------------------------------------------------
#

<script type="text/javascript" src="http://mod.postimage.org/vbulletin-english.js" charset="utf-8"></script>

#
#---------[ 3. SAVE ]----------------------------------------------------------
#


Other options and language settings are available here: http://postimage.org/mod.php

Powered by Postimage.org

Krusty1231 05-10-2013 07:09 PM

Not to many free uploaders allow upload of adult content. I will try your service - any paid features or member benefits?

Bob_R 05-11-2013 08:30 PM

Quote:

Originally Posted by Krusty1231 (Post 2421153)
Not to many free uploaders allow upload of adult content. I will try your service - any paid features or member benefits?

I'll be trying it too. ;) :)

Bob_R 05-14-2013 11:05 PM

1 Attachment(s)
Haven't tried it yet. But, check out the screenshot I provided.

Why is it there twice?

Where exactly do you put the one line in the headiclude template? That's probably why.

Thanks!!

elfenny 05-22-2013 04:12 AM

can operate in 4.2?

edit ... If it works, thanks

inigo 05-22-2013 08:38 AM

Someone has tried in 4.1.7?

Thanks!

Kane@airrifle 05-25-2013 11:23 AM

1 Attachment(s)
Attachment 155170
Quote:

Originally Posted by Bob_R (Post 2422109)
Haven't tried it yet. But, check out the screenshot I provided.

Why is it there twice?

Where exactly do you put the one line in the headiclude template? That's probably why.

Thanks!!

Quote:

Originally Posted by elfenny (Post 2423473)
can operate in 4.2?

edit ... If it works, thanks

Working for me in 4.2.3

in headinclude placed just below
Code:

<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>



On my board the headiclude edit placed the script in some inappropriate places, for example our Dragonbyte chatbox and in vbGallery/Albums. My solution was to block the unwanted locations with CSS in /style/additional css

Example: vbGallery Create new album and edit photo/album
Code:

/* Postimage Link Forms Disable*/
#edit_form > div.blockbody.formcontrols > div > div:nth-child(2) > div > a,  #usercss > form > div.blockbody.albumedit > ul > li > div.maineditor > label > div > a{
visibility: hidden;
pointer-events: none;
cursor: default;
}

Example: Dragonbyte chatbox (I have two instances, adjust accordingly)
Code:

/* Postimage Link Chatbox Disable*/
#dbtech_shoutbox2 > div.blockrow.dbtech_vbshout_wrapper > div > div > div:nth-child(1) > ul.dbtech_shoutarea_left > li > div > a, #dbtech_shoutbox1 > div.blockrow.dbtech_vbshout_wrapper > div > div > div > ul.dbtech_shoutarea_left > li > div > a{
visibility: hidden;
pointer-events: none;
cursor: default;
}

And lastly, should you want to style a button instead of showing the bland link. Obviously change colour, padding etc to suit your style
Code:

/* Postimage Link Button*/
#vB_Editor_QR > div > div > div > div > a, #vB_Editor_001 > div > div.editor_textbox_container.smilie > div > div > a {
        color: rgb(0, 0, 0);
font-size: 9px;
padding: 5px;
text-shadow: 0px -1px 0px rgba(30, 30, 30, 1);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: rgb(219, 219, 219);
background: -moz-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: -webkit-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: -o-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: -ms-linear-gradient(90deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
background: linear-gradient(0deg, rgb(219, 219, 219) 30%, rgb(219, 219, 219) 70%);
-webkit-box-shadow: 0px 2px 1px rgba(50, 50, 50, 0.75);
-moz-box-shadow:    0px 2px 1px rgba(50, 50, 50, 0.75);
box-shadow:        0px 2px 1px rgba(50, 50, 50, 0.75);
}


Bob_R 05-25-2013 07:15 PM

The instructions simply read:

#
#---------[ 2. BEFORE, ADD ]---------------------------------------------------
#

<script type="text/javascript" src="http://mod.postimage.org/vbulletin-english.js" charset="utf-8"></script>

Notice it just reads BEFORE, ADD

Before what?

No biggie I think it fixed itself.

Just don't like unclear instructions.

elfenny 06-03-2013 12:30 AM

1 Attachment(s)
UNINSTALLED
This mod is in error, the option to insert image appears within the thread several times...

Bob_R 06-03-2013 04:43 PM

Quote:

Originally Posted by Bob_R (Post 2424206)
The instructions simply read:

#
#---------[ 2. BEFORE, ADD ]---------------------------------------------------
#

<script type="text/javascript" src="http://mod.postimage.org/vbulletin-english.js" charset="utf-8"></script>

Notice it just reads BEFORE, ADD

Before what?

No biggie I think it fixed itself.

Just don't like unclear instructions.

Here's another unanswered complaint/issue.

I have the Do Not Resize box checked/enabled and yet it still re-sizes the image. :confused:

hoangserip 06-03-2013 05:22 PM

UNINSTALLED
This mod is in error

Toshinobu 06-05-2013 06:18 PM

I'm on 4.2.1 and it didn't work for me.

The link never appears anywhere. I tried including it in the headinclude and the editor_clientscript template.

It appears to be an issue with the Javascript file. When I look at the source code I can see the code is incomplete.

Example of http://mod.postimage.org/vbulletin-e...ink-family.js:

Code:

// MOD Title: Simple Image Upload
// MOD Author: Sium < admin@postimage.org > (N/A) http://postimage.org/
// MOD Version: 1.5.0

if(typeof postimage_lang==='undefined') {
var postimage_lang="english";
var postimage_add_text="Add image to post";

function postimage_query_string(postimage_search_name){
if(window.location.hash{
postimage_query=window.location.hash.substring(1).split("&");
for(postimage_i=0;postimage_i

That is exactly where the file ends.

LordCo 10-08-2013 02:06 PM

I think the site uses some script to stop people seeing the full code. I finally got to see the full code by using IE5

// MOD Title: Simple Image Upload // MOD Author: Sium < admin@postimage.org > (N/A) http://postimage.org/ // MOD Version: 1.5.0 if(typeof postimage_lang==='undefined') { var postimage_lang="english"; var postimage_add_text="Add image to post"; function postimage_query_string(postimage_search_name){if(w indow.location.hash){postimage_query=window.locati on.hash.substring(1).split("&");for(postimage_i=0; postimage_i<postimage_query.length;postimage_i++){ postimage_string_data=postimage_query[postimage_i].split("=");if(postimage_string_data[0]==postimage_search_name){postimage_string_data.shi ft();return unescape(postimage_string_data.join("="));}}}retur n void(0);}function postimage_isVisible(e){return e.offsetWidth>0 || e.offsetHeight>0;}function postimage_isEditor(e){return (e.id).indexOf('vB_Editor')>-1;}function postimage_isCkeditor(e){return (e.className).indexOf('ckeditor')>-1;}if(opener){var postimage_text=postimage_query_string("postimage_t ext");if(postimage_text){var postimage_id=postimage_query_string("postimage_id" );var postimage_area=opener.document.getElementsByTagNam e('textarea');for(var postimage_i=0;postimage_i<postimage_area.length;po stimage_i++){if(postimage_i==postimage_id){break;} }var postimage_inserted=false;if(typeof opener.vB_Editor==='object'){for(var A in opener.vB_Editor){if(opener.vB_Editor[A].wysiwyg_mode && opener.vB_Editor[A].initialized){opener.vB_Editor[A].write_editor_contents((opener.vB_Editor[A].get_editor_contents()+postimage_text),true);posti mage_inserted=true;}}}if(typeof postimage_area[postimage_i]!=='undefined'){if(postimage_inserted===false && typeof opener.CKEDITOR==='object' && typeof opener.CKEDITOR.instances[postimage_area[postimage_i].id]==='object'){opener.CKEDITOR.instances[postimage_area[postimage_i].id].insertText(postimage_text);}else{postimage_area[postimage_i].value=postimage_area[postimage_i].value+postimage_text;}}opener.focus();window.clos e();}}function postimage_insert(){var postimage_area=document.getElementsByTagName('text area');for(var postimage_i=0;postimage_i<postimage_area.length;po stimage_i++){if(!postimage_area[postimage_i].name.match(/username_list|search|recipients|backup/i)){if(postimage_isVisible(postimage_area[postimage_i]) || postimage_isEditor(postimage_area[postimage_i])){postimage_div=document.createElement('div');pos timage_open=document.createElement('a');postimage_ open.innerHTML=postimage_add_text;postimage_open.h ref="javascript:postimage_upload("+postimage_i+"); ";postimage_span=document.createElement('span');po stimage_span.innerHTML=" • ";postimage_div.appendChild(document.createElement ('br'));postimage_div.appendChild(postimage_span); postimage_div.appendChild(postimage_open);postimag e_div.appendChild(document.createElement('br'));po stimage_div.appendChild(document.createElement('br '));if(postimage_isCkeditor(postimage_area[postimage_i])){if(postimage_area[postimage_i].parentNode.nextSibling){postimage_area[postimage_i].parentNode.parentNode.insertBefore(postimage_div, postimage_area[postimage_i].parentNode.nextSibling);}else{postimage_area[postimage_i].parentNode.parentNode.appendChild(postimage_div); }}else{postimage_area[postimage_i].parentNode.appendChild(postimage_div);}}}}}functi on postimage_upload(areaid){window.open("http://postimage.org/index.php?mode=vbulletin&areaid="+areaid+"&hash=1& lang="+postimage_lang+"&code=&content=&forumurl="+ escape(document.location.href),"postimage","resiza ble=yes,width=500,height=400");return void(0);}if(typeof postimage_text==='undefined'){if(window.addEventLi stener){window.addEventListener('DOMContentLoaded' ,postimage_insert,false);}else if(window.attachEvent){window.attachEvent('onload' ,postimage_insert);}}}

The mod is still dead though - the URL the images get uploaded to is dead

LordCo 10-08-2013 02:39 PM

Ah, the site is back up? I take it back!

Krusty1231 10-08-2013 11:09 PM

It's a great image host. We use it a lot and well worth the $20 I spent on having our own account.

It is ideal for hosting images that other sites refuse to show. (Adult)

They went down last night - first time in months for them, but are back up this morning.

It runs flawless as advertised for us, but your mileage may vary on a free account.

Arrogant-One 10-09-2013 12:44 AM

<font face="Georgia">The Add Image link is now appearing in my shoutbox. How do I remove it from the shoutbox but keep it in the post window?

That's the only issue I am having with this mod though. Good mod, once that gets ironed out.</font>

titan90 02-19-2014 02:04 PM

Quote:

Originally Posted by Bob_R (Post 2424206)
The instructions simply read:

#
#---------[ 2. BEFORE, ADD ]---------------------------------------------------
#

<script type="text/javascript" src="http://mod.postimage.org/vbulletin-english.js" charset="utf-8"></script>

Notice it just reads BEFORE, ADD

Before what?

No biggie I think it fixed itself.

Just don't like unclear instructions.

So where exactly does the code go in the headinclude?

I ended up placing mine right above the RSS code line and it worked. search for RSS in the headinclude template and paste above that.

NTT 02-25-2014 12:50 AM

The same mod Postimage.org Uploader for vb4.1.x By ITVNN FORUM

Screenshots:
https://vborg.vbsupport.ru/external/2015/04/1.gif

Krusty1231 02-25-2014 05:41 AM

Same guys, same mod.

I can't speak for the free service as I pay. We host over 5000 images with them, and nary a glitch since we signed with them on May 11th of last year.

Very happy with their service and price.

mariannet 02-26-2014 08:14 PM

I'm very interested in this, but also worried about my sites images.
If I choose this, I will pay for the service.
Is all good about them?

andrew67 09-28-2014 03:34 AM

Quote:

Originally Posted by Krusty1231 (Post 2483580)
Same guys, same mod.

I can't speak for the free service as I pay. We host over 5000 images with them, and nary a glitch since we signed with them on May 11th of last year.

Very happy with their service and price.

How do you get all your members uploads to go in to your paid account ?

kylek 12-13-2014 10:00 PM

Would like to know the same thing? If you create an account for your site can members add photos to the same account?

Krusty1231 12-14-2014 10:35 AM

No, you cannot unless you share the username/password.

The photos you want to keep in a paid account can be simply uploaded to the paid account if you choose.

Those that are uploaded to a free account by members tend to last an awful long time. I can't say exactly how long, but I have not had a broken image on my site going back over a year, and my forum is image heavy.

Piallaman 12-15-2014 02:41 PM

External site ? No sorry ;)

tomfuegue 04-28-2015 03:49 PM

Quote:

Originally Posted by NTT (Post 2483557)

I can't register because the language is vietnamese, can somebody share this hack with me?.

Thanks a lot.

friendlymela 10-05-2015 08:49 AM

Let me try it .. thanks

clauz 04-13-2018 08:12 AM

This mod is still working?

Kane@airrifle 04-13-2018 02:38 PM

Quote:

Originally Posted by clauz (Post 2594118)
This mod is still working?

Yes on 4.2.5. I do run a custom JS local though.

dany_danay 06-25-2018 03:50 PM

Some mod to paste image and upload it?

scottkoz20 10-13-2018 05:50 PM

Quote:

Originally Posted by Kane@airrifle (Post 2594129)
Yes on 4.2.5. I do run a custom JS local though.

so I am clear, you are hosting the images locally as opposed to going through a 3rd, correct?

Kane@airrifle 10-15-2018 06:20 PM

Quote:

Originally Posted by scottkoz20 (Post 2596771)
so I am clear, you are hosting the images locally as opposed to going through a 3rd, correct?

I am running a custom Postimg JS locally out of clientscript (instead of calling the script from Postimg as directed in the OP). The upload function still works directly through Postimg - very well I might add.

Some time ago Postimg servers had a wobble and lost a many images permanently, rather than go through that drama again I do use a different plugin that retrieves the images and then hosts them locally.

scottkoz20 10-18-2018 04:47 PM

Quote:

Originally Posted by Kane@airrifle (Post 2596809)
I am running a custom Postimg JS locally out of clientscript (instead of calling the script from Postimg as directed in the OP). The upload function still works directly through Postimg - very well I might add.

Some time ago Postimg servers had a wobble and lost a many images permanently, rather than go through that drama again I do use a different plugin that retrieves the images and then hosts them locally.

Ok - I already have the mod linked here installed - However, the zip file here only has instructions and no other files .. so no mas on this

fortforum.org 01-10-2021 08:02 AM

Quote:

Originally Posted by Bob_R (Post 2425569)
Here's another unanswered complaint/issue.

I have the Do Not Resize box checked/enabled and yet it still re-sizes the image. :confused:

Yes, that?s very strange. Is it possible to get rid of that error?


All times are GMT. The time now is 03:59 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.01435 seconds
  • Memory Usage 1,826KB
  • 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
  • (6)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete