Member list Main/Alt

Posts from previous Beta sessions

Member list Main/Alt

Postby zanix » Fri Nov 09, 2007 11:28 pm

You don't need (alt|Alt) if you use the case insensitive switch /i
Code: Select all
/([\pL]+)('s|') alt/i
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Member list Main/Alt

Postby PleegWat » Sat Nov 10, 2007 3:47 am

Looks fine. the (alt|Alt) part is not needed if you add an i after the last /. i is a flag for case Insensitive.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Member list Main/Alt

Postby Keviel » Mon Nov 12, 2007 8:27 pm

Ah, goody - didn't know the switch. I figured it'd exist, but haven't had much time to look at it... the entire syntax was kinda winged from "hmmm, this should work, I guess..."

Thanks :-)
Keviel
WR.net Apprentice
WR.net Apprentice
 
Posts: 60
Joined: Fri Oct 19, 2007 7:53 pm
Location: Copenhagen, Denmark

Member list Main/Alt

Postby darcojin » Sat Nov 24, 2007 1:06 pm

OK maybe I am missing something but I cannot get this feature to work, I have put "user name's alt" into both the public and officer notes fields, and "Main" in my mains field. I have left the settings on the "memberlist/main lt relation" settings at the defaults and yet still no associations. I also seem to have a guild called "Guildless-A" guild listing with no members. Any suggestions on how to get this to work. My page is at Enrapture, i have 3 guilds i am keeping track of but i am just trying to get it to work on the "Phantom Souls" guild. I am using the 1432 build.
Last edited by darcojin on Sat Nov 24, 2007 1:06 pm, edited 1 time in total.
User avatar
darcojin
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Tue Sep 18, 2007 2:13 am

Member list Main/Alt

Postby zanix » Sat Nov 24, 2007 3:41 pm

If the note is "user name's alt"
Then try this reg ex string
Code: Select all
/([\w]+)'s alt/i
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Member list Main/Alt

Postby DerSeppel » Wed Nov 28, 2007 6:13 pm

Hi there!

I can't get the Main/Alt feature to work.

I've set getmain_regex to: /Main: ([\pL]+)/
and set the Officer Note to e.g. Main: Arctirael

Still doent work.

I tried a little debugging, the $regs-Array is always empty. ???

You can have a look over here, the OfficeNotes are set visible: http://www.hueterdesglaubens.de/index.p ... r&Itemid=5

I set up a Char for testing:

Arctirael (Main)
---> Felicàelle (Twink) Officer-Note: "Main: Arctirael"
Last edited by DerSeppel on Wed Nov 28, 2007 6:16 pm, edited 1 time in total.
User avatar
DerSeppel
WR.net Apprentice
WR.net Apprentice
 
Posts: 19
Joined: Wed Sep 19, 2007 7:02 pm
Location: Hanau/Germany

Re: Member list Main/Alt

Postby DerSeppel » Thu Nov 29, 2007 10:18 pm

Did anyone get the main/alt list working with special chars?
For example áàâ ?
User avatar
DerSeppel
WR.net Apprentice
WR.net Apprentice
 
Posts: 19
Joined: Wed Sep 19, 2007 7:02 pm
Location: Hanau/Germany

Member list Main/Alt

Postby Keviel » Fri Nov 30, 2007 7:33 am

Mine works fine with special characters at present time. Haven't had any issues parsing it whatsoever, after changing to the above mentioned regex
Keviel
WR.net Apprentice
WR.net Apprentice
 
Posts: 60
Joined: Fri Oct 19, 2007 7:53 pm
Location: Copenhagen, Denmark

Member list Main/Alt

Postby Keviel » Fri Nov 30, 2007 7:41 am

Hmmm, you're still running on a 1432 - shouldn't you update it to the newest SVN? Or just the newest SVN bundle at least.

If you do, remember to change the install.def.php in your custom plugins, as I can see you have a couple, to have the class changed to addonnameInstall.

Also, call me blind, but I don't see the officer's note, and the public note says "Twink Arc"

What does Alanya and Aleydis have in their officer's note?
Keviel
WR.net Apprentice
WR.net Apprentice
 
Posts: 60
Joined: Fri Oct 19, 2007 7:53 pm
Location: Copenhagen, Denmark

Re: Member list Main/Alt

Postby Keviel » Fri Nov 30, 2007 9:43 am

Content removed on account of being complete blabbery.
Last edited by Keviel on Fri Nov 30, 2007 5:12 pm, edited 2 times in total.
Keviel
WR.net Apprentice
WR.net Apprentice
 
Posts: 60
Joined: Fri Oct 19, 2007 7:53 pm
Location: Copenhagen, Denmark

Member list Main/Alt

Postby PleegWat » Fri Nov 30, 2007 4:38 pm

You're completely wrong.
() means grouping a subexpression, it is needed to extract only the name from the note.
The + means multiple of the preceding character class.

\pL does not work on all PHP versions. You need php 4.4 or 5.1 for it to work. This is significantly higher than what roster requires, and that is the reason it's configured with \w by default.
The main difference between these two is in handling accented letters.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Member list Main/Alt

Postby Keviel » Fri Nov 30, 2007 5:11 pm

Okay then ^^ - well, it was a guess anyway. I was just wondering exactly what was going wrong, and since nobody else were answering... ;-) I work as a system consultant with support as primary focus, so I'm used to working my way through the problems, even if I know nothing about the precise issue ^^

Anyway, then I'd still like to see exactly what the officer's note is set to - I still can't see it.

And I'll delete the above comment, to avoid confusion for others that read it, and think I actually know what I'm talking about.
Keviel
WR.net Apprentice
WR.net Apprentice
 
Posts: 60
Joined: Fri Oct 19, 2007 7:53 pm
Location: Copenhagen, Denmark

Re: Member list Main/Alt

Postby DerSeppel » Fri Nov 30, 2007 10:26 pm

okay .... i'll try the current roster-version ...

btw. i'm running php version 5.1.2 so, the regex shouldnt be the problem ...

EDIT:

Update complete. Still the same Problem.
The Officer Note should be visible on the Memberlist. Next to the guild-note.

Tried different match-numbers, though it definitly should be match[1]


And by the way: What about the the config-value "alt_type", found under "Configure Roster > Default Config" ??
What's that field for? A redundant implementation?
Last edited by DerSeppel on Fri Nov 30, 2007 10:45 pm, edited 3 times in total.
User avatar
DerSeppel
WR.net Apprentice
WR.net Apprentice
 
Posts: 19
Joined: Wed Sep 19, 2007 7:02 pm
Location: Hanau/Germany

Member list Main/Alt

Postby PleegWat » Fri Nov 30, 2007 11:43 pm

alt_type? There's nothing with config name alt_type.

Have you tried the update relations button? Your config looks fine, but you need to update with triggers enabled or hit the update relations button for them to work.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Member list Main/Alt

Postby DerSeppel » Sat Dec 01, 2007 2:35 am

I meant the config value shown in the attachment.

I enabled the update triggers AND tried the manual update ...
Attachments
alt_type.jpg
Picture showing the value ...
alt_type.jpg (19.55 KiB) Viewed 288 times
User avatar
DerSeppel
WR.net Apprentice
WR.net Apprentice
 
Posts: 19
Joined: Wed Sep 19, 2007 7:02 pm
Location: Hanau/Germany

PreviousNext

Return to Archived

Who is online

Users browsing this forum: No registered users and 0 guests

cron