PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
64bitguy
The Mouse Is Extension Of Arm


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

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

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!
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 Back to top

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 Back to top

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
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 Back to top

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
Worker
Worker


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

PostPosted: Thu Dec 30, 2004 8:57 am Reply with quote Back to top

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


Joined: Apr 10, 2004
Posts: 649
Location: UK

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

I just edited out the part that called for smileys.php and it all works ok. I didnt want the smilies anyhow.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum