Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,376 through 17,400 (of 32,506 total)
  • Author
    Search Results
  • #109767

    Use the WordPress one. It’s just posts and taxonomies. :)

    #40252
    OAEErra
    Member

    Hi, i’m using BBPress 2.0 with BuddyPress 1.5 which were installed seperately and aren’t integrated through BP.

    My BBPress forum is great, however after moving from SMF many members have asked for a “New Topic” button and a “Reply” button in the forums. They can reply or start new topics with the form at the bottom of the page, but for usability i’d like to make their transition a bit easier.

    Is it possible to add a reply button to each post – one which quotes the post made?

    Also, a reply button at the top/bottom of the thread which takes the user to a page with the posting form would be great.

    Also is it possible to have a “New topic” button on the forum index?

    Lastly, what files would I edit to make these changes?

    Thanks in advance :)

    #108322

    In reply to: bbPress Language Files

    bardo
    Member

    @Vayu: happy it worked :)

    @Moddey: your first try should have worked (look at Vayu’s solution). It’s normal that nothing changes if you edit the pot file: pot files are like “translation sources”, po files are the translated version in a human readable form, mo files are their machine-readable form. So tou should need only bbpress-da_DK.mo in your /wp-content/languages/bbpress/ directory.

    Are you sure the file permissions are ok and the web server can read them?

    #109774

    In reply to: "Page not found" error

    travis.hill
    Participant

    Well at this point in the stack I’m calling a theme or plugin issue.

    I’d start with plugins. Deactivate and see if anything changes.

    If yes, find culprit plugin and remove/find replacement. If no, move to theme related issue.

    So the contents of your child theme folder somewhat follows:

    /bbpress/
    /css/
    /js/
    archive-*.php
    **functions.php
    page-*.php
    single-*.php
    **style.css

    And these files all represent files from /bbpress/bbp-themes/bbp-twentyten/{files}?

    If so, you’ve created a PAGE, with either the bbpress shortcode or page template?

    Have you tried the bbpress packaged theme?

    I don’t personally know of any directly conflicting plugins with bbpress, but that doesn’t mean that they don’t exist. It still seem’s URLish to me. .htaccess maybe.

    Either way, the last thing you’ll want to do, i’m guessing, is a fresh install. We’ll try to get you there before that’s the (possible) solution.

    #108321

    In reply to: bbPress Language Files

    Vayu Robins
    Member

    Hi Bardo, thanks for helping.

    This worked for me finally. :-)

    So I have these 2 files here like this:

    /wp-content/languages/bbpress/bbpress-da_DK.mo

    /wp-content/languages/bbpress/bbpress-da_DK.po

    Nothing else.

    Vayu

    #106309
    Anointed
    Participant

    @eraleks

    Let’s assume that you created a new sidebar called ‘bbpress’ via your functions file. This means that when you go to the sidebar manager, that you can see one called bbpress.

    Next, take the sidebar.php file from your theme and make a copy. Name it bbpress-sidebar.php.

    Here is an example of my bbpress-sidebar.php code.

    <div id="sidebar" role="complementary">

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('bbpress') ) : ?>
    <?php endif; ?>

    </div>

    Finally there are a number of bbpress templates that call the sidebar. Replace those calls with:

    <?php get_sidebar( 'bbpress' ); ?>

    Wrapping up:

    1. You registered a new sidebar called ‘bbpress’

    2. You created a new template file called bbpress-sidebar.php

    3. You edited the bbpress-sidebar.php file to ask for the bbPress sidebar.

    4. You replaced all the calls to the sidebar with the new call to the bbpress sidebar.

    That’s about it. If it is still causing you problems then I suggest reading a few resources.

    https://codex.wordpress.org/Function_Reference/register_sidebar

    http://justintadlock.com/archives/2010/11/08/sidebars-in-wordpress

    *Author avatars.

    JJ already thought about this and added in a filter where you can choose to display just the username and not the avatar.

    <?php bbp_topic_author_link( array( 'type' => 'name' ) ); ?>

    You will see a lot of functions like the one above throughout the bbPress templates. Anywhere you find an avatar that you want to remove and just show the username, simply add the ‘type’ => ‘name’ and your good to go.

    **There may be a global way of doing this, but I did not look as I didn’t need it myself.

    #108320

    In reply to: bbPress Language Files

    ModdeyDo
    Member

    Thanks Bardo for the info, but still no joy here :-(

    I have in

    /wp-content/languages/bbpress both bbpress-da_DK.mo and bbpress-da_DK.po.

    I also put them in /wp-content/plugins/bbpress/bbp-languages and I removed the bbpress.pot file from that dir just to see what would happen.

    I even edited some Danish into bbpress.pot just to see would that help. But alas still no local language :-(

    Do you mean that $mofile should be actually set to bbpress-dk_dk.mo ? or should it just be bbpress-%s.mo.

    Moddey

    #109771

    In reply to: "Page not found" error

    nuobodu
    Member

    I’m using numeric permalink structure.

    Well, i installed my test environment into that subdirectory. But the links see to be created nicely and logically:

    to the forum

    http://www.8ball.lu/wordpress/forums/forum/second-new-test-forum

    to the topic

    http://www.8ball.lu/wordpress/forums/topic/testing-topic-2

    even if i add a trailing slash at the end of a link, it doesnt work anyway.

    I am completely lost here. I have read every post in this forum about the similar problems, but never saw an insuring answer :(

    #108210
    David Decker
    Participant

    As I really liked the general approach of this plugin I have some errors/requests to report:

    With the plugin installed I couldn’t save the the bbPress settings anymore – gave php errors…

    Also, the plugin for me would only make sense if it’s localized properly – as of now all texts/strings are hardcoded. So for my sites in Germany the plugin is unuseable as of now but I would like to use it once it’s translateable.

    So thanx for taking your time to develop this and hopefully it will be translateable one day :-)

    Thanx, Dave from Germany :)

    #109759
    David Decker
    Participant

    You can use a new plugin for that to re-store the behavior with different user profile pages for BuddyPress and bbPress:

    https://wordpress.org/extend/plugins/disable-bbpress-profile-override/

    Hope this works for you, Dave :)

    #109770

    In reply to: "Page not found" error

    travis.hill
    Participant

    This is just a stab in the dark, but it looks like there is a URL problem.

    The URL to your forums topics are missing a trailing slash /.

    What permalink structure are you using? It may be because you’ve installed into a subdirectory also (8ball.lu/wordpress/).

    Any further detail may help.

    #109171
    nuobodu
    Member

    Lucky :)

    And for me it didnt fix itself. I am not using Buddypress, but i still get the same error 404, when trying to open any forum or topic. :(

    http://www.8ball.lu/wordpress/forums

    #108319

    In reply to: bbPress Language Files

    bardo
    Member

    Also looking for the solution, I resorted to reading the code and found it. Quick version: bbPress inherits WordPress’ locale string. Suppose it’s ‘it_IT’. Then you will have to put your language file in wp-content/languages/bbpress/bbpress-it_IT.mo ;-)

    In-depth version: in bbpress.php you can find the load_textdomain() function (line 524 ATM). There you can see it gets the WordPress locale, then uses it to compose the language filename in the $mofile variable. $mofile in our example case is set to ‘bbpress-it_IT.mo’, and this filename is looked for in the ‘wp-content/plugins/bbpress/bbp-languages’ directory first (which, as index.php says, should not be used), and then in the ‘wp-content/languages/bbpress/’ directory. Just put it there named like we found before and you’re done.

    #108318

    In reply to: bbPress Language Files

    ModdeyDo
    Member

    Hi Vayu, Thanks I found it, I did not see the “export” tab the first time I was there :-)

    Takker

    Moddey

    #107895
    mvaginger
    Participant

    Hello,

    I know why, I dont know if its a feature or a bug , but.. :)

    you only get notification from a registered users. So when user is registered and opens the forum and replies you will get notification, but if the user comes to site and uses only simple form without registration and even if I tick “Notify me of follow-up replies via email” I will not get any notification. I think its not right.

    I might be wrong but its my testing and observation. correct me if I am wrong.

    thanx

    #108314

    In reply to: bbPress Language Files

    @highexistnence – What version of bbPress are you using? If using 2.0, put your WordPress translation files in:

    /wp-content/languages/

    your bbPress translation files in:

    /wp-content/languages/bbpress/

    and then:

    define('WPLANG', 'es_ES');

    in your wp-config.php, replacing es_ES with your language code.

    If you’re language is English, then you don’t need to do anything.

    #109754

    I just solved it 2 minutes ago :) On my new site http://justaskpatrick.com I turned on registration and made the default role forum participant. On this new site I was also able to get the shortcodes working. I wasn’t able to on my main site http://allaboutfocus.com .

    #108313

    In reply to: bbPress Language Files

    amirsaam
    Member

    LOL! Yep @JJJ is right! On line 538 of bbPress.php we have a language directory for bbPress! It exist like /wp-content/languages/bbpress/ and I think the textdomain (if need but I don’t think so) is bbpress

    That was what I got from that file :)

    janoochen
    Member

    Sure, this is an example of loop-topic.php:

    <?php while ( bbp_topics() ) : bbp_the_topic(); ?>

    (etc...)

    <div class="vote-count<?php rating_class($thumbs_number); ?>">
    <h4>
    <?php wp_gdsr_render_article_thumbs(); ?></h4><span><?php votes_text($thumbs_number); ?></span>
    </div><?php $replies_number = bbp_get_topic_reply_count(); ?>

    <div class="reply-count<?php reply_class($replies_number); ?>">
    <h4>
    <?php bbp_topic_reply_count(); ?></h4><span><?php reply_text($replies_number); ?></span>
    </div>

    <div class="freshness-count">
    <h4>
    <?php bbp_topic_freshness_link(); ?></h4><span><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>
    </div>

    (etc…)

    Basically, you just have to place the code that generates the rating inside the bbpress loop. You can place it in files like loop-topic.php, loop-replies.php, etc.

    Almost all voting and rating plugins work this way (I’m using gd star rating).

    The next step is to be able to sort the topics and replies according to their rating. But I’ve already spent one year trying that with no results.

    #40237

    I seem to be having a problem using shortcodes – see this post: http://bbpress.org/forums/topic/funky-action-with-pages-with-shortcodes

    Since I cannot use shortcodes, and my forums page http://allaboutfocus.com/forums does not have a registration link anyplace, how do people register to participate in my forums? Every forum page says you must be logged in but they give you no way to login or register.

    Thanks,

    Patrick

    #109710

    Does anybody have any ideas? Is this specific to genesis? Thanks.

    Stephen Edgar
    Keymaster

    Not exactly what I planned on doing today whilst sitting in the back of a car! Though whilst browsing these forums I bumbed into this thread and have kicked it off on my iPad with a bbPress test site importing from 30,000 post PHPBB site, been running now for around 30 minutes.

    I’ll add some follow ups on how the data Looks in bbPress when I have the right tools :)

    EDIT: ~90 minutes after above

    After ~60 minutes I have stopped it and had a look at the WordPress tables with myphpadmin and I cannot see any new posts in ‘wp_posts’ or ‘wp_users’

    Is the ‘PhpBB_Not_Complete’ import tool active? i.e. Should I see more than nothing, nil, null as a result of trying this?

    Cheers,

    Stephen

    taesheren
    Member

    What I want people to see:

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress2.png

    What people really see:

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress3.png

    Only stickys show up in the forum. Also: notice how it says the forum has 2 topics, but viewing only 1.

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress5.png

    http://pride.mmbr.no/wp-content/uploads/2011/10/bbpress4.png

    Here is the actual pages so you can see for yourselves:

    http://pride.mmbr.no/forum/delforum/minecraft » the forum

    http://pride.mmbr.no/forum/emne/1-9-og-apaxia-nova » the topic

    I installed bbPress via the WordPress Plugins tab and I have copied the template files to my custom theme and customized them (basicly just removed the sidebar) and added the add_theme_support( 'bbpress' ); line in functions.php.

    It’s like the topics are set to hidden.

    I have checked and double checked that the publish status is set to published. What do?

    Thank you for any help.

    #108209
    Erlend
    Participant

    Bugs/inconsistencies:

    – “Assign topic to” appears on all forums. That’s okay I guess, but should be an option, not mandatory.

    – If a “Resolved” or “Urgent” topic is moved to a non-support forum, the prefix will stay, but there’s no way of removing it as the extra controls don’t exist in this forum. When moving support topics to non-support forums, I would suggest stripping away all extra features entirely.

    I seem to remember the first time I did it the process was clean, but in all my last attempts I’ve received this error when moving a topic out of the troubleshooting board:

    ( ! ) Fatal error: Call to a member function get() on a non-object in C:wampwwwwordpress-singlewp-includesquery.php on line 27

    Call Stack

    # Time Memory Function Location

    1 0.0019 676480 {main}( ) ..index.php:0

    2 0.0030 681376 require( ‘C:wampwwwwordpress-singlewp-blog-header.php’ ) ..index.php:17

    3 0.0043 702424 require_once( ‘C:wampwwwwordpress-singlewp-load.php’ ) ..wp-blog-header.php:12

    4 0.0059 720680 require_once( ‘C:wampwwwwordpress-singlewp-config.php’ ) ..wp-load.php:29

    5 0.0083 848040 require_once( ‘C:wampwwwwordpress-singlewp-settings.php’ ) ..wp-config.php:90

    6 0.2526 29401072 do_action( ) ..wp-settings.php:206

    7 0.2567 30235488 call_user_func_array ( ) ..plugin.php:405

    8 0.2567 30235520 bbps_setup( ) ..plugin.php:0

    9 0.2571 30236240 bbps_includes( ) ..bbps-premium-support.php:43

    10 0.2593 30455272 include_once( ‘C:wampwwwwordpress-singlewp-contentpluginsbbpress-vip-support-pluginincludesbbps-support-functions.php’ ) ..bbps-premium-support.php:94

    11 0.2594 30460320 bbps_move_topic( ) ..bbps-support-functions.php:405

    12 0.3092 30240600 bbp_update_forum( ) ..bbps-support-functions.php:155

    13 0.3092 30243984 bbp_update_forum_last_topic_id( ) ..bbp-forum-functions.php:778

    14 0.3171 30283584 bbp_is_topic_published( ) ..bbp-forum-functions.php:426

    15 0.3171 30283584 bbp_get_topic_id( ) ..bbp-topic-template.php:963

    16 0.3171 30283584 bbp_is_single_topic( ) ..bbp-topic-template.php:361

    17 0.3171 30283872 bbp_is_query_name( ) ..bbp-common-template.php:169

    18 0.3172 30283872 bbp_get_query_name( ) ..bbp-common-template.php:1322

    19 0.3172 30283952 get_query_var( ) ..bbp-common-template.php:1338

    #108310

    In reply to: bbPress Language Files

    amirsaam
    Member

    I do not think you’re do the right thing guys. I think you jus’ must put the language file into WP language directory (wp-content/languages) with a name like (I’m not sure about it) bbp-fa_IR.po or bbppress-fa_IR.po and/or mo. That fa-IR is for my language, example for english: en_US

Viewing 25 results - 17,376 through 17,400 (of 32,506 total)
Skip to toolbar