View previous topic :: View next topic |
Author |
Message |
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Sun Jun 16, 2002 1:22 pm Post subject: adding comlist |
|
|
in the com_search page you can enter a whole copy of a comlist-screen now to search for the players on that list.
i uploaded the first version.
there are still some problems, i used this code:
Quote: | preg_match_all('/[*O|O*|OO|IRC].{3}(.*? of .*?)s.*s([0-9]+/[0-9]+/[0-9]+)s.*n/',
$search."n", $preg_results)){ |
and you see the result.
maybe someone of you theat is more familiar with regular expressions can try to make a better one.
(i already have strong headaches now :smile: )
Last edited by admin on Fri May 06, 2005 11:12 am; edited 1 time in total |
|
Back to top » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Wed Jun 19, 2002 12:26 am Post subject: |
|
|
now it is really useful, i added some checkboxes to the list
and we still need someone who knows more about regular expressions? |
|
Back to top » |
|
|
Dougster 1st Rear Admiral
Joined: 14 Apr 2002 Posts: 251
|
Posted: Wed Jun 19, 2002 5:17 am Post subject: |
|
|
I have tried that and it did not seeem to work, when you say copy, do you mean a straight cut and pastes into note pad or something else. Copies of coms sent to me look like this: co ords deleted
O* Bugsey,Galaxy Ruler of Fantasy
force O* captainporno of fatland 7162
O* c|oud of c|oud 9 1105
O* Dale of Dale 4589
NBYTES O* Dam Jat of Killroafee 8149
MOUSETYRON O* DARKLORD of DARKPLANET 1526
O* Ellemnist of Rebell Homworld
Pigmee O* Evil Dude of Pigmee 7433
O* fighter of isleta
O* GD of X
|
|
Back to top » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Wed Jun 19, 2002 6:51 am Post subject: |
|
|
exactly like that.
i assume, you deleted the coords, cause only the players that have coords are searched for
here is an example:
this list:
tag1 O* Bli of Blo 2931 400/400/30
othertag O* thing of thong
force O* you know of who 6526 300/300/30
would lead to a search result with only two players:
Bli of Blo : 400/400/30
you know of who : 300/300/30
because
thing of thong has no coords
it works on my MSIE5.5
maybe there are some differences on other browsers the way they copy the screen to the clipboard wit CTRL+C
try it with your own comlist, it should work
|
|
Back to top » |
|
|
Dougster 1st Rear Admiral
Joined: 14 Apr 2002 Posts: 251
|
Posted: Wed Jun 19, 2002 10:03 am Post subject: |
|
|
I deleted the co ords from the paste cos they are current players.
But when I have tried to paste an allies com list into the thingy, only a couple came up, the rest seemed to be ignored. So I had to add em the hard way. |
|
Back to top » |
|
|
Dougster 1st Rear Admiral
Joined: 14 Apr 2002 Posts: 251
|
Posted: Wed Jun 19, 2002 1:45 pm Post subject: |
|
|
Hey it works quite well except I think it should add the co ords to your list automatically instead of you having to paste them all in in the last section where is says here are the names you added and in the box is what you already have. |
|
Back to top » |
|
|
admin Board Admin
Joined: 09 Jan 2002 Posts: 2938
|
Posted: Thu Aug 15, 2002 1:55 pm Post subject: |
|
|
i corrected that.
and now the regular expression is corrected too. |
|
Back to top » |
|
|
Lord Philemon Vice Admiral
Joined: 12 Mar 2002 Posts: 556 Location: Germany
|
Posted: Mon Nov 04, 2002 8:56 pm Post subject: |
|
|
I think you should add that you have to click on "player search" in the comlist and then on "search for list of players" on the bottom of the screen. Because it's quite hard to find... |
|
Back to top » |
|
|
|