Author |
Message |
64bitguy
The Mouse Is Extension Of Arm

Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Tue Sep 07, 2004 2:22 pm |
|
Quote: | Warning: main(blocks/smileys.php): failed to open stream: No such file or directory in /home/steph/public_html/blocks/block-Forums-Scroll.php on line 37
Warning: main(): Failed opening 'blocks/smileys.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/steph/public_html/blocks/block-Forums-Scroll.php on line 37
Fatal error: Call to undefined function: parseemoticons() in /home/steph/public_html/blocks/block-Forums-Scroll.php on line 53 |
Any Ideas?
Nuke 7.4 Patched 2.5.
Thanks! |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
 |
G-Rard_B
Worker


Joined: Sep 01, 2004
Posts: 105
|
Posted:
Tue Sep 07, 2004 3:56 pm |
|
Is there a smileys.php file in blocks? If there is then try renaming it to
I'm not sure if that will work, but it was worth a try.
BTW, you spelled "smilies" wrong lol. |
|
|
|
 |
drmike
Worker


Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC
|
Posted:
Wed Dec 29, 2004 6:51 pm |
|
I have this issue as well. smileys.php and block-smileys.php are no where to be found in my current install and the latest phpnuke downloads from phpnuke.org and here at Raven's.
Also that is how the error spells the name of the file.
Anyone every seen this file?
-drmike |
_________________ Only registered users can see links on this board! Get registered or login! |
|
 |
 |
JRSweets
Worker


Joined: Aug 06, 2004
Posts: 192
|
Posted:
Thu Dec 30, 2004 7:29 am |
|
Make a file called smileys.php and place it in the blocks folder. The file should have this code in it...
Code:<?php
function parseEmoticons ($text) {
$emoticons = array();
$emoticons[] = array(":)", "<img src='modules/Forums/images/smiles/icon_smile.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":D", "<img src='modules/Forums/images/smiles/icon_biggrin.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":(", "<img src='modules/Forums/images/smiles/icon_sad.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(" ", "<img src='modules/Forums/images/smiles/icon_eek.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":?", "<img src='modules/Forums/images/smiles/icon_confused.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array("8)", "<img src='modules/Forums/images/smiles/icon_cool.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":lol:", "<img src='modules/Forums/images/smiles/icon_lol.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":x", "<img src='modules/Forums/images/smiles/icon_mad.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":P", "<img src='modules/Forums/images/smiles/icon_razz.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":oops:", "<img src='modules/Forums/images/smiles/icon_redface.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":cry:", "<img src='modules/Forums/images/smiles/icon_cry.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":evil:", "<img src='modules/Forums/images/smiles/icon_evil.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":twisted:", "<img src='modules/Forums/images/smiles/icon_twisted.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":roll:", "<img src='modules/Forums/images/smiles/icon_twisted.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":wink:", "<img src='modules/Forums/images/smiles/icon_wink.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":!", "<img src='modules/Forums/images/smiles/icon_exclaim.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":?", "<img src='modules/Forums/images/smiles/icon_question.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":idea:", "<img src='modules/Forums/images/smiles/icon_idea.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":arrow:", "<img src='modules/Forums/images/smiles/icon_arrow.gif' alt='' align='absmiddle' BORDER=0>");
$emoticons[] = array(":o", "<img src='modules/Forums/images/smiles/icon_surprised.gif' alt='' align='absmiddle' BORDER=0>");
foreach ($emoticons as $emoticon) {
$text = str_replace($emoticon[0],$emoticon[1],$text);
}
return $text;
}
?>
|
|
|
|
|
 |
drmike

|
Posted:
Thu Dec 30, 2004 8:57 am |
|
Thanks. That solved that issue.
Unfortunely I'm having other issues with the block. When you click on one of the links, it loads the theme and puts the forum inside the block and shows a black section where the forum should be.
I'll take a look at it later on today and see if I can solve that issue. Kind of busy this morning.
Thanks,
-drmike |
|
|
|
 |
Muffin
Client

Joined: Apr 10, 2004
Posts: 649
Location: UK
|
Posted:
Mon Jan 03, 2005 7:51 am |
|
I just edited out the part that called for smileys.php and it all works ok. I didnt want the smilies anyhow. |
_________________ Classic Mini rules the bends & bends the rules!
[img] |
|
|
 |
|