Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
#134231 05/08/2001 8:38 AM
Joined: Aug 2000
Posts: 226
Member
Member
Offline
Joined: Aug 2000
Posts: 226
Help please smile

I have the script so that it can split the memberlist into either groups of 50 or into pages based on the first letter of the username.

What I need is two things to make it better.

1) I need help with a regular expression that will return all login names that start with a symbol or number instead of a letter.

2) I need help with the dropdown box of letters. Currently, I hard coded each option tag, and have no way to mark as selected the letter that users are currently viewing.

I am willing to email the code to anyone who wants to help improve this thing.

Amy

Sponsored Links
#134232 05/08/2001 1:46 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
amy, i'd be willing to help with whatever. smile

#134233 05/08/2001 2:10 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
i have a member with a pipe (|) in his name so i just changed the seperator to seperate by the |!!| dont know if this will help anyone else but it seems a more efficient way of doing it to me.

so the while statement now looks like this:
Code
code:

#134234 05/08/2001 2:13 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
amykhar - for the 1st of the 2 things u needed help with above. it probably work just to check if the first char is NOT a letter, then to go one and check if it is NOT a letter and NOT a number, so then its a special char. hope that is helpfull.

great hack btw. laugh

[ May 08, 2001 02:14 PM: Message edited by: jordo ]

#134235 05/08/2001 2:34 PM
Joined: Sep 2000
Posts: 101
Member
Member
Offline
Joined: Sep 2000
Posts: 101
Okay, i changed the code to look like this:
Code
code:

And now, when you click on send PM, it says it cannot find profile for member number???


kaak
[email protected]
icq# 4032410
Sponsored Links
#134236 05/08/2001 2:39 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Code
quote:</font><HR>Originally posted by kaak:
Okay, i changed the code to look like this:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, Arial">code:

And now, when you click on send PM, it says it cannot find profile for member number???



FIND:
====



REPLACE WITH:
============


#134237 05/08/2001 3:02 PM
Joined: May 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 3
Hi amykhar,

thanks a lot for this really great hack, I like it quite much! smile

Have got a question on it: I want to use this script for displaying the top posters in my board.

How do I have to modify it so the memberlist will be sorted by the number of posts, and not by username?

Thanks for your help!

#134238 05/08/2001 3:30 PM
Joined: Apr 2001
Posts: 24
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 24
How can I add custom status hack column in this great hack ?

Thank smile

#134239 05/08/2001 3:55 PM
Joined: Aug 2000
Posts: 226
Member
Member
Offline
Joined: Aug 2000
Posts: 226
Sokar,
It would be extensive. Currently, the list is set up by alphabetically sorting the usernames and then grabbing info from their profiles.

I need some time to think of the best way to allow sorting based on the different categories.

Amy

#134240 05/08/2001 4:05 PM
Joined: May 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 3
Quote
quote:
That would be really very nice of you if you could find a way to do this!

[ May 08, 2001 04:05 PM: Message edited by: Sokar ]

Sponsored Links
#134241 05/08/2001 4:29 PM
Joined: Apr 2001
Posts: 26
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 26
Quote
quote:
I've tried putting this practically everywhere I can think of in the file, its usually giving me a blank space (when not an error). I think its not checking &CustomTitle (this sub is in ubb_lib right?) or if it is its not reading it correctly or something.

#134242 05/08/2001 4:36 PM
Joined: Apr 2001
Posts: 41
Member
Member
Offline
Joined: Apr 2001
Posts: 41
Scrap thatDoh,,,It worked this time...lol

[ May 08, 2001 04:43 PM: Message edited by: Stuck ]

#134243 05/08/2001 4:49 PM
Joined: Jan 2001
Posts: 421
Member
Member
Offline
Joined: Jan 2001
Posts: 421
I tried making mine look like the original one for 5

http://lm.h-realms.com/cgi-bin/ultimatebb.cgi?ubb=get_memberlist

#134244 05/08/2001 5:11 PM
Joined: Apr 2001
Posts: 41
Member
Member
Offline
Joined: Apr 2001
Posts: 41
Wey hey,

Looks good 2 pac...Well done m8....

#134245 05/08/2001 8:53 PM
Joined: Apr 2001
Posts: 10
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 10
Quote
quote:
Any chance of getting the full code for the one you are using ? Thats really what I need and I lack the skills to do it myself.

#134246 05/08/2001 9:21 PM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
we should break this into 2 scripts

one script to parse the memberlist, and setup data

second script to display

would cut down on CPU usage

[ May 08, 2001 10:34 PM: Message edited by: CtrlAltDel ]

#134247 05/08/2001 10:22 PM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
oh and should show the $user_profile[15]/publicly displayed name as the name on there, not their login...

[ May 08, 2001 10:41 PM: Message edited by: CtrlAltDel ]

#134248 05/08/2001 10:47 PM
Joined: Apr 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 18
Hi,

I am trying to add a table with the PM icon with a link to PM the user.....
Code
code:

However I get an error saying that it is not terminated....

Isn't that what the last quote does?


"Oil Beef Hooked"
-Drunk Irishman
#134249 05/08/2001 11:06 PM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
you cant have quotes inside of quotes in a print statement

use ' if you can inside quotes in a print statement

#134250 05/08/2001 11:12 PM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
change the top part to this, if you want the list sorted by publicly displayed name rather then login name

while() {
@line = split(/|!!|/, $_);
@open_profile = &OpenProfile(@line[1]);
$username = @open_profile[15];
@raw_array[$counter] = lc($username)."/".@line[1];
$counter ++;
}

#134251 05/09/2001 12:01 AM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
Quote
quote:
ditto for me

#134252 05/09/2001 12:44 AM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
maybe im missing it but is there any special reason for the lowercasing of the users names
in this line?
@raw_array[$counter] = lc($username)."/".@line[1];

#134253 05/09/2001 12:44 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
PeterC:
Code
code:

XuDuX: I'll try it myself and tell you the fix

#134254 05/09/2001 1:24 AM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
i rewrote this so that it will write the whole page to a file and then access that file from then on to display the page instead of doing all the routines. not sure if it really cuts down on server use or anything. if this helps you let me know and ill send it to you to look at. smile

#134255 05/09/2001 1:25 AM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
they lowercase them, for the sort line down the page, as sort works on an ascii level...

#134256 05/09/2001 5:00 AM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
http://piratecove.warpstorm.com/cgi-bin/ultimatebb.cgi?ubb=get_memberlist

there is mine so far
this definately needs to be broken up into multiple files.

#134257 05/09/2001 7:18 AM
Joined: Aug 2000
Posts: 226
Member
Member
Offline
Joined: Aug 2000
Posts: 226
CtrlAltDelete, What should eventually be done is a script created to go through the list for the existing members, and then create a static file for display.

Then, as new members join, they should be added to the list. I haven't done this because theoretically, leshrac is implementing his old member list. I can't see investing that amount of time in it.

I have thrown together a temporary solution that isn't hard to install, and is easy to get rid of when leshrac finally releases.

However, I do have a version that should be ready for release in a day or two that will break the list into pages. DPK is helping out. (At least he has the code :D)

Amy

#134258 05/09/2001 1:00 PM
Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
does anyone know the status on leshrac's hack?

#134259 05/09/2001 1:52 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
amy: i'll check my email when i get home in about 30mins when my last class of the day is over and start workin. smile

leshrac: what is the status on ure conversion of ure memberlist script to ubb6?

#134260 05/09/2001 6:44 PM
Joined: Jan 2001
Posts: 421
Member
Member
Offline
Joined: Jan 2001
Posts: 421
[Linked Image]


YOU WANT THIS?! Its quite simple if you do.

#134261 05/09/2001 7:05 PM
Joined: Mar 2001
Posts: 39
Member
Member
Offline
Joined: Mar 2001
Posts: 39
it's not working...
it gives me...
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the home.starstation.ro home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.
HTTP 404 - File not found
Internet Explorer

_____________________________
wierd!

#134262 05/09/2001 7:09 PM
Joined: Mar 2001
Posts: 39
Member
Member
Offline
Joined: Mar 2001
Posts: 39
no need...silly me! smile
i was using your link with cgi-bin and i have cgi-local! smile

#134263 05/09/2001 8:14 PM
Joined: Jun 2000
Posts: 536
Member
Member
Offline
Joined: Jun 2000
Posts: 536
Hmph....what the heck is up with my memberlist. I get this at the bottom:

FYI
No member profile found for member number: o
» Please use your browser's back button to return.

http://www.ultanime.net/cgi-bin/ultimatebb.cgi?ubb=get_memberlist

I thought i'd get this fixed before I tried to hack the file to add more columns ect... Any idea on whats wrong people?

- The Allmighty Kitty (M_E_W) [Linked Image]


//i wanna scream, show the world i have an inside.
i wanna bleed, let the blood flow, that keeps me alive.
#134264 05/09/2001 8:25 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
the problem occurs because one of your members, 'o', has a character in his login name that disrupts parsing.

quick fix:

replace the while at the top of the script with:

while() {
@line = split(/|!!|/, $_);
$username = @line[0];
@raw_array[$counter] = lc($username)."|!!|".@line[1];
$counter ++;
}

then scroll down and find:
($user,$number) = split(///, @sort_array[$counter2]);

replace with:
($user,$number) = split(/|!!|/, @sort_array[$counter2]);


should work..... i think. smile havent tried it though

#134265 05/09/2001 8:29 PM
Joined: Jun 2000
Posts: 536
Member
Member
Offline
Joined: Jun 2000
Posts: 536
Yay it works =D, thank you very much ^_^;;.

- M_E_W


//i wanna scream, show the world i have an inside.
i wanna bleed, let the blood flow, that keeps me alive.
#134266 05/09/2001 8:36 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
np mew smile

#134267 05/09/2001 8:40 PM
Joined: Jun 2000
Posts: 536
Member
Member
Offline
Joined: Jun 2000
Posts: 536
Quote
quote:
:D, now it's time to get down to buisiness and add more columns and stuff to it and make it all purdy tipsy.

- M_E_W


//i wanna scream, show the world i have an inside.
i wanna bleed, let the blood flow, that keeps me alive.
#134268 05/09/2001 8:45 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
hehe, wait till u see the next version that amy has cookin wink


amy: if u need anything else, i'm always available and bored. i really need to think of a new idea for a new mod to code. smile

#134269 05/09/2001 8:58 PM
Joined: Jun 2000
Posts: 536
Member
Member
Offline
Joined: Jun 2000
Posts: 536
Quote
quote:
Ooooo.....I can't wait laugh. Amy, is there any way you can give us a preview of "whats cookin" in your next version tipsy smile?


//i wanna scream, show the world i have an inside.
i wanna bleed, let the blood flow, that keeps me alive.
#134270 05/10/2001 12:26 AM
Joined: Sep 2000
Posts: 101
Member
Member
Offline
Joined: Sep 2000
Posts: 101
2pac: yesyes, that is exactly what we need!!! can you give us a link?


kaak
[email protected]
icq# 4032410
Page 2 of 5 1 2 3 4 5

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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)