Log in

View Full Version : How do I enable GUEST to play the arcade?


Madmp3zz
02-03-2006, 12:51 PM
I have seen this question asked multiple times but nobldy has had an answer for it, that I have found anyways.

How do I enable GUEST to play the arcade?

MrZeropage
02-03-2006, 03:29 PM
There is a way to do that:

1. Create a new User called "Guest-Player" (or give him any other name)
2. send me FTP-Data via PM and I will adapt the Arcade to let Guests play using that created Guest-User

If there is need I could implement such a feature in the next Release ...

Madmp3zz
02-03-2006, 04:26 PM
Hey Z..
A HUGE THANKS..
But I'm behind a wall here at work.
So to open a port would put up a red flag with my group..

I want to allow guest access to the arcade so they can play without having to sign on and off all the time.
I make people sign off when they are not on the board due to issues with someone posting under someone elses name when they walked away from the machine.

Is there a quick fix/hack to get this to work without opening up the ftp?

Thanks Again

nitro
02-03-2006, 05:01 PM
The problem here I think is there would be no user to assign submitted scores to. Perhpas the best bet maybe to add a new user ie Visitor and assign that to a custom usergroup which has no posting privelages anywhere, but can play in the arcade and let everyone know its login. However your gonna suffer score bugs with it, if multiple people are playing simultaneously.

The only other way would be for it to get added as a new optional feature where unregged can play but score submissions for not logged in is just dropped, or they are simply bounced to arcade home at game over time.

Madmp3zz
02-03-2006, 07:10 PM
The only other way would be for it to get added as a new optional feature where unregged can play but score submissions for not logged in is just dropped, or they are simply bounced to arcade home at game over time.

Thats kinda what I was looking for, just let them play and the score gets dropped.
If they really want their scores saves they could always just login.

bang
02-03-2006, 08:09 PM
I'd love to see a feature like this as well. In fact, it would be nice of guests had their own permissions, too.

Madmp3zz
02-03-2006, 11:39 PM
And it would intice people who are playing as a guest to actually register to get the full effect of storing records and high scores..

Sounds like it would be a GREAT add on.

cyberhypnotic
02-04-2006, 03:52 PM
(Through your FTP) - Go to ibproarcade 2.5.4->admincp folder->arcade.php

Look for:

print_select_row($ibforums->lang['acp_group_guest'], $GROUP['g_id']."_access", array('0' => $ibforums->lang['acp_group_noperm'], '1' => $ibforums->lang['acp_group_viewperm']), $GROUP['arcade_access']);

And replace with:

print_select_row($ibforums->lang['acp_group_guest'], $GROUP['g_id']."_access", array('0' => $ibforums->lang['acp_group_noperm'], '1' => $ibforums->lang['acp_group_viewperm'], '2' => $ibforums->lang['acp_group_playperm']), $GROUP['arcade_access']);


This will allow you to change Guests viewing/playing permissions in the AdminCP->Arcade->Group Permissions list. I've tried this out with a few different games and even though it might look like it submits a score (with a blank user name), when you click on "View High Scores" there is no listing for a guest (or blank) high score.

MrZeropage
02-04-2006, 07:18 PM
Huh, this is a way I did not thought of - but you should check your DB-Table "games_scores" I guess there are alot of "illegal" entries in there from those guests...

Please check and let me know ;)

Madmp3zz
02-05-2006, 01:59 AM
Does that mean that there is a way to allow GUEST to play games, yet not keep scores?

cyberhypnotic
02-05-2006, 05:00 AM
I just showed you how.

Settler
02-05-2006, 11:13 AM
MrZeropage
can you post a way, how we can do it self, that guest can play online games, but the scores do not save's?

thx

Excuse mine english

Madmp3zz
02-05-2006, 01:43 PM
I just showed you how.

Ya but Zero said that would cause bad entries in the "games_scores" database.
Did you check and see if that happens?

cyberhypnotic
02-05-2006, 03:34 PM
Sorry, misunderstood what he was saying exactly. I've checked the database and there are no other entries than what need to be there.

Guests do not add extra, unwanted, illegal, etcx entries into the database.

Madmp3zz
02-05-2006, 04:03 PM
Sorry, misunderstood what he was saying exactly. I've checked the database and there are no other entries than what need to be there.

Guests do not add extra, unwanted, illegal, etcx entries into the database.

GREAT!!!!
I'll give it a go when I figure out whats causing my other issue..

https://vborg.vbsupport.ru/showthread.php?p=890273#post890273

kpr
02-07-2006, 12:32 PM
(Through your FTP) - Go to ibproarcade 2.5.4->admincp folder->arcade.php

Look for:

print_select_row($ibforums->lang['acp_group_guest'], $GROUP['g_id']."_access", array('0' => $ibforums->lang['acp_group_noperm'], '1' => $ibforums->lang['acp_group_viewperm']), $GROUP['arcade_access']);

And replace with:

print_select_row($ibforums->lang['acp_group_guest'], $GROUP['g_id']."_access", array('0' => $ibforums->lang['acp_group_noperm'], '1' => $ibforums->lang['acp_group_viewperm'], '2' => $ibforums->lang['acp_group_playperm']), $GROUP['arcade_access']);


This will allow you to change Guests viewing/playing permissions in the AdminCP->Arcade->Group Permissions list. I've tried this out with a few different games and even though it might look like it submits a score (with a blank user name), when you click on "View High Scores" there is no listing for a guest (or blank) high score.
That works absolutely brilliant thanks.

Kev

snoopgst
02-09-2006, 08:04 PM
so is this safe to use? It wont mess up the db with weird entries?

cyberhypnotic
02-09-2006, 08:27 PM
Like I stated, it didn't do anything to my database. It didn't enter any odd tables or any other tables at all.

Besides, read the post right before yours. Seems someone thinks it works just fine also.

snoopgst
02-15-2006, 03:11 PM
The edit only works with the ibproarcade skin. with the v3arcade skin it still says "login to play", only the Newest games and Most Played Games work (the two blocks on the sides).

snoopgst
02-26-2006, 07:29 PM
I found a few bugs with this after having it on my site.

1. It a guest beats the high score the person with the highest score will still receive a Private Message. The PM will say "Invalid Private Message specified. If you followed a valid link, please notify the administrator" after you click on it or sometimes it will show but it will not say who the highscore winner is.

2. If the scores get into your Highscore-Champions it will show up as a blanck with a trophy.