Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Smiliecreator v1.1 Details »»
Smiliecreator v1.1
Version: 1.00, by Kars10 Kars10 is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-18-2003 Last Update: Never Installs: 71
 
No support by the author.

Hello Hackers!
Ok this is my first release here, so be gentle with me!

Ok, what does this hack do?
With this hack you can easy generate your own custom Sign-Smilies.

Credits to: tkeil69575

It should work with any vBVersions 2.x.x.

Files to modify: 2 (vbcode.js, misc.php)

Templates to add: 1 (vbcode_popup_smiliecreator)

Templates to edit: 1 (vbcode_smilies_getmore)

Installtime: 5 - 10 min

[high]NOTE: This hack uses the PHP-GD Function, so be shure you have this enabled on your server.
If you don?t be shure about this, ask your host or look in your PHP-Info.
Also you must have Dynamic URL for [img] tags enabled in your Posting Code Settings.
[/high]

Changelog:
- v1.0 First Release
- v1.1 Fixed Quotes-bug; credits to Slynderdale and FlyingDutchman


Update Information: from v1.0 to v1.1 / only replace the old text2schild.php with the new one

Screenshots in the next Posts.

Have Fun and please click install if you use this hack!
Kars

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 06-27-2003, 12:07 PM
Bezane Bezane is offline
 
Join Date: Jun 2003
Location: Germany
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #113  
Old 06-27-2003, 02:36 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #114  
Old 06-29-2003, 11:08 AM
Bezane Bezane is offline
 
Join Date: Jun 2003
Location: Germany
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kann mir hier keiner helfen?
Reply With Quote
  #115  
Old 06-29-2003, 03:45 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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('');">
Replace with:
Quote:
<input type="button" value="Generate Smilie!" onclick="opener.smilie('');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
Reply With Quote
  #116  
Old 07-03-2003, 09:36 PM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #117  
Old 07-04-2003, 09:24 AM
Bezane Bezane is offline
 
Join Date: Jun 2003
Location: Germany
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have almost this bug....
Reply With Quote
  #118  
Old 07-07-2003, 03:53 AM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Bump* Still need help on this :/
Reply With Quote
  #119  
Old 07-07-2003, 08:50 PM
Eskito Eskito is offline
 
Join Date: Jun 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #120  
Old 07-08-2003, 12:18 AM
fantasma fantasma is offline
 
Join Date: Jul 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #121  
Old 07-08-2003, 03:34 AM
Bezane Bezane is offline
 
Join Date: Jun 2003
Location: Germany
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:49 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.05278 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete