Forum Replies Created
-
Author
-
ThrewTheNevRParticipant
I’m trying to add a few different icons like
<i class=”fa fa-user-circle” aria-hidden=”true”></i>
right in the widget title but wordpress sanitization conflicts with the code.ThrewTheNevRParticipantI need a code to show portfolio categories
May 25, 2017 at 13:20 in reply to: Menue icons does not show up when using custom menue in widget settings #162665ThrewTheNevRParticipantThank you.
May 22, 2017 at 07:14 in reply to: Menue icons does not show up when using custom menue in widget settings #162235ThrewTheNevRParticipantThis reply has been set as private.May 21, 2017 at 23:17 in reply to: Menue icons does not show up when using custom menue in widget settings #162190ThrewTheNevRParticipantCan u send me a screenshot of the error.is need to make sure my hosting provider did not iP ban you.
May 21, 2017 at 23:15 in reply to: Menue icons does not show up when using custom menue in widget settings #162189ThrewTheNevRParticipantThis reply has been set as private.May 21, 2017 at 23:14 in reply to: Menue icons does not show up when using custom menue in widget settings #162188ThrewTheNevRParticipanthttps://christians1network.com/
Try login at home page
ThrewTheNevRParticipantAnd on this pic you can see the icons not showing.but on the top header menu it does.
ThrewTheNevRParticipantFirst I created a menu and added the icons.
Then on the widget section I added a custom menue and added the menu that was created.
May 18, 2017 at 16:15 in reply to: Menue icons does not show up when using custom menue in widget settings #161918ThrewTheNevRParticipantCan you please try again?
I had to disable my security plugin.
Should work now.May 18, 2017 at 05:11 in reply to: Menue icons does not show up when using custom menue in widget settings #161860ThrewTheNevRParticipantThis reply has been set as private.ThrewTheNevRParticipantAh almost forgot to mention I didn’t install any icon fonts
Kleo had them pre installedThrewTheNevRParticipantI was thinking I could find some sort of code to integrate fontello and fontawesome and add the code to the sidebar.php.
Not sure why they don’t show up on the sidebars because they work in the header menu.
ThrewTheNevRParticipantLooks like it’s in themes/kleo/assets
That code above I took off of Google. I’m trying to figure out why the icons don’t show up on the main sidebar.cause everything looks to be in order.
ThrewTheNevRParticipantI tried to add this code to the sidebar.php file hoping icons would show up on the main sidebar.
COPY CODE<?php wp_register_style('fontawesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css', array(), false, 'all'); wp_enqueue_style( 'fontawesome'); ?>
That didn’t work.
Idk if I should try another alternative maybe manually adding icons codes.May 16, 2017 at 02:04 in reply to: Menue icons does not show up when using custom menue in widget settings #161565ThrewTheNevRParticipantThis reply has been set as private.April 26, 2017 at 03:19 in reply to: Show registered user email address on email confirmation page #159605ThrewTheNevRParticipantMk so I figured it out,
The code isCOPY CODEThanks for registering,<b><?php echo $_POST["signup_username"]; ?></b> You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to <b><?php echo $_POST ["signup_email"] ;?><b>
The reason it didn’t work before was I had the arrays wrong. I used print_r to double check and now have it working.
With that being said I have taken out my function that automatically logs in new registered users and also took out my $get current_user code.
Everything is working as it should.
Only if I double checked 2 weeks ago would of saved me a headach.but I’m still new and learning php and with so much documentation things easily over looked.Type guys.
April 22, 2017 at 20:12 in reply to: Show registered user email address on email confirmation page #159329ThrewTheNevRParticipantI’m actually thinking would it be easier if I just added a redirect in wp-login.php if users log in they are redirected to the activity page?
Because if I do that wouldnt it eliminate all the issues I had. Other than the postdata issue on the email confirmation page but In that case it would redirect to Homepage or default registration page and I wouldn’t mind that.
April 22, 2017 at 15:27 in reply to: Show registered user email address on email confirmation page #159318ThrewTheNevRParticipantI appreciate the reply but that didn’t work for me,
I found a way though but it broke a few things.I added this to KleoChild function.php
// auto log in a user who has just signed up
function wp_auto_login_new_user( $user_id ) {
wp_set_current_user( $user_id );
wp_set_auth_cookie( $user_id, false, is_ssl() );
}
add_action( ‘user_register’, ‘wp_auto_login_new_user’ );And In kleo/buddypress/member inside register.php
I added this right under
((((<?php if ( bp_registration_needs_activation() ) : ?>)))) located on line 307 for me.I replaced the code originally under that line there with<?php
$current_user = wp_get_current_user();/**
* @example Safe usage: $current_user = wp_get_current_user();
* if ( !($current_user instanceof WP_User) )
* return;
*/
echo “<p> Thanks for registering, <b>$current_user->user_login. </b></p>” ;
echo “<p> You have successfully created your account! <br />To begin using this site you will need to activate your
account via the email we have just sent to <b>$current_user->user_email . </b></p>” ;
?>Now with that being added I got my page to look exactly how I wanted it to. But the problem now is since I have custom redirects set to https://mywebsite/activity from the Kleo theme options “login popup and home page redirect “,check email page if it is refreshed a postdata popup error shows up and if u click continue it will redirect to the activity page without activating the account first from the email that was sent.
I added this to the register.php
//If there’s something in the POST, move it to the session and then redirect right back to where we are
if ($_POST) {
$_SESSION[‘POST’]=$_POST;
redirect($_SERVER[“REQUEST_URI”]);
}//If there’s something in the SESSION POST, move it back to the POST and clear the SESSION POST
if ($_SESSION[‘POST’]) {
$_POST=$_SESSION[‘POST’];
unset($_SESSION[‘POST’]);
}But that didn’t work. If user registers on homepage then Redirects to >please check email for activation page if that page is refreshed the postdata pop up shows still. How can I have this page stay the same if a user refresh this page before activating their account?
The other issue is now if a user activates threw the email the page that says activation has been completed please log in using the credentials you provided no longer shows up. They are just taken strait to the activity page.
I still needed that page to show up yet having them logged in still so I can have the user click on more added code (next button) so they can be redirected to a custom page to upload their avatars before being redirected to the activity page.So in a nutshell,
How do I keep the check email for activation page redirect to that same page if the Page is refreshed while registered user is still logged in. Just for that page.instead of redirecting to activity page before activation?And how do I get the activation has been completed page to show up again? Since it just redirects to activity page.
April 15, 2017 at 18:15 in reply to: Show registered user email address on email confirmation page #158598ThrewTheNevRParticipantJust a quick update.
I’ve been searching nonstop threw documentation/Codex and I came up with this code,COPY CODEglobal $wpdb; /* lets retrieve the email of users who signed up $wpdb */ function get_user_by( ‘email’,‘null’ ) $user_email = $wpdb->wpjm_signups (‘user_email’); if ($signups) { echo "sent to " . $user_email ; } else { echo "email not listed."; } //Creating a shortcode to display signup email add_shortcode( 'user_email');
I placed it in my themes functions.php file but had to delete it due to the 500 error.
Am I on the right track?
ThrewTheNevRParticipantMk I found a way, for anyone who is wondering.
public_html/wp-content/themes/kleo/buddypress/members you will see activate.php, open it in coden editor and past below code at the bottom before the <!– #buddypress –>
<meta http-equiv=”refresh” content=”3;url=https://yoursite.com/url to page u want/” />
<!– #buddypress –>
ThrewTheNevRParticipantThank you, it also worked when pasted in the page using text and not visual.
ThrewTheNevRParticipantYup your right about the username, Turns out that was it. i did not have to create a new admin account tho. just needed to click profile from WP dashboard and edit nickname.
Your the best.
ThrewTheNevRParticipantI’ll give it a try. I’ll be doing a full complete troubleshoot tonight to see if i can pinpoint the issue.
If i can’t figure it out I’ll create a new request here with very detailed info
On the steps i have taken. Other important information will be posted as well to make your guys job 100% easier.Ty for the reply back. 🙂
ThrewTheNevRParticipantIf your going to install the demo can you do the home register demo i love that one. 🙂
-
AuthorPosts