Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,551 through 17,575 (of 32,499 total)
  • Author
    Search Results
  • lmburford
    Member

    I registered here just to help you, because i was having this same issue.

    I was frustrated as well… BUT the solution is so simple. Too bad theres no documention to tell everyone.

    Whatever u changed the BBPress “Forums base” name to, make a wordpress page with that permalink. And then put in the short code [bbp-forum-index] (or any BBPress shortcode u like).

    If you changed the BBPress Forums base name to “theboards”, then make a new wordpress page with the same permalink “theboards”. So your forum will be located at mywebsite.com/theboards, regardless of if you create new forums or topics, theres nothing there. Create a page, pop in that shortcode or any of the ones at the link below and ZAP BOOM POW, go to mywebsite.com/theboards and its there! lol

    BBPress Shortcodes- https://bbpress.org/forums/topic/bbpress-20-shortcodes.

    Hope that helps.

    #109012

    In reply to: Full Width forum

    amirsaam
    Member

    You must use everywhere %

    example: #content {width: 80%} #sidebar {width; 20%}

    This was useful! thanks.

    I simple used the insert code (which I was looking for but didn’t see and assumed not available) within my main template instead of using teh bbPress subtempate.

    [bbp-forum-index]

    #109154
    Anointed
    Participant

    :)

    Yeah I have been finding tons of hidden gems in the plugin.

    I suck at documentation. I’m hoping that someone will come along and help out with that part someday. JJ is crazy busy and I find it hard to spend more than an hr a day here. There are some great support people here, and I believe that now the plugin is released that more people will jump in and help out.

    3sixty
    Member

    Has anyone done this successfully? I feel like an idiot. I have 1) installed WP, 2) added and activated BP, and then 3) installed bbPress via BP “Sitewide Forums” option. Then I get a whole series of conflicts – first the forums won’t display in the BP theme, then I adjust the slug names and the Forums tab disappears, then I get the Forums page but there doesn’t appear to be anything there. I can’t crack the secret code. I feel like I’m playing Myst.

    #107710
    Andrew Tegenkamp
    Participant

    A wonderful plugin that works great so far in my testing :) Thanks Milan!

    #40044
    Jaja..
    Member

    I think i have found a Glitch,

    When i log-in and log-out the redirecting script isn’t working correctly at WP MultiSite installs.

    It copy-/paste the root directory like this.

    (this is after i logged in from the home-page)

    http://localhost.sites/example.nl/members/example.nl/members/

    (this is my home-page)

    http://localhost.sites/example.nl/members/

    I think it has something to do with this code: bbp_logged_in_redirect();

    Nobody else got this problem on WP Multisite installs?

    #109119

    In reply to: Remove Headers?

    Jaja..
    Member

    You have to follow the loop and delete them from multiple files.

    Delete this code: <?php bbp_breadcrumb(); ?> (from all files)

    If you don’t understand how it works you can also hide this menu by CSS.

    Add the following code at the bottom of the /css/bbpress.css stylesheet.

    .bbp-breadcrumb { display: none!important; }

    It will hide this menu on every page.

    #109197
    Ed
    Participant

    thanks for the reply. I’ve been messing with the one i’ve found here:

    ForumConverter

    but I’ve not been able to get it working yet. it imports most of the data, but some fields are broken.

    I hope either the owner of that, or someone else will come out with a full release soon. BBv2 looks great – but without data to import, I can’t play :)

    #108915

    In reply to: jDate and Jalali dates

    amirsaam
    Member

    :-/ No One?

    #99217

    In reply to: WPMimic V.1

    smiga
    Participant

    We need to make some beer donation to Vietson and ask upgrade to 2.0 :)

    #104317

    In reply to: WPMimic V.1

    smiga
    Participant

    We need to make some beer donation to Vietson and ask upgrade to 2.0 :)

    #109078
    Jaja..
    Member

    Maybe because I’m at a WP MultiSite ?

    My homepage (first website) is a slimmed version of this theme.

    http://store.informationarchitects.jp/product/ia³-template

    I only use the Media Queries (menu) from that template but but it has its own functions.php its not Twenty Ten or something.

    Maybe some Avatar calling code is missing that Twenty Ten has in the functions.php?

    And my forum (second website) + Multi site, is used as a Child Theme to the first website.

    If i create a page in my second website i can still use the template files from the first website like a contact page (template) so that would make me think that the Child Theme setup is down correctly.

    ===

    strange thing is that everything works with this code.

    <?php bbp_topic_author_link( array( 'sep' => '
    ', 'size' => '120' ) ); ?>

    But not with this one.

    <?php bbp_reply_author_avatar(array('size' => '80')); ?>

    I don’t want the author link i only want the Avatar and create my author link at some other position.

    #109153
    Jaja..
    Member

    WOW!

    This is a stunning feature!

    I like all those little sexy features, it can make your forum stand out and become a little eye-catcher.

    Thank you so much for this.

    Btw: someone should make a blog (category) about all those kinda features, i think lots of people would love to do this.


    @JJJ

    :) Yeah i see it now you said so, <?php bbp_reply_postion(); ?> does the numbering

    #109152

    I am pretty sure there is a function for getting the reply position. If not, one can be created using code from the bbp_get_reply_url() function as an example.

    #109114

    In reply to: Remove Headers?

    Anointed
    Participant

    Those functions are spread throughout a lot of the bbpress files. There is no single place that you remove them.

    to help out a little, the breadcrumbs are output on the theme via the function.

    <?php bbp_breadcrumb(); ?>

    If you remove that function from all the template files then the breadcrumbs are gone. You can do that for admin notices as well as forum notices.

    #109128

    In reply to: Seperate Forums

    danlee
    Participant

    I would like to get my theme to look like this:

    http://imageshack.us/photo/my-images/836/unledir.jpg/

    Instead of looking like this:

    http://imageshack.us/photo/my-images/822/unledwc.jpg/

    Hard to explain, but hope the picture does justice :)

    #108727
    Anointed
    Participant

    Well I gave it a shot using the following code, but for some reason the only user that shows up is my admin account. I’m guessing this has nothing to do with bbpress, but more wp. I think I am missing something somewhere, and will try to find a solution sometime.

    *code I was using to add author box to topics

    add_action( 'init', 'my_add_author_to_topics' );
    function my_add_author_to_topics() {
    add_post_type_support( 'topic', 'author' );
    }

    #109151
    Anointed
    Participant

    Just taking a shot at this:

    I am guessing that you are talking about the single-topic page which displays the first topic followed by all the replies.

    If this is the case:

    Add the following line to your functions.php file

    add_filter( 'bbp_show_lead_topic', '__return_true' );

    What this is going to do is separate out the lead topic from all the replies. It creates a great separation where you can then style the first topic completely different than the replies. Pretty cool actually.

    *Make sure to use the default theme to see this in action. You don’t have any of the needed logic in your code above, so your code wont output the separation. You can find the needed logic in the template files.

    This is a lot more elegant than counters and it’s built in.

    Hope it helps. (there are tons of cool hidden ‘secrets’ like this within the code, thnx JJ!)

    #109138
    Anointed
    Participant

    I would probably start by finding a good heat map plugin which creates a widget for output. I would then modify the plugin to use topic_tags instead of post_tags. Then it would be a matter of placing the widget into a sidebar and your good to go.

    *I am not currently aware of a heat map for bbpress, but modifying one for blog post topics should be just a matter of changing a few lines of code.

    #40072
    bobbyh44
    Member

    == Installation ==

    1. Place the ‘bbpress’ folder in your ‘/wp-content/plugins/’ directory.

    2. Activate bbPress.

    3. Visit ‘Settings > Forums’ and adjust your configuration.

    4. Create some forums.

    5. View your site.

    6. Adjust the CSS of your theme as needed, to make everything pretty.

    You have to do plenty more than these steps if you want to install and have some forums up and running on your blog.

    I think it’s a bit of a cheat to suggest this is so easy to complete. Absolutely hellish in my experience. 2 days in and still nothing.

    You make no mention of setting up pages with the shortcode tags, no mention about issues with sign up conflicts and documentation is non existent if you want to add it to wordpress.

    Is this another case of tech people making a great system and then just forgetting that people have to use it?

    Where are the wordpress installation instructions?

    Please someone just tell me if any exist as I’ll go for another system if not.

    Bob

    #108267

    sorry about the garbled code above. I tried to edit it so that it shows up clean, but bbpress won’t let me.


    Investigating further, this seems to be a known memory leak in PHP:

    http://paul-m-jones.com/archives/262

    #108266

    I see the culprit is in the importer:

    <br />
    $topics_query = new BB_Query( 'topic', array(<br />
    'forum_id' => $forum->forum_id,<br />
    'per_page' => -1,<br />
    'topic_status' => 'all',<br />
    'order_by' => 'topic_start_time',<br />
    'order' => 'ASC'<br />
    ) );<br />

    Instead, it should be something like:

    <br />
    $page=0;<br />
    $per_page=50;<br />
    $topics_query = new BB_Query( 'topic', array(<br />
    'forum_id' => $forum->forum_id,<br />
    'per_page' => $per_page,<br />
    'page' => $page,<br />
    'topic_status' => 'all',<br />
    'order_by' => 'topic_start_time',<br />
    'order' => 'ASC'<br />
    ) );<br />

    Strange thing is that even when you step through the pages it still doesn’t free the memory. You can test it with:

    while (isset($topics_query->results)) {

    echo "<p>Mem usage=" . memory_get_usage(true)/1024/1024 . "</p>";

    //echo "

    "; print_r($topics_query->query); echo "

    ";

    //echo "<p>" . $topics_query->results[0] . "</p>";

    $page++;

    $topics_query->query = $page;

    //thought following might help, but doesn't

    //unset($topics_query->results);

    $topics_query->query();

    }

    exit;

    #109090
    Erhnam
    Member

    I found the solution for this problem. The root cause is the qtranslate plugin which only displays topics marked with <!–:en–> and <!–:–>.

    Changing the post_content for all topics fixed my problem. Here’s the SQL code I used to fix this.

    UPDATE wp_posts

    SET post_content = CONCAT(‘<!–:en–>’,post_content,'<!–:–><!–:nl–>’,post_content,'<!–:–>’)

    WHERE post_type = “topic”

    AND post_content NOT LIKE “%:en%”

    Jaja..
    Member

    This is my forum layout.

    <div id="wrapper">

    <header> header stuff </header>

    <div id=”content”>

    <aside> Topic of Forum info (like a sidebar) </aside>

    <section>

    <header><h1>Topic title</h1></header>

    <hgroup class=”reply-ID” id=”-1″> reply author stuff </hgroup>

    <article class=”reply-ID” id=”-1″> reply content </article>

    <hgroup class=”reply-ID” id=”-2″> reply author stuff </hgroup>

    <article class=”reply-ID” id=”-2″> reply content </article>

    <–! repeats of the above code –>

    </section>

    </div><!– end #content –>

    <footer> footer stuff </footer>

    </div><!– end #wrapper –>

    It would be very helpful to have an (extra) counter on my first <hgroup> and <article> pair of tags. This way i could only style the starting topic content and make it stand out, because the first author always-/most of the time has a question and i would like to make it stand out more from the other replies.

    I don’t want a topic or forum ID because those are too unique.

    I need something that starts counting by Zero or One on every new topic like a Reply counter 1, 2, 3, 4, 5, I could add them to an ID or Class (shown above) to make it unique.

    Something like a WP-comments counter.

Viewing 25 results - 17,551 through 17,575 (of 32,499 total)
Skip to toolbar