Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,251 through 6,275 (of 32,508 total)
  • Author
    Search Results
  • #175854

    In reply to: logout page issue

    Robkk
    Moderator

    My bad it is called the (bbPress) login widget.

    I got confused of this custom widget I created that is a fork of the same code.

    #175853
    Robkk
    Moderator

    Something like this might work. In the post views plugin you will need to edit how it displays so it does not show “views” at the end of the number. If you do not want to mess with anymore files, or change the template view, just use the function in this post I created in this kind of similar topic.

    https://bbpress.org/forums/topic/new-feature-viewhit-counts/#post-161937
    loop-topics.php snippet

    <ul class="forum-titles">
    	<li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li>
    	<li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li>
    	<li class="bbp-topic-views-count"><?php _e( 'Views', 'bbpress' ); ?></li>
    	<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
    	<li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
    </ul>

    loop-single-topic.php

    <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>
    
    <li class="bbp-topic-views-count"><?php if(function_exists('the_views')) { the_views(); } ?></li>
    
    <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>

    CSS

    #bbpress-forums li.bbp-topic-views-count {
      float: left;
      width: 15%;
      text-align: center;
    }
    
    #bbpress-forums li.bbp-topic-title {
      float: left;
      text-align: left;
      width: 43%;
    }

    Also make sure to surround your code with the backticks from the code button in the toolbar.

    These-> '' <-these

    #175851
    peter-hamilton
    Participant

    And I wish this forum did a bit more to sell BBPress, where are the showcases, the paid for professionals and why is this theme still sooooo boring.

    Why not integrate more with Buddypress forums, as I can not believe people only using BBPress on its own, I want a better profile.

    Why not have the option to test plugins on this site with live demos.

    Why not have a clear donation button on your site, or do anything to receive funds to spend time improving the BB line.

    Perhaps charge people 1 euro to download BBPress first time then free for life through account, perhaps the free model gives more awareness but BBPress is good enough to compete with expensive forum software.

    Why not compete with codecanyon and offer premium plugins that work without conflicts.

    Why not hire me as vice president of BBCorp and pay me lots, I accept jellybeans as currency.

    Anyway, as mentioned before loving BBPress.

    P.H.

    #175850
    peter-hamilton
    Participant

    Will look at that plugin, sounds good if it does not create conflicts with my custom theme.

    Had to google Bootstrap

    I am almost ready with mobile version of my theme, actually not too bad to do with minimal css coding.
    Will have a look at that bootstrap thingy, perhaps I can copy and paste my way to integration, give me a few years and it will be done…lol

    I guess Php and Java should become easier over time for most, I get how some hooks work and understand the logic of a certain line of code, but do not know to write a line of Php or Java if my live depended on it, start to panic when databases are mentioned..lol
    More like a blind guy trying to finish a puzzle, keep banging pieces together until they stuck.

    But I must say that peoples reaction give me a warm gooey feeling inside, and should show everyone here that BBPress can be whatever you want it to be, if I can do it so can you…

    P.H.

    #175847
    peter-hamilton
    Participant

    And the WordPress/BBPress combo is actually quite easy to play with, took me a while (2 years almost) to understand the code but now like a puzzle that is relatively easy to manipulate.

    Only big issue I always find is the massive amounts of javascript and css queries, trying soon to combine a bit more.

    #175840

    In reply to: logout page issue

    ajising84
    Participant

    Hi,

    Thanks for your reply, the short code was used for one “logout” plugin and it was later removed due to compatibility issue with my theme.

    Can you please tell me, where I get this “bbPress profile widget ” ?

    Await your reply.

    Regards,
    Ajit

    #175838
    Blaze Miskulin
    Participant

    I’m working with the WP SpamShield team, but I’ll also post the error here just in case it helps.

    
    [19-Jun-2016 05:28:41 UTC] PHP Notice:  bbp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 2.3.) in /home/XXX/public_html/wp-includes/functions.php on line 3897
    
    #175836
    Jon Fergus
    Participant

    For those who have added the code from palmdoc’s instructions here, you’ll also likely need to change user role permissions so that they can upload inline images to all topics. Solution is here: https://bbpress.org/forums/topic/cant-upload-media-in-bbpress/#post-175834

    #175831
    Robin W
    Moderator
    #175829
    peter-hamilton
    Participant

    So after updates with BBPress and Buddypress my site is currently broken but will have it up and running soon again with a much improved code.

    jhayghost
    Participant

    Hello,

    I implemented a basic BBPress to our secured site. all members are registered and automatically assign them to participants. But after a week when I visited some topics went to trash, spam and closed. I checked bbpress code and I can not find any cron task and I`m not using Akismet at all.

    I hope you can help me.

    Many Thanks 🙂

    #175812
    quikfixed
    Participant

    Hi there,

    In my list of the topics, there isn’t any pagination link beside each topic even if I’ve set to display only 15 post per page. The pagination within the individual topic is shown but not beside the topics for those with more than 15 post in the main page listing. Any ideas?

    Is this a setting or must I change anything?

    I’m assuming I need to change the content-single-forum.php ?

                             <div class="td-topics-title">
                                    <a href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title();?></a>
                                </div>
    #175809
    Robin W
    Moderator

    you can achieve this with forum roles eg

    https://codex.bbpress.org/custom-capabilities/

    if you want it across all forums

    or if you just want one of several to be restricted, then I’ve recently added this to my private groups plugin

    https://wordpress.org/plugins/bbp-private-groups/

    see topic permissions tab

    #175807
    Robkk
    Moderator

    @rda5009

    Or how would I go about adding the reference lookup to obtain the user’s bp group(s), the forum tied to that bp group(s), and then display the recent 5-10 topics?

    If you are really not that good with code, try to hire a developer to create this for you.

    Here is a couple of links that might be helpful though.

    http://hookr.io/plugins/buddypress/#index=g&search=bp_get_group

    http://hookr.io/plugins/buddypress/#index=i&search=bp_is

    https://developer.wordpress.org/reference/functions/is_user_logged_in/

    https://github.com/ntwb/bbPress/blob/master/src/includes/common/widgets.php#L674

    #175804

    In reply to: logout page issue

    Robkk
    Moderator

    Lynqs suggestion in the topic you linked to will not work if you just put his code into a text widget, because the text widget does not output PHP just HTML.

    I see you just placed the bbPress login form shortcode into a text widget, why not just use the bbPress profile widget which includes a login form and register, lost password, and logout links.

    #175803
    Robkk
    Moderator

    As I state in this post, you may not need to even add an emoticons plugin, older conservatives may not even use it, but they might every now and then use the simple smilies like :) :( >:( :P

    https://bbpress.org/forums/topic/smiley-emoticons/#post-175672

    #175802
    Robkk
    Moderator

    Yes you would need to adjust some CSS styles from the forum.

    The styles specifically are these, although these will change when you reach a specific device width. You will need to adjust the width taking some out of the title section most likely. You might want to also look into adding another column heading for views, by copying the loop-topics.php template into your child theme.

    li.bbp-forum-info,
    li.bbp-topic-title {
    	float: left;
    	text-align: left;
    	width: 55%;
    }
    li.bbp-forum-topic-count,
    li.bbp-topic-voice-count,
    li.bbp-forum-reply-count,
    li.bbp-topic-reply-count {
    	float: left;
    	text-align: center;
    	width: 10%;
    }
    
    li.bbp-forum-freshness,
    li.bbp-topic-freshness {
    	text-align: center;
    	float: left;
    	width: 22%;
    }
    #175800
    Robkk
    Moderator

    1. Robins plugin uses the same file that has been tossed around these forums for the past 2 or so years.

    https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout

    4. You should probably just keep them, as they help with moderation on the frontend. There is a link in the description to show all posts including ones that may be pending moderation. The yellow ones just help notify users whats up, so if they cannot post for soem reason and there is no notice, they would not know what the issue is.

    Here is a link to the code though.

    https://bbpress.org/forums/topic/where-can-i-remove-the-this-forum-contains-topics-and-themes/#post-167642

    5. If you are minifying your CSS, then I say do not worry about this feature.

    I don’t really think there is a best practice for forum rules/admin content, it is whatever works for you and makes most sense in the end.

    #175796
    r083r7
    Participant

    copy and pasted into my child-theme function.php file

    add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
    function my_bbp_verify_nonce_request_url( $requested_url )
    {
        return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
    }

    ERROR: Are you sure you wanted to do that? is still there.

    Any other ideas?

    #175795

    In reply to: Freshness Link

    Fuskeduske
    Participant

    I know see i missed some code

    <div class=”bbp-forum-last-topic-name”>” title=”<?php bbp_forum_last_topic_title(); ?>”>

    <?php bbp_forum_last_topic_title(); ?></div>

    <p></p><?php bbp_forum_last_active_time(); ?>

    fpradmin
    Participant

    Thank you both for the help. I installed the “Simple Custom CSS” Plugin and fixed both issues by adding the following code there, after removing the code to “get sidebars” in bbpress.php

    
    /* Change Post Font Color to Black */
    .post-inner .entry{ color: #000; }
    
    /* Increase Forums to Full-Width of Page - after removing get sidebar code from bbpressphp */
    .bbpress .main-inner,
    .bbpress .main,
    .page-template-full-width .main-inner,
    .page-template-full-width .main  {
      background: none !important;
      padding-right: 0 !important;
      padding-left: 0 !important;
    }
    
    /* Increase Font Size on various items in bbPress */
    #bbpress-forums,
    #bbpress-forums ul.bbp-lead-topic,
    #bbpress-forums ul.bbp-topics,
    #bbpress-forums ul.bbp-forums,
    #bbpress-forums ul.bbp-replies,
    #bbpress-forums ul.bbp-search-results,
    #bbpress-forums .bbp-forum-info .bbp-forum-content,
    #bbpress-forums p.bbp-topic-meta,
    div.bbp-breadcrumb,
    div.bbp-topic-tags,
    span.bbp-admin-links a,
    #bbpress-forums div.bbp-forum-author .bbp-author-role,
    #bbpress-forums div.bbp-topic-author .bbp-author-role,
    #bbpress-forums div.bbp-reply-author .bbp-author-role,
    span.bbp-author-ip,
    div.bbp-template-notice p,
    #bbpress-forums #bbp-your-profile fieldset span.description  {
    	font-size: 16px !important;
    }
    
    #bbpress-forums .bbp-forums-list a {
      font-size: 18px;
    }
    
    li.bbp-forum-info a.bbp-forum-title,
    li.bbp-topic-title a.bbp-topic-permalink,
    #bbpress-forums div.bbp-topic-content p,
    #bbpress-forums div.bbp-topic-content p,
    #bbpress-forums div.bbp-reply-content p {
      font-size: 20px;
    }
    
    Robkk
    Moderator

    These are all the files and code I had in my custom child theme I created from Hueman. I also added some font-size CSS styles too.

    https://gist.github.com/robkk/8b323aa0994e87a476054a4f115d1141

    Robkk
    Moderator

    Yeah you can’t do what you want now using that specific plugin, you can using widget logic, or creating a bbpress specific sidebar for all the widgets you want/not want to display on bbPress pages.

    Contact the display widgets plugin author to possibly add this feature to hide/show widgets on bbPress user profiles, and maybe specifically the edit profile page. All they would need is just use these supplied bbPress conditionals.

    bbp_is_single_user_edit()
    bbp_is_single_user()
    #175779
    Robin W
    Moderator

    ok, I think this is now all working for older php versions.

    I have also fixed a small bug, so the code is more robust.

    once the new version appears in your updates, can you upgrade, and just confirm that it all still works for you.

    Regards

    Robin

    #175762
    Robin W
    Moderator

    ok, Ive taken a further look, and the issue is that you are using a php version below php5.5.

    Given that others may do so, I’ve recoded to avoid the error, so can you delete the version you have, and try this one

    http://www.rewweb.co.uk/download/private-groups-3-2-1-rc/

Viewing 25 results - 6,251 through 6,275 (of 32,508 total)
Skip to toolbar