PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
EBonney
New Member
New Member


Joined: Oct 09, 2004
Posts: 4

PostPosted: Sat Oct 09, 2004 4:42 pm Reply with quote Back to top

I am running this on my PostNuke site running ver 0.750. When I open click on any specific stock symbol, I get the following error:

Quote:
Fatal error: Call to undefined function: cookiedecode() in /home/bonneyc/public_html/modules/Stock_Quote/index.php on line 184


Anybody have any thoughts?

I really do appreciate the time that you have put into such an app and providing it for free to the public!


Thanks,
-Eric
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat Oct 09, 2004 6:10 pm Reply with quote Back to top

Have you configured these settings like this?

$isNuke = FALSE;
$isPNuke = TRUE;
$isStd = FALSE;

If so and you still have that error, then my guess is that they changed some code from .071 to .075. I no longer support PN because they were changing direction too much to suit me.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
EBonney
New Member
New Member


Joined: Oct 09, 2004
Posts: 4

PostPosted: Wed Oct 20, 2004 5:16 am Reply with quote Back to top

Raven wrote:
Have you configured these settings like this?

$isNuke = FALSE;
$isPNuke = TRUE;
$isStd = FALSE;

If so and you still have that error, then my guess is that they changed some code from .071 to .075. I no longer support PN because they were changing direction too much to suit me.


I do in fact have my settings configured as above. Since you don't support PN any longer, can you at least tell me if the cookiedecode() function was supposed to be a function that was provided by PN or was this a function that was provided by your script? I was going to tinker with it and see if I could get it running myself. It appears that all the function was supposed to be doing was getting the username of the person logged in.

Thanks for the help,
-Eric
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Wed Oct 20, 2004 6:12 am Reply with quote Back to top

It was in PN originally. They may have just renamed it. And you are correct about the usage.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
EBonney
New Member
New Member


Joined: Oct 09, 2004
Posts: 4

PostPosted: Wed Oct 20, 2004 6:25 am Reply with quote Back to top

Raven,

If you want to update your script to work with PostNuke here is the fix.

Make the following change:
Code:
// Determine username from the system
if (!$isStd) {
   //cookiedecode($user);
   //Correct PostNuke function call for .75 and beyond.
   $username = pnUserGetVar('uname');
}


After I fixed did this and uploaded to my site everything works just fine now.

Thanks for the help and a great script!

-Eric
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Wed Oct 20, 2004 6:47 am Reply with quote Back to top

This would be a complete change for all users Smile. I have modified the script and will be issuing an update, with proper credit to you, of course Wink
Code:
// Determine username from the system
if (!$isStd) {
   if (function_exists('cookiedecode')) {
      cookiedecode($user);
      $username = $cookie[1];
   }
   // For PN .75 - Thanks to Eric Bonney!
   elseif (function_exists('pnUserGetVar')) $username = pnUserGetVar('uname');
}


Last edited by Raven on Wed Oct 20, 2004 6:56 am; edited 2 times in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
EBonney
New Member
New Member


Joined: Oct 09, 2004
Posts: 4

PostPosted: Wed Oct 20, 2004 6:48 am Reply with quote Back to top

I can see why you had to make this fix. My fix worked on my site because I was using only PN, however if another user tried that code on a non-PN site it wouldn't have worked.

Sorry, I didn't think beyond my issue. Smile

Thanks again for the help.

-Eric
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Wed Oct 20, 2004 6:55 am Reply with quote Back to top

NP at all! I appreciate you taking the time to let me know - it only improves the script. I have modified my previous post as far as my comments, but not the code Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
barnaby101
New Member
New Member


Joined: Mar 02, 2005
Posts: 4

PostPosted: Wed Apr 06, 2005 7:32 am Reply with quote Back to top

Hi I tried the fix because I use PN 0.75 and now I get

Fatal error: Call to undefined function: pn_dbmsgerror() modules/Stock_Quote/index.php on line 226

Could I trouble anyone to suggest how I get arround this error ..

Regards

paul
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Wed Apr 06, 2005 9:08 am Reply with quote Back to top

Was it working before you put the fix in? If so, then you have not installed the fix correctly. You could also download a fresh copy as the fix is in the download.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
tay
New Member
New Member


Joined: Aug 06, 2005
Posts: 1

PostPosted: Sat Aug 06, 2005 8:21 am Reply with quote Back to top

Ok I know this topic is old I added the script worked great thanks but the center block is not showing up how can i correct that thanks

im have pn .75
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat Aug 06, 2005 8:23 am Reply with quote Back to top

I no longer support PN at all. The only thing I can think of is that you haven't activated the block. If you have and it's not showing then I don't know. Sorry.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum