Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISSQ General Support
Author Message
EBonney
New Member
New Member



Joined: Oct 09, 2004
Posts: 4

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

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: 17088

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

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
EBonney







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

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
 
Raven







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

It was in PN originally. They may have just renamed it. And you are correct about the usage.
 
EBonney







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

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
 
Raven







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

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 
EBonney







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

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
 
Raven







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

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
 
barnaby101
New Member
New Member



Joined: Mar 02, 2005
Posts: 4

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

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







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

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.
 
tay
New Member
New Member



Joined: Aug 06, 2005
Posts: 1

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

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







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

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISSQ General Support

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 ©