vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   ImageShack upload option when posting (https://vborg.vbsupport.ru/showthread.php?t=103200)

mkdevo 12-17-2005 10:00 PM

ImageShack upload option when posting
 
Personally, I have attatchments disabled for regular users, and I always get asked the question, 'where can I host a picture?'.

ImageShack actually provides code to enable you to add an ImageShack upload form on your forum. NOTE: The following code was NOT written by me. It was provided by ImageShack (here), and I am simply passing it on for those of you who don't know about it.

Install time: < 2 minutes.

INSTRUCTIONS:

In your newreply, newthread, editpost, or pm_newpm templates, FIND:

HTML Code:

<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
                                                $disablesmiliesoption
                                        </div>
                                </fieldset>

ADD AFTER:

HTML Code:

<fieldset class="fieldset"><legend>Upload your images to ImageShack</legend>
<div style="padding:$stylevar[formspacer]px">
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70"> You must
have an iframe-compatable browser to view the ImageShack.us upload form.</iframe></div></fieldset>

Note that this code can be added to any or all of the above templates (newreply, newthread, editpost, or pm_newpm).

That's it. Enjoy!

eViL_sTiGmA 12-18-2005 02:36 PM

Very nice!!!!

Thanks

thedvs 12-18-2005 03:02 PM

Is it possible to do this so that its only allowed & shown in a specific forum?

MentaL 12-18-2005 04:30 PM

awesome

rb290 12-18-2005 05:54 PM

how do you get a iframe browser ?
tells me page cannot be displayed

rb290 12-18-2005 06:10 PM

only worked for firefox, how can i get it to work with i.e.

Yorixz 12-18-2005 06:26 PM

This is wonderfull, I'm sure many people will be happy with this :)

Corriewf 12-18-2005 11:57 PM

Danny already released this......
https://vborg.vbsupport.ru/showthrea...threadid=94805

mkdevo 12-19-2005 12:22 AM

d'oh! bummer.. i just searched for 'imageshack' in the subject line.. oh well.. :(

Corriewf 12-19-2005 01:27 AM

Quote:

Originally Posted by mkdevo
d'oh! bummer.. i just searched for 'imageshack' in the subject line.. oh well.. :(

Easy to do. Just shows how good of an idea it is right. :)


All times are GMT. The time now is 01:29 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.03021 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_html_printable
  • (1)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
  • (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