Previous Thread
Next Thread
Print Thread
Rate Thread
#38066 01/25/2001 8:09 PM
Joined: Jan 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 5
Ok, everyone. I've sorta figured out the "history not showing up" problem. Keep in mind, I'm a big time Perl amateur, so I'd be pleased if someone wants to explain this more clearly or verify my findings.

I traced everything back through karma.pl to the sub karmaMsg and did various kinds of troubleshooting to see what was working and what wasn't. The karma profiles were writing fine and the code to print the history was working fine, too. The problem seemed to be where the karma profile file opens and then loads into the array. I focused my attention on this bit of code:

open (MESSAGES, "$MembersPath/karma/$ProfileNumber.cgi");
@kMessages = ;
close (MESSAGES);


I subsituted the expression

open (MESSAGES, "$MembersPath/karma/$ProfileNumber.cgi");

for the direct path of a profile file I knew existed, like this:

open (MESSAGES, "/usr/otd/cgi-bin/ubb/Members/karma/00000003.cgi");

Sure as heck, it worked. My history was reading fine. I worked backwards and replaced the absolute path with $MembersPath/karma/ again and it continued to work, thus showing that the problem was with the variable $ProfileNumber. I assumed that $ProfileNumber is being reset to some other value in between loading the profile number at the beginning of the routine and where it is being used to load the karma profile from the Members/karma directory. I pinpointed the problem to this expression:

$PN = &GetUserNumber($UserName);

This expression finds the user number of YOU, the person looking up the karma, which is later used to make sure you're authorized. It calls sub GetUserNumber, which is located in ubb_libary.pl. During this routine, $ProfileNumber is set to YOUR user number and stays that value upon return to sub karmaMsg in karma.pl. So, in my case, with the history was trying to read from MY profile file that didn't exist because I *had* no karma adjustments, therefore no history was being displayed.

My fix:
I changed $ProfileNumber to $ProfileNumber2 everywhere in sub karmaMsg, in karma.pl. There are four instances of it.
It now seems to work reliably.

Good luck!

This message has been edited by Matthew on January 25, 2001 at 07:13 PM

Sponsored Links
Entire Thread
Subject Posted By Posted
Karma (warn/praise) Mod Pyros 09/09/2000 9:22 PM
Re: Karma (warn/praise) Mod Leshrac 12/23/2000 2:47 AM
Re: Karma (warn/praise) Mod Deb 12/23/2000 5:33 AM
Re: Karma (warn/praise) Mod WEAPON 12/23/2000 6:02 AM
Re: Karma (warn/praise) Mod Greg Hard 12/23/2000 6:50 AM
Re: Karma (warn/praise) Mod PGZ Rick 12/24/2000 3:41 AM
Re: Karma (warn/praise) Mod Greg Hard 12/24/2000 3:43 AM
Re: Karma (warn/praise) Mod PGZ Rick 12/24/2000 3:47 AM
Re: Karma (warn/praise) Mod Greg Hard 12/24/2000 4:20 AM
Re: Karma (warn/praise) Mod indoe 12/24/2000 5:52 AM
Re: Karma (warn/praise) Mod MorphStar 12/24/2000 3:06 PM
Re: Karma (warn/praise) Mod WEAPON 12/24/2000 7:04 PM
Re: Karma (warn/praise) Mod Fuzion 12/24/2000 7:14 PM
Re: Karma (warn/praise) Mod Dark Templar 12/24/2000 11:00 PM
Re: Karma (warn/praise) Mod Metallifukinca 12/25/2000 12:47 AM
Re: Karma (warn/praise) Mod DraGooN 12/25/2000 2:13 AM
Re: Karma (warn/praise) Mod DraGooN 12/25/2000 4:38 AM
Re: Karma (warn/praise) Mod Eminem 12/26/2000 6:13 PM
Re: Karma (warn/praise) Mod Leshrac 12/26/2000 7:13 PM
Re: Karma (warn/praise) Mod WEAPON 12/26/2000 8:08 PM
Re: Karma (warn/praise) Mod Eminem 12/26/2000 9:01 PM
Re: Karma (warn/praise) Mod WEAPON 12/27/2000 4:15 AM
Re: Karma (warn/praise) Mod SpAwN 12/27/2000 4:26 AM
Re: Karma (warn/praise) Mod DraGooN 12/27/2000 9:11 AM
Re: Karma (warn/praise) Mod Ultra GrrL 12/27/2000 12:37 PM
Re: Karma (warn/praise) Mod Alien 12/27/2000 10:33 PM
Re: Karma (warn/praise) Mod SpAwN 01/01/2001 6:56 AM
Re: Karma (warn/praise) Mod Alien 01/01/2001 7:52 PM
Re: Karma (warn/praise) Mod Jigga-Master 01/01/2001 8:33 PM
Re: Karma (warn/praise) Mod Leshrac 01/06/2001 10:50 PM
Re: Karma (warn/praise) Mod WEAPON 01/07/2001 1:02 AM
Re: Karma (warn/praise) Mod Leshrac 01/08/2001 1:52 AM
Re: Karma (warn/praise) Mod DJLunacy 01/10/2001 5:32 PM
Re: Karma (warn/praise) Mod cRackY 01/13/2001 2:36 PM
Re: Karma (warn/praise) Mod Hawaiibullrider 01/24/2001 7:21 PM
Re: Karma (warn/praise) Mod Leshrac 01/25/2001 1:31 AM
Re: Karma (warn/praise) Mod Matthew 01/25/2001 11:55 PM
Re: Karma (warn/praise) Mod Matthew 01/26/2001 3:09 AM
Re: Karma (warn/praise) Mod Leshrac 01/26/2001 3:32 AM
Re: Karma (warn/praise) Mod CARTOON 01/27/2001 2:52 AM
Re: Karma (warn/praise) Mod kaost 01/27/2001 3:03 AM
Re: Karma (warn/praise) Mod CarToyz 01/27/2001 4:29 AM
Re: Karma (warn/praise) Mod CARTOON 02/04/2001 9:38 AM
Re: Karma (warn/praise) Mod Hawaiibullrider 02/08/2001 1:37 AM
Re: Karma (warn/praise) Mod UltraNEO* 03/16/2001 10:02 AM
Re: Karma (warn/praise) Mod PGZ Rick 04/23/2001 5:26 AM
Re: Karma (warn/praise) Mod Andrew Pakula 08/09/2001 2:53 AM
Re: Karma (warn/praise) Mod Andrew Pakula 08/09/2001 3:08 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3681
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)