Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,176 through 29,200 (of 32,491 total)
  • Author
    Search Results
  • #60285
    _ck_
    Participant

    The key is to edit the topic template so tags are shown as the ?tag=example&forum=123 (where 123 is the actual forum number)

    Then you have to make a plugin that hooks

    $topics = get_tagged_topics($tag->tag_id, $page);
    do_action( 'bb_tag-single.php', $tag->tag_id );

    add_action(‘bb_tag-single.php’,’tag_forum_filter’)

    where the function tag_forum_filter would manipulate (or regenerate) $topics based on whatever forum number $_GET is set to.

    #56051
    ganzua
    Member

    “hi, I have the same problem. Has anyone found a way to integrate and change the language without errors?”

    I managed to translate a wp-bb integration but I don’t know if you are going to like my workaround;

    1. edit bbpress config.php and in define language section point to your wp language file with this code; ‘ define(‘BBLANGDIR’, ‘wp-includes/languages/es_ES.mo’); ‘ (change es_ES.mo for the name of your language .mo file)

    2. edit wp language .po file and insert there your bbpress .po file. In other words, copy/paste all bbpress entries at the end of wp .mo file

    3. Open with poedit and try to save this modifed file. You’re going to have +-100 duplicated entries in an error log. Delete all duplicated entries, one by one, so you can save.

    4. When you save with poedit you produce 2 files; .po file and a .mo file. This .mo file is the one you want. Now you have translated both; wp and bbpress with just one .mo file.

    I do know that this workaround implies a lot of future problems and I don’t like it at all but I didn’t find any other way.

    I hope someday bbpress will appear as a plugin for wordpress.

    #60275
    _ck_
    Participant
    #2300
    _ck_
    Participant

    I’ve tried hacking a couple wp plugins to bbpress to get better code preservation. But it’s not working.

    What is used here? It seems to actually work somehow and that’s not the default technique in the core…

    #58593

    In reply to: dodeca.org.uy

    rosebud
    Member

    I have wordpress and bbpress integrated (in terms of users and logins) but they do not share all the functions. BBPress is translated and working fine, however, I don’t have the wordpress code translated, just a po for the theme.

    #60232

    In reply to: Gravatar Plugin

    The myavatar plugin supports Gravatar but I need to do some more work to update it to the latest code – Give me a few days

    #59507
    _ck_
    Participant

    All these problem are both cookie path

    and forbidden character problems.

    Both are poorly documented (or not mentioned at all)

    but the good news is that fixes exist for both issues.

    I have to find my previous instructions on this but

    because bbpress search is so poor, this may take awhile.

    Could someone please get this into a wiki or faq at some point:

    Steps required for more complete and problem-free bbPress+WordPress integration:

    1. cookies paths need to be changed to the same path in both WordPress and bbPress (change to domain root recommended)

    https://bbpress.org/forums/topic/wordpressbbpress-single-sign-on?replies=22#post-9010

    2. the integration plugin should be installed

    https://bbpress.org/plugins/topic/4?replies=26&more=1

    3. the allow spaces in usernames plugin should be installed (also add my underscore hack for characters bbPress by default forbids but WordPress allows – see my message later in same thread)

    https://bbpress.org/forums/topic/usernames-with-spaces-do-not-work?replies=28#post-7904

    4. add the ” set default role when registering new user though forum” mini plugin should be installed:

    https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=10#post-8768

    5. search your bbpress templates and force all registrations/logins through wordpress from the several places they are buried on the forum (the WP login interfaces are far more developed) – unfortunately at least one bbPress login location is hard coded in the core which will require a direct hack everytime you upgrade. ie:

    <?php $request_uri=$GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"]; ?>
    <a href="/wordpress/wp-login.php?redirect_to=<?php echo $request_uri; ?>"><?php _e('Login'); ?></a>
    <a href="/wordpress/wp-register.php?redirect_to=<?php echo $request_uri; ?>"><?php _e('Register'); ?></a>

    6. optional but highly recommended, install the “use display name” plugin for mods+admin:

    https://bbpress.org/plugins/topic/2?replies=6&more=1

    #58591

    In reply to: dodeca.org.uy

    benbeltran
    Member

    Uruguay is such a lovely country, It’s good to impulse the arts, specially film. BBPress is everywhere ;) open to embrace from gaming to arts, from code to random discussion. Code, indeed, is poetry.

    #58590

    In reply to: dodeca.org.uy

    rosebud
    Member

    Thanks for the words, both of you.

    @ w3creativa:

    Actually, the translation I am using is from a bbpress related site. I can’t remember which one though. I’ll try and upload the files if you want them.

    @ benbeltran:

    Dodecá is indeed from Uruguay. ;)

    #60213
    benbeltran
    Member

    “Insulting” != Insulting :P … It’s more like calling a great piece of markup tag-soup because of some details is a bit exaggerated, and it could even be an insult to the developers who carefully thought it, but it’s not really serious, nobody is getting angry because of that :)

    #60267

    In reply to: Help with install

    benbeltran
    Member

    rename config.example.php to config.php :) and upload config.php

    #60211
    benbeltran
    Member

    Standards are good, but sometimes It’s not wise to sacrifice usability or maintainability for standards. Proper isn’t always best, but when you can do the best properly, then it’s recommended.

    When I said it was not important, I meant it’s not as important as many other things on the forums, I’m the kind of people that sticks to standards when possible.

    And yes, what’s tag soup?According to wikipedia it’s “HTML code written without regard for the rules of HTML structure and semantic”. Honestly I think that applying that phrase to software that is mostly standards compliant is not right. Changing one ingredient doesn’t turn a steak into a soup, this term should be applied to websites that step on the whole HTML specification. It could be “insulting” to call this carefully coded software “tag soup”. But that’s just me …

    It would be nice though, to see what you can contribute to the project, I know your comments are intended to help, and it would rock to see them turn into palpable produce.

    #60266

    In reply to: Help with install

    chrishajer
    Participant

    Edit the file called config-sample.php to reflect your database and site settings, then save it as config.php. Or rename config-sample.php to config.php. You don’t need a file called sample-anything anymore, you just need a file called config.php with your settings in it.

    #2295

    Hi, I’m having problems with the character encoding on a WP/BBpress integrated site. In WP, I can tell the system to encode the page in ISO-8859-1 (which is necessary in this case), in bbpress I don’t know how. I declare the doctype and the meta-content-charset in the theme’s header, but as opposed to the WP pages, the bbpress generated ones are encoded as UTF-8. Looking at the page properties in Firefox, I can see “encoding: UTF-8” and “meta information… charset:ISO-8859-1”.

    Can someone help, please? Thanks in advance!

    #60263
    chrishajer
    Participant

    Where is it displayed now? Chances are, it’s in the config.php:

    $bb->name = 'New bbPress Site';

    That is used for what might be called the ‘name’ of your site.

    #58589

    In reply to: dodeca.org.uy

    benbeltran
    Member

    Nice design, nice color scheme. Great forum software ;).

    Great work, dodecá is from uruguay? (.uy)

    #60241
    _ck_
    Participant

    Yeah all the “users online” and user tracking can only come after I release a user tracking plugin ;-)

    #2293
    baptiste
    Member

    I put together some code to implement a real bread crumb trail for BBPress that should support any level of subforums. I’ll open a ticket for the change too, but until it’s in the trunk (hopefully), you can use it by doing the following.

    In bb-includes/template-functions.php, just above the // Forum Loop // line, add the following:

    (UGH – Why if I put code inside code tags is bbpress insisting on parsing it and tossing in backticks everywhere! To see the code, check this file: http://onthepitch.org/talk/bb-includes/template-functions.txt)

    You’ll have to update your template, mainly forum.php and topic.php. Look for the line like this”

    <h3 class="bbcrumb"><a>"><?php bb_option('name'); ?></a> &raquo; <?php forum_name(); ?></h3>

    and replace it with something like this:

    <h3 class="bbcrumb"><?php forum_bread_crumb(); ?></h3>

    And it should work for you.

    #60231

    In reply to: Gravatar Plugin

    Null
    Member

    How about some: this is what I did and this is the CSS I used. You can download the plugin here :):):):):)

    I would like to use Gravatars myself too

    _Null

    #58446
    mciarlo
    Member

    Thanks guys! We put a lot of work into the forum design. However, we are updating the entire website and the forums are getting a complete re-design (for the better of course). Feel free to stop by in the next few days to check it out =).

    -Michael Ciarlo

    #60240
    benbeltran
    Member

    Nice nice :D. Maybe a “Most users ever online” or something. Personally I like to keep statistics simple and compact, but some people like to display a lot of statistics.

    Top Taggers maybe? Who knows.

    #59378
    outchy
    Member

    i finally found it! you were right fel, i was missing a </div> in post.php. that sucker was elusive! i feel so accomplished right now :D

    #60219
    ganzua
    Member

    It is quite interesting :) . Perhaps “top topics by posts” and “top topics by views” will overlap.

    #52317
    bedbugger
    Participant

    great plugin. :-)

    one question: can Bozos pm?

    #60217
    benbeltran
    Member

    I display statistics on my forum, but not with a plugin I just did this:

    <div id="onlinelist">
    <?php include_once("bb-includes/statistics-functions.php"); ?>
    <h2>Statistics</h2>
    Our users have made a total of <?php echo get_total_posts(); ?> posts in <?php echo get_total_topics(); ?> topics. <br/>
    We have <?php echo get_total_users(); ?> Registered Members. Our newest member is <?php if ( $users = get_recent_registrants(1) ) : foreach ( $users as $user ) : ?>
    <a href="<?php user_profile_link( $user->ID ); ?>"><?php echo get_user_name( $user->ID ); ?></a>
    <?php endforeach; endif; ?>
    <br/>
    <p><?php show_online_users(); ?></p>
    </div>

    This could be easily pluginized though, I might do it. But instead of waiting, I recommend doing it yourself or just pasting this on your front-page, wherever you want it to be displayed.

Viewing 25 results - 29,176 through 29,200 (of 32,491 total)
Skip to toolbar