Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1159
Location: Sanbornton, NH USA

PostPosted: Tue Sep 07, 2004 2:22 pm Reply with quote

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 Only registered users can see links on this board! Get registered or login!
1CMS, 100% Section 508 and W3C XHTML/CSS Compliant (Truly) 
View user's profile Send private message Visit poster's website
G-Rard_B
Worker
Worker


Joined: Sep 01, 2004
Posts: 105

PostPosted: Tue Sep 07, 2004 3:56 pm Reply with quote

Is there a smileys.php file in blocks? If there is then try renaming it to
Code:
block-Smileys.php

I'm not sure if that will work, but it was worth a try.

BTW, you spelled "smilies" wrong lol.
 
View user's profile Send private message
drmike
Worker
Worker


Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC

PostPosted: Wed Dec 29, 2004 6:51 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website ICQ Number
JRSweets
Worker
Worker


Joined: Aug 06, 2004
Posts: 192

PostPosted: Thu Dec 30, 2004 7:29 am Reply with quote

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("Shocked", "<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;
}

?>
 
View user's profile Send private message
drmike
PostPosted: Thu Dec 30, 2004 8:57 am Reply with quote

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

PostPosted: Mon Jan 03, 2005 7:51 am Reply with quote

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] 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©