The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Share:
Notifications
Clear all

[Solved] Login popup

12 Posts
2 Users
1 Reactions
7,621 Views
Posts: 104
Topic starter
(@orakel)
Estimable Member
Joined: 4 years ago

I am not sure, but i believe i read about a login popup in all the settings.

Is there one for registered Users (without registration option)

 

Orakel

11 Replies
Asti
Posts: 7617
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

We don't follow you well.

Could you please explain in other words using some screenshots?  

Posts: 104
Topic starter
(@orakel)
Estimable Member
Joined: 4 years ago

In the comment section from disgucz you have a login link next the where you can type in text.

it would be nice if you get a little popup to login with your existing account.

(its hard to make screenshots now, i am at work)

Posts: 104
Topic starter
(@orakel)
Estimable Member
Joined: 4 years ago

I found now a very beautiful login popup plugin

 

Above the comment-textbox is the username and a link for logout/login.

instead the standard link/text i like to put in a shortcode for the login-popup.

Can you help me in any way?

 

Orakel

Posts: 104
Topic starter
(@orakel)
Estimable Member
Joined: 4 years ago

Edit:

Instead of the login/logout linktext above the comment-block, i need to insert
<a class="xoo-el-login-tgr">Login</a>

Orakel

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

@orakel,

Here is an example of the SW Ajax Login Popup plugin. You'll need to change the red marked vale and use the plugin-specific class.

add_filter("wpdiscuz_user_info_and_logout_link", function ($logout_text){
return str_replace("| <a href=", "| <a class='swal-menu-item sw-open-login' href=", $logout_text);
});

Put the code in the WordPress active theme functions.php file (more information how to add insert custom code):

Posts: 104
Topic starter
(@orakel)
Estimable Member
Joined: 4 years ago

Hello dear Asti

I found a nice plugin (i can show a picture at one site and configure what i like)

I will just use it in WPdiscuz as fast login for existing users.

It would be enough, if i can change the login-link with my small code above (this opens the popup)

I built in the popup in a testwidget (sidebar at top) if you like to see it.

blueaustria.at

 

Thanks for all your help!

 

Orakel

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

@orakel,

try this code, it should work fine:

add_filter("wpdiscuz_user_info_and_logout_link", function ($logout_text){
return str_replace("| <a href=", "| <a class='xoo-el-login-tgr' href=", $logout_text);
});

 

Posts: 104
Topic starter
(@orakel)
Estimable Member
Joined: 4 years ago

Hello =)

I am now at home and tried it, i still jump to the normal login page

 

Orakel

Page 1 / 2
Share: