Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    The %USERNAME% placeholder won’t work unless you’ve specifically defined it somewhere.

    You’d probably need to use some code to grab the username directly from the BuddyPress user object.

    Thread Starter nateonawalk

    (@natesirrah)

    Thanks for the reply caimin_nwl,

    Has there been an example of this kind of hook before? I’m happy to write it, just looking for a starting point (not reinventing the wheel and all that jazz). I have no idea what I’d search.

    Thanks again for any help!

    Thread Starter nateonawalk

    (@natesirrah)

    Ok, so I found a previous response… it replaced the link dynamically using:

    <?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>

    Now the issue is that nothing it changing when I apply this change (or any other change) — and when I attempt to edit the .php file through the CMS it tells me:

    login-with-ajax/widget/default/widget_in.php (inactive)

    Do you have any idea why this would be listed as an “inactive” file? Thank you!

    //Admin URL
    					if ( $lwa_data['profile_link'] == '1' ) {
    						if( function_exists('bp_loggedin_user_link') ){
    							?>
    							<a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>"><?php esc_html_e('Profile','login-with-ajax') ?></a><br/>
    							<?php
    						}else{
    							?>
    							<a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>"><?php esc_html_e('Profile','login-with-ajax') ?></a><br/>
    							<?php
    						}
    					}
    caimin_nwl

    (@caimin_nwl)

    When you say CMS do you mean WordPress admin? Are you overriding the template somewhere?

    Thread Starter nateonawalk

    (@natesirrah)

    Hi caimin_nwl,

    Yes, through the WordPress admin. As it stated in the other thread, I went:

    WordPress Admin -> Plugins -> Login with Ajax (edit) -> Plugin Files (login-with-ajax/widget/default/widget_in.php) -> edited the PHP from here. I believe this edits the file directly instead of overriding the template.

    Thank you!

    Thread Starter nateonawalk

    (@natesirrah)

    Hi there…

    Just wanted to follow-up and see if anyone can help me out here!

    Thank you!

    caimin_nwl

    (@caimin_nwl)

    Sorry for the delay. Are you using a multsite install of WordPress or the single site version?

    Which version of Login With Ajax are you using?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    That issue is likely a generic one related to WP and your server permissions, not our plugin. I’m not very experienced using the editor.

    I’d suggest editing it directly via FTP.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change Profile Link to Forum Profile’ is closed to new replies.