Welcome, Guest. Please Login or Register.
May 04, 2025, 10:13:26 AM
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  |  Mod Ideas and Creation  |  BigP Smilies MOD « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: BigP Smilies MOD  (Read 1037 times)
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:BigP Smilies MOD
« Reply #15 on: May 29, 2002, 10:57:22 AM »
Reply with quote

Quote from: Jedi~ on May 28, 2002, 11:31:30 PMBig P, when did I say that? Maybe if you tell me specifically what I have a fix for that I said I did.....

I have no idea what's going wrong here...
you sent me a pm saying you had the two mods working right?... right? oh sigh. I dunno!
Logged

PHPNews has been released!!! Download it now!!!
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:BigP Smilies MOD
« Reply #16 on: May 29, 2002, 01:49:47 PM »
Reply with quote

Well, yes I did, but I never had to make any changes...
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #17 on: May 29, 2002, 04:55:53 PM »
Reply with quote

Regardless of the two mods, i cant even get smilies to work right now, with boardmod or manually. Errors are in my other post.
Logged

Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #18 on: May 29, 2002, 09:00:38 PM »
Reply with quote

Well guess what. I fixed it. I added one bit of code at a time in post.php and uploaded it after each and every edit.

When i found the peice that was causing the error, i modified it bit by bit until it worked.

I recreated the problem atleast ten times over doing the same thing.

HERE IS SOME OF THE CODE YOU WANTED ME TO ADD TO MY POST.PHP:
EOT;
if($modSettings['vbsmiliesEnable'] == '1')
{
print <<<EOT
<td valign=top align="right"><font size=2><b>$txt[72]:</b></font><br><br><center><table border="0" cellpadding="0" width="18%">

  <tr>
    <td width="100%" colspan="3"><p align="center"><font size="2"><b>$asmtxt[10]</b></font></td>
  </tr>
  <tr>
    <td width="30%"><p align="center"><a href="javascript:smiley()"><img
    src="$imagesdir/smiley.gif" alt="Smiley" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:wink()"><img
    src="$imagesdir/wink.gif" alt="Wink" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:cheesy()"><img
    src="$imagesdir/cheesy.gif" alt="Cheesy" border="0"></a></td>
  </tr>
  <tr>
    <td width="30%"><p align="center"><a href="javascript:grin()"><img
    src="$imagesdir/grin.gif" alt="Grin" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:angry()"><img
    src="$imagesdir/angry.gif" alt="Angry" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:sad()"><img src="$imagesdir/sad.gif"
    alt="Sad" border="0"></a></td>
  </tr>
  <tr>
    <td width="30%"><p align="center"><a href="javascript:shocked()"><img
    src="$imagesdir/shocked.gif" alt="Shocked" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:cool()"><img
    src="$imagesdir/cool.gif" alt="Cool" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:huh()"><img src="$imagesdir/huh.gif"
    alt="Huh" border="0"></a></td>
  </tr>
  <tr>
    <td width="30%"><p align="center"><a href="javascript:rolleyes()"><img
    src="$imagesdir/rolleyes.gif" alt="Roll Eyes" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:tongue()"><img
    src="$imagesdir/tongue.gif" alt="Tongue" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:embarassed()"><img
    src="$imagesdir/embarassed.gif" alt="embarassed" border="0"></a></td>
  </tr>
  <tr>
    <td width="30%"><p align="center"><a href="javascript:lipsrsealed()"><img
    src="$imagesdir/lipsrsealed.gif" alt="lips sealed" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:undecided()"><img
    src="$imagesdir/undecided.gif" alt="undecided" border="0"></a></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:kiss()"><img
    src="$imagesdir/kiss.gif" alt="kiss" border="0"></a></td>
  </tr>
  <tr>
    <td width="30%"></td>
    <td width="30%"><p align="center">&nbsp;&nbsp;<a href="javascript:cry()"><img src="$imagesdir/cry.gif"
    alt="cry" border="0"></a></td>
    <td width="30%"></td>
  </tr>
EOT;

$SQL_result = mysql_query("SELECT * FROM ".$db_prefix."smilies");
$num_rows = mysql_num_rows($SQL_result);
$znum=16+$num_rows;

print <<<EOT
  <tr>
    <td width="100%" colspan="3"><font size="1">
    $asmtxt[19] $znum<br>[<a href="javascript:smileywin()">$asmtxt[18]</a> ]
    </font></td>
  </tr>
</table></center></td>
EOT;
}
else
{
print <<<EOT
   <td valign=top align="right"><font size=2><b>$txt[72]:</b></font></td>
EOT;
}

print <<<EOT


That code, I modified on the fresh board, i took out most of the "print" functions and guess what it works!
Only thing is i have to use vbstyle smiley display as the other display fubars my post.php.

Whats wrong with the above code? Why wont it work as it stands in my post.php? I dont care now cause i got it to work the way i want it to work, but if you could find out how your MOD tells me to modify some code, yet when i do it causes a problem. Even boardmod wont do it.
« Last Edit: May 29, 2002, 09:01:20 PM by Lonestar » Logged

Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:BigP Smilies MOD
« Reply #19 on: May 29, 2002, 10:04:36 PM »
Reply with quote

There's nothing wrong with the above code.
Have to tried disableing vbsmilies via your mod settings area? The code above is only posted if vbsmilies is enabled, and by default it is.
Turn it off in the mod settings area to get the other way of viewing smilies...  ::)
Logged

PHPNews has been released!!! Download it now!!!
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #20 on: May 29, 2002, 10:24:45 PM »
Reply with quote

No see adding that code gave me the parse and fatal error. Not adding it allowed me to use the add smilies without vbstyle options.

Adding the code above, with some tweaks i gave it allowed me to use the vbstyle options, but not the regular option.

That above code was active whether or not the checkmark for vbstyle was on or off.

I dont know, dont worry about it now, ive got it how i like it. just cant figure out why i cldnt do it with boardmod and when i did it manually it fubared to.
Logged

Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:BigP Smilies MOD
« Reply #21 on: May 30, 2002, 03:31:24 PM »
Reply with quote

Well if thats the case I'd say another mod was doing that, like you originally thought.
But just so you know, for the next version of the Smilies mod you're going to need a clean install, but it will be for version 1.4 of yabb anyway, so you shouldn't have any problems.  ;) As long as you install it first of course.
Logged

PHPNews has been released!!! Download it now!!!
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #22 on: May 30, 2002, 05:16:45 PM »
Reply with quote

Ill tell you right now, im not doing an upgrade for awhile. It works fine right now, and until i need 1.4 YABB or 1.5 smilies i wont be installing either.

It works now, if it aint broke im not fixing it. :)
Logged

Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:BigP Smilies MOD
« Reply #23 on: May 31, 2002, 10:35:21 AM »
Reply with quote

Quote from: Lonestar on May 30, 2002, 05:16:45 PMIt works now, if it aint broke im not fixing it. :)
You'll want to upgrade to 1.4 SE as its very nice indeed. And boardindex.php is yum!
Also 1.5 of smilies will be the final version, so you should take a look when its finished. Much nicer than 1.3, code wise.  ;)
Logged

PHPNews has been released!!! Download it now!!!
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #24 on: May 31, 2002, 04:32:31 PM »
Reply with quote

Ill wait and see. Ill upgrade eventually, but with all the headaches ive had recently with MODS and Boards i think i want to keep it working atleast for a month. :)
Logged

Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  BigP Smilies MOD « 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 0.119 seconds with 21 queries.