Login Widget

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Login Widget

Re: Login Widget

by axew3 » Thu Mar 31, 2016 12:27 pm

so, the forum is magic!

Re: Login Widget

by Synisto » Tue Mar 29, 2016 7:58 pm

By copy+pasting the text above it worked! :) :D

phpBB functions.php 3.1.8 as need to be

by axew3 » Tue Mar 29, 2016 2:22 pm

This is how the function redirect inside phpBB/includes/functions.php need to look like to correct do external (and secure) redirect:
(external mean a redirect outside the phpBB folder)

Code: Select all

....
function redirect($url, $return = false, $disable_cd_check = false)
{
	global $db, $cache, $config, $user, $phpbb_root_path, $phpbb_filesystem, $phpbb_path_helper, $phpEx, $phpbb_dispatcher;

 $w3ck = preg_replace('/^[^\.]*\.([^\.]*)\.(.*)$/', '\1.\2',$url);
 
 $w3 = request_var('REMOTE_ADDR','0');
 
if(stristr($w3ck, $w3)){
$disable_cd_check = true;
}

	$failover_flag = false;
.......

Re: Login Widget

by axew3 » Tue Mar 29, 2016 2:07 pm

Think you have wrong edit the file: look the next post
or you are talking about this:
https://www.axew3.com/w3/forums/viewtopic.php?f=2&t=44

Re: Login Widget

by Synisto » Tue Mar 29, 2016 11:43 am

When I add that code I get the following after logging in:
Parse error: syntax error, unexpected '$w3ck' (T_VARIABLE) in /public/sites/www.ngaming.nl/phpbb3/includes/functions.php on line 2292

Re: Login Widget

by axew3 » Tue Mar 29, 2016 9:32 am

p.s look that you can use also auto login register if social plugins that allow this feature are installed.
And, you can also use the META widget login/auto/etc for users in WP. Users can be added/register etc on both systems.

Top