Welcome, Guest. Please Login or Register.
April 26, 2025, 11:56:18 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [CODE] Three Secret Smilies ^^" « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: [CODE] Three Secret Smilies ^^"  (Read 7384 times)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code] Three Secret Smilies ^^"
« Reply #30 on: March 11, 2003, 06:32:03 PM »
Reply with quote

Well, I fixed that problem, but now when I try to "unlock" the secret smilies, I get a couple of errors when trying to post a new message...
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code] Three Secret Smilies ^^"
« Reply #31 on: March 28, 2003, 08:03:43 PM »
Reply with quote

Ok. I sorta got a better way to do this...

First, in english.lng

search for:
$txt[287] = 'Smiley';

add:
$txt[2871] = 'AZN';
$txt[2872] = 'Afro';
$txt[2873] = 'Evil';


Then, in Post.php
search for:
               <a href="javascript:replaceText(\' :\\\'(\')"><img src="' . $imagesdir . '/cry.gif" align="bottom" alt="' . $txt[530] . '" border="0" /></a>;

replace it with:
               <a href="javascript:replaceText(\' ^-^\')"><img src="' . $imagesdir . '/azn.gif" align="bottom" alt="' . $txt[2871] . '" border="0" /></a>
               <a href="javascript:replaceText(\' O0\')"><img src="' . $imagesdir . '/afro.gif" align="bottom" alt="' . $txt[2872] . '" border="0" /></a>
               <a href="javascript:replaceText(\' >:D\')"><img src="' . $imagesdir . '/evil.gif" align="bottom" alt="' . $txt[2872] . '" border="0" /></a>
               <a href="javascript:replaceText(\' :\\\'(\')"><img src="' . $imagesdir . '/cry.gif" align="bottom" alt="' . $txt[530] . '" border="0" /></a>';


Now, for those of you who have the Add More Smilies mod, follow these steps in addition to the ones above:

In english.lng
search for:
$asmtxt['19'] = 'Showing 16 of';

and replace it with:
$asmtxt['19'] = 'Showing 19 of';

In Post.php
search for:
 <tr>
   <td width="30%"></td>
   <td width="30%" align="center"><a href="javascript:replaceText(\' :\\\'(\')"><img
   src="' . $imagesdir . '/cry.gif" alt="' . $txt[530] . '" border="0"></a></td>
   <td width="30%"></td>
 </tr>';


add the following before it:
 <tr>
   <td width="30%" align="center"><a href="javascript:replaceText(\' ^-^\')"><img
   src="' . $imagesdir . '/azn.gif" alt = "' . $txt[2871] . '" border="0"></a></td>
   <td width="30%" align="center"><a href="javascript:replaceText(\' O0\')"><img
   src="' . $imagesdir . '/afro.gif" alt="' . $txt[2872] . '" border="0"></a></td>
   <td width="30%" align="center"><a href="javascript:replaceText(\' >:D\')"><img
   src="' . $imagesdir . '/evil.gif" alt="' . $txt[2873] . '" border="0"></td>
 </tr>


search for:
$znum=16+$num_rows;

replace it with:
$znum=19+$num_rows;

search for:
$znum=16+$num;

replace it with:
$znum=19+$num;

This will do the exact same thing without creating unnecessary javascript functions. I will type this up into a boardmod file soon, so if you want it, email me and I'll send it to you.
« Last Edit: March 28, 2003, 08:06:12 PM by oldiesmann » Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [CODE] Three Secret Smilies ^^" « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 1.753 seconds with 18 queries.