pbpBB2 and osC shared account creation
#81
Posted 21 January 2007 - 05:37 PM
I will be adding some links on the oscommerce header to take the user back to phpbb2 side
do I need to make sure they go through "trans_phpbb" or can I just create direct links ?
#82
Posted 21 January 2007 - 10:39 PM
anderskiel, on Jan 19 2007, 03:40 AM, said:
AlexStudio you seem to be quite familiar with this code by now. I seem to be getting an awful lot of spam-users in the forum. Some register to promote websites others just seem to be pointless bot-registrations. Due to the redirecting for registration i have a feeling that these bots simply search for the
www.yoursite.com/phpbb2/profile.php?mode=register&agreed=true
page. Currently registrations go via the "agree to terms page" to the osc registration page. Then via an ekstra link to phpbb2 registration.
What i'm thinking is... If we change the name of the phpbb2 registration page we might be able to keep the bots trom registration. My problem is that I can't find the place to change that url. Any advise?
Anders
Find in phpbb2/includes/usercp_registere.php line 37-41:
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
exit;
}
Add after://// BOF osCommerce phpBB2 Integration v1.0
include($phpbb_root_path . 'includes/trans_osc.php');
if ($mode == 'register' && (isset($HTTP_GET_VARS['agreed']) || isset($HTTP_POST_VARS['agreed']))) {
die("Hacking attempt");
exit;
}
//// EOF osCommerce phpBB2 Integration v1.0
This will kill all direct accesses to this file.
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#83
Posted 21 January 2007 - 10:48 PM
rossoe, on Jan 19 2007, 04:25 AM, said:
I just changed -
'S_LOGIN_ACTION' => append_sid(HTTPS_SERVER . DIR_WS_HTTP_CATALOG . 'login.php?action=process&redirect=portal.php'),
in "page_header" which solved the login from the box on portal front page.
My last problem is any attempt to logoff still takes me back to index.php
I can't understand why if I'm setting as you told me to - how can it still goto index.php after logging out ??
However, there is an 'ugly' workaround by adding a line in index.php to redirectly users to portal.php, no matter where they came from. Just that the session in store will not be cleanned up and users are still logged in with the store.
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#84
Posted 21 January 2007 - 10:51 PM
rossoe, on Jan 22 2007, 01:37 AM, said:
I will be adding some links on the oscommerce header to take the user back to phpbb2 side
do I need to make sure they go through "trans_phpbb" or can I just create direct links ?
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#85
Posted 21 January 2007 - 10:59 PM
The logoff is just the same as normal phpbb2 - it's in the header which I keep the same. so it's odd that's it's not working as desired when I make the adjustment to login.php
header('Location: ' .HTTPS_SERVER . DIR_WS_HTTP_CATALOG . 'logoff.php?redirect=portal.php&osCsid=' . $osCsid);
Any joy with the amendments to allow admin to delete users ? - as I imagine I'm going to get a few spam one's I'll need to kill.
#86
Posted 23 January 2007 - 11:14 AM
Changes in v1.2:
- Added to kill hacking attempts which called up register page directly by spam bots.
- Added to delete phpBB2 user records when deleting customers in osCom admin.
- Commented out deleting user in phpBB admin page. Now can only delete customer and user account at the same time in osCom admin page.
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#87
Posted 23 January 2007 - 11:22 AM
AlexStudio, on Jan 23 2007, 11:14 AM, said:
Changes in v1.2:
- Added to kill hacking attempts which called up register page directly by spam bots.
- Added to delete phpBB2 user records when deleting customers in osCom admin.
- Commented out deleting user in phpBB admin page. Now can only delete customer and user account at the same time in osCom admin page.
#88
Posted 23 January 2007 - 11:32 AM
rossoe, on Jan 23 2007, 07:22 PM, said:
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#89
Posted 23 January 2007 - 12:08 PM
rossoe, on Jan 22 2007, 06:59 AM, said:
} else $forward_page = 'index.php';Change it to:
} else $forward_page = 'portal.php';Hope this works for you.
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#90
Posted 23 January 2007 - 12:22 PM
check it out - http://www.quantumproduct.co.uk
without your help it would not have been possible for me to get this working so ta
Edited by rossoe, 23 January 2007 - 12:22 PM.
#91
Posted 23 January 2007 - 10:29 PM
when I update to v1.2
the Replace phpbb2/common.php causes a "hacking attempt" error when I try and login
obviously this is because it's trying to goto portal instead of index.
Is it worth me just sticking with v1.0 ?
I don't want it to be insecure though !
#92
Posted 23 January 2007 - 11:01 PM
rossoe, on Jan 24 2007, 06:29 AM, said:
when I update to v1.2
the Replace phpbb2/common.php causes a "hacking attempt" error when I try and login
obviously this is because it's trying to goto portal instead of index.
Is it worth me just sticking with v1.0 ?
I don't want it to be insecure though !
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#93
Posted 24 January 2007 - 10:21 AM
oh by the way the change to trans_phpbb.php has totally sorted the logout
AlexStudio, on Jan 23 2007, 11:01 PM, said:
#94
Posted 24 January 2007 - 04:45 PM
AlexStudio, on Jan 21 2007, 11:39 PM, said:
Find in phpbb2/includes/usercp_registere.php line 37-41:
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
exit;
}
Add after://// BOF osCommerce phpBB2 Integration v1.0
include($phpbb_root_path . 'includes/trans_osc.php');
if ($mode == 'register' && (isset($HTTP_GET_VARS['agreed']) || isset($HTTP_POST_VARS['agreed']))) {
die("Hacking attempt");
exit;
}
//// EOF osCommerce phpBB2 Integration v1.0
This will kill all direct accesses to this file.I tried adding the above code, but it gives me "hacking attempt" when using the link from my osC registration page. I had a look at the 1.2 update and found the trans_osc.php file. Edited to my website and uploaded that. How ever i still get killed when following the link in osC registration page. Am I missing something?
Anders
#95
Posted 24 January 2007 - 09:35 PM
anderskiel, on Jan 25 2007, 12:45 AM, said:
Anders
If the link in registration agreement page leads you to profile.php, you missed some file in phpbb2 modification, probably phpbb2/templates/subSilver/agreement.tpl
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#96
Posted 24 January 2007 - 09:44 PM
anderskiel, on Jan 25 2007, 12:45 AM, said:
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#97
Posted 24 January 2007 - 10:54 PM
AlexStudio, on Jan 24 2007, 10:35 PM, said:
Ok I see, I was trying to keep a link from the osC registration form open to those who only want to use the forum not the shop. But i guess that wouldnt work without leaving the /phpBB2/mode=register&agreed=true - link in the form. Or is there anyway of killing all direct entries to the phpBB registration, except those coming from the link in osC registration page?
Thanks
Anders
#98
Posted 24 January 2007 - 11:04 PM
anderskiel, on Jan 25 2007, 06:54 AM, said:
Thanks
Anders
You will also need to modify your phpbb2/profile.php to handle the new parameters.
Yes, I'm willing to help, but please ask in the right place. Think twice before trying to PM me, it might be ignored.
#99
Posted 26 January 2007 - 10:10 PM
AlexStudio, on Jan 25 2007, 12:04 AM, said:
You will also need to modify your phpbb2/profile.php to handle the new parameters.
Not sure exactly what you mean - but i think i have fixed it by adding
if ($_SERVER['HTTP_REFERER'] != "http://www.yourdomaine.com/catalog/create_account.php")
{
die("Hacking attempt");
exit;
}
to the beginning of includes/usercp_register.php
Now i just have to see if the spammers will get around that
Anders
#100
Posted 26 January 2007 - 10:28 PM
However moving it down to just below:
$template->set_filenames(array( 'body' => 'profile_add_body.tpl') );
that should work
Anders









