|
Joined: Aug 2000
Posts: 226
Member
|
Member
Joined: Aug 2000
Posts: 226 |
Help please  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
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
Joined: Nov 2000
Posts: 915 |
amy, i'd be willing to help with whatever. 
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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:
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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. [ May 08, 2001 02:14 PM: Message edited by: jordo ]
|
|
|
|
Joined: Sep 2000
Posts: 101
Member
|
Member
Joined: Sep 2000
Posts: 101 |
Okay, i changed the code to look like this: And now, when you click on send PM, it says it cannot find profile for member number???
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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: ============
|
|
|
|
Joined: May 2001
Posts: 3
Junior Member
|
Junior Member
Joined: May 2001
Posts: 3 |
Hi amykhar, thanks a lot for this really great hack, I like it quite much!  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!
|
|
|
|
Joined: Apr 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 24 |
How can I add custom status hack column in this great hack ? Thank 
|
|
|
|
Joined: Aug 2000
Posts: 226
Member
|
Member
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
|
|
|
|
Joined: May 2001
Posts: 3
Junior Member
|
Junior Member
Joined: May 2001
Posts: 3 |
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 ]
|
|
|
|
Joined: Apr 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 26 |
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.
|
|
|
|
Joined: Apr 2001
Posts: 41
Member
|
Member
Joined: Apr 2001
Posts: 41 |
Scrap thatDoh,,,It worked this time...lol
[ May 08, 2001 04:43 PM: Message edited by: Stuck ]
|
|
|
|
Joined: Jan 2001
Posts: 421
Member
|
Member
Joined: Jan 2001
Posts: 421 |
|
|
|
|
Joined: Apr 2001
Posts: 41
Member
|
Member
Joined: Apr 2001
Posts: 41 |
Wey hey,
Looks good 2 pac...Well done m8....
|
|
|
|
Joined: Apr 2001
Posts: 10
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 10 |
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.
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
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 ]
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
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 ]
|
|
|
|
Joined: Apr 2001
Posts: 18
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 18 |
Hi, I am trying to add a table with the PM icon with a link to PM the user..... However I get an error saying that it is not terminated.... Isn't that what the last quote does?
"Oil Beef Hooked" -Drunk Irishman
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
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
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
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 ++; }
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
Joined: Jun 2000
Posts: 150 |
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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];
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
PeterC: XuDuX: I'll try it myself and tell you the fix
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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. 
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
Joined: Jun 2000
Posts: 150 |
they lowercase them, for the sort line down the page, as sort works on an ascii level...
|
|
|
|
Joined: Aug 2000
Posts: 226
Member
|
Member
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
|
|
|
|
Joined: Jun 2000
Posts: 150
Member
|
Member
Joined: Jun 2000
Posts: 150 |
does anyone know the status on leshrac's hack?
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
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.  leshrac: what is the status on ure conversion of ure memberlist script to ubb6?
|
|
|
|
Joined: Jan 2001
Posts: 421
Member
|
Member
Joined: Jan 2001
Posts: 421 |
YOU WANT THIS?! Its quite simple if you do.
|
|
|
|
Joined: Mar 2001
Posts: 39
Member
|
Member
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!
|
|
|
|
Joined: Mar 2001
Posts: 39
Member
|
Member
Joined: Mar 2001
Posts: 39 |
no need...silly me!  i was using your link with cgi-bin and i have cgi-local! 
|
|
|
|
Joined: Jun 2000
Posts: 536
Member
|
Member
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]](http://www.ultanime.net/ubb/smilies/angel.gif)
//i wanna scream, show the world i have an inside. i wanna bleed, let the blood flow, that keeps me alive.
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
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. havent tried it though
|
|
|
|
Joined: Jun 2000
Posts: 536
Member
|
Member
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.
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
Joined: Nov 2000
Posts: 915 |
np mew 
|
|
|
|
Joined: Jun 2000
Posts: 536
Member
|
Member
Joined: Jun 2000
Posts: 536 |
:D, now it's time to get down to buisiness and add more columns and stuff to it and make it all purdy  . - M_E_W
//i wanna scream, show the world i have an inside. i wanna bleed, let the blood flow, that keeps me alive.
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
Joined: Nov 2000
Posts: 915 |
hehe, wait till u see the next version that amy has cookin  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. 
|
|
|
|
Joined: Jun 2000
Posts: 536
Member
|
Member
Joined: Jun 2000
Posts: 536 |
Ooooo.....I can't wait  . Amy, is there any way you can give us a preview of "whats cookin" in your next version  ?
//i wanna scream, show the world i have an inside. i wanna bleed, let the blood flow, that keeps me alive.
|
|
|
|
Joined: Sep 2000
Posts: 101
Member
|
Member
Joined: Sep 2000
Posts: 101 |
2pac: yesyes, that is exactly what we need!!! can you give us a link?
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|