Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,301 through 16,325 (of 32,503 total)
  • Author
    Search Results
  • purplesea
    Member

    I’m trying to make a topic creation form in a single page all by itself for a specific forum I created.

    So I created a shortcode function using the code below.

    bbp_get_template_part(“bbpress/form”,”topic”);

    and when I put this code into the page, I was able to make the topic creation form all by itself as I wanted.

    But my question is how can I set a specific forum to write?

    I see there’s a dropdown menu I can select the forum I want to write. But in default the dropdown menu selector set to the very first forum.

    I want to have a specific forum selected as a default. Or if I can get rid of the dropdown forum selector and specify which forum I want to write, that’s fine too.

    So I looked at the codes but I couldn’t figure out how to specify a specific forum to write.

    I found the following code from form-topic.php and I guess I have to change the code somehow to specify the default selected forum.

    <?php bbp_dropdown( array( ‘selected’ => bbp_get_form_topic_forum() ) ); ?>

    Does anyone know how to do this?

    Thanks in advance.

    Jennifer M. Dodd
    Moderator

    Those two themes are presented as examples of what can be done, comment-style and bbPress-style. You can copy the template files in /templates to your child WP theme and modify them there if you want to override them.

    You can use filters in your theme’s functions.php or a separate plugin with add_filter.

    The filters that are available to date are:

    $file = apply_filters( 'ucc_btr_template_redirect', $file );

    Used in template_redirect to figure out which template file to use; checks child theme, parent theme, and then defaults to plugin template files. Override if you want to specify single-topic.php or twentyeleven.php.

    $expires = apply_filters( 'ucc_btr_expires', 3600 );

    Sets the cache expires.

    return apply_filters( 'ucc_btr_reply_class', $classes, $class, $reply->ID, $topic->ID );

    Add classes to the reply container.

    return apply_filters( 'ucc_btr_in_reply_to_link', $before . $link . $after, $args, $reply, $topic );

    Creates the “Reply to this” link.

    return apply_filters( 'ucc_btr_cancel_in_reply_to_link', '<a rel="nofollow" id="cancel-in-reply-to-link" href="' . $link . '"' . $style . '>' . $text . '', $link, $text );

    Creates the “Click here to cancel reply” link.

    $include = apply_filters( 'ucc_btr_replies_template', STYLESHEETPATH . $file );

    Override the template to use for comment-styled replies (replies.php).

    #110569
    sagajagds
    Member

    Please test it. It’s new code with a new approach, so I’d like to get some fresh eyes on things right away to avoid a long beta period like 2.0 had.

    #113248
    POS2012
    Participant

    Can you tag a post when NOT replying to a topic or writing a new one?

    Here in bbPress.org I can (as logged in) tag topics I have not participated in. In this way I can make the forum even more cross-indexed etc.

    See the “tags” module to the left here :-)

    Can you do that in your bbPress 2.1 ?

    #110568

    Is it possible to insert a search form in the forum header? I have tried to create it my theme’s searchform.php with these code :

    <form id=”search” name=”searchform” method=”get”>

    <input type=”search” id=”ts” name=”ts” title=”Search Topics” placeholder=”Search Topics” />

    <button type=”submit” value=”search” id=”searchsubmit”>Search</button>

    </form>

    <form id=”search” name=”searchform” method=”get”>

    <input type=”search” id=”rs” name=”rs” title=”Search Replies” placeholder=”Replies” />

    <button type=”submit” value=”search” id=”searchsubmit”>Search</button>

    </form>

    The first one search for topics when in a specific forum (e.g. http://www.yourdomain.com/forums/forum/test)

    The second one search for replies when in a specific topic (e.g. http://www.yourdomain.com/forums/topic/this-is-a-test)

    The problem is, I just want the first one to appear in “/forums/forum/test” and the second one in “/forums/topic/this-is-a-test”. Where should I insert those codes?

    Or do anyone here have a better idea to make a search form? I tried to make a bbpress search-by-categories page but I’m kinda stuck.

    #113246
    POS2012
    Participant

    I found that if I go do wp-admin and then to Forum/Topics – and then click “Edit”, I’ll get access to add tags.

    Can I some how add this to the forum topic’s thread to add tags as I can do here at bbPress.org?

    This is the code there:

    I think this is the form start:

    <form name="post" action="post.php" method="post" id="post">

    Then comes this:

    <div class="tagsdiv" id="topic-tag">
    <div class="jaxtag">
    <div class="nojs-tags hide-if-js">
    <p>Add or remove tags</p>
    <textarea name="tax_input[topic-tag]" rows="3" cols="20" class="the-tags" id="tax-input-topic-tag" >my tag 1,my tag 2</textarea></div>
    <div class="ajaxtag hide-if-no-js">
    <label class="screen-reader-text" for="new-tag-topic-tag">Topic Tags</label>
    <div class="taghint">Add New Tag</div>
    <p><input type="text" id="new-tag-topic-tag" name="newtag[topic-tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
    <input type="button" class="button tagadd" value="Add tag" tabindex="3" /></p>
    </div>
    </div>
    <div class="tagchecklist"></div>
    </div>

    A hidde field that probably is important:

    <input type='hidden' id='post_ID' name='post_ID' value='44' />

    Then the main post button:

    <div id="publishing-action">
    <img src="http://domain.com/wp-admin/images/wpspin_light.gif" class="ajax-loading" id="ajax-loading" alt="" />
    <input name="original_publish" type="hidden" id="original_publish" value="Update" />
    <input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="Update" />
    </div>

    Can I use this for anything?

    #44289
    bjj_pl
    Participant

    Hi,

    I’ve got some difficulties with shorcodes in my bbpress installation for wordpress. I have to use special shortcodes for card symbols (spade, diamond, etc.). Example, I use special format for posts, that changes :spade: into <img src=”dsewfwe” />. It works for posts and comments, but it doesn’t work for topics and replies :(

    Any advice how to automatically replace a string with a different one?

    http://forumpokerowe.com/temat/emotikony-2/

    Please help

    #113241
    Jaja..
    Member

    Probably everything what you asked for can be done, but you need PHP skills and change the template files.

    I don’t know about the online status, you probably need JavaScript for that.

    I have none PHP skills so i have been looking around and testing Vanilla yesterday. From what i’ve been seeing at the start it looks very good. Not yet changed some template files so i can’t tell how easy that will be but i really like the features they have by default.

    And if your community will get going you can always upgrade to the paid version and get the Badges Feature! Thats the coolest thing i’ve ever seen inside a communty.

    http://vanillaforums.com/blog/news/introducing-vanilla-reactions-and-badges/

    It will help your community grow faster for sure.

    Everybody likes the get Awards. ;)

    #44286
    POS2012
    Participant

    Hi, I am going to convert from Kunena to a WP based forum. Simple:press and bbPress are the 2 finalists.

    The thing I absolutely love about bbPress is the loading time. Sooo much qucker than SP on my test server. That is a VPS. Actually Kunena is quicker loading than SP. That is when I have 1000 posts in Kunena, and only 10 in SP.

    But bbPress has almost half the loading time than SP.

    But there is something Iack in bbPress:

    In the “Forums” layout:

    – It currently says: Total topics, total posts and last refreshed for each forum

    – Can I also show “Last post title” by “Author” ?

    – Is it possible to show an excerpt of the last reply?

    In the “Topics” layout:

    – It currently says: Total topics, total posts and last refreshed for each forum

    – Can I also show “Last post title” by “Author” ?

    – Is it possible to show an excerpt of the last reply?

    In the “Topic view” (thread):

    – Can I somehow get the number of posts per user? (same place where the IP adress shows when I am logged in as admin)

    You see : I like to know how many posts a user has made. That tells me of how active they are or not.

    I would also like to see:

    – Member Since: (date)

    – Online status

    PS: I have been testing bbPress 2.0.2, and have now installed 2.1 and find that even better :-)

    #113115

    OK, I just resolved my problem….

    I asked a designer friend what he thought and after I shared with him that…

    In cPanel (with bbPress uninstalled) I’m using 36.2% of my allocated 524288 KB.

    He suggested….

    So, it seems it’s not physical memory allocation that is the problem, perhaps it’s a PHP memory limitation?

    I then emailed my hosting company to ask their thoughts and their reply…

    Thank you for writing in. I have increased the memory_limit for your

    domain name humanrights4tibet.com from 32MB to 64MB. You can check and

    confirm the same using following phpinfo URL:

    This has resolved my problem and I have successfully activated bbPress Plugin – http://humanrights4tibet.com/demo/?post_type=forum&p=201&preview=true

    Hope this helps you guys :)

    #109351
    Jaja..
    Member

    Yeah you can do a lot.

    Use the WP Template Name function.

    https://codex.wordpress.org/Pages#Page_Templates

    Create your own template files and build your own (bbPres) code inside them or leave them very default and use the Short Tags you’re using with ID’s right now.

    If you can select the bbPress templates when adding a new page you can also make your own page templates.

    Just select new page and pick a template from the right-side (template)

    #113228
    POS2012
    Participant

    I have installed the latest 2.0 WP plugin, and there the feed shows a little different.

    I found this code in the bbp-topic-functions.php:

    (line 2994)

    /bbpress/bbp-includes/bbp-topic-functions.php

    <title><?php bloginfo_rss( ‘name’ ); ?> » <?php _e( ‘All Topics’, ‘bbpress’ ); ?></title>

    If you alter that you could probably get the RSS title to say whatever you’d like.

    I also found this:

    /bbpress/bbp-includes/bbp-reply-functions.php

    line 1372

    <title><?php bloginfo_rss(‘name’); echo $title; ?></title>

    I have ony 2 days of experience with bbPress, but this might help you…?

    #40151
    purplesea
    Member

    I’m new to wordpress and bbpress.

    I’m trying to build up my company site with wordpress and I need to have two different forums with different templates.

    So I installed bbpress and I created two different pages in wordpress and in each page I used shortcode “[bbp-single-forum id=$post_id]” to create a single forum page.

    Each single forum page should use different template or theme, but I couldn’t find any way to use different templates for different forums simultaneously.

    Does anyone know if this is possible to do with bbpress?

    Thanks in advance.

    POS2012
    Participant

    I have installed bbPress today and been looking around in the files, and have started to get a grip on the theme and how it works.

    But I am no designer, and I would like to buy a theme that is either exact alike – or close to – what I would like to get.

    I do like the simplicity / setup of the theme used here in bbPress.org/forums – but would like have a little more icons etc.

    Do you know any place where I can buy theme(s) for bbPress when using it as a WP-plugin?

    I mean themes placed here:

    wp-content/plugins/bbpress/bbp-themes/

    Thank you :-)

    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…

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