Dailytalker (@dailytalker)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 45 total)
  • @psycheangels, I’ve installed your plugin on my bbpress-forum and it works fine. Many thanks to you.

    There is only one problem:

    bbpress only shows the Mistery Man standard avatar image for facebook-visitors. I would like to replace the Mistery Man avatar image with the facebook profil image of the facebook visitors. How can I do that?

    In reply to: Umlaut in member name

    Dailytalker
    Member

    @dailytalker

    I solved the problem by adding the following additional code to the plugin:

    add_filter( 'get_user_display_name', 'rk_display_name' );

    function rk_display_name($name, $ID = 0) {

    if ( !seems_utf8( $name ) )

    return utf8_encode( $name );

    return $name;

    }

    In reply to: Umlaut in member name

    Dailytalker
    Member

    @dailytalker

    I have in both…UTF-8 but it doesn’t work.

    In reply to: Umlaut in member name

    Dailytalker
    Member

    @dailytalker

    I looked a bit around and found a peace of code with which I was able to create a plugin.

    <?php

    /*

    Plugin Name: UTF-8 usernames

    Description: This plugin enables utf-8 characters in usernames. Mbstring must be enabled in the php.ini.

    */

    function sanitize_user_mbstring( $raw_username, $username, $strict = false ) {

    $raw_username = $username;

    $username = strip_tags($username);

    // Kill octets

    $username = preg_replace(‘|%([a-fA-F0-9][a-fA-F0-9])|’, ”, $username);

    $username = preg_replace(‘/&.+?;/’, ”, $username); // Kill entities

    // Usage of ‘mb_ereg_replace’ instead of ‘preg_replace’ to preserve accents.

    if ( $strict )

    $username = mb_ereg_replace(‘|[^a-z0-9 _.-@]|i’, ”, $username);

    return apply_filters(‘sanitize_user_mbstring’, $username, $raw_username, $strict);

    }

    add_action(‘sanitize_user’, ‘sanitize_user_mbstring’, 0, 3);

    ?>

    Unfortunately it doesn’t work properly. When it displays correctly in bbpress it doesn’t in wordpress and reverse. I don’t have access to the php.ini. Could it be, that the thing with “mbstring” is the problem?

    In reply to: Umlaut in member name

    Dailytalker
    Member

    @dailytalker

    Strange is that this problem occurs only with member names. In the forum posts the umlauts are displayed correctly.

    I use wordpress integration…in wordpress the member names are displayed correctly. Only in bbpress the umlauts are not displayed correctly in the member names.

    In reply to: All RSS Feeds Broken?

    Dailytalker
    Member

    @dailytalker

    I solved the problem!

    I removed all “»” in the rss.php

    Replace the code of your rss.php with the following code and it should work:

    <?php<br />
    require('./bb-load.php');</p>
    <p>// Determine the type of feed and the id of the object<br />
    if ( isset($_GET['view']) || bb_get_path() == 'view' ) {</p>
    <p> // View<br />
    $feed = 'view';<br />
    $feed_id = isset($_GET['view']) ? $_GET['view'] : bb_get_path(2);</p>
    <p>} elseif ( isset($_GET['topic']) || bb_get_path() == 'topic' ) {</p>
    <p> // Topic<br />
    $feed = 'topic';<br />
    $topic = get_topic(isset($_GET['topic']) ? $_GET['topic'] : bb_get_path(2));<br />
    $feed_id = $topic->topic_id;</p>
    <p>} elseif ( isset($_GET['profile']) || bb_get_path() == 'profile' ) {</p>
    <p> // Profile<br />
    $feed = 'profile';<br />
    $feed_id = isset($_GET['profile']) ? $_GET['profile'] : bb_get_path(2);</p>
    <p>} elseif ( isset($_GET['tag']) || bb_get_path() == 'tags' ) {</p>
    <p> if ( isset($_GET['topics']) || bb_get_path(3) == 'topics' ) {<br />
    // Tag recent topics<br />
    $feed = 'tag-topics';<br />
    } else {<br />
    // Tag recent posts<br />
    $feed = 'tag-posts';<br />
    }<br />
    $feed_id = isset($_GET['tag']) ? $_GET['tag'] : bb_get_path(2);</p>
    <p>} elseif ( isset($_GET['forum']) || bb_get_path() == 'forum' ) {</p>
    <p> if ( isset($_GET['topics']) || bb_get_path(3) == 'topics' ) {<br />
    // Forum recent topics<br />
    $feed = 'forum-topics';<br />
    } else {<br />
    // Forum recent posts<br />
    $feed = 'forum-posts';<br />
    }<br />
    $forum = bb_get_forum(isset($_GET['forum']) ? $_GET['forum'] : bb_get_path(2));<br />
    $feed_id = $forum->forum_id;</p>
    <p>} elseif ( isset($_GET['topics']) || bb_get_path() == 'topics' ) {</p>
    <p> // Recent topics<br />
    $feed = 'all-topics';</p>
    <p>} else {</p>
    <p> // Recent posts<br />
    $feed = 'all-posts';</p>
    <p>}</p>
    <p>// Initialise the override variable<br />
    $bb_db_override = false;<br />
    do_action( 'bb_rss.php_pre_db' );</p>
    <p>if ( !$bb_db_override ) {</p>
    <p> // Get the posts and the title for the given feed<br />
    switch ($feed) {<br />
    case 'view':<br />
    if ( !isset($bb_views[$feed_id]) )<br />
    die();<br />
    if ( !$bb_views[$feed_id]['feed'] )<br />
    die();<br />
    if ( !$topics_object = new BB_Query( 'topic', $bb_views[$feed_id]['query'], "bb_view_$feed_id" ) )<br />
    die();</p>
    <p> $topics = $topics_object->results;<br />
    if ( !$topics || !is_array($topics) )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s View: %2$s' ), bb_get_option( 'name' ), $bb_views[$feed_id]['title'] ) );<br />
    $link = get_view_link($feed_id);<br />
    $link_self = bb_get_view_rss_link($feed_id);<br />
    break;</p>
    <p> case 'topic':<br />
    if ( !$topic = get_topic ( $feed_id ) )<br />
    die();<br />
    if ( !$posts = get_thread( $feed_id, 0, 1 ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Topic: %2$s' ), bb_get_option( 'name' ), get_topic_title() ) );<br />
    $link = get_topic_link($feed_id);<br />
    $link_self = get_topic_rss_link($feed_id);<br />
    break;</p>
    <p> case 'profile':<br />
    if ( bb_get_option( 'mod_rewrite' ) === 'slugs' ) {<br />
    $user = bb_get_user_by_nicename( $feed_id );<br />
    } else {<br />
    $user = bb_get_user( $feed_id );<br />
    }<br />
    if ( !$user ) {<br />
    die();<br />
    }<br />
    if ( !$posts = get_user_favorites( $user->ID ) ) {<br />
    die();<br />
    }<br />
    $title = esc_html( sprintf( __( '%1$s User Favorites: %2$s' ), bb_get_option( 'name' ), $user->user_login ) );<br />
    $link = bb_get_profile_link($feed_id);<br />
    $link_self = get_favorites_rss_link($feed_id);<br />
    break;</p>
    <p> case 'tag-topics':<br />
    if ( !$tag = bb_get_tag( $feed_id ) )<br />
    die();<br />
    if ( !$topics = get_tagged_topics( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s Tag: %2$s - Recent Topics' ), bb_get_option( 'name' ), bb_get_tag_name() ) );<br />
    $link = bb_get_tag_link($feed_id);<br />
    $link_self = bb_get_tag_topics_rss_link($feed_id);<br />
    break;</p>
    <p> case 'tag-posts':<br />
    if ( !$tag = bb_get_tag( $feed_id ) )<br />
    die();<br />
    if ( !$posts = get_tagged_topic_posts( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Tag: %2$s - Recent Posts' ), bb_get_option( 'name' ), bb_get_tag_name() ) );<br />
    $link = bb_get_tag_link($feed_id);<br />
    $link_self = bb_get_tag_posts_rss_link($feed_id);<br />
    break;</p>
    <p> case 'forum-topics':<br />
    if ( !$topics = get_latest_topics( $feed_id ) )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s Forum: %2$s - Recent Topics' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );<br />
    $link = get_forum_link($feed_id);<br />
    $link_self = bb_get_forum_topics_rss_link($feed_id);<br />
    break;</p>
    <p> case 'forum-posts':<br />
    if ( !$posts = bb_get_latest_forum_posts( $feed_id ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Forum: %2$s - Recent Posts' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) ) );<br />
    $link = get_forum_link($feed_id);<br />
    $link_self = bb_get_forum_posts_rss_link($feed_id);<br />
    break;</p>
    <p> // Get just the first post from the latest topics<br />
    case 'all-topics':<br />
    if ( !$topics = get_latest_topics() )<br />
    die();</p>
    <p> $posts = array();<br />
    foreach ($topics as $topic) {<br />
    $posts[] = bb_get_first_post($topic->topic_id);<br />
    }</p>
    <p> $title = esc_html( sprintf( __( '%1$s Recent Topics' ), bb_get_option( 'name' ) ) );<br />
    $link = bb_get_uri();<br />
    $link_self = bb_get_topics_rss_link();<br />
    break;</p>
    <p> // Get latest posts by default<br />
    case 'all-posts':<br />
    default:<br />
    if ( !$posts = bb_get_latest_posts( 35 ) )<br />
    die();<br />
    $title = esc_html( sprintf( __( '%1$s Recent Posts' ), bb_get_option( 'name' ) ) );<br />
    $link = bb_get_uri();<br />
    $link_self = bb_get_posts_rss_link();<br />
    break;<br />
    }<br />
    }</p>
    <p>bb_send_304( $posts[0]->post_time );</p>
    <p>if (!$description = esc_html( bb_get_option('description') )) {<br />
    $description = $title;<br />
    }<br />
    $title = apply_filters( 'bb_title_rss', $title, $feed );<br />
    $description = apply_filters( 'bb_description_rss', $description, $feed );<br />
    $posts = apply_filters( 'bb_posts_rss', $posts, $feed );<br />
    $link_self = apply_filters( 'bb_link_self_rss', $link_self, $feed );</p>
    <p>bb_load_template( 'rss2.php', array('bb_db_override', 'title', 'description', 'link', 'link_self'), $feed );</p>
    <p>?>

    In reply to: All RSS Feeds Broken?

    Dailytalker
    Member

    @dailytalker

    Is there somebody who knows how to fix the rss problem?


    Dailytalker
    Member

    @dailytalker

    @r-a-y, I already wrote about the same as you did.

    @kevinjohngallager, I see that you absolutely do not care about other peoples needs. I think you are only interested in things you believe or like.


    Dailytalker
    Member

    @dailytalker

    Monday, December 7, 2009

    Facebook hits 350 million users

    It’s only been a couple of days since Facebook revealed that it had topped 350 million users — exceeding the population of the United States. Back in September 2009, Facebook users were around 300 millions. Facebook proved to be more popular than eBay, Wikipedia and the U.S.

    Read more: http://www.blogtactic.com/2009/12/facebook-hits-350-million-users-latest.html#ixzz0gOfOpQCo

    This could also be a chance for bbpress. Some cooperation sometimes could help more than a fight against a superpower. Saddam Hussein didn’t have any chance against Bush Jr. Therefore we should acknowledge that Facebook is the clear leader at the moment.

    Facebook has become so huge that even some of its applications are drawing more traffic than many major Web sites


    Dailytalker
    Member

    @dailytalker

    Yes, but facebook is only the clear market leader with some hundred millions potential visitors for a bbpress forum.

    Facebook also has groups…so for instance if you are running a forum for politics…go to facebook, search for groups about politics and than post a link to your forum….with facebook-connect no problem because facebook users can easily login without having to register again. Without facebook-connect this doesn’t work…you can just forget it.


    Dailytalker
    Member

    @dailytalker

    I use both….

    wordpress with bbpress

    http://www.dailytalk.ch/forum

    Advantage: Forum is category based….see drop down menu structure.

    Disadvantage: No facebook-connect login….thats a clear disadvantage also integration with wordpress is difficult

    wordpress mu or wordpress with buddypress 1.2.1 and bbpress

    http://www.dailytalk.com

    Advantage: Integration is very easy, you can have groups, group blogs and group forum topics, facebook-connect is available…bp-fbconnect plugin

    Disadvantage: Forum is only group based no categories available.


    Dailytalker
    Member

    @dailytalker

    @af3, I just installed on a website wordpress mu 2.9.2 and buddypress 1.2 with bbpress. Unfortunately there are some problems with the bp-fbconnect plugin. For example I can login with FB-Connect but I cannot log out.

    I also tried wordpress with buddypress, bb-press and the FB-Connect plugin – that worked. Strange…

    Further problem:

    buddypress-bbpress forums are group based. With a bbpress standalone you can have category-based topics…I prefer category based topics. It is easier to keep the overview.

    In reply to: Plugins You Want !!!

    Dailytalker
    Member

    @dailytalker

    @Il Gatteo

    Regarding smilies…how about this smilies:

    http://www.dailytalk.ch/forum/stammtisch/ddd/

    You need the bbpress smilies plugin and the smilies you want. Than you can replace the ugly wordpress-bbpress smilies with the smilies you want. Its easily done.

    Regarding polls: Take the plugin “bbpress Polls”.

    What I need is a much better BB_code toolbar Plugin and a facebook connect plugin….

    In reply to: Plugins You Want !!!

    Dailytalker
    Member

    @dailytalker

    Very important for all users who like more visitors for their forum is facebook connect. Many bbpress users already asked for it.


    Dailytalker
    Member

    @dailytalker

    @af3, could you please describe how you got it working? Please give us step by step instructions.

    Facebook connect is very important.

    In reply to: Plugins You Want !!!

    Dailytalker
    Member

    @dailytalker

    I would like to have a facebook-connect plugin. This would help to convince my facebook fans to post their comments on my website.


    Dailytalker
    Member

    @dailytalker

    Did you follow the steps decribed in this topic?

    Did you install the plugin?

    Did you change the permalinks to “name” before activating the plugin?

    Did you change the codes in your htaccess?

    Did you write as rewrite base /?

    Thats what I have in the htaccess of my wp-frontpage:

    RewriteBase /

    So it really must work. I am pretty sure.


    Dailytalker
    Member

    @dailytalker

    Before you activate the plugin you must change the permalinks to “name”.

    In my opinion you can use the hack straight at the root of a domain.

    example:

    When your domain is: http://www.domain.com/

    Your rewrite base in this case should be as follows:

    RewriteBase /

    Try it out!

    The rewrite base is from where the rewrite starts. So if the base is /forum/ it starts from “http://www.xxx.com/forum/&#8221;

    When the rewrite base is / it starts from “http://www.xxx.com/&#8221;


    Dailytalker
    Member

    @dailytalker

    Regarding your second question:

    1st

    Go to the admin backend

    2nd

    Go to “settings”

    3rd

    Go to “permalinks”

    4th

    click on “names”


    Dailytalker
    Member

    @dailytalker

    What you can do is what I have….

    http://www.dailytalk.ch/forum

    1st step

    Download the plugin, you find on the link bellow and follow the instructions on that site:

    http://blog.markroberthenderson.com/getting-rid-of-forums-and-topic-from-bbpress-permalinks-updated-plugin/comment-page-1/#comment-37

    2nd step

    If the name of your forum is “forums” you need to name the RewriteBase /forums/

    RewriteBase /forums/

    If the name of your forum is “community” your RewriteBase is /community/

    RewriteBase /community/

    etc.

    3rd step

    After you have followed the steps of that site you will find some bugs. To solve them do the following:

    To solve the major bugs you need to do this:

    I found a solution for the admin-backend link!

    Just ad the following code

    RewriteRule ^bb-admin/$ – [L]

    before this code

    RewriteRule ^([^.]+)/([^.]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]

    and it works!!! Cool.


    I found another mistake. The “topics-RSS” where missing because you deleted one rewrite mod too much. To repair this you need to put the following code just after the mod rewrites for “view”

    RewriteRule ^rss/topics/?$ rss.php?topics=1 [L,QSA]

    original code:

    RewriteRule ^rss/topics/?$ /forum/rss.php?topics=1 [L,QSA]

    Than also the rss-feed for the topics should work.


    Dailytalker
    Member

    @dailytalker

    I agree with tonicarr. I think the project is worth to be continued and if the decision is done developers like toni can move their projects forward. This will also help bbpress.


    Dailytalker
    Member

    @dailytalker

    I found a solution for the admin-backend link!

    Just ad the following code

    RewriteRule ^bb-admin/$ – [L]

    before this code

    RewriteRule ^([^.]+)/([^.]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]

    and it works!!! Cool.


    I found another mistake. The “topics-RSS” where missing because you deleted one rewrite mod too much. To repair this you need to put the following code just after the mod rewrites for “view”

    RewriteRule ^rss/topics/?$ rss.php?topics=1 [L,QSA]

    original code:

    RewriteRule ^rss/topics/?$ /forum/rss.php?topics=1 [L,QSA]

    Than also the rss-feed for the topics should work.


    Dailytalker
    Member

    @dailytalker

    Dear Gautam

    I tried out the htaccess-code which is posted on technospot.net. It works for the forum and the member profiles but I cannot enter the admin backend anymore. Do you have an idea how to solve that problem?

    The following link is not working anymore:

    http://www.domain.com/forum/bb-admin/index.php

    When I add the following peace of code (just something I creaded by myself) :

    RewriteRule ^([^/.]+)/?$ index.php?id=$1 [L,QSA]

    It gives me the following link:

    http://www.domain.com/forum/bb-admin/

    So, it doesn’t work because “index.php” is missing.

    Do you have an idea how I can get this link with “index.php”?

    PS: You already mentioned that problem on your blog….bud maybe you found a solution meanwhile.


    Dailytalker
    Member

    @dailytalker

    There are already some discussions in this forum about fb-connect. Some people say that there are already some wordpress-plugins which could easily be adapted for bbpress. Some other say that if bbpress is integrated in wordpress the wp-plugin could also work for bbpress…I tried some wp-fp-connect plugins out…but had some problem. But I am not a coder so I have often problems with such things.

    On the other hand a coder could just have a look at the wp-plugin look how it works and than customize it for bbpress.


    Dailytalker
    Member

    @dailytalker

    For security reasons I don’t want integrate bbpress into wordpress. There is no need to use facebook connect for the blog. I just need facebook connect for bbpress. I have an own Facebook API and want to connect my fb-fanpage with bbpress. Unfortunately I have no idea how to do it.

Viewing 25 replies - 1 through 25 (of 45 total)