Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Bjab), 25 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#30849 - 11/16/00 04:46 PM ShowMembers
Anonymous
Unregistered

Just a little recommendation since my version of the ShowMembers script wasn't too popular. Replace the 30 else if's in a row with a neat switch statement. Or at least condense the two sets of else if's into 1 set.
Right now it's..

<pre>
if ($var == 1) {
$i = 11;
}
else if ....
now once this group of else if's are done you have..
if($var == 1) {
$j = 12;
}
else if ....

</pre>

etc.

Doug
<A HREF="http://www.netherworldrpg.net" target="_new">http://www.netherworldrpg.net</A>
Top
#30850 - 11/16/00 05:02 PM Re: ShowMembers
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Thanks for the tip. I changed the code to the switch/case option. Much better;).

---

Scream

WWWThreads Developer
Top



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image