Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,326 through 16,350 (of 32,503 total)
  • Author
    Search Results
  • #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?

    #44085
    mmraeder
    Member

    Hi,

    being less than a novice with code, I’ve relied on setting up my WP / bbPress site by using plugins. I’ve some experience with css styles, so I’ve tweaked some of the layout to my liking. My problem is that I can’t seem to find how to style the sub-forums list.

    My forum has a hierarchy with 3 levels of forums, and I’d like to only see one level at a time when viewing the main forum page, and the sub-forum pages. Alternatively, the forum overview should be more like it looks from the back-end.

    I’d really wish the plugin-interface would let us tweak some this functionality. Like when creating an index page for the forums using [bbp-forum-index], one could use something like [bbp-forum-index subforums=hide]

    Or have readily assigned css-classes for the sub-forums list to tweak – I haven’t been able to find them, at least :-O

    I would really like to avoid going into the php-code as I unfortunately have no understanding of this. I’ve set up the forums using the 2.1 beta as it almost worked 100% for me, except for this little trick…

    Thanks for any advice and help!

    #44074
    #112884

    Right now it can’t be done without creating a custom theme. There is a ticket in trac though to have this option in future versions since it seems to be a fairly regular request :)

    #112900
    macauley86
    Member

    Hey, no problem. thank you for coming to my rescue :-)

    Yes, I did create a forum

    http://www.homeschoolagora.com/forums/

    The forum page shows up, but it’s treated like a blog page

    http://www.homeschoolagora.com/forums/forum/homeschool-legal-requirements/

    and puts the blog widgets in the sidebar instead of the bbPress login and forum-related widgets.

    I didn’t even have to create a Forums page in WordPress. The moment I installed bbPress, it created its own forums page, even though it did not appear in the navigation.

    Actually, when I do create a forums page in wordpress, it sort of takes over the bbPress-created one and shows nothing on the page. Only when I delete, does the bbPress forums page come back.

    That is why I’m not sure if I’m missing a step or two.

    I just installed the bbPress plugin from within WordPress and activated it, then created a forum, and put a few bbpress widgets in the bbpress sidebar.

    #112899

    Macauley86 – did you actually create a Forum or two in the Forums tab in WordPress? Nothing will show up till you do.

    Sorry in advance if I am oversimplifying your problem. :-)

    lmoon
    Member

    Hello,

    Can you please point me in the right direction to be able to delete the numbers on the forums which are in brackets?

    There are bot on all forums in my site, only some. They are on this page on the top forums http://lifeafterlondon.com/forums-2/

    Many thanks. :-)

    #112680

    What’s your URL? I want to see what you are talking about :)

    I think I’m having the same problem.

    The strange thing is that it *was* working up until this morning. In our case, we moved some folders around – we had an old folder of BBPress and it’s possible when we archived it things went wacky. There’s this in the bbpress.php file:

    /**

    * Note to Plugin and Theme authors:

    *

    * Do not directly reference the variables below in your code. Their names

    * and locations in the bbPress class are subject to change at any time.

    *

    * Most of them have reference functions located in bbp-includes. The ones

    * that don’t can be accessed via their respective WordPress API’s.

    */

    which might mean some strange paths were written into the core files. We deleted, and started again. I even went into the wp database to delete all the forums and topics we had made… no luck. A fresh install still turns up a blank page which makes me think there could be another old reference somewhere in the database interfering with things.

    Either that, or it’s some permalink voodoo.

    O mighty BBpress lords (John Jacoby?) I beseech you…. any advice for this dilemma?

    mike-acs-it
    Member

    I must be having a weird issue as I have searched and did not find anyone who posted anything specifically like I am experiencing.

    I have tried integrating and doing the manual install of BBPress in my WP installation in the plugins directory, and quite honestly I do not like it very much – mainly because I would like the forum theme to be different than my main site theme and did not see any easy way to do this.

    I would like the deep integration happening; however, want to install it manually.

    So, I downloaded the .zip file ->Extracted Files->renamed to forum->FTP up to root of the site that has the WP install.

    Then, when I navigate to mysite.com/forum, nothing happens. I get just a blank screen. This happens across all browsers, no source code when checked and my php errors are set to display and I get none.

    Checked file permissions and they are correct.

    I have deleted and retried the entire process and still no luck. Any ideas on what might be going on here? Thanks!

    Mike

    glitsch
    Member

    By the way: Why I can’t edit my posts here?

    Solution for me:

    When I disable the: “Prefix your forum area with the Forum Base slug (Recommended)” from the Settings/Forum and (!) my forum slug has got the same name as the forum on this setting page, than it works for me. Login => correct forum page url for example… kind of strange. :-|

    But how can I make the url a bit nicer?

    glitsch
    Member

    push. no one an idea for solve this problem? Thanks! :-)

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