Author |
Message |
EBonney
New Member


Joined: Oct 09, 2004
Posts: 4
|
Posted:
Sat Oct 09, 2004 4:42 pm |
|
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 |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Oct 09, 2004 6:10 pm |
|
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. |
|
|
|
 |
EBonney

|
Posted:
Wed Oct 20, 2004 5:16 am |
|
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

|
Posted:
Wed Oct 20, 2004 6:12 am |
|
It was in PN originally. They may have just renamed it. And you are correct about the usage. |
|
|
|
 |
EBonney

|
Posted:
Wed Oct 20, 2004 6:25 am |
|
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

|
Posted:
Wed Oct 20, 2004 6:47 am |
|
This would be a complete change for all users . I have modified the script and will be issuing an update, with proper credit to you, of course  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

|
Posted:
Wed Oct 20, 2004 6:48 am |
|
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.
Thanks again for the help.
-Eric |
|
|
|
 |
Raven

|
Posted:
Wed Oct 20, 2004 6:55 am |
|
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  |
|
|
|
 |
barnaby101
New Member


Joined: Mar 02, 2005
Posts: 4
|
Posted:
Wed Apr 06, 2005 7:32 am |
|
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 |
|
|
|
 |
Raven

|
Posted:
Wed Apr 06, 2005 9:08 am |
|
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


Joined: Aug 06, 2005
Posts: 1
|
Posted:
Sat Aug 06, 2005 8:21 am |
|
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 |
|
|
|
 |
Raven

|
Posted:
Sat Aug 06, 2005 8:23 am |
|
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. |
|
|
|
 |
|