vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Smiliecreator v1.1 (https://vborg.vbsupport.ru/showthread.php?t=50450)

Bezane 06-27-2003 12:07 PM

Hallo, kann mir jemand dabei helfen? ich sehe gerade das der bug hier schoneinmal in der selben form wie bei mir vorkam... aber es wurd per PN nicht ?ffentlich geregelt... somit kann ich auch nicht viel machen... :(

Ninth Dimension 06-27-2003 02:36 PM

wow, fantastic little hack, adding just that personal touch, love it (and i'm sure my members will to).

one thing, can i suggest that you make the smile box close once it's been submitted to the form? I'm sure this is easy to do, but as I don't know JS i personally can't do it.

again thank you :)

Bezane 06-29-2003 11:08 AM

kann mir hier keiner helfen? :(

Ninth Dimension 06-29-2003 03:45 PM

For people annoyed at the smile box staying open after adding the smile, you can make the box close automaticly after clicking the button:

Open:
vbcode_popup_smiliecreator (template)

Find:
Quote:

<input type="button" value="Ok, generate Smilie!" onclick="opener.smilie('https://vborg.vbsupport.ru/');">
Replace with:
Quote:

<input type="button" value="Generate Smilie!" onclick="opener.smilie('https://vborg.vbsupport.ru/');self.close();" class="bginput">
Additionally, this add's the standard button css class to your button so it's fits with the rest of the site, I hope this helps :)

voogru 07-03-2003 09:36 PM

I keep getting 'document.schild.typ' is not an object" When opening the smily creator window.

Im not sure what the problem is, I followed instructions. Also they do not work with the [IMG] tags (And yes I did enable "Allow Dynamic URL for [img] tags" ).

It works fine if I use HTML to link the image.

What am I doing wrong? Running vb2.3.0

Bezane 07-04-2003 09:24 AM

i have almost this bug....

voogru 07-07-2003 03:53 AM

*Bump* Still need help on this :/

Eskito 07-07-2003 08:50 PM

Sorry, my English is not the very Best and I could not understand all from the Posters before me.

The Hack works fine, but in the finaly Posting I get the f... red x. Can anybody explain me where my Problem could be?

--------------------------------------------------------------------------

Hallo zusammen,

habe versucht diesen Hack einzubauen, es funktioniert auch soweit alles. Wenn ich jedoch abschliessend zu meinem Posting gehe wird nur das rote x angezeigt. Hat jemand eine Idee, da ich die englischen Postings nicht in allen Einzelheiten verstehe.

Gruss Uwe

fantasma 07-08-2003 12:18 AM

I get the same error "'document.schild.typ' is not an object etc."

I delete the line below from the template "vbcode_popup_smiliecreator":

var vtyp = findtyp();

and then all works fine.

I'm not expert in Javascript and I don't understand wich is the scope for this line.

In anyway thanks to Kars10 for this great Hack!

Bezane 07-08-2003 03:34 AM

i?ve done it... bug ist already existing...

can i have your hack files?

or make an example at this here:

Code:

<html>
<head>
<title>$bbtitle Smiliecreator</title>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">

<script>
function findtyp() {
var szReturn;
for (var i=0;i<document.schild.typ.length;i++) {
 if (document.schild.typ[i].checked) {
  szReturn = document.schild.typ[i].value;
  break;
 }
}
return szReturn;
}

var vtyp = findtyp();
</script>

$headinclude
</head>

<body>
<br>
<center>
<form name="schild"><table width="90%" border="0" cellpadding="4" cellspacing="1" bgcolor="{tablebordercolor}">
  <tr>
        <td align="center" bgcolor="{categorybackcolor}"><normalfont color="{categoryfontcolor}"><strong>$bbtitle
          Smiliecreator</strong></normalfont></td>
  </tr>
  <tr>
    <td bgcolor="{firstaltcolor}"><table bgcolor="" width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
  <tr>
            <td width="99%" valign="top">
              <table width="100%" border="0" cellpadding="1" cellspacing="1">
                <tr>
                  <td width="33%" bgcolor="{firstaltcolor}"> <input name="typ" type="radio" value="1" checked>
                    <img src="images/smilies/schilde/vorlage1.png" alt="" width="29" height="22" border="0"></td>
                  <td width="33%" bgcolor="{firstaltcolor}"> <input type="radio" name="typ" value="6">
                    <img src="images/smilies/schilde/vorlage6.png" alt="" width="29" height="22" border="0"></td>
                  <td width="33%" bgcolor="{firstaltcolor}"> <input type="radio" name="typ" value="11">
                    <img src="images/smilies/schilde/vorlage11.png" alt="" width="29" height="22" border="0"></td>
                </tr>
                <tr>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="2">
                    <img src="images/smilies/schilde/vorlage2.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="7">
                    <img src="images/smilies/schilde/vorlage7.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="12">
                    <img src="images/smilies/schilde/vorlage12.png" alt="" width="29" height="22" border="0"></td>
                </tr>
                <tr>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="3">
                    <img src="images/smilies/schilde/vorlage3.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="8">
                    <img src="images/smilies/schilde/vorlage8.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="13">
                    <img src="images/smilies/schilde/vorlage13.png" alt="" width="29" height="22" border="0"></td>
                </tr>
                <tr>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="4">
                    <img src="images/smilies/schilde/vorlage4.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="9">
                    <img src="images/smilies/schilde/vorlage9.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="14">
                    <img src="images/smilies/schilde/vorlage14.png" alt="" width="29" height="22" border="0"></td>
                </tr>
                <tr>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="5">
                    <img src="images/smilies/schilde/vorlage5.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="10">
                    <img src="images/smilies/schilde/vorlage10.png" alt="" width="29" height="22" border="0"></td>
                  <td bgcolor="{firstaltcolor}"><input type="radio" name="typ" value="15">
                    <img src="images/smilies/schilde/vorlage15.png" alt="" width="29" height="22" border="0"></td>
                </tr>
              </table>
      <br> <table border="0" width="100%" cellpadding="3" cellspacing="1">
        <tr>
                  <td colspan="2" bgcolor="{firstaltcolor}"><smallfont><strong>Your Text:</strong></smallfont></td>
        </tr>
        <tr>
          <td colspan="2" bgcolor="{firstaltcolor}" align="center"><input name="text" type="text" onFocus="this.value='';" onBlur="if (this.value=='') {this.value='Enter your Text...';}" value="Enter your Text" size="35" maxlength="50"></td>
        </tr>
        <tr>
                  <td bgcolor="{firstaltcolor}"><smallfont><strong>Fontcolor:</strong></smallfont></td>
          <td bgcolor="{firstaltcolor}"><select name="col">

          <option value="0,0,0" selected style="background-color:#000000; color:#FFFFFF">Black</option>

          <option value="0,0,255" style="background-color:#0000FF">Blue</option>

          <option value="185,207,232" style="background-color:#B9CFE8">Softblue</option>

          <option value="255,153,0" style="background-color:#FF9900">Orange</option>

          <option value="255,210,0" style="background-color:#FFD200">Yellow</option>

          <option value="0,255,0" style="background-color:#00FF00">Green</option>

          <option value="197,248,163" style="background-color:#C5F8A3">Softgreen</option>

          <option value="13,105,3" style="background-color:#0D6900; color:#FFFFFF">Darkgreen</option>

          <option value="147,81,3" style="background-color:#935103; color:#FFFFFF">Brown</option>

          <option value="255,255,255">White</option>

</select>
</td>
        </tr>
        <tr>
                  <td bgcolor="{firstaltcolor}"><smallfont><strong>Background:</strong></smallfont></td>
          <td bgcolor="{firstaltcolor}"><select name="shcol">

          <option value="255,255,255" selected>White</option>

          <option value="0,0,255" style="background-color:#0000FF">Blue</option>

          <option value="185,207,232" style="background-color:#B9CFE8">Softblue</option>

          <option value="255,153,0" style="background-color:#FF9900">Orange</option>

          <option value="248,241,163" style="background-color:#F8F1A3">Yellow</option>

          <option value="0,255,0" style="background-color:#00FF00">Green</option>

          <option value="197,248,163" style="background-color:#C5F8A3">Softgreen</option>

          <option value="248,203,251" style="background-color:#F8CBFB">Pink</option>

          <option value="228,195,164" style="background-color:#E4C3A4">Brown</option>

          <option value="0,0,0" style="background-color:#000000; color=#FFFFFF">Black</option>

        </select>
</td>
        </tr>
        <tr>
          <td colspan="2" align="center" height="30" valign="bottom"><input type="button" value="Ok, generate Smilie!" onclick="opener.smilie('[img]$bburl/text2schild.php?text='+document.schild.text.value+'&typ='+findtyp()+'&col='+document.schild.col.value+'&shcol='+document.schild.shcol.value+'[/img]');">
                      <br>
                      <br>
                      <smallfont><a href="javascript:self.close()">Close Window</a></smallfont></td>
        </tr>
      </table>
            </td>
</table></td>
  </tr>
</table></form></td>
</center>
</body>
</html>



All times are GMT. The time now is 03:04 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.01380 seconds
  • Memory Usage 1,802KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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