vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Smilies for Quick Reply (https://vborg.vbsupport.ru/showthread.php?t=60307)

68 Z-28 07-10-2004 12:42 AM

Quote:

Originally Posted by M.C.
i made small template modification:

in showthread_quickreply find and remove old hack changes, then find code between:

change all code in template editor_smiliebox_quickreply with:

HTML Code:

<!--  smiles quichreply par Mйgatekno -->
<script language="Javascript">
function open_smilie_window_pop(wysiwyg) { window.open
("misc.php?do=getsmilies&wysiwyg=" + wysiwyg, "open_smilie_window_pop",  "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=240,height=300,top=10,left=600"); }
</script>


<fieldset id="smiliebox" title="$vbphrase[smilies]">
        <legend>$vbphrase[smilies]</legend>
        <table cellpadding="4" cellspacing="0" border="0" align="center">
        $smiliebits
        <if condition="$show['moresmilieslink']">
        <tr>
                <td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="[b]javascript[/b]:open_smilie_window_pop($wysiwyg)" onclick="open_smilie_window(smiliewindow_x, smiliewindow_y, $wysiwyg); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]</td>
        </tr>
        </if>
        </table>
</fieldset>

<if condition="$show['wysiwyg']">
        <script type="text/javascript">
        <!--
        // init the WYSIWYG smilie box
        open_smilie_window($wysiwyg);
        //-->

        </script>
</if>

you choud get same as attach! ;)

I did this modification and it looks great, only problem thoush is when clicked I get a javascript error

Char: 1
Error: 'smiliewindow_x' is undefined
Code: 0


What do I need to do to resolve this problem?

Blam Forumz 07-31-2004 07:06 AM

This makes my quickreply box look fat -

Abe1 08-02-2004 06:47 PM

Zip file is corrupt.

Blam Forumz 08-02-2004 07:37 PM

Bump, how do i make my quick reply not so fat anymore?

integra99 08-03-2004 05:39 AM

Had to tweak the number of smiles in row/total, and tweak the template a little to get it how I wanted, and add the photopost popup hack onto it also, but it turned out pretty damn close to what I wanted :D

Good hack!

* integra99 clicks install

Blam Forumz 08-03-2004 05:49 AM

Quote:

Originally Posted by integra99
Had to tweak the number of smiles in row/total, and tweak the template a little to get it how I wanted, and add the photopost popup hack onto it also, but it turned out pretty damn close to what I wanted :D

Good hack!

* integra99 clicks install

how come your box isnt fat?

integra99 08-03-2004 06:14 AM

Quote:

Originally Posted by Blam Forumz
how come your box isnt fat?

It's on SlimFast :nervous:

j/p, notice I only have 4 rows of smilies while you have 5, there lies your problem :) You can change that in your VB Options, Message Posting Interface Options. Plus, you might want to re-sort your smilies so that you don't have any taller smileys in the smiliebox (like you do). That will also force the quickreply box to be fatter.

AdamSee 08-15-2004 04:31 PM

Having a bit of an issue with the smilies box and mozilla based explorers.

As you can see below, the smilie box sometimes (not always) has a bar on it and can occasionally even be smaller than that, I'm not sure what could cause it and I've had a little fiddle with the code previously. What do you think?

editor_smiliebox_quickreply:
HTML Code:

<!--  smiles quichreply par M?gatekno -->
<script language="Javascript">
function open_smilie_window_pop(wysiwyg) { window.open
("misc.php?do=getsmilies&wysiwyg=" + wysiwyg, "open_smilie_window_pop",  "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=240,height=300,top=10,left=600"); }
</script>

<fieldset id="smiliebox" title="$vbphrase[smilies]">
        <legend>$vbphrase[smilies]</legend>
        <table cellpadding="4" cellspacing="0" border="0" align="center">
        $smiliebits
<!-- conditional to show the 'get more' link -->
<if condition="$totalsmilies > $vboptions[smtotal]">
<tr align="center">
<td class="tcat" colspan="$vboptions[smcolumns]"><span class="smallfont"> [<a href="javascript:open_smilie_window_pop($wysiwyg)" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]</span></td>

</tr>
</if>
<!-- end conditional -->
 
</table>
</td></tr>
</fieldset>

<if condition="$show['wysiwyg']">
        <script type="text/javascript">
        <!--
        // init the WYSIWYG smilie box
        open_smilie_window($wysiwyg);
        //-->

        </script>
</if>


MartynJ 09-13-2004 02:19 PM

I followed the instructions but end up with an annoying black bar on my box which is caused by an extra td finding its way in somehow. Can't figure out which template to edit to fix it.

MartynJ 09-25-2004 11:31 AM

Also, the box seems to randomly appear at all different sizes. I'm now uninstalling this hack.


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