AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] users are not able to edit their profile

8 Posts
2 Users
0 Reactions
4,926 Views
Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@emanuelusa)
Active Member
Joined: 9 years ago
[#4714]

Hi there, once a person creates a profile on our site, and then comes back later to edit their profile via the front end they are taken to this url and a get a error message. url of   http://volitudesports.com/wp-admin/profile.php  error message of:  Sorry, you are not allowed to access this page. 

I dont think that this is the correct URL for editing their profile. but I have left all of the default settings in place for wpForo. If it helps any we also are using your add-ons on of Private Messages and Embeds.

Thank you

Robert

 


7 Replies
Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@emanuelusa)
Active Member
Joined: 9 years ago

i am having the same problem as this person was having, is the fix really to add the lines of codes that are mentioned in the thread??? seems like something you should fix sooner rather than later

 

2017 07 13 12 46 41

Robert
Posts: 10753
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

Put this code in current active WordPress theme functions.php file:

function wpforo_custom_profile_url( $url, $userid, $scheme ) {
    if(!is_admin()){
        global $wpforo;
        return $wpforo->member->get_profile_url($userid);
    }
    else{
        return $url;
    }
}
add_filter( 'edit_profile_url', 'wpforo_custom_profile_url', 10, 3 );

Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@emanuelusa)
Active Member
Joined: 9 years ago

Hi there, I add the code and got an error message, unable to parse error on line 3


Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@emanuelusa)
Active Member
Joined: 9 years ago

Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /home/volitud8/public_html/wp-content/themes/dt-the7/functions.php on line 3


Page 1 / 2
Share: