Welcome, Guest. Please Login or Register.
May 04, 2025, 01:18:42 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 1032 times)
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
BigP Smilies MOD
« on: May 25, 2002, 09:16:50 PM »
Reply with quote

Hey,

I know you said you dont support this mod with other mods installed, but im going to ask this anyways in hopes you can solve this problem.

Here is some info on my board first off:
Mute MOD is installed
Quick Admin MOD is installed

Now my problem begins BEFORE my install of Quick Admin MOD so im almost 100% sure that isnt the problem, but i am about 80% sure that its the mute user MOD that is the problem.

Now, ive modified my post.php to the point i can get the smilies MOD to work, but if i enable the Vbstyle smilies option it shows no smilies at all on the post.php page. If i do not enable the vbstyle smilies option then the smilies show up as it would on a normal board, except that it add all the smilies in the post.php page. Not a problem.

Unless, you add about 50 smilies on the board, then it becomes a serious problem. you cant have 50 smilies on a page at once and be considered a decent board admin or webmaster. It just doesnt work right, things start to stutter and you have to begin replacing smilies.

When i do the full modification of the post.php file without my modifications i get this error:

Fatal error: Call to undefined function: printpostbox() in /home/unitedg/public_html/forum/Sources/Post.php on line 185
Then i put my modified post.php file back up and disable the vbstyle smilies and everything works fine except i cant use vbstyle smilies at all.

I want to use this file to its full extent, i dont want to limit the smilies as well. Can you help me out at all?
If you need more info i will hand it to you. If you need access to my board to do it i will give it. Thanks in advance. :)
Logged

Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #1 on: May 25, 2002, 09:19:00 PM »
Reply with quote

One other small note. I need to keep the MUTE MOD installed, but the quick admin is not needed yet.

I think its a small problem looking at it, but when i look at the code i might as well be looking at chinese, of which i have 0 knowledge.  :P
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:BigP Smilies MOD
« Reply #2 on: May 27, 2002, 11:37:47 AM »
Reply with quote

Are you sure that there isn't more to the error than that? You either deleted an entire function, or it's giving you a parse error so it can't define that function.
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #3 on: May 27, 2002, 09:50:36 PM »
Reply with quote

Definitely is a parse error. My bad.
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:BigP Smilies MOD
« Reply #4 on: May 28, 2002, 01:51:43 AM »
Reply with quote

You mind giving that error to us?
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #5 on: May 28, 2002, 08:35:31 PM »
Reply with quote

Code i took away so it would work with VB style off:

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

I beleive that makes the Vb style work on the POST.php page, without it post.php wont put anything there. This is the first bit i left out of post.php, here is the error i recieve when readding it and try to use it:

ERROR:
Fatal error: Call to undefined function: printpostbox() in /home/unitedg/public_html/forum/Sources/Post.php on line 195


I leave it in and go on to search for more code i left out.

Along with the other peice of code above, i left this out as well to make it work without vb style.

<script>
function smileywin() {
  window.open("$scripturl?action=smileyput", 'list', 'width=$modSettings[wdetach],height=$modSettings[hdetach],scrollbars=yes,resize=yes');
}
</script>

Just readding it now and error i get will be below:

ERROR:
Fatal error: Call to undefined function: printpostbox() in /home/unitedg/public_html/forum/Sources/Post.php on line 195


I have every peice of code that you guys ask for in post.php. The page that has the extra smilies is in the database, i know that for a fact. If i remove those two peices of code outlined above i can get smiley mod to work fine, but vb style will not work and only gives me the post page without any smiley's at all.

With my modifications it works, but as i add more smilies the page is overflowed witrh smilies and is slow in browsing, i need the option for vbstyle to work, else im stuck with only 3 rows of smilies to work properly.

Sorry not a parse error at all. Im going to post the entire file as i did it with my modifications in my next post along with the modifications im supposed to have for you to compare. The first will me my modifications, the second will be the Smiley MOD modifications im supposed to have. The second one i post is the one that gives me the fatal error.
Logged

Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #6 on: May 28, 2002, 08:45:36 PM »
Reply with quote

Ok message is too long.

Ive zipped them up instead and you can DL them.

This one is my modification of post.php to get smiley mod to work with my board but i cannot use vb style smilies. I can add smilies but only so many before the board is too slow to browse when posting.

http://unitedgamerscoalition.com/dls/Postmymod.zip

here is the version of post.php that is fully modified as required by the mod to ensure vb style works. When using this post.php it gives me a fatal error with vb style on or off. It wont work at all.

http://unitedgamerscoalition.com/dls/Post.zip

If you need more files, let me know ill get them up ASAP. If you can help me my whole community would be grateful. Thanks :)
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 #7 on: May 28, 2002, 09:03:11 PM »
Reply with quote

Sorry for not seeing this earlier, I was away! ;)

Anyway, have you installed both mods seperately?
Have you installed them in different orders? eg. Smilies Mod and the Moods Mod, and vice versa?

Jedi~ told me he had a fix for this, maybe he can post it here for you  ;) That would be your best bet, I'm too busy to check it out for ya  :P ::)
Logged

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


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #8 on: May 28, 2002, 09:09:53 PM »
Reply with quote

Mods installed on my boards:
MUTE MOD
Quick ADMIN MOD
SMILIES MOD
CALENDAR MOD

When did this start happening?
I had only MUTE MOD Installed, when attempting to install smiley mod the smiley mod wouldnt work properly.

I installed MUTE MOD FIRST
Then Smiley
Then QUick admin
Then Calendar

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 #9 on: May 28, 2002, 09:13:05 PM »
Reply with quote

you didn't have any incompatability errors installing it? Like "string not found"? That's odd.. Well you'll have to ask Jedi~ then since he knows whats wrong, I haven't looked.
Logged

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


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #10 on: May 28, 2002, 09:16:48 PM »
Reply with quote

hehe, yeah i did. So i went ahead and did it all manually.

I install all MODs manually, no boardmod no Yabbpack center involved. I read the readme, open the mod and go by what it says to a tee. Ive installed many MODS this way over and over and the only problem im having really is with Mute MOD and post.php

Calendar MOD works fine, just when i post an event from calendar then it asks me to make a post about it it loses the info along the way. I can make a post though, then link it to calendar. So it works just not as intended once again. And again its Post.php that is the culprit.

My post.php is so fubared that calendar mod doesnt work properly and so i think my POST.php needs a rehaul.

Sometimes i wish i knew PHP scripting........ :-[
« Last Edit: May 28, 2002, 09:18:27 PM by Lonestar » Logged

Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:BigP Smilies MOD
« Reply #11 on: May 28, 2002, 11:06:10 PM »
Reply with quote

Quote from: Lonestar on May 28, 2002, 09:16:48 PMhehe, yeah i did. So i went ahead and did it all manually.

I install all MODs manually, no boardmod no Yabbpack center involved. I read the readme, open the mod and go by what it says to a tee. Ive installed many MODS this way over and over and the only problem im having really is with Mute MOD and post.php

Calendar MOD works fine, just when i post an event from calendar then it asks me to make a post about it it loses the info along the way. I can make a post though, then link it to calendar. So it works just not as intended once again. And again its Post.php that is the culprit.

My post.php is so fubared that calendar mod doesnt work properly and so i think my POST.php needs a rehaul.

Sometimes i wish i knew PHP scripting........ :-[

If you want to email me your Post.php I'll take a quick look at it to see if I can spot any incompatibilities with the Calendar mod. I'm not promising anything, but it can't hurt to take a look and see if anything jumps out at me.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:BigP Smilies MOD
« Reply #12 on: May 28, 2002, 11:31:30 PM »
Reply with quote

Big 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...
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #13 on: May 29, 2002, 02:51:24 AM »
Reply with quote

Quote from: Myiasis on May 28, 2002, 11:06:10 PMIf you want to email me your Post.php I'll take a quick look at it to see if I can spot any incompatibilities with the Calendar mod. I'm not promising anything, but it can't hurt to take a look and see if anything jumps out at me.

Its in the ZIP in the above post.

Logged

Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:BigP Smilies MOD
« Reply #14 on: May 29, 2002, 04:29:07 AM »
Reply with quote

Just installed a fresh board.

Tried it with boardmod after learning it. (Nice tool BTW)
On step 11, it fubared. Said cldnt find a string in post.php. Reffered to printpostbox (again)

Tried it manually. Exactly how the instructions laid it out for me. I assure you i made no mistakes this time, im tripley sure.

Im EXACT in this process.

Modified all files as requested and uploaded them. I get this exact error.

ERROR at the top of the page:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/unitedg/public_html/test/Sources/Post.php on line 897


ERROR just above the Subject in post.php
Fatal error: Call to undefined function: printpostbox() in /home/unitedg/public_html/test/Sources/Post.php on line 179


This is on a fresh install, done perfectly for the 20th or so time.

I do NOT believe its the other MODS, i do believe its either me or this MOD. How do i fix my fresh board, i can then fix my moded board. ???
 

« Last Edit: May 29, 2002, 04:31:10 AM by Lonestar » 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.041 seconds with 20 queries.