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)
-   -   New Posting Features - Tinypic Uploader For New thread, New reply, and Quick reply. (https://vborg.vbsupport.ru/showthread.php?t=233705)

Kolektor 09-11-2012 02:05 AM

Quote:

Originally Posted by darknusens (Post 1968655)
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?

https://vborg.vbsupport.ru/external/2012/09/23.jpg

Or maybe you prefer something like this?

https://vborg.vbsupport.ru/external/2012/09/33.png

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. :)

and this one works with quickreply also, just paste the same code at the bottom of showthread_quickreply template. :p

Menno11 06-15-2014 02:16 PM

thank you for this

thetechgenius 07-19-2014 01:22 AM

This doesn't work with https/ssl, since Tinypic doesn't have https/ssl enabled on their site. And my entire site runs through HTTPS, so I can't use this addon. Thanks anyway though!

msau 03-20-2015 10:20 PM

this works great, thanks.

in 4.2 there is no 'showthread_quickreply' so just add that code in the 'editor_ckeditor' template and works a treat.

kemraj 06-22-2015 08:32 PM

Quote:

Originally Posted by thetechgenius (Post 2507374)
This doesn't work with https/ssl, since Tinypic doesn't have https/ssl enabled on their site. And my entire site runs through HTTPS, so I can't use this addon. Thanks anyway though!


I'm also having this problem as well, can someone provide a fix for this?

geosharing 09-19-2015 02:02 PM

please help im using vbulletin 4.2.2 i can't find this to edit showthread_quickreply

friendlymela 10-05-2015 07:58 AM

Wow this is really wonderful for forums .. thanks

geosharing 10-16-2015 05:55 AM

anybody have idea about how to find showthread_quickreply on vb 4.2.3 ?


friendlymela 10-17-2015 05:55 AM

any tinypic upload bbcode for editor?

Noon 12-22-2015 03:27 AM

showthread_quickreply is not found in VBulletin 4.2.3 (I think that is my version).

Regardless of my version, since I cannot find showthread_quickreply and I have been researching alternatives, what do you suggest?

Does anybody know?

Alan_SP 12-22-2015 12:54 PM

For vB version that have CKEditor, you don't edit it in many places, only CKEditor template, i.e. editor_ckeditor.

In that template you can add whatever html code you want, including tinypic implementation, but of course, you can add additional image services. Just add them at the end of template. Then it will work in all places where editor is used.

bosanci28 12-23-2015 11:14 AM

1 Attachment(s)
Quote:

Originally Posted by Noon (Post 2560937)
showthread_quickreply is not found in VBulletin 4.2.3 (I think that is my version).

Regardless of my version, since I cannot find showthread_quickreply and I have been researching alternatives, what do you suggest?

Does anybody know?

See attached pictures.

Manoel J?nior 12-26-2015 06:13 PM

Can not anyone update this product and add here for version 4.x?

Alan_SP 12-27-2015 02:51 PM

It's template edit, not mod. If you use TMS, you can manage your templates with greater convenience.


All times are GMT. The time now is 01:34 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.01290 seconds
  • Memory Usage 1,784KB
  • 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_php_printable
  • (3)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
  • (14)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