Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,301 through 16,325 (of 32,519 total)
  • Author
    Search Results
  • #113274
    Dykarna
    Member

    Thanks for your help.

    I hope someone else can find out what to do because I don’t know s**t :-/

    #113273
    SK
    Participant

    not a good idea to harcode filenames in the code. I meant rename the files that you have uploaded.

    #113272
    Dykarna
    Member

    Can i change that in the code or…?

    POS2012
    Participant

    There are a few things I really always look at when participating in a forum, and that is “role”, “total number of posts” and “registry date” of the ones who answers the topic.

    By looking at those few informations I quickly make up my mind as to how much weight I should put on the persons opinions.

    If the person has 1256 posts and was registered 09.09.2008, then I often would add more weight to that person’s opinions than a person with just 5 posts and registered 04.20.2012…

    So, is there a way to add some php code tp for instance

    wp-content/plugins/bbpress/bbp-theme-compat/bbpress/loop-single-reply.php

    to get:

    – User’s total number of posts

    – User’s registry date

    I was able to get the user’s role by following this:

    http://bbpress.org/forums/topic/displaying-user-role-beside-their-replies

    Thank you :-)

    #113271
    SK
    Participant

    Another thing…I looked at the code https://bbpress.svn.wordpress.org/branches/plugin/bbpress.php and it seems to seek bbpress-sv.mo not bbpress-plugin-sv.mo so you might try renaming the file again (sorry!)

    #113099
    POS2012
    Participant

    Thank you for posting this :-)

    Added to my 2.1

    #113268
    SK
    Participant

    I don’t think you missed anything in config as your WP is in Swedish and this is also reflected in your opening HTML tag

    <html lang="sv-SE" dir="ltr">

    For some reason bbPress is not picking up the correct language files and falling back on English.

    Typically it is due to missing, incorrectly named or incorrectly placed language file.

    But I can see your .po at http://vaxmora.se/wp-content/languages/bbpress/bbpress-plugin-sv.po

    #113267
    Dykarna
    Member

    OK I did.

    No change *???* still ENG and I did as you told me twice :-/

    New DL and I put it in

    /vaxmora.se/wp-content/languages/bbpress/

    bbpress-plugin-sv.mo AND bbpress-plugin-sv.po

    Do I miss anything in config?

    #113262
    Dykarna
    Member

    Strange!! No change here :-(

    Whats missing for me?

    SK
    Participant

    Could WP Super Cache tags do the job?

    https://wordpress.org/extend/plugins/wp-super-cache/faq/

    How do I make certain parts of the page stay dynamic?

    There are 2 ways of doing this. You can use Javascript to draw the part of the page you want to keep dynamic. That’s what Google Adsense and many widgets from external sites do. Or you can use a WP Super Cache tag to do the job but you can’t use mod_rewrite mode caching. You have to switch to PHP or legacy caching.

    There are a few ways to do this, you can have functions that stay dynamic or you can include other files on every page load. To execute PHP code on every page load you can use either the “dynamic-cached-content”, “mfunc”, or “mclude” tags. The “dynamic-cached-content” tag is easier to use but the other tags can still be used. Make sure you duplicate the PHP code when using these tags. The first code is executed when the page is cached, while the second chunk of code is executed when the cached page is served to the next visitor. To execute WordPress functions you must define $wp_super_cache_late_init in your config file.

    dynamic-cached-content example

    This code will include the file adverts.php and will execute the functions “print_sidebar_ad()” and “do_more_stuff()”. Make sure there’s no space before or after the PHP tags.

    <!--dynamic-cached-content--><?php
    include_once( ABSPATH . '/scripts/adverts.php' );
    print_sidebar_ad();
    do_more_stuff();
    ?><!--
    include_once( ABSPATH . '/scripts/adverts.php' );
    print_sidebar_ad();
    do_more_stuff();
    --><!--/dynamic-cached-content-->

    mfunc example

    To execute the function “function_name()”:

    <!--mfunc function_name( 'parameter', 'another_parameter' ) -->
    <?php function_name( 'parameter', 'another_parameter' ) ?>
    <!--/mfunc-->

    mclude example

    To include another file:

    <!--mclude file.php-->
    <?php include_once( ABSPATH . 'file.php' ); ?>
    <!--/mclude-->

    That will include file.php under the ABSPATH directory, which is the same as where your wp-config.php file is located.

    Example:

    <!--mfunc date( 'Y-m-d H:i:s' ) -->
    <?php date( 'Y-m-d H:i:s' ) ?>
    <!--/mfunc-->

    #44318
    Dykarna
    Member

    I think I’m looking and googling to find out how I’m doing step by step to change the language on my bbPress side but I find nothing. Maybe I’m bad at searching :-)

    Someone who can “step by step” to tell me how and where I go to do it

    Big thanks

    #113233
    Torsten Landsiedel
    Participant

    Yes, I know. I wrote this is in my first post:

    I see this on http://de.forums.wordpress.com and I know this is not the latest version running there.

    Thank you for hoping with me … ;-)

    #113232
    POS2012
    Participant

    No problem :-)

    But again, YOUR question was regarding the http://de.forums.wordpress.com

    I am a fresh user of bbPress, but as far as I can see that forum us the “old” stand alone version of the bbPress. At least the code says so in the RSS generator:

    <!-- generator="bbPress/1.1-alpha-2539" -->`

    In that case I am not the one that can help. I don’t even know who is leading the bbPress project :-)

    Hope you get the help you need from others here!

    #44312
    bjj_pl
    Participant

    How to replace one string of text with another one?

    Example, change ” :heart: => spade ” in each and every topic and reply.

    Garth Koyle
    Member

    Where am I supposed to add this??

    add_filter( 'bbp_show_lead_topic', '__return_true' );

    #113230
    POS2012
    Participant

    Ok, I have no idea about the bbPress.org and wp.com relationshop.

    However I believe that is the correct place to alter the RSS feed :-)

    Here is the code in syntax:

    // Display the feed
    header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
    header( 'Status: 200 OK' );
    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>

    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"

    <?php do_action( 'bbp_feed' ); ?>
    >

    <channel>

    <title><?php bloginfo_rss( 'name' ); ?> » <?php _e( 'All Topics', 'bbpress' ); ?></title>
    <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    <link><?php self_link(); ?></link>
    <description><?php //?></description>
    <pubDate><?php echo mysql2date( 'D, d M Y H:i:s O', '', false ); ?></pubDate>
    <generator>https://bbpress.org/?v=<?php bbp_version(); ?></generator>
    <language><?php echo get_option( 'rss_language' ); ?></language>

    <?php do_action( 'bbp_feed_head' ); ?>

    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 :-)

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