• Resolved akyboy

    (@akyboy)


    Hi guys,

    Im trying to put custom link on user profile page

    This code works only for some users

    <a href="https://clantools.us/servers/na/players?id=<?php echo str_replace('http://worldoftanks.com/community/accounts/','',get_usermeta($post->post_author,'user_url')); ?>" target="_blank" title="<?php printf( esc_attr__("%s's ClanTools Profile", 'bbpress'), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'ClanTools Profile', 'bbpress' ); ?></a>

    I have checked several other users, and they have Website in their fields but all i got is link to

    https://clantools.us/servers/na/players?id=

    with no user ID on the end.

    This code works fine with my profile for example

    http://www.cannedbandits.org/forums/users/wg_prosolo/

    but it doesn’t work for this one:

    http://www.cannedbandits.org/forums/users/wg_wontendwell/

    Can you help me please

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘str _replace’ is closed to new replies.