62.6 F
Los Angeles
Friday, February 3, 2023

Apple March 8, 2022 Event

Apple announced several products during their March 8, 2022, event. Studio Display Mac Studio iPad air iPhone SE iPhone 13 and 13 Pro color addition Some of the products will...

Eastman files motion for exculpatory information and continuance

In response to the January 6 Select Committee Brief to Eastman Privilege Assertions, Eastman has filed a new motion with the court. A request for the court to require...

February 2022 Employment Report

U.S. Bureau of Labor Statistics reported today that total nonfarm payroll employment rose by 678,000. The unemployment rate edged down to 3.8 percent The employment number exceeded forecasts The...

Duplicate Comments Now Fixed

Thanks to the developer of the XenScripts WP to XP bridge, the comments are now working properly. Comments created in WP were being duplicated, therefore, the comment form was removed. This is now solved and so the comment form is now available. You will still need to login to comment but at least it isn’t necessary to go to the forums.

I also needed to re-write one of the functions in the bridge [xf_replacement_user_functions.php] so that the redirect protocol was proper as well as work properly for a multi-site configuration. Notice the $login is relative.

function xf_login_redirect($url)
global $XF;
$login = '/community/login';
$protocol = 'http://';
if(strpos($login, '?') === false)
return $login . '?redirect=' . $protocol . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
return $login . '&redirect=' . $protocol . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
return $login;

The logout link was also fixed to a relative path:

function xf_logout_redirect($url)
global $XF;
$logout = '/community/logout';
return $logout;

Next, some CSS was added to the child themes so that the comment form fit properly underneath each article.

#respond {
background: none repeat scroll 0 0 #DDDDDD;
border: 1px solid #D3D3D3;
border-radius: 3px 3px 3px 3px;
margin: 0 40px 0 auto;
width: 89%;

Hopefully these changes make commenting on posts easier.

Next – I need to figure out how to change the line – “You must be logged in to post a comment.” It should be clear that it is possible to Sign Up through that link, including using a Facebook ID.

Related Stories

Exit mobile version