Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,326 through 16,350 (of 32,519 total)
  • Author
    Search Results
  • #113115

    OK, I just resolved my problem….

    I asked a designer friend what he thought and after I shared with him that…

    In cPanel (with bbPress uninstalled) I’m using 36.2% of my allocated 524288 KB.

    He suggested….

    So, it seems it’s not physical memory allocation that is the problem, perhaps it’s a PHP memory limitation?

    I then emailed my hosting company to ask their thoughts and their reply…

    Thank you for writing in. I have increased the memory_limit for your

    domain name humanrights4tibet.com from 32MB to 64MB. You can check and

    confirm the same using following phpinfo URL:

    This has resolved my problem and I have successfully activated bbPress Plugin – http://humanrights4tibet.com/demo/?post_type=forum&p=201&preview=true

    Hope this helps you guys :)

    #109351
    Jaja..
    Member

    Yeah you can do a lot.

    Use the WP Template Name function.

    https://codex.wordpress.org/Pages#Page_Templates

    Create your own template files and build your own (bbPres) code inside them or leave them very default and use the Short Tags you’re using with ID’s right now.

    If you can select the bbPress templates when adding a new page you can also make your own page templates.

    Just select new page and pick a template from the right-side (template)

    #113228
    POS2012
    Participant

    I have installed the latest 2.0 WP plugin, and there the feed shows a little different.

    I found this code in the bbp-topic-functions.php:

    (line 2994)

    /bbpress/bbp-includes/bbp-topic-functions.php

    <title><?php bloginfo_rss( ‘name’ ); ?> » <?php _e( ‘All Topics’, ‘bbpress’ ); ?></title>

    If you alter that you could probably get the RSS title to say whatever you’d like.

    I also found this:

    /bbpress/bbp-includes/bbp-reply-functions.php

    line 1372

    <title><?php bloginfo_rss(‘name’); echo $title; ?></title>

    I have ony 2 days of experience with bbPress, but this might help you…?

    #40151
    purplesea
    Member

    I’m new to wordpress and bbpress.

    I’m trying to build up my company site with wordpress and I need to have two different forums with different templates.

    So I installed bbpress and I created two different pages in wordpress and in each page I used shortcode “[bbp-single-forum id=$post_id]” to create a single forum page.

    Each single forum page should use different template or theme, but I couldn’t find any way to use different templates for different forums simultaneously.

    Does anyone know if this is possible to do with bbpress?

    Thanks in advance.

    POS2012
    Participant

    I have installed bbPress today and been looking around in the files, and have started to get a grip on the theme and how it works.

    But I am no designer, and I would like to buy a theme that is either exact alike – or close to – what I would like to get.

    I do like the simplicity / setup of the theme used here in bbPress.org/forums – but would like have a little more icons etc.

    Do you know any place where I can buy theme(s) for bbPress when using it as a WP-plugin?

    I mean themes placed here:

    wp-content/plugins/bbpress/bbp-themes/

    Thank you :-)

    eternal noob
    Participant

    I know I can use a shortcode to fetch topics and replies – but a template tag as in <?php …..?> that automagically fetches the topics and/or replies if there is any is probably what I am looking for.

    #110567
    harnold007
    Member

    The modifications in step 3 and 5 depend on your theme/layout.

    In step 3 I made css modifications to “theme” the forum colors mostly. These modifications are unique to each site. I just use firefox to inspect elements then locate that element in the bbpress.css file and change it to how I want it to look.

    In step 5 I modified page.php to remove the sidebar. Again this is specific to your site however this is how my page.php looks

    Code:
    <?php get_header(); ?>

    <!– BEGIN MAIN WRAPPER –>
    <div id=”main-wrapper”>

    <!– BEGIN MAIN –>
    <div id=”main3″>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <!– BEGIN POST –>
    <div id=”post”>

    <h3 class=”section-title”><?php the_title(); ?></h3>

    <div class=”post-entry”>

    <?php the_content(); ?>
    <?php wp_link_pages(‘before=<span class=”page-links”>Pages: &after=</span>’); ?>

    </div>

    </div>
    <!– END POST –>
    <?php endwhile; endif; ?>

    </div>
    <!– END MAIN –>

    </div>

    <?php get_footer(); ?>

    #44237
    trissietris
    Member

    Hi, im using the latest version of buddypress+bbpress.

    I installed sitewide forums.

    Used the shortcode [bbp-forum-index] on http://portal.thedrughouse.eu/forum/

    It works, but after you click on a sections you cant do anything anymore. cant start a topic, it just puts the description in the page

    #44213
    paulychilds
    Member

    Hi – I have a wordpress blog (installed on my own mySQL Database/webspace) and have added bbPress as it seemed the best forum plug in I could find. I am using the theme Graphene. These are all the latest version as of 19/04/12.

    I have created a blank page called Forum which, when the menu item is clicked, forwards to the bbPress forum main page and which appears on the top menu, along with Home and Blog.

    Here is where things get difficult…

    I would like for the ‘Forum’ menu item (page_item_419) to be highlighted when I am in the bbPress Forum but currently, when I am in the Forums it is the ‘Blog’ menu item (page_item_146) which is highlighted.

    Any idea what I need to do? I am not a great deal of coding experience so go easy on me :)

    Many thanks

    PC

    #113050
    smell-bag
    Member

    Hi I want to remove the “Forums” link in the breadcrumbs and have it use the forum index page instead, could you post the code you used in functions.php to filter the breadcrumbs please?

    Thanks in advance.

    #112957
    wout_m
    Participant

    I solved this problem by modifying de bbpress-login widget.My users can upload their fotos in the front-end by clicking on their avatar-photo, that is displayed in the sidebar.

    The info is from here: https://wordpress.org/support/topic/plugin-user-photo-front-end-upload

    I am aware this it is not the most elegant way, but this is how I fixed it:

    1) I installed the WP-prettyPhoto plugin (maybe this is not necesary, but I think I need it )

    2) activate the bbpress-login widget by putting it in the sidebar (in the WP admin section)

    3) I addded this script to my sidebar.php: (in my case in wp-content/themes/inove/)

    <script type="text/javascript">

    function user_avatar_refresh_image(img){

    jQuery('#user-avatar-display-image').html(img);

    }

    </script>

    <script type='text/javascript'>

    var swrAjax = {

    ajaxurl: "http://www.yoursite.com/wp-admin/admin-ajax.php"

    };

    </script>

    4) add jquery to the head section:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2"></script>

    5) I added these lines to wp-content/plugins/bbpress/bbp-includes/bbp-core-widgets.php, just

    after “<?php else : ?>” (line 132):

    (this will show the avatar when the user is logged in)

    <div id="user-avatar-display" >

    <p id="user-avatar-display-image"><?php echo get_avatar( bbp_get_current_user_id(), '100' ); ?></p>

    </div>

    <?php

    echo ‘Upload avatar
    ‘;

    You have to configure the css for a nice layout.

    #113109
    pparson
    Member

    Dear bbPress-Team and community,

    I finally got hold of the server’s error log files, after grepping through gigabytes of error messages from other websites running on the server, I came accross those (which is exactly the time when I tried to call /wp-admin/ with bbPress plugin activated):

    [Tue Apr 17 17:54:48 2012] [error] [client […]] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in […]/htdocs/wp-admin/includes/class-wp-list-table.php on line 859

    [Tue Apr 17 17:54:53 2012] [error] [client […]] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in […]/htdocs/wp-admin/includes/theme.php on line 255

    Seems to be a memory issue. As I said before, the problem goes away as soon as I remove the bbPress directory from plugins, so it seems the issue is related to bbPress.

    Do you have any idea how this problem could be solved? E.g. is there anything to configure or comment out in the code in order to decrease memory usage?

    Best regards and thanks,

    Peter

    #113096
    Bowe
    Participant

    Thank you for posting this Nick! Very helpful indeed :-) Just implemented this on our community forums!

    #113136
    magonano
    Member

    I still don’t understand… :)

    #112924
    ericaski
    Member

    Hey jaredatch, I see that johnjamesjacoby replied to ticket #1805 that this would be possibly added to a future release? I can’t figure out how to contact him. How can I get an approximate time frame in which this may happen? I have to tell my client something. I am so frustrated as I had to launch their site without the forum and about to have to tell them they can either have it only public or not at all :-(

    Lynq
    Participant

    You could set a fixed width on the table rather than a percent, to make sure it doesn’t go any wider…

    table { width: 535px; }

    Edit: I did test in firebug and adding the width onto the table seemed to be fine, you may want to use the actual classes though, like .bbp-replies etc…

    #44158
    silverkm
    Member

    Hey,

    I tried this a few weeks ago, couldn’t get it to work and ended up using mingle.

    Now for round 2, since my wordpress knowledge has increased I have decided to give buddypress / bbpress another shot.

    My problem: I am using a purchased theme. WHen I install bbpress /forums/forum gives a 404 error. I create this page and insert the short code for index, it shows up. But if you click on a category, it goes to a blank page just showing the category (nothing below)

    This is all in a child theme of my page

    I have resaved my permalinks (currently set to %postname%).

    I installed 2.1 same behaviour

    I’m not sure if I had to create it, but I created a blank page “forums” then a child page “forum” where I’ve put [bbp-topic-index]

    When I navigate to this page I can see the forum. I have a forum “general” with a post in it called “welcome” if I click on general I would think that it would likst the posts, but instead I just get a page titled general with no content.

    Edit: Resolved – not sure why, but when I create a new forum or topic, if I don’t put some content in it, it won’t display the page. Maybe a theme thing

    Lynq
    Participant

    Try adding this css rule…

    table { width: 100%; }

    Your forum table tag has no width on it at the moment.

    #112730
    Lynq
    Participant

    Hi Bluealek, I managed to find this on the forum, have you tried the search?

    Here is the code I found none the less.

    `<?php

    if ( bbp_has_topics( array( ‘author’ => 0, ‘show_stickies’ => false, ‘order’ => ‘DESC’, ‘post_parent’ => ‘any’, ‘posts_per_page’ => 5 ) ) )

    bbp_get_template_part( ‘bbpress/loop’, ‘topics’ );

    ?>`

    You can add this inside the loop-forums.php above the table tag.

    Good luck!

    #111681
    baldg0at
    Participant

    @jaredatch

    Unfortunately, the site is in a production environment. I’d be nervous about using 2.1 before it’s ready.

    Here’s another site I use bbpress on — http://hawkcentral.com/forums/

    Right now, the “Week 5 picks” and “Thoughts From Week 2 in College Football” topics show a freshness of 19 hours and 20 hours respectively. The users showing on the home page are obviously spam users (that I’ve since been blocked) and their posts have already been marked as spam by Akismet.

    I’ve dug into the code and I can see where the last active time is getting updated. I’m going to put some logging code in and see if I can discover what’s happening.

    I’ll report back.

    lmoon
    Member

    Hello,

    My client has just put a new forum on her site I created with bbpress. When she (and I) previews the page in Safari the table is squished over to the left, but when we look at in on a PC or in Firefox it’s aligned perfectly.

    http://lifeafterlondon.com/topic/social-life-outside-london/

    Do you know why this could be?

    Many thanks. :-)

    #113086

    In reply to: HTML Code

    LIB53
    Member

    Users do not have the capability unfiltered_html

    https://codex.wordpress.org/Roles_and_Capabilities#unfiltered_html

    User a role editing plugin to enable that capabilty

    https://codex.wordpress.org/Roles_and_Capabilities#Resources

    This is unsafe, because users can write malicious code. I wrote a post asking about more details on modifying the capability at its core here:

    https://wordpress.org/support/topic/modify-unfiltered_html-to-allow-more-tags?replies=1

    Hopefully I can get some attention so there’s a safe halfway point where we can allow more html tags without rendering our sites insecure…

    #113085

    In reply to: HTML Code

    martin_style
    Member

    you have to find code at line strip html and remove that

    Ben Hayes
    Member

    Invalid header issues indicate you’ve installed the plugin incorrectly, or have an incomplete download.

    Hmm, OK. I downloaded the zip file from the bottom of https://bbpress.trac.wordpress.org/browser/branches/plugin and used that for the plugin, which gave me the error. Maybe Trac is not working how it should, or maybe I’ve not understood something. I’m more of a designer than a coder :) I will see if I can get my head around using Subversion to get the code instead.

    It’s possible to use the core templates, but it won’t really work the way you want it to. Why? Because when you view a single forum, you also want to view that forum’s topics. When you view a single topic, you also want to view that topic’s replies. A single flat loop isn’t enough to handle this behavior, no matter what you do.

    Right, OK. That makes sense. I hadn’t thought of that.

    I still think the whole setup is potentially quite confusing though – mainly having 2 theme locations I think is what throws me. Actually I noticed that in plugins/bbpress/bbp-themes/ it says in index.php “Do not put custom themes here or they will be overwritten”. So I know we’re not supposed to edit the theme in there. But it is still quite confusing that I can activate that theme from within the WP dashboard. This is quite unintuitive, in my view. Because we are encouraged to activate a theme that we are told we should not edit.

    Martin
    Participant

    Do you know whether it’ll be possible to inject other code into Topics and/or Replies which other Custom Post Types allow but not yet bbPress?

    This is like Advertising or Social Media icons.

    As an example, I have the WP Socializer plugin installed for Social Sharing. When questioned about it working, the author replied with:

    “Please note that WP Socializer works in all pages or places where there the <?php the_content(); ?> function is called in the theme.”

    This seems to be the case for any other Social plugin so I’m guessing bbPress post types do not have this included.

    Further, I’m using Simple Ads Manager for injecting advertising space as well as other stuff. Works fine by picking a Custom Post Type and bbPress Topics and Replies show up, except nothing is displayed so I presume these aren’t following Custom Post Type convention, in some way either.

    Any ideas on these things?

Viewing 25 results - 16,326 through 16,350 (of 32,519 total)
Skip to toolbar