| :: |
| Author |
Message |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 7:30 am Post subject: Can not log in using PC at work |
|
|
Hi
I've found that I can not log in at all using the computer at work while I can login fine using my computer at home. Network at work is using a proxy.
Please advise what can I do.
Thanks |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 9:21 am Post subject: Re: Can not log in using PC at work |
|
|
I am talking about my own forum not the current one here. The network at my work is using a proxy, does there is any thing that could be done in my machine at work or at the forum files settings or edit any files to enable or disable any thing to let it work.
Thanks |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Tue Apr 22, 2008 11:30 am Post subject: Re: Can not log in using PC at work |
|
|
Yes, I understood that, if it's phpBB2 (as the forum where you posted is suggesting) it's as a said, you may need cookies with the guest session mod.
If it's with phpBB3 (oh well it's possible isn't it ), then, it could as well be because the ua is filtered by the proxy, or because it is jumping among several ips, depending on your security settings in phpBB3's acp, it could explain as well.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 11:43 am Post subject: Re: Can not log in using PC at work |
|
|
Really ... could it be possible with phpbb 3.0.1?
I can give you my log in details to the acp to do what you may need to let it work and access to ftp as well to try to edit what does it may takes.
So please let's try to let it work because I need it very very much.
Thanks |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 1:05 pm Post subject: Re: Can not log in using PC at work |
|
|
Ok Buddy I will check this features when I go back home today and will feed you back later on.
Thanks |
|
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 5:17 pm Post subject: Re: Can not log in using PC at work |
|
|
Do you mean:
- Session IP validation: Set to non
- Validate browser: set to no
Do you mean this settings? or you was talking about something else?
Thanks and best regards  |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Tue Apr 22, 2008 10:03 pm Post subject: Re: Can not log in using PC at work |
|
|
That's less safe, but yes, it should circunmvent the proxy issue.
You could try to only bypass these for a given account, the one requiring the trick, could lower the risk.
To do this you could add :
| Code: | if ($user->data['user_id'] == 2) {
$config['ip_check'] = 0;
$config['browser_check'] = 0;
} |
after :
| Code: | | $config = $cache->obtain_config(); |
in common.php, and keep them on in acp.
Just replace the 2 with the id of the account that need the trick, should work. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 10:08 pm Post subject: Re: Can not log in using PC at work |
|
|
Thanks for your reply mate. Please just to make sure that I've understand and got you right, you mean to enable the options I've disabled above in the acp, and to just do this edit in the file common.php?
Also another thing, suppose that there is more then one user complaning this issue, shall I separate the user id with a comma (,) or ( ?
Please advise.
Thanks and best regards. |
|
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Tue Apr 22, 2008 10:21 pm Post subject: Re: Can not log in using PC at work |
|
|
Do you mean the file | Code: | | /public_html/forum/common.php | ?
I can not find any thing from the code you told me about above.
I am using 3.0.1
I've forgot to tell you that I've integrated drupal with phpbb3 and nothing wrong at home regarding log-in but it is just at work. |
|
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Wed Apr 23, 2008 11:40 pm Post subject: Re: Can not log in using PC at work |
|
|
So the code will be like this | Code: | // Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
if ($user->data['user_id'] == 2) {
$config['ip_check'] = 0;
$config['browser_check'] = 0;
} |
|
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
MGadAllah PR0

Joined: 26 Mar 2008 Posts: 53
|
Posted: Thu Apr 24, 2008 10:31 am Post subject: Re: Can not log in using PC at work |
|
|
If there is any other members have the same problem, shall I separate their IDs with a Comma ( , ) OR ( ; ) ?
Or I should add a new line?
Thanks and much appreciated. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Apr 24, 2008 12:18 pm Post subject: Re: Can not log in using PC at work |
|
|
| Code: | // Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
$special_users = array(2,3,5);
if (in_array($user->data['user_id'], $special_users)) {
$config['ip_check'] = 0;
$config['browser_check'] = 0;
} |
Should then do.
you can add as many id as you want in the $special_users array (coma separated list) :
| Code: | | $special_users = array(2,3,5); |
 |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|