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)

mandingo 01-20-2010 10:00 PM

Tinypic Uploader For New thread, New reply, and Quick reply.
 
1 Attachment(s)
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.
================================================== =========================
https://vborg.vbsupport.ru/external/2010/01/53.jpg

https://vborg.vbsupport.ru/external/2010/01/54.jpg



I am assuming this would work as a widget too.

Dr.osamA 01-21-2010 09:28 AM

thanxxxxx

installed
________
Mercedes-benz 240d

Taurus1 01-22-2010 03:50 AM

This is wonderful, thanks so much!! Also is it possible to get this to also work for 3.8.4 PLEASE!?

mandingo 01-22-2010 04:25 AM

Quote:

Originally Posted by Taurus1 (Post 1963077)
This is wonderful, thanks so much!! Also is it possible to get this to also work for 3.8.4 PLEASE!?

I'll try to remember this weekend.

nektar 01-22-2010 01:00 PM

Quote:

Originally Posted by Taurus1 (Post 1963077)
This is wonderful, thanks so much!! Also is it possible to get this to also work for 3.8.4 PLEASE!?

Just paste the code in your templates as described above and it works fine in 3.8.4

Just did it.

mandingo 01-22-2010 01:48 PM

Quote:

Originally Posted by nektar (Post 1963346)
Just paste the code in your templates as described above and it works fine in 3.8.4

Just did it.

Thanks! I was pretty sure it would be close.

Taurus1 01-24-2010 02:37 AM

Thanks guys. It works in the top 2 cases, but for some reason I can't get it to show for the quickreply. Any advise?

nikosb 01-25-2010 02:14 PM

thanks

mandingo 01-25-2010 02:55 PM

Quote:

Originally Posted by Taurus1 (Post 1964908)
Thanks guys. It works in the top 2 cases, but for some reason I can't get it to show for the quickreply. Any advise?

I'll try to look into it later when I'm at home.

Andre31 01-25-2010 03:18 PM

THX, works wonderfull. Great modification!:up:


All times are GMT. The time now is 07:28 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.01128 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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