Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 9

142.54.x.x forum
173.199.x.x forum
175.44.x.x forum
188.165.x.x forum
192.151.x.x forum
42.62.x.x lgsl
66.249.x.x forum
66.249.x.x user
72.44.x.x forum

Last Seen

xMin Fri 17:48
Wussie Fri 17:36
Dodgeitorelse Fri 17:31
BYTM Fri 14:13
Hostprofil Fri 10:03

Newest Members

Forums
The old userclass :)
entity
Sun Feb 12 2006, 12:16PM
Posts: 8
Joined: Sun Feb 12 2006, 12:01PM
Registered Member #1053
First of all: GREAT plugin! Having used VWar for several years, it really was a brick of my heart, that it no longer is needed, with a great alternative such as RWar.

I have installed it, made it work, and everything should be in order, right?

Wrong. The problem is the userclass. What we do is create games for almost everybody, who signs up at our site, and disregard the players normal teams. We don't send out validation mails on signup, everybody is welcome.

As we have to add the userclass manually to 200+ players, when we start, we really fear for all the administration involved (well, the 1000+ mouseclicks, when adding a player to the correct userclass).

Is it possible to have RWar disregard any userclass, as long as people are just regular members on the site? OR alternatively have the userclass assigned on site signup?

Also, it would be nice to have the panel from VWar included, where you can see how many players are needed for the match.
Website
Rich
Sun Feb 12 2006, 01:35PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Well im glad you like RWar, but I do think you have grander plans for it than for what it was original intended

If you want to make it ignore the userclass, then edit the rwar_manage.php and change:

$mysql_query = "SELECT * FROM ".MPREFIX."user WHERE user_class != '' ORDER BY user_id ASC";

To

$mysql_query = "SELECT * FROM ".MPREFIX."user ORDER BY user_name ASC";

And then just a bit further down:

if (check_class($userclass_id, $mysql_row[user_class]))
to
if ($skipthis == $skipthis)
Website
entity
Sun Feb 12 2006, 02:11PM
Posts: 8
Joined: Sun Feb 12 2006, 12:01PM
Registered Member #1053
Thank you for your quick reply. I'm currently away from home, and can't remember the FTP-code for the site, so I can upload the new one. But just to make sure: guests on the site will still not be able to sign up for wars, right?

tytytytytytytytytytytytytytytyty
Website
Rich
Sun Feb 12 2006, 03:31PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

The above makes the dropdown player list show all members instead of those in the CLAN userclass.
Website
entity
Mon Feb 13 2006, 05:44AM
Posts: 8
Joined: Sun Feb 12 2006, 12:01PM
Registered Member #1053
Well, I was thinking more of the Detail-page, where the add me button should be available to all members...? I imagine it would be these lines of details.php:

if (check_class('CLAN') && $mysql_row[result] == "pending_open")

if (in_array(USERID.".".USERNAME, $mysql_row[players1]))
Website
Rich
Mon Feb 13 2006, 06:11AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Ah I see what you mean, well then just replace

check_class('CLAN')
with
USER

As in

if (check_class('CLAN') && $mysql_row[result] == "pending_open")
to
if (USER && $mysql_row[result] == "pending_open")

Theres 3 entries of the above line that need to be changed.
Website
entity
Mon Feb 13 2006, 06:49AM
Posts: 8
Joined: Sun Feb 12 2006, 12:01PM
Registered Member #1053
SUPERB! Exactly what I needed! Tyvm, Richard! I will post link to the site, as soon it is finished.
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org