Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Tinypic Uploader For New thread, New reply, and Quick reply. Details »»
Tinypic Uploader For New thread, New reply, and Quick reply.
Version: 11:01, by mandingo mandingo is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.1 Rating:
Released: 01-20-2010 Last Update: Never Installs: 62
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

Go here if you want to tweak it/switch to your language:

http://tinypic.com/developer.php
(keep in mind doing so will change the code below,just change it to suit your needs)

For newthread template:

find:
PHP Code:
<vb:if condition="$show['poll']"
put:
HTML Code:
   <div class="blockrow">
         <script type="text/javascript">
tinypic_layout = 'narrow';
tinypic_type = 'both';
tinypic_links = 'forum';
tinypic_language = 'en';
tinypic_search = 'false';
tinypic_autoload = false;
</script>
<script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script>
<input type="button" value="TinyPic Plugin" onclick="javascript:showTinypicPlugin();"/></div>
above it.

================================================== =======================
For newreply template:

find:
PHP Code:
{vb:raw attachmentoption}

    <
vb:if condition="$show['member']"
put:
HTML Code:
   <div class="blockrow">
         <script type="text/javascript">
tinypic_layout = 'narrow';
tinypic_type = 'both';
tinypic_links = 'forum';
tinypic_language = 'en';
tinypic_search = 'false';
tinypic_autoload = false;
</script>
<script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script>
<input type="button" value="TinyPic Plugin" onclick="javascript:showTinypicPlugin();"/></div>
below it.

================================================== =
for showthread_quickreply:

find:
PHP Code:
<input type="hidden" name="wysiwyg" id="{vb:raw editorid}_mode" value="{vb:raw editortype}" /> 
and put:

HTML Code:
<li class="editor_control_group_item"><script type="text/javascript">
tinypic_layout = 'narrow';
tinypic_type = 'both';
tinypic_links = 'forum';
tinypic_language = 'en';
tinypic_search = 'false';
tinypic_autoload = false;
</script>
<script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script>
<input type="button" value="TinyPic Plugin" onclick="javascript:showTinypicPlugin();"/></li>
Above it.
================================================== =========================






I am assuming this would work as a widget too.

Show Your Support

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

Comments
  #22  
Old 02-15-2010, 09:12 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by darknusens View Post
Ladies and gentlemen, boys and girls, prepare to be amazed as I prove to you all, where there is a will, there is always a way. How would you like to have a tinypic plugin like the screen shot below?



Or maybe you prefer something like this?



Thanks to Grayfox from GamerzCreed.com You can. This is how you can do it.

First, download the attachment included in this post and put it in your forums/clientscript/ directory via your favorite FTP client.

In the newthread template from vbulletin 4.0.1:

find:
PHP Code:
<vb:if condition="$show['poll']"

If your running vbulletin 3.8.4, then search for:

PHP Code:
<if condition="$show['poll']"

put the following code above it:

PHP Code:
<fieldset class="fieldset">
<
legend>TinyPic Uploader</legend>
<
div style="padding:$stylevar[formspacer]px">
      <
div>Upload your images to TinyPic from here.</div>
        </
div>
<
div style="padding:$stylevar[formspacer]px"><input type="button" class="button" tabindex="1" style="font-weight:normal" value="TinyPic Uploader" onclick="javascript:showTinypicPlugin(); this.style.display='none';"/></div>
<
center><script type="text/javascript">
tinypic_layout 'wide';
tinypic_type 'both';
tinypic_links 'forum';
tinypic_language 'en';
tinypic_search 'false';
tinypic_autoload false;
</
script>
<
script src="http://yoursite.com/forums/clientscript/Tinypic plugin.js" type="text/javascript"></script></center>
</
fieldset
================================================== ==============

In the newreply template from vbulletin 4.0.1:

find:
PHP Code:
<vb:if condition="$show['member']"

If your running vbulletin 3.8.4, then search for:

PHP Code:
<if condition="$show['member']"

put the following code below it:

PHP Code:
<fieldset class="fieldset">
<
legend>TinyPic Uploader</legend>
<
div style="padding:$stylevar[formspacer]px">
      <
div>Upload your images to TinyPic from here.</div>
        </
div>
<
div style="padding:$stylevar[formspacer]px"><input type="button" class="button" tabindex="1" style="font-weight:normal" value="TinyPic Uploader" onclick="javascript:showTinypicPlugin(); this.style.display='none';"/></div>
<
center><script type="text/javascript">
tinypic_layout 'wide';
tinypic_type 'both';
tinypic_links 'forum';
tinypic_language 'en';
tinypic_search 'false';
tinypic_autoload false;
</
script>
<
script src="http://yoursite.com/forums/clientscript/Tinypic plugin.js" type="text/javascript"></script></center>
</
fieldset
================================================== ==============

There is one line in the above two codes that you will need to change in order to make it work and three other ones that are optional.

The three optional ones include the following and are marked in red:

1. <legend>TinyPic Uploader</legend>

2. <div>Upload your images to TinyPic from here.</div>

3. tinypic_layout = 'wide';

The first two are just so you can have it say whatever you want and the last line is so you can either have the tinypic layout from screen shot one or from screen shot two. If you want the layout from screen shot one put 'narrow'; If you want the layout from screen shot two put 'wide';

The code that you will need to change is the following and is marked in red:

1. <script src=" http://yoursite.com/forums/clientscript/Tinypic plugin.js "

That's the URL that's pointing to the script you uploaded onto your server earlier. Just change it to your own sites URL.

I wont go into showthread_quickreply since some people were having problems with it. But at least you have more options now.
Nice addition.
Reply With Quote
  #23  
Old 02-15-2010, 09:15 PM
iguano iguano is offline
 
Join Date: May 2009
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice
installed of course
Reply With Quote
  #24  
Old 03-01-2010, 01:24 PM
Whtetrashwarrio Whtetrashwarrio is offline
 
Join Date: Dec 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks INSTALLED !
Reply With Quote
  #25  
Old 03-27-2010, 07:56 PM
syrn's Avatar
syrn syrn is offline
 
Join Date: Mar 2010
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice .INSTALLED
Reply With Quote
  #26  
Old 05-28-2010, 07:55 PM
ARSamo ARSamo is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx .......... but how can upload image to tiny pic from other url...
Reply With Quote
  #27  
Old 11-03-2010, 01:43 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this working for Quick Reply?
Reply With Quote
  #28  
Old 11-19-2010, 07:58 PM
compuminus compuminus is offline
 
Join Date: Apr 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Octavius. View Post
Does anyone have this working for Quick Reply?
You can get it working with quick reply if you install one of the quick -> advanced reply mods and edit the mod's template instead. Works fine for me -- never could get the quick reply working with the latest vB versions...
Reply With Quote
  #29  
Old 12-16-2010, 05:45 AM
GamerFill GamerFill is offline
 
Join Date: Nov 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly! Thank you!
Reply With Quote
  #30  
Old 01-03-2011, 09:15 PM
Okuma Steve Okuma Steve is offline
 
Join Date: May 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway this could be made to allow for multiple uploads at once?
Reply With Quote
  #31  
Old 08-20-2011, 11:11 PM
ekberali ekberali is offline
 
Join Date: Aug 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, quick reply not working...
Code:
<img src="{vb:stylevar imgdir_editor}/spelling.png" class="imagebutton" id="{vb:raw editorid}_cmd_spelling" width="20" height="20" alt="{vb:rawphrase check_spelling}" />
					</vb:if>
<div><script type="text/javascript">
tinypic_layout = 'narrow';
tinypic_type = 'both';
tinypic_links = 'forum';
tinypic_language = 'en';
tinypic_search = 'false';
tinypic_autoload = false;
</script>
<script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script>
<input type="button" value="TinyPic Plugin" onclick="javascript:showTinypicPlugin();"/></div>
					<div>
                                             
						<div><img src="{vb:stylevar imgdir_editor}/resize_0.gif"
I used this code and this

Quote:
What do you have your quick reply options set to?
options>message posting and editing options>Yes, Click Not Required?
Please help
Reply With Quote
Reply


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 05:40 AM.


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.06940 seconds
  • Memory Usage 2,370KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_html
  • (9)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete