Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,376 through 16,400 (of 32,581 total)
  • Author
    Search Results
  • 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?

    #112980

    Time to dig in the code and look around. The /bbp-includes/bbp-template* files are a good place to start. :)

    bbPress’s template logic works almost identically to the way WordPress’s works, it just needs to do all the same things that WordPress does for specialized content. Just like WordPress has queries and conditions for posts, pages, categories, and tags, bbPress has them for forums, topics, replies, users, topic views, and front end posting and editing.

    In many ways, bbPress feels more complex because it is more complex. But, I can assure you, it’s built to the same standard and uses the same conventions as WordPress does.

    #44118
    jaredvd
    Member

    I’ve installed bbPress on my wordpress-buddypress site.

    The forum base is: Forums

    when I install just bbPress, and use this as a base, I can navigate to http://www.url.com/forums and it displays the forums properly

    I also would like to add it to my navigation. I add a page titled “Forums” at http://www.url.com/forums and add it to my navigation menu list.

    then when I navigate to this page, it displays it as a default buddypress page, without the forums, it highlights it in my menu when it is the current page.

    I then add the shortcode: [bbp-forum-index] to the page.

    It still shows up in my navigation, and goes to the correct page when clicked, which now shows the bbPress forums. However it now does not highlight the “Forums” tab when it is on the “Forums” page.

    Is there an easier way to associate bbPress’s “Forums” with WordPress’s “Forums” so that it will display properly in the navigation menu?

    Thanks.

    Also when on my “Forums” page, the breadcrumb reads “homepage title>forums” I would like it to ready “Blog title>forums”. Any ideas how to do this?

    Edit: Turns out the “Forums” page only works properly in the navigation as soon as bbPress is deactivated. With bbPress activated, the “Forums” item in the navigation is not highlighted when the page is being viewed. Shortcode in or not.

    Edit: I’ve fixed the problem by making a custom template which adds the shortcode via <?php echo do_shortcode(“[bbp-forum-index]“); ?>

    Any ideas on the base slug modification?

    Ben Hayes
    Member

    Ah OK, I think I see that you have implemented something like this in version 2.1 :)

    I just tried to install the latest 2.1 beta version but I got an error from WP saying “Could not install this plugin as it has an invalid header” :(

    #112978
    Ben Hayes
    Member

    As far as I can see, all the BBP pages are output from the template page.php in your main WP theme. I assume there is some kind of template hierarchy we can use to override this (so we can have a specific template for ‘profile’ or ‘single topic’ etc).

    I agree it is all pretty confusing to me too ;)

    #44100

    Topic: HTML Code

    in forum Troubleshooting
    jonrcoulter
    Member

    I have a forum where HTML code is often posted, but due to the restrictions other than admin, customers HTML gets stripped even if they put it in a code block.

    Is there a way to allow all HTML code through for any users?

Viewing 25 results - 16,376 through 16,400 (of 32,581 total)
Skip to toolbar