Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,001 through 11,025 (of 32,511 total)
  • Author
    Search Results
  • #150298

    In reply to: Profile page link hook

    Robkk
    Moderator

    because otherwise you can just make a custom bbpress theme

    Step by step guide to setting up a bbPress forum – part 3

    #150297

    In reply to: Menu link to Profile

    Robin W
    Moderator

    @netweb thanks for posting that, thought there would be but couldn’t find it offhand.


    @mathijs-lemmers
    ok so try

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  sanitize_file_name($current_user->user_login). "";
          
    ?>/edit/">
    
    
    #150287
    Robkk
    Moderator

    yehhhh your theme is acting weird..

    make sure you added it correctly, other than that try this css code

    div.bbp-template-notice.info {
    display: none;
    }
    #150284
    Robkk
    Moderator

    place this inside your child themes functions.php

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
    
        return '';
    
    }
    #150280
    Robkk
    Moderator

    mann your bbpress is acting weird….

    try

    span.bbp-topic-freshness-author img {
    width:20px;
    height:20px;
    }
    #150279
    tonydes
    Participant

    It does show 14. I replaced it, but it didn’t change. Do I need to add any code to the CSS editor?

    #150278
    Robkk
    Moderator

    okay on loop-single-topic.php in your child theme

    look for

    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>

    does it show 14 on your theme??, to remove it replace with this

    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id()) ); ?></span>

    did it work??

    #150276
    Robkk
    Moderator

    when you edited the template , did you just remove the array( 'size' => '14' )

    because when i look at http://revlanka.com/forums/forum/automotive-news/local-news/

    it doesnt even show started by: Admin anymore, just remove the array code and that should remove the avatar and thats it.

    #150274
    tonydes
    Participant

    I just tried out the code as well and it didn’t work.

    #150273
    tonydes
    Participant

    @robkk

    So I did what you said and added the loop-single-topic.php to a folder in my child theme labelled bbpress. I edited out that code, but unfortunately nothing changed!

    #150269

    In reply to: Menu link to Profile

    Stephen Edgar
    Keymaster

    Robin, WordPress includes functions for this:

    e.g. sanitize_file_name($current_user->user_login);

    https://codex.wordpress.org/Function_Reference/sanitize_file_name
    https://codex.wordpress.org/Function_Reference/sanitize_title
    https://codex.wordpress.org/Function_Reference/sanitize_title_with_dashes
    (There are quite a few of them, they are linked in the ‘related’ sections of the above articles)

    #150267
    Robkk
    Moderator

    @tonydes i just forgot about this, do this first

    pay attention to the started by image on the link to your forums in the above post.

    add this for custom css ,

    span.bbp-topic-started-by img {
    width:20px;
    height:20px;
    }

    does that change the size??

    #150265
    Robkk
    Moderator

    first one more question , do you have custom css rules that you added already that include modifying images?

    I don’t have a bbpress custom theme

    okay create a bbpress custom theme now, add all the templates into your child theme.

    more info here https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/

    lets work on this first http://revlanka.com/forums/forum/automotive-news/local-news/

    since it has the issue on the notice , started by and freshness authors

    now go to loop-single-topic.php and find

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>

    does it say 14 ?

    if you dont want the started by author image remove make it where its like this

    <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link() ); ?></span>

    tell me if that works

    I’m pretty novice at this, but does this mean that I have to edit from the style sheet?

    all of the images that have issues (started by, notice, freshness), are sized in the templates in php rather than css .

    #150259
    tonydes
    Participant

    @robkk, I’m using a premiumpress theme. I tried again after disabling all my plugins, but the code still didn’t work.
    I don’t have a bbpress custom theme either. I’m pretty novice at this, but does this mean that I have to edit from the style sheet?

    #150256
    tonydes
    Participant

    @robkk haha I know, the images are absurdly huge! I tried the code but unfortunately it didn’t work 🙁 Honestly I ‘d prefer if none of those avatars were there except for the one in the post. However, I’ll take smaller avatars any day rather than those big pictures!

    #150255
    tonydes
    Participant

    @robkk haha I know, the images are absurdly huge! I tried the code but unfortunately it didn’t work 🙁 Honestly I ‘d prefer if none of those avatars were there except for the one in the post. However, I’ll take smaller avatars any day rather than those big pictures!

    #150253
    Robkk
    Moderator

    @tonydes you dont know how much im laughing, its like your forum is bombarded with a gallery of your self portrait. xD

    do you want the started by and freshness authors still if they were just a smaller size??

    and also the notice author image if it was a smaller size??

    but first try this if you dont want any of those avatars, see if this code works.

    .avatar-14 { display: none !important; }

    #150251

    In reply to: Text Color and Font

    Robkk
    Moderator

    Is there some code generator and if not the plugin, I guess I can add it in “Style.css”

    I just need when people posting in forums they have options to change color and size of font. I am unable to find something

    you want a code generator , so that users have an option to change font color and font size, I do not know how to do this, so i cant help much here.

    as for CSS I am not very familiar with that.

    everything in the documentation says all about using css ,and how to, using firebug.

    give me something specific to change the font size and color ,and ILL help you there.

    #150250
    tonydes
    Participant

    So the css editor works, and this code got rid of all my avatars, but I’d like to keep the one in the post itself;

    .bbp-author-avatar {
    display: none;
    }

    Here’s a link to the over sized pictures: http://goo.gl/wmTgBo

    Thanks for taking a look at it! Much appreciated!

    #150249
    Robkk
    Moderator

    dont reply on the other topic you made

    pretty much just copying the same thing from this

    Finding .css style file

    give me a link to your site

    so i can see if its a special code in your template making the avatars huge
    if its a .avatar css rule making all the avatars on your site big
    or if i could find something else.

    I’m pretty sure my theme does not use a conventional style sheet so I may have to edit this in the root folder?

    thats not a good idea , it will be lost next upgrade.

    #150247
    Robkk
    Moderator

    give me a link to your site

    so i can see if its a special code in your template making the avatars huge
    if its a .avatar css rule making all the avatars on your site big
    or if i could find something else.

    I’m pretty sure my theme does not use a conventional style sheet so I may have to edit this in the root folder?

    thats not a good idea , it will be lost next upgrade.

    #150245

    In reply to: Menu link to Profile

    Robin W
    Moderator

    ok try this, which should tidy most usernames

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/
    <?php global $current_user;
          get_currentuserinfo();
    $string = $current_user->user_login ;
         //Lower case everything
        $string = strtolower($string);
        //Make alphanumeric (removes all other characters)
        $string = preg_replace("/[^a-z0-9_\s-]/", "", $string);
        //Clean up multiple dashes or whitespaces
        $string = preg_replace("/[\s-]+/", " ", $string);
        //Convert whitespaces and underscore to dash
        $string = preg_replace("/[\s_]/", "-", $string);
        return $string;
    echo $string . "";      
    ?>/edit/">
    
    #150231
    tonydes
    Participant

    @Robkk Thanks for the response, but I moved the file to both locations, and edited the css but nothing worked. I used this code to resize the images:

    #bbpress-forums div.bbp-template-notice img.avatar, #bbpress-forums p.bbp-topic-meta img.avatar {
    width: 20px !important;
    height: 20px !important;
    }

    I’m pretty sure my theme does not use a conventional style sheet so I may have to edit this in the root folder?

    #150214

    In reply to: Uninstalling BBPress

    Stephen Edgar
    Keymaster

    None of those plugins standout as something that would cause the issue, though I expect most likely it is one of them…

    You state:

    When the bbPress plugin is deactivated, I can not. Instead what I see is a page that displays:

    And then:

    I disabled then deleted bbPress and still saw the error reported above. I then re-installed and re-enabled bbPress and the error went away.

    If you can’t access /wp-admin with bbPress disabled, how exactly are you re-activating bbPress?

    #150213

    In reply to: Uninstalling BBPress

    KevinBCarney
    Participant

    Sorry. I forgot to include that.

    Quite a few.

    Active:
    Akismet
    AtContent
    Captcha
    CommentLuv Premium
    Contact Form 7
    Duplicate Post
    Flamingo
    Google Plus Authorship
    Google XML Sitemaps v3 for qTranslate
    Greg’s High Performance SEO
    MaxButtons
    Mingle Forum
    nrelate Related Content
    Open external links in a new window
    OptimizeMember
    Smart Google Analytics Code
    Wordfence Security
    WordPress HTTPS
    WP-Optimize

    Inactive:
    404 Redirected: Conflicts with MingleForum, not yet deleted
    bbPress
    Debug Bar: Installed by my hosting provider
    Developer: Installed by my hosting provider
    Hello Dolly
    Long Depreciated Notices: Installed by my hosting provider
    P3 (Plugin Performance Profiler)
    Post Duplicator
    Social Sharing Toolkit
    Use Google Libraries: Installed by my hosting provider
    WordPress SEO

Viewing 25 results - 11,001 through 11,025 (of 32,511 total)
Skip to toolbar