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)
-   -   Add-On Releases - Smilies on Quick Reply/Quick Edit (https://vborg.vbsupport.ru/showthread.php?t=246807)

Lairston 07-17-2010 10:00 PM

Smilies on Quick Reply/Quick Edit
 
1 Attachment(s)
After some tinkering I was able to get the smilies on the Quick edit/reply on my dev site with just two template modifications.

If you would like smilies on the quick edit open the postbit_quickedit template

Find the following code
Code:

<vb:if condition="$show['quote_bbcode']">
<li>
<img src="{vb:stylevar imgdir_editor}/quote.png" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_quote" width="21" height="20" alt="{vb:rawphrase wrap_quote_tags}" />
</li>
</vb:if>

Paste after that code the following
Code:

<li>
            <a href="javascript://" onclick="vB_Editor['{vb:raw editorid}'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false"><img src="{vb:stylevar imgdir_editor}/smilie.png" alt="Smilies" border="0" /></a>
</li>

If you would like the smilies on the quick reply on threads page, open the showthread_quickreply template

Find the following code
Code:

<vb:if condition="$show['quote_bbcode']">
<li class="editor_control_group_item">
  <img src="{vb:stylevar imgdir_editor}/quote.png" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_quote" width="20" height="20" alt="{vb:rawphrase wrap_quote_tags}" />
</li>
</vb:if>

Paste the following after that code:
Code:

<li class="editor_control_group_item">
 <a href="javascript://" onclick="vB_Editor['{vb:raw editorid}'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false"><img src="{vb:stylevar imgdir_editor}/smilie.png" alt="Smilies" border="0" /></a>
</li>

https://vborg.vbsupport.ru/attachmen...1&d=1279414644

dwkmi 07-18-2010 01:40 AM

You ROCK!!! 5 Stars!!

GaRanT 07-18-2010 01:44 AM

Nice one , thank you !

sulasno 07-18-2010 02:14 AM

tagged and thanks

Juggernaut 07-18-2010 03:32 AM

This works great in vB 4.0.5 :D

Lairston 07-18-2010 01:56 PM

You're welcome! Glad you like :D

sisterhood 07-18-2010 06:02 PM

4.05 excellent!

TANKSALOT 07-18-2010 06:37 PM

Thanks!

This was very easy to do!

It was also my 1st attempt to rewrite any of the code.
My forum has been up for about 5 days and I have a LOT to learn.

Steve

MacHack 07-25-2010 12:22 PM

Thanks for this, working on 4.05 here.

BadgerDog 08-07-2010 12:52 PM

Installed ... :)

Thank you very much... worked great ... :up:

Regards,
Badger


All times are GMT. The time now is 09:29 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.01129 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_code_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