Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,026 through 24,050 (of 32,431 total)
  • Author
    Search Results
  • #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>)

    #77417
    woopstash
    Member

    I’m having the exact same issue too, although I’m using bbpress 1.0.2. IE6 it’s missing, FF 3.x works.

    From what I’ve gathered, its an issue with #bbAdminMenu negative margin in the bb-adminstyle.css file.

    I can’t seem to figure anything out that fixes it (I can get it to show, but formatting is awful) and I really don’t want to have to dive into the actual markup.

    Edit: Just found a solution/hack

    Due to the IE6 double margin bug, you’ll need to do a little css hacking. In bb-adminstyle.css:

    add: _margin-left: -83px; to ul#bbAdminMenu {…}

    add: _margin-left: -25px; to body.bb-menu-folded ul#bbAdminMenu{…}

    note the ‘_’ before the css. this is for IE6 to read it but no other browser as far as I know.

    #77445
    hpguru
    Member

    Yes.

    1. https://bbpress.org/plugins/topic/114 – bbCode Buttons Toolbar

    2. https://bbpress.org/plugins/topic/93 – bbCode Lite

    #31345
    Josh Leuze
    Member

    I’m working on my first bbPress theme and I am going to have two columns on most pages. I will likely vary the content of this second column depend on which page you are on.

    I’d like to use a separate sidebar just like WordPress so that I can create a few different files that I could load.

    These sidebars need not draw any content from WordPress, I don’t need deep integration or anything. I’m just wondering what would be the best way to go about doing this.

    Theme Playground’s bbPress forum has it’s sidebar added to the footer.php file, which sounds like a good idea, but seems a bit impractical for multiple sidebars.

    I also found this simple sidebar plugin in the forums which adds the “bb_get_sidebar()” function to bbPress. A neat idea, but I hate to frivolously add extra plugins, especially when it is essential for the theme to work properly.

    So what I have done in my theme is to simply use an include like this:

    <?php include ('sidebar.php'); ?>

    This has been working fine for me and I don’t see any reason not to do it like this.

    But does anyone else have a different method that has some advantage? Or is there plans for, or already an official function like “bb_get_sidebar()” that I am unaware of?

    #56568
    anandasama
    Member

    Somehow both of your codes doesnt work.

    #59838
    _ck_
    Participant

    Just to be certain, you understand how titles work right? You mouse over it to see it.

    Maybe try doing a “view source” to make sure it’s there.

    You’ve already proved that the code will output the date, all we’ve done is just move it into the hidden, mouse-over title.

    Show me the view source part just for what it outputs.

Viewing 25 results - 24,026 through 24,050 (of 32,431 total)
Skip to toolbar