Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,176 through 14,200 (of 32,519 total)
  • Author
    Search Results
  • #134848
    fencer_x
    Participant

    Because it was an eyesore, I display:none’d the avatars on the reply widget in my sidebar to keep them from displaying and have replies simply show up as a list of “AUTHOR on TOPIC”. However, it seems that there was a non-breaking-space included somewhere AFTER the avatar and before the author, and it’s still there because it’s hardcoded in somewhere.

    It looks more than a little odd, and I’d like to remove it if possible. Anyone know where I might find it? I’ve found the recent replies widget code in widgets.php, but I can’t figure out where this space is coming from.

    #134844

    Topic: Change author

    in forum Troubleshooting
    SickSquirrelTwo
    Participant

    I wanted to edit a post by my coder but it saved as he being poster.

    How do I edit author/poster?

    #134837
    Shmoo
    Participant

    Yes, but try using a Webkit browser on your PC or Mac ( Chrome or Safari are Webkit based )

    Scale your browser-window down to iPhone size and try to spot at what size things start going wrong -layout wise.

    Just before things start going wrong you Right-click at the page where things go wrong and pick the ‘Inspect Element’ option to see the code. It really helps a lot.

    #134835
    Shmoo
    Participant

    Why does example #1 work just fine but example #2 doesn’t ?

    #1
    <?php bbp_breadcrumb( array( 'include_home' => false ) ); ?>

    #2
    <?php bbp_breadcrumb( array( 'include_current' => false ) ); ?>

    Unsal Korkmaz
    Participant

    Sadly lots of planned featured needed to remove from FirmaSite theme because of theme rules in WordPress.Org theme system:
    https://codex.wordpress.org/Theme_Review

    I really was disappointed when i learn that most of stuff needed to remove but now i can understand their logic. While i dont agree those rules, i respect them.

    All social integration (Facebook like,comments etc) is removed from theme because of WordPress.Org rules. They decide that some planned features are plugin territory. So i built a plugin for theme:
    http://theme.firmasite.com/plugin/ or
    https://wordpress.org/plugins/firmasite-theme-enhancer/

    This plugin will add all those social integration soon. Sorry for misinformation on theme site.

    Etan Rozin
    Participant

    Thanks. That fixed it.
    (the example in the link has a code error, but by removing the escaping all works fine).

    I had another question. The feature list mentions facebook comments (the ability to add or remove them). How is this done, I could not find it in the interface.

    Thanks

    Etan

    #134800

    In reply to: Remove search bar

    Pippin Williamson
    Participant

    There’s no reason to place this in your functions.php instead of as a plugin. It is the exact same code that gets executed, except as a plugin it is easier to maintain.

    #134799
    Edie Sellers
    Participant

    Okay, but I thought in order to remove the sidebar from your forum (i.e.: a full-page forum) you need to be working in “themes” not “templates.”

    Let me be more to the point. I have a website with a custom WP theme, (http://www.gamehounds.net/).

    I want to intgrate bbPress forums under the tab “Forum.” I want the bbPress forums to be full-screen without the sidebars, but of course I want to keep the sidebar in the rest of my site.

    After a LOT of reading… including your wonderful thread that says Never Modify bbPress core files, I built a child theme and activated it.

    But when I go to where says to in order to put my bbPress theme into my child-theme file, there is no “themes” folder.

    I do have a “templates” folder, but it doesn’t seem to have any information for themes where it instructs to “get sidebar,” which from what I read is the thing that I want to “//”.

    Does this make sense at all? Again, apologies for being kind of numbskully about this. I’m really just hacking around in the dark and learning as I go.

    Etan Rozin
    Participant

    Hi.
    Using FirmaSite and liking it a lot.
    I do have a problem though.
    Anytime a member leaves another member a comment on his profile, it shows up as html code
    Any idea how I can solve this? It is really ruining an excellent presentation otherwise.
    Thanks

    #134793

    https://bbpress.org/login/ submits data directly to https://bbpress.org/wp-login.php – they use the exact same code to process your login. Sounds likely that there’s a cookie somewhere in your browser’s cache that’s being stubborn.

    Happy you found a solution that works for you, and sorry you’re having trouble.

    #134788

    In reply to: Remove search bar

    NerdEnPose
    Participant

    This is the basic code. There’s plugins to do it but I prefer to put this in my functions.php

    add_action('init', 'remove_admin_bar');
    
    function remove_admin_bar() {
            show_admin_bar(false);
    }

    However I prefer to only remove it if the user isn’t logged in:

    add_action('init', 'remove_admin_bar');
    
    function remove_admin_bar() {
        if (!is_user_logged_in()) {
            show_admin_bar(false);
        }
    }

    Or if you prefer to limit by user roles and editing capabilities.

    function remove_admin_bar() {
        if (!current_user_can('administrator')) {
            show_admin_bar(false);
        }
    }

    FYI: There’s a pretty popular search result recommending this for role check:

    add_action('init', 'remove_admin_bar');
    
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }

    This would check to see if the user is in the admin portion in which case you’d show the bar as well.

    aaronVm
    Participant

    I have the same problem…please help!

    #134786
    NerdEnPose
    Participant

    I’m using 2.3.2 and this is my solution.

    There’s a function in the theme files calling this, simply noting it out or deleting it prevents the call.

    // bbp_single_topic_description();
    content-single-topic.php

    and

    // bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) );
    form-topic.php

    This makes more sense to me because why generate the HTML just to bloat your CSS file to hide it? Or why add more to your functions.php file when all you need to do is some basic theme work? (Although that was some clever hacking of the wordpress/bbpress hooks there mindyjoy :))

    *Make sure to move all your theme files into your wordpress theme (wp-includes/themes/your_theme/buddypress/) so you don’t lose your work with an upgrade.

    #134784

    Not sure where you’re getting your info, but it’s not correct. πŸ™‚

    bbPress uses your existing WordPress theme, and allows you to customize the individual templates as you see fit. You can copy the template files you want to customize out of:
    wp-content/plugins/bbpress/templates/default/bbpress/
    and drop them in…
    wp-content/themes/YOUR_ACTIVE_THEME/bbpress/
    where YOUR_ACTIVE_THEME is the name of the currently active theme on your site.

    Then start editing them, and you should see your edits come through.

    In bbPress’s default configuration, this is by design to support styling for widgets, which can exist outside of bbPress’s standard page views. You’ll need to write a custom plugin to dequeue bbPress’s CSS when ! is_bbpress().

    #134772
    krioteh
    Participant

    bbPress Π½Π° русском (bbPress on Russian)

    Please, if you want to get support in Russian, visit the official Russian support forum.

    ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, Ссли Π²Ρ‹ Ρ…ΠΎΡ‚ΠΈΡ‚Π΅ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΡƒ Π½Π° русском языкС, посСтитС ΠΎΡ„ΠΈΡ†ΠΈΠ°Π»ΡŒΠ½Ρ‹ΠΉ русскоязычный Ρ„ΠΎΡ€ΡƒΠΌ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΈ.

    #134758
    Shmoo
    Participant

    Just to show the people who can code..

    This is what I would like to do with a little bit of CSS and JS without adding my own <textarea> and BBcode buttons.

    bbPress custom toolbar
    Real Pixels

    The default toolbar buttons are positioned at the top of the <textarea> and with a little bit of JS I can hide it by default and let it pop-up when text inside the <textarea> is selected.
    Right now I have to delete everything thats default and create my own <textarea> + BBcode buttons.

    #134753
    Robin W
    Moderator

    Great method Schmoo!

    You can also create a page called “forums”, put your text there, and then add the shortcode

    [bbp-forum-indexx]

    but with only one x – sorry but even with code ticks the forum interprets this code, so cannot put it in exactly!

    by the way the page doesn’t appear as an edit option in the toolbar, so you have to edit it via the dashboard, but that is how I achieved it.

    #134749
    barrowr
    Participant

    Thanks Robin, that worked. I can’t believe it was that straight forward. I looked so often at that code snippet but never thought to change it.

    Thanks for your help.

    #134748
    Shmoo
    Participant

    Just before the textarea and toolbar buttons WP or bbPress adds an stylesheet <link stylesheet .. blablabla.. > for styling the buttons and stuff like that.

    How do I remove this ?
    I want to style my own buttons inside the theme stylesheet not a custom-editor-buttons-stylesheet.css

    I think it’s much better if bbPress gets it’s own toolbar , just like a comments-form instead of using the back-end stuff on the front-end.

    #134743
    Shmoo
    Participant

    You can’t really create a Child Theme for bbPress only.

    But if you like to work with the Child Theme idea – I personally think it fails big time but some people really like it then just create a Child Theme if you would do the WP way.
    https://codex.wordpress.org/Child_Themes

    After that you simply add a folder called bbpress inside your Theme or Child Theme folder and copy-/paste the files over from your Plugins directory to your Theme or Child Theme directory.

    wp-content / plugins / bbpress / templates / defaults / extras / All those files are general Theme template files and will be read first if you copy them inside your Child Theme folder

    wp-content / plugins / bbpress / templates / defaults / bbpress / All those files are bbPress (forum) templates files and will be read first if you copy them inside your Child Theme/bbpress folder.

    An image will show you better..

    View post on imgur.com


    and

    View post on imgur.com

    #134736

    In reply to: EDIT BUTTON

    Sam Rohn
    Participant

    have you checked your bbpress forum settings page, or looked at the bbpress instructions ?

    https://codex.bbpress.org/forum-settings/

    Lock post editing after
    Set this to the time (in number of minutes) to limit post editing. Once the time limit has been reached the forum post no longer be available for editing to forum participants. Administrators and bbPress Moderators can override this setting at any time.

    #134731
    Playlectric
    Participant

    I can help you with the second issue.

    First, make a copy of the bbPress folder and search for ‘bbp_get_forum_pagination_count‘ in Explorer.

    If you don’t get any results at first, make sure you’ve turned on text search for .php files:

    1) Open the bbPress folder:
    ALT key -> Tools -> Folder options -> Search tab -> Always search file names and contents

    2) Make sure that .php files are included in file content searches:
    Windows Start menu -> Type ‘Indexing Options and press return -> Advanced -> File types -> php -> Index properties and File Contents -> On

    The result of the search should be:
    bbpress/includes/topics/template-tags.php

    Now, locate the function ‘bbp_get_forum_pagination_count‘ and remove the ‘Viewing topic…’ code.

    If you also want to rempove it from searches, please search for ‘bbp_get_search_pagination_count‘ and repeat the procedure.

    I hope this helps!

    #134723
    ahammer
    Participant

    We would like to completely hide the freshness column throughout the forums. Could you please point me to other documentation or to the code to remove/hide freshness?

    WP version 3.5.1
    bbpress version 2.3.2

    http://www.swpp.org/forums

    Thanks

    #134712
    Robin W
    Moderator

    Have had a bit of a play.

    Answer turns out to be very easy !

    In line 799 just change

    'type' => 'both'
    to

    'type' => 'avatar'

    Then just the avatar displays.

    By the by change it to

    'type' => 'name' and guess what, just the name displays!

    As said earlier make a note of what you have changed, as later upgrades will change this back.

Viewing 25 results - 14,176 through 14,200 (of 32,519 total)
Skip to toolbar