Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • in reply to: Fixed left&right sidebars #196372
     ThrewTheNevR
    Participant
    COPY CODE
    /* The left sidebar*/
    .sidebar-main { 
      position: fixed; /* Fixed Sidebar (stay in place on scroll) */
        z-index: 1; /* Stay on top */
        top: 0; /* Stay at the top */
        left: 0;
    }
    
    /*removes item header from article creation page*/
    .new #buddypress  #item-header {
                display: none;
    }
    
    /*removes item header from group creation page*/
    .group-details #buddypress  #item-header {
                display: none;
    }
    
    .template-page{ 
    padding-left:  30px;
    padding-right: 30px;
    }
    
    /*may not work max width resolution */
    /*run more test*/
    /*.tpl-3lr{
        max-width: 1840px !important;
        padding-left: 0px !important;
    }
    */
    
    .page-id-69069 div#main-container{
        max-width: 1840px !important;
        padding-left: 0px !important;
    }
    
    /*fix width for sidebars on 1840 screen resolutions*/
    .page-id-9481 div#main-container {
        max-width: 1840px !important;
        padding-left: 0px !important;
    }
    
    .bp-messages #buddypress  #item-header {
                display: none;
    }
    
    .notifications #buddypress  #item-header {
                display: none;
    }
    
    /* hides messages tab in profile nav bar no better messages plugin changed original*/
    
    li#bp_better_messages_tab-personal-li {
        display: none !important;
    }
    
    /* hides notifications tab in profile navbar*/
    a#user-notifications  {
    display : none !important;
    }
    
    /*removes post in  box and text on post update box*/
    label[for="whats-new-post-in"]
    {
        display:none;
    }
    
    #whats-new-post-in  { 
    display: none !important;
     }
    
    /*change icon size profile bp navbar*/
    
    .bp-light-icons #buddypress div#item-nav ul li a:before{ 
    fontello;font-size:1.8rem;
    }
    
    /* takes out nav menu under profile cover */
    
    /*
    . #buddypress #item-nav { display: none !important; }
    */
    
    /* adds border around post update box*/
    
    form#whats-new-form {
        border-style: solid;
        border-color: #81d742;   
        border-width: 2px;
        padding: 10px 15px;
        border-radius: 12px;
    }
    
    /* change left sidebar avatar to rounded*/
    /*img {
        border-radius: 50%;
        */
        
    

    Admin: John
    Pass: Xu84wormsx

    in reply to: How do i add font awsome or fontello to widget title? #175604
     ThrewTheNevR
    Participant

    remeber the code `
    div#text-5 h4:before {
    content: “\f2bd”;
    font-family: fontawesome !important;
    padding-right: 10px;
    }`

    i am unable to do this with a new widget using a different icon

    COPY CODE
    div#text-7 h4:before {
        content: "\f2bd";
        font-family: fontawesome !important;
        padding-right: 10px;
    }
    
    

    any ideas?

    in reply to: Fontello icons dont show on left or right sidebars #161755
     ThrewTheNevR
    Participant

    I 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.

     ThrewTheNevR
    Participant

    Mk so I figured it out,
    The code is

    COPY CODE
    Thanks 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.

     ThrewTheNevR
    Participant

    Just a quick update.
    I’ve been searching nonstop threw documentation/Codex and I came up with this code,

    COPY CODE
    global $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?

Viewing 5 posts - 1 through 5 (of 5 total)

Log in with your credentials

Forgot your details?