Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,151 through 24,175 (of 32,570 total)
  • Author
    Search Results
  • recronin
    Member

    Hello,

    I saw a somewhat similar post on here about integrating bbpress into wordpress pages, but what I want to do is relatively simpler than that.

    Basically all I want to do is to “embed” a given bbpress forum into a static webpage. I’d like to not have the top header and all of the navigational links appear, but I’ll take what I can get for now ; P

    Using the <php include> tag I was able to embed a forum into a webpage, but the problem is that the area I want to embed into is 500px wide. The bbpress forum is inside of that area but also spills out onto the rest of the page. The php include is being placed into a <div> area and I want the width fixed while the height changes based on how much content is inside it.

    My code looks like:

    <?php include(‘http://example.com/forums/forum.php?id=12&#8217;); ?>

    I’m sure the best way to do what I want would be something like:

    <?php include(‘../forums/forum.php?id=12’/main_forum); ?>

    but I’m not too sure.

    Any ideas?

    Thank you!

    Adam Lawton

    #77573
    chrishajer
    Participant

    You will need someone who can help you debug the code then. Something is out of order.

    You can post your whole topic.php at pastebin and post a link here:

    http://pastebin.com/

    Make sure you let the code stay there longer than one day (default is a month which should be OK)

    #77495

    In reply to: All RSS Feeds Broken?

    chrishajer
    Participant

    Sorry, I was substituting pseudo-variable names in there: $site_title is the site title from the admin (“bbPress Support Forums” here) and the $topic_title is the topic title (this topic has “All RSS Feeds Broken?”). So, here, the RSS description is

    bbPress Support Forums » Topic: All RSS Feeds Broken?

    .......................^

    and in a 1.0.1 installation it is

    bbPress Support Forums Topic: All RSS Feeds Broken?

    There is no raquo in the 1.0.1 installation, and the feed validator is complaining about that one character.

    #77494

    In reply to: All RSS Feeds Broken?

    Rohan Kapoor
    Member

    Neither the rss.php nor the theme specific rss2.php have either of those lines of code in them. Do you want to elaborate, please?

    #77572
    vlovers
    Member

    I understood the code and I had tried something similar before putting this thread here live but then the topic page fails to load, i don’t know what I m doing wrong ?

    #77571
    chrishajer
    Participant

    Just add it to the template file. To make it show up after the first post only, you need a counter to see which post you’re looping through. I did something like this:

    <ol id="thread" class="list:post">

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
    <?php bb_post_template(); ?>
    </li>
    <?php if ($adcounter == 0) {
    $adcounter++;
    // <div id="adcode">paste ad code here</div>
    } ?>
    <?php endforeach; ?>

    </ol>

    Basically just add the adcounter check and ad code right after the closing <li> right after the post_template. You’ll have to adjust the particulars for your installation, but this is the basic process.

    #77493

    In reply to: All RSS Feeds Broken?

    chrishajer
    Participant

    I have a 1.0.1 installation that works fine, but this 1.0.2 installation does not seem to work.

    One difference I noticed in the 1.0.1 installation. When you click on a topic feed, the feed <description> looks like this:

    $site_title Topic: $topic_title – the » is missing.

    With the 1.0.2 feed, it looks like this:

    $site_title » Topic: $topic_title

    It’s the » that is creating problems in the feed, at least with Firefox and IE8.

    #77538

    In reply to: User roles

    chrishajer
    Participant

    Start by looking at bb-includes/capabilities.php. It defines all the roles. If you want to modify permissions, there are plugins for that depending on the version of bbPress you are using:

    1.0

    https://bbpress.org/plugins/topic/role-manager/

    0.9

    Maybe a plugin was never written? (can’t find it right now)

    #77490

    In reply to: All RSS Feeds Broken?

    RSS feeds work here and on other sites, so I’m going to guess it’s deep integration or …

    XML Parsing Error: undefined entity
    Location: http://canadianrugby.ca/forums/rss/topic/canadian-players-overseas
    Line Number 10, Column 38: <description>Canadian Rugby Forums &raquo; Topic: Canadian Players Overseas</description>
    ^

    Might that be related to https://bbpress.org/forums/topic/fix-to-rss-xml-parsing-error#post-8864

    #77472
    orizine
    Member

    yep, I’m interresting by buddypress.org forum theme cause it is full tableless, and really fine ;) exactly what i’m looking for…

    I’ve done one but i’m really not a good devellopper, and code is really not perfect…

    http://www.mummujoruxu.com/forum/

    #77466
    hpguru
    Member

    Thank you, ck.

    I update to 1.0.2. I use 13 plugin. 11 works fine, 2 no. I delete 2 and wait your update… Anonymous Posting and plugin, which add name field etc. to quest form. Download again, when you update, know that this may need more time to fix. :)

    #77465
    _ck_
    Participant

    If you edited the kakumei files directly, simply rename that folder, ie.

    kakumei -> my-kakumei

    Then you can copy the original kakumei from the bbPress 0.9 zip.

    #77456
    _ck_
    Participant

    One thing I see that changed in 0.9.0.5 is Sam put exit; after all the redirects.

    In my experience I have found some weird behavior where redirects don’t happen in some cases because the exit will happen before headers are sent for the page. It shouldn’t put it does in some PHP versions/apache configurations. Probably because of buffering.

    So as an experiment, maybe try editing the core file bb-login.php (not the template)

    See this change:

    https://trac.bbpress.org/changeset/1939/branches/0.9/bb-login.php?old=1888&old_path=branches%2F0.9%2Fbb-login.php

    Put a comment in front of that exit;

    bb_safe_redirect( $re );
    // exit;

    and see if that makes it act any differently.

    #77455
    _ck_
    Participant

    It’s possible I broke something in the new bb_safe_redirect however I have tested it working and I have not seen any other complaints (and there have been several registrations on my site).

    Actually I just noticed you said it doesn’t work with 0.9.0.5 which didn’t have my change.

    Have you tried deactivating your plugins temporarily to see if any interfere?

    Let’s look at what changed from 0.9.0.4 to 0.9.0.5

    https://trac.bbpress.org/changeset?old_path=%2Ftags%2F0.9.0.4&old=1898&new_path=%2Ftags%2F0.9.0.5&new=2131

    #77454
    hpguru
    Member

    Please help! :)

    #77433
    aprendedor
    Member

    Hello chrishajer,

    I am running WordPress 2.8.2 and BBPress 1.0. I have put it into a file called functions.php in the kakumei dir. because I am using the kakumei theme.

    I noticed that the new functions file is address to wordpress mu. and I am not running wordpres mu. what should I do now. what code should I put in the header to call that functions to deliver the header. I know also that I neeed to change “wordpress_mu_primary_blog_id” to some that call the regular wordpress but what itis?

    THANK U for sparing some time and help with me!

    #77432
    chrishajer
    Participant

    If you are using 1.0, create a file called functions.php in your current theme directory, and put all that code into it.

    If you’re using less than 1.0, you can create a plugin from that code. Just add a plugin header to the top of all that, like this:

    <?php
    /*
    Plugin Name: WordPress pages for bbPress
    */
    ?>

    And put it into file called something like wordpress-pages.php and drop that into folder called my-plugins at the same level as bb-plugins. If the folder is not there, you can create it. After it’s in the folder, log into the admin, you should see it there, then activate it. And report back how it worked for you.

    Thanks

    #70038
    chrishajer
    Participant

    That means you have the path to the file wrong and bb-config.php can’t find it. Try using the full /home/jwrbloom/public_html/wpm/wp-load.php path, from the root, not a relative path. Starting it with /wpm like that makes it SEEM like a full path.

    Or maybe you meant ../../wpm/wp-load.php for the relative path (up two directories)?

    anandasama
    Member

    nice to be able to help. Got any other question (like thread maker profile link) then I know the code for that too.

    You should flag this topic as resolved.

    #77385
    _ck_
    Participant

    Doing it through bb_get_template simply fires an extra filter – but nothing else is aware of sidebars in bbPress yet so it’s pointless. Plus I wasn’t aware you could use require on a function. Then bb_get_template uses another include/require so it’s massive overkill (or just wrong in the first place).

    chrishajer
    Participant

    How about the “Topics per page” plugin?

    https://bbpress.org/plugins/topic/front-page-topics/

    It lets you set the number of topics to be returned for many bbPress pages/views.

    #77384
    Josh Leuze
    Member

    Thanks for the info _ck_, glad to hear that I’m not way off track.

    Yeah, I have been loading the sidebar after the content, but just above the footer include, rather than in the footer, so that I can use different sidebars easily.

    I wouldn’t want to take credit for Ryan Imel’s work! Only linked to Theme Playground as an example, but you’re right, he did an awesome job on integrating the forums into the rest of his site.

    Now that I scroll down and read the comments on his post a little closer, I see that Justin Tadlock mentioned another way to add a sidebar, but it looks to have the same end result as a regular include:

    require_once( bb_get_template( 'sidebar.php' ) );

    I’m not sure if I can match Ryan’s quality design, but I’m going to try to do a few fresh looking bbPress themes to share with the community.

    #77449
    chrishajer
    Participant

    666 is also rgb(102, 102, 102); – it bites me every time I look for it. Find that 102, 102, 102 in style.css and you will see where to change it.

    There are 10 or 12 places where the CSS colors are in RGB notation like that. I wish it was either one way or the other (preferably 6 digit hex notation. That gets me sometimes too, looking for 666666 when it was coded as 666.)

    Dreamcolor
    Participant

    bbPress 0.9.0.6 Simplified Chinese Translation.

    You can download it with the URL below.

    http://wpcn.googlecode.com/files/bbPress.0.9.0.6.Simp.Chinese.pack.only.v1-wpcng.zip

    bbPress 1.0.2 Simplified Chinese Translation.

    You can download it with the URL below.

    http://wpcn.googlecode.com/files/bbPress.1.0.2.Simp.Chinese.pack.only.v1-wpcng.zip

    There maybe still have some translation bugs. So please let me know and I will fix it.

    You may use the bbPress Admin Fonts Beautifier plugin too…

    http://bbpress.org/forums/topic/bbpress-admin-fonts-beautifier

    #77422
    woopstash
    Member

    They forgot to put wrap it all in a div like they did all the other pages.

    I think this works:

    In bb-adminthemes.php:

    add: <div class="wrap"> on line 119 (above Manage Themes header)

    add: </div> on line 158 (after </table> and </div>)

Viewing 25 results - 24,151 through 24,175 (of 32,570 total)
Skip to toolbar