Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Technical Support    Question and Answer  ›  Menu for Portal
Users Browsing Forum
No Members and 3 Guests

Menu for Portal  This thread currently has 1,913 views. Print
2 Pages « 1 2 Recommend Thread
importracer
January 16, 2003, 9:31am Report to Moderator Report to Moderator
E-Blah Member
Posts: 90
Posts Per Day: 0.04
I think it is in the loaduser section, but I am not quite sure can someone verify this for me?
Logged Offline
Site Site Private Message Private message Reply: 15 - 21
Justin
January 17, 2003, 4:50pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
What is?


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 16 - 21
importracer
January 17, 2003, 8:09pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 90
Posts Per Day: 0.04
The reason why people show up in the user list more than once.
Logged Offline
Site Site Private Message Private message Reply: 17 - 21
Justin
January 17, 2003, 9:20pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Hrmm ... make sure you aren't running the loop twice, that will cause it.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 18 - 21
importracer
January 17, 2003, 11:56pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 90
Posts Per Day: 0.04
This only happens on the portal. I just can't pinpoint where the loop occurs. I pasted in my code in an earlier post, could you take a look at it and see if you can pinpoint it for me?
Logged Offline
Site Site Private Message Private message Reply: 19 - 21
Justin
January 19, 2003, 4:27pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Your running two loops. One is in MainMenu, and one is in MembersInfo or whatever. Just rename the $memberson in the MembersInfo (I guess). That should work.



- Justin


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 20 - 21
importracer
January 19, 2003, 11:21pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 90
Posts Per Day: 0.04
I found it. I just cut this out of my LoadStats section. Thanks Justin for the direction.

Code
   fopen(FILE,"$prefs/Active.txt");
   @activelist = <FILE>;
   fclose(FILE);
   $activecnt = @activelist;
   chomp @activelist;
   $hidec = 0;
   $memcnt = 0;
   $gcnt = 0;

   for($i = 0; $i < @memgrps; $i++) {
      if($i > 6) { ($t,$t,$t,$t,$t,$t,$t,$memgrpp[$i]) = split(",",$memgrpp[$i]); }
      $gcolors{$memgrps[$i]} = $memgrpp[$i];
   }
   foreach(@activelist) {
      ($luser,$ltime,$hidden,$t,$bview) = split(/\|/,$_);
      loaduser($luser);
      if($userset{$luser}->[1] eq '') { $fndu = $luser; } else { $fndu = $userset{$luser}->[1]; }
      push(@quicksort,"$fndu|$luser|$hidden|$bview");
   }
   foreach(sort{lc($a) cmp lc($b)} @quicksort) {
      ($t,$luser,$hidden,$bview) = split(/\|/,$_);
      if($userset{$luser}->[1] ne '') {
         $lostuser = $gcolors{$userset{$luser}->[4]} ? qq~<font color="$gcolors{$userset{$luser}->[4]}"><b>$userset{$luser}->[1]</b></font>~ : qq~$userset{$luser}->[1]~;
         if($hidden) {
            ++$hidec;
            if($settings[4] eq 'Administrator') { $memberson .= qq~<a href="$scripturl,v=profile,a=view,u=$luser">$lostuser</a> • ~; }
               else { next; }
         } else {
            ++$memcnt;
            $memberson .= qq~<a href="$scripturl,v=profile,a=view,u=$luser">$lostuser</a> • ~;
         }
      } else { ++$gcnt; $glog .= "$luser • "; }
      ++$B{$bview};
   }
   $memberson =~ s/ • \Z//i;
   $glog =~ s/ • \Z//i;
   if($settings[4] ne 'Administrator') { $glog = ":</b> $gcnt"; }
   elsif($gcnt == 0) { $glog = ':</b> <i>None</i>'; }
      else { $glog = " ($gcnt):</b> $glog"; }
   if($memberson eq '') { $memberson = '<i>None</i>'; }

   foreach(@boardbase) {
      ($board,$t,$t,$bname) = split("/",$_);
      fopen(FILE,"$boards/$board.ino");
      @ino = <FILE>;
      fclose(FILE);
      if(!$ino[1]) { $ino[1] = 0; }
      push(@tbds,"$ino[1]|$bname|$board");
      chomp @ino;
      $threads = $threads+$ino[0];
      $message = $message+$ino[1];
   }
   $catcnt = @catbase;
   $bdscnt = @boardbase;

   @tbds = sort{$b <=> $a} @tbds;

   $c = 1;
   for($g = 0; $g < 10; ++$g) {
      ($mcnt,$boardnm,$bid) = split(/\|/,$tbds[$g]);
      $mcnt = MakeComma($mcnt);
      if($boardnm) { $topboards .= qq~<b>$c.</b> <a href="$surl,v=mindex,b=$bid">$boardnm</a> <font size="1">($mcnt $gtxt{'11'})</font><br>~; }
      ++$c;
   }
Logged Offline
Site Site Private Message Private message Reply: 21 - 21
2 Pages « 1 2 Recommend Thread
Print

E-Blah Community    Technical Support    Question and Answer  ›  Menu for Portal