View Single Post
  #18  
Old 01-28-2010, 04:43 AM
darknusens darknusens is offline
 
Join Date: Dec 2008
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mandingo View Post
That's the only size, sorry.
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.
Attached Files
File Type: zip Tinypic plugin.zip (753 Bytes, 62 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03542 seconds
  • Memory Usage 1,838KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete