Forum Replies Created
-
Author
-
TheDream18
ParticipantHere is the code i current use (marked red in screenshot of last respond)
COPY CODEif ( bp_is_active( 'logout' ) ) { $profile_menu1['logout'] = '<li> <a href=" ' . wp_logout_url( get_bloginfo( 'url' ) ).' "> '. __( "Logout", "buddypress" ) .' </a> </li>'; }What is problem, when user logout they used can’t success logout
1) sometime lucky success logout 100%
2) sometime success logout by fake, when user try to logout got error message: “you seem already logged in, please refsh the page” for multiple and many way to refesh user still same situationNOTE: When i hover on logout, right conner of screenshot i found. example i logout when i’m openning page: page1
domain.com/page1/?_bl_wpnonce=432ea194cf&redirect_to=https://domain.com:443/page1SO in case i’m standing on search page: blabla….so so long slug
my logout slug will supper long like bellow, what a crazy, can be issue with security due to call action for too too long slug.
domain.com/blabla….so so long slug/?_bl_wpnonce=432ea194cf&redirect_to=https://domain.com:443/blabla….so so long slugFinaly
what is correct code for me for simple logout without appear /page1 (in example)
===>redirect_to=https://domain.com:443/…….behide nothing hereAnd i wonder where is :443 come from?
May 9, 2018 at 18:22 in reply to: Color of current opening URL in $profile-menu of logged in user #197249TheDream18
ParticipantHow about question 3, please.
Question 4.
Here is part of code i added to to $profile-menuCOPY CODE<!--MY CODE --> if ( bp_is_active( 'logout' ) ) { $profile_menu1['logout'] = '<li> <a href=" ' . wp_logout_url('/url-page-to-be-redirected') . '/">' . __( "Logout", "buddypress" ) . '</a></li>'; } <!-- END MY CODE --> $profile_menu1 = apply_filters( 'header_profile_dropdown', $profile_menu1 );?>TheDream18
ParticipantHi. This is complete 100% new website (cleared database and rebuild) that i just build for you.
This is sweettheme, which is said your theme issue with htaccess code. another theme is fine. recheck atatchment again please. There is screenshot with code in .htaccess. This security code caughted issue, which i show u and ask you fix, because defaul wp theme work fine, no issue.
I tried to security header, by adding bellow code to â.htaccessâ
COPY CODEHeader set Content-Security-Policy âscript-src âunsafe-inlineâ âI also tried with
script-src ânoneâ
script-src âselfâ
TheDream18
ParticipantIt don’t appear. Seem you are saying about #nav buddypress.
No, i’m saying about theme/…general-header.php, where is $profile-menu (dropdown menu in header) –> There is only have
+ Activity
+ Friends request
+ Message
+ Friends
+ Setting (—> i added success)
+ Media (–> similar this is what i try to add, but no work. something wrong)Dont have rtmedia permarlink there. I added to general-header.php extra code for $profile-menu, but no work, what is wrong? I already make similar to add /setting permalink, which is worked. Only rtmedia don’t work here
COPY CODEif ( bp_is_active( 'media' ) ) { $profile_menu['media'] = '<li><a href="' . bp_loggedin_user_domain() . 'media/">' . __( "Pictrure", "buddypress" ) . '</a></li>'; }TheDream18
ParticipantBy defaul header menu haven’t “media”, i would like to add it to header menu
COPY CODEif ( bp_is_active( 'media' ) ) { $profile_menu['media'] = '<li><a href="' . bp_loggedin_user_domain() . 'media/">' . __( "Pictrure", "buddypress" ) . '</a></li>'; }No work. What should i do to correct it?
TheDream18
ParticipantThe same with rtmedia URl, also no work, please help
COPY CODEif ( bp_is_active( 'media' ) ) { $profile_menu['media'] = '<li><a href="' . bp_loggedin_user_domain() . 'media/">' . __( "Pics", "buddypress" ) . '</a></li>'; }TheDream18
ParticipantHi, i changed code to:
COPY CODEif ( bp_is_active( 'logout' ) ) { $profile_menu['logout'] = '<li> <a href="' . wp_logout_url('/url-page-to-be-redirected' ) . __( "LogOut", "buddypress" ) . '</a> </li>'; }But no work, can u help me correct it?
when i click to logout, it went to error 404 with URL: domain.com/LogOut/a/li/ul/div/liliahref= -
AuthorPosts