Notifications
Clear all

wpForo 1.x.x [Closed] Widget User Profile & Notifications

10 Posts
3 Users
3 Likes
176 Views
LKHLC
Posts: 5
Topic starter
(@lkhlc)
Active Member
Joined: 2 months ago

Logged in works fine.. not logged in the links to sign up and login are corrupted

http://wp-login/ and http://wp-signup/ are both being added to the domain name url

kills access to either location.. I'm going to remove the offending garbage with jQuery

but its still there and hopefully will be fixed

9 Replies
dimalifragis
Posts: 1450
(@dimalifragis)
Noble Member
Joined: 2 years ago

@lkhlc Please post your URL so we can check.

1 Reply
LKHLC
(@lkhlc)
Joined: 2 months ago

Active Member
Posts: 5

@dimalifragis wish I could.. can't.. its locked down i can do this.. this is how it no longer is offending

jQuery(document).ready(function(){
jQuery('a[href^="https://"]').each(function(){
var oldUrl =jQuery(this).attr("href");
var newUrl = oldUrl.replace("http://wp-signup/", "wp-signup.php");
jQuery(this).attr("href", newUrl);
});
jQuery('a[href^="https://"]').each(function(){
var oldUrl =jQuery(this).attr("href"); // Get current url
var newUrl = oldUrl.replace("http://wp-login/", "wp-login.php"); // Create new url
jQuery(this).attr("href", newUrl); // Set herf value
});
});


The attached image is a screen shot of the widget used in a footer not logged in
the hover link below shows the error. the domain name has been removed,

Thank you for responding.

dimalifragis
Posts: 1450
(@dimalifragis)
Noble Member
Joined: 2 years ago

What you say is very confusing. Remove WHAT with code? Why?

Sorry but i don't understand.

LKHLC
Posts: 5
Topic starter
(@lkhlc)
Active Member
Joined: 2 months ago

the js is pretty straight forward!!!   and not the problem.. the problem is the widget is adding corrupted text to the urls it seeks to create links to.... instead of being wp-login.php it is http://wp-login/ totally wrong.. fixed in js but would be nice if the plugin didn't do this . how many people never check logged out?

1 Reply
dimalifragis
(@dimalifragis)
Joined: 2 years ago

Noble Member
Posts: 1450

@lkhlc Still i don't understand. Nothing like that is needed and if you are talking for wpForo widgets, they do NOT suffer from anything like that.

LKHLC
Posts: 5
Topic starter
(@lkhlc)
Active Member
Joined: 2 months ago

Where does this get generated? this has the error in it

<code>

<script type='text/javascript' id='wpforo-frontend-js-js-extra'>
/* <![CDATA[ */
var wpforo = {"ajax_url":"http =domainname etc

"notice":{"login_or_register":"Please <a href=\"https:\/\/domainname.com\/http:\/\/wp-login\/\">Login<\/a> or <a href=\"https:\/\/domainname.com\/http:\/\/wp-signup\/\">Register<\/a>","timeouts":{"neutral":0,"error":8000,"success":4000}}};

</code>

why would this be here?

https://domainname.com/http://wp-login/

not a working url and its coming from WPFORO

Page 1 / 2
Share: