Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,426 through 24,450 (of 32,468 total)
  • Author
    Search Results
  • #75861
    r-a-y
    Participant

    This isn’t BuddyPress-specific.

    You can accomplish changes for the title, meta keywords, and description with a bbPress plugin or custom bbPress code.

    I answered this in your post on the BuddyPress forums:

    https://buddypress.org/forums/topic/group-forums-meta-data

    #75741
    _ck_
    Participant

    I really can’t build an entire custom plugin for you.

    What you are trying to do will require API functions because the profile link doesn’t exist until it’s calculated. You’ll have to use the get_profile_link functions and send it the user id.

    bb_get_profile_link($result->ID)

    #15213
    bb-gian
    Member

    Is there a way to display the Forum name + link in the Topics list?

    I tried with: <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>, but it doesn’t seem to work outside the loop.

    What I am trying to achieve is simply to have the name of the forum in the Topic list, so that one can view in which Forum that particular topic belongs, and be able to click on that link, if possible, to get to that forum. (But just the name would be already great).

    I really think that this is some bit of useful information when a user scans the list.

    Thanks for letting me know if you gor the right code in your pocket and to share it with me.

    #75838
    bb-gian
    Member

    Oh, thanks, I just found it on my own and was about to post it here.

    But thanks a lot anyway, Ohna, I appreciate!

    ;-)

    #75849

    In reply to: Pagination bug?

    Kar-l
    Member

    Thank you, Ohna. Yet it doesn’t solve the problem. I just tested it in English (with no translation) and the same bug appers.

    <div class="nav"><a class="prev page-numbers" href="" title="Previous page">&laquo; Previous</a><a class="page-numbers" href="" title="Page 1">1</a><span class="page-numbers current" title="Page 2">2</span><a class="page-numbers" href="/page/3" title="Page 3">3</a><a class="page-numbers" href="/page/4" title="Page 4">4</a><a class="next page-numbers" href="/page/3" title="Next page">Next &raquo;</a></div>

    #75837
    Ohna
    Member

    Hi, bb-gian

    Try this: <?php topic_author(); ?>

    #15244
    Kar-l
    Member

    A funtion on a homepage of a blog

    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>

    generates errorous output. On page 2 (and followings) it outputs:

    <div class="nav"><a class="prev page-numbers" href="" title="Poprzednia strona">&laquo; Poprzednia</a><a class="page-numbers" href="" title="Page 1">1</a><span class="page-numbers current" title="Page 2">2</span><a class="page-numbers" href="/page/3" title="Page 3">3</a><a class="page-numbers" href="/page/4" title="Page 4">4</a><a class="next page-numbers" href="/page/3" title="Następna strona">Następna &raquo;</a></div>

    The problem I can see is href=””

    Is there any solution to this?

    bbPress used: 1.01

    #15243
    bb-gian
    Member

    Is there a way to dispaly the Author of a topic in the Latest Discussions list and in the Topics list?

    I mean, every other forum got this feature, and I think that viewing the Author of a Topic in the list is very useful and needed for a forum, as you may want to know WHO posted that Topic, without having to click on it to see who’s the first post. Right?

    Still, I didn’t find this feature enabled on any bbPress forum.

    For me it’s just so weird.

    So, is that a way to get the template code?

    Thanks.

    #75740
    Ohna
    Member

    Hi,

    I want to add a link to the profile page:

    foreach ($results as $result){$list.=" <li class='list_b'>".bb_get_avatar($result->ID, 25, $default)."<a href='" .$result->user_profile_link. "'>".$result->user_login."</a></li> ";}

    I tried .$result->user_profile_link., but it doesn’t work, any idea ?

    #75828
    citizenkeith
    Participant

    Plugins used:

    Allow Images

    Approve User Registration

    bb_benchmark (autoloaded)

    bb_chunk

    BBcode Buttons Toolbar

    BBcode Lite

    bbPress Attachments

    bbPress signatures

    bbPress Smilies

    bbPress Theme Switcher

    bb Topic Views

    BBVideo

    Censor

    Check for Updates

    Hidden Forums (autoloaded)

    Hidden Forums Tag Filter

    Human Test for bbPress

    Members Online

    Move It

    New User Notification Email

    Post Count Plus – Dynamic.Titles & More!

    Quote (Mod)

    Spoiler Tags

    Strike

    Super Search

    Topics Per Page

    Unread Posts

    Wiki Post

    Year Long Cookies – Remember Me (autoloaded)

    I didn’t have these problems when I was running .9, but when I moved to Media Temple from Dreamhost I upgraded to 1.0 RC1. I probably shouldn’t have done the upgrade at the same time.

    #64878
    _Kumori_
    Member

    In functions.bb-formatting.php on line 62 there is this function:

    function bb_code_trick_reverse( $text ) {
    $text = preg_replace_callback("!(<pre><code>|<code>)(.*?)(</code></pre>|</code>)!s", 'bb_decodeit', $text);
    $text = str_replace(array('<p>', '<br />'), '', $text);
    $text = str_replace('</p>', "n", $text);
    $text = str_replace('<br />', '<br />', $text);
    $text = str_replace('<p>', '<p>', $text);
    $text = str_replace('</p>', '</p>', $text);
    return $text;
    }

    In my theme’s functions.php file I made a filter that replaces this function with my own that simply removes the $text = str_replace('</p>', "n", $text); and $text = str_replace(array('<p>', '<br />'), '', $text); lines and that took care of it for me when I integrated FCKeditor into my forum.

    #75826
    citizenkeith
    Participant

    And just as I was typing this, I got the database upgrade message again when visiting the admin panel. The upgrade message:

    Beginning upgrade…
    Tags copied to taxonomy tables: bb_upgrade_1080
    Display names populated: bb_upgrade_1090
    Index forum_stickies dropped: bb_upgrade_1100
    >>> Done

    Fourth time since last night.

    #15240
    citizenkeith
    Participant

    I’m running 1.0 on Media Temple’s Grid Service.

    As reported earlier, every once in a while, bbPress requires the database to be “upgraded”. All my plugins are messed up (some on, some off) and the theme is switched to Kakumei Blue.

    This happened again last night, but this time I am unable to activate certain plugins. When I try, I get fatal errors.

    When activating bbPM, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /domains/mydomain.com/html/forums/bb-includes/backpress/functions.kses.php(104) : runtime-created function on line 1

    With bb Topic Views, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /domains/mydomain.com/html/forums/my-plugins/bb-topic-views/bb-topic-views.php on line 194

    For Members Online, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /domains/mydomain.com/html/forums/my-plugins/members-online/members-online.php on line 116

    For Topics Per Page, there is a fatal error but no specifics.

    For Unread Posts, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /nfs/c04/h04/mnt/68418/domains/citizenkeith.com/html/forums/my-plugins/unread-posts/unread-posts.php on line 127

    Before last night, all these plugins worked fine. Then suddenly, I had another database upgrade and they wouldn’t work. I upgraded to 1.0.1 and that didn’t help.

    I am going to speak to Media Temple tech support today. Hopefully these errors can be explained and perhaps help somebody else in the future.

    #75779
    _ck_
    Participant

    If the new cookie has a different name, you should not be having a problem because bbpress should not even be looking at the old cookie?

    You are getting a header error because you would have to put it at the very, very top of header.php before doctype – if that doesn’t work, you’d have to add it via a mini-plugin, put it into a file called function.php in your template folder

    add_action('bb_send_headers','delete_old_cookie');
    function delete_old_cookie() {
    setcookie('wordpress_logged_in_REPLACEDcabef','',time()-3600);
    }

    #75778
    deadlyhifi
    Participant

    Thanks _ck_. I’m sure it’s easy when you know how.

    The cookie now has a different name.

    my old cookies are:

    $bb->authcookie = ‘wordpress_REPLACEDcabef’;

    $bb->secure_auth_cookie = ‘wordpress_sec_REPLACEDcabef’;

    $bb->logged_in_cookie = ‘wordpress_logged_in_REPLACEDcabef’;

    I was messing with

    setcookie('wordpress_logged_in_REPLACEDcabef','',time()-3600)

    just placing in the head of my page but I get a headers already sent message.

    #64877
    Florian
    Member

    Just in case anyone else (like me) stumbles over this thread on the search for an WYSIWYG editor. The problems discussed above seem to have disappeared. I just added TinyMCE 3.2.5 to my bbPress 1.0.1 installation and it works like a charm without modifications besides the removal of obviously unsupported elements.

    Cool. :)

    #59171
    Ohna
    Member

    I think this isn’t the best practice but you can try this for the moment:

    If you use a custom template, edit with a text editor:

    my-templates/(name_of_your_templates)/front-page.php

    after:

    <?php bb_get_header(); ?>

    add:

    <?php if ( bb_is_user_logged_in() ) : ?>

    before :

    <?php bb_get_footer(); ?>

    add :

    <?php else : ?>
    <?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>
    <?php endif; // bb_is_user_logged_in() ?>

    do the same for:

    my-templates/(name_of_your_templates)/topic.php

    my-templates/(name_of_your_templates)/forum.php

    my-templates/(name_of_your_templates)/profile.php

    my-templates/(name_of_your_templates)/tags.php

    my-templates/(name_of_your_templates)/tag-single.php

    my-templates/(name_of_your_templates)/view.php

    but your forums posts can allways be read trough the rss feed..

    #75738
    _ck_
    Participant

    This will show avatars

    add_action('topicmeta','voices_named');
    function voices_named() {
    global $bbdb, $topic;
    $results=$bbdb->get_results("SELECT ID,user_login FROM $bbdb->posts LEFT JOIN $bbdb->users ON poster_id=ID WHERE topic_id=$topic->topic_id AND post_status=0 GROUP BY poster_id");
    $count=count($results);
    if ($count>1) {
    foreach ($results as $result) {$ids[$result->ID]=$result->ID;}
    bb_cache_users($ids);
    $list="";
    foreach ($results as $result) {$list.=bb_get_avatar($result->ID, 16).$result->user_login.", ";}
    $list=trim($list,", ");
    echo "<li>$count members active on this topic: $list</li>";
    }
    }

    #75737
    _ck_
    Participant

    I actually had it tested in 1.0, if it’s not working in your theme and it’s a custom theme, make sure you have a do_action('topicmeta') somewhere in there.

    Adding avatars makes it much more complicated, I’ll give a shot at the code in a minute.

    #75736
    Ohna
    Member

    Thank’s _CK_ !!

    But, your code doesn’t seem to work in bbPress 1.0 (I tried to add it in functions.php or directly in topic.php).

    However I have no problem if I add your code in bbPress 9.0 theme.

    I want to add ” <?php echo bb_get_avatar( $poster_id->ID, $size , $default); ?> ” in your code, but I can not ?

    #15232
    deadlyhifi
    Participant

    I upgraded my forum to 1.0 and at the same time converted my WP into WPMU. It was a bit of a mammoth task to be honest. I inadvertently changed the cookie values in this upgrade.

    My problem now is many of my users are getting to the forum with their old cookies intact. Logging in, and, because the old cookie with the wrong value is being read accepting their details but keeping them logged out.

    Is there anything I can do to force deletion of their old cookies when they visit the site. I’ve put instructions up on how to delete their old cookies, but it’s a bit lame and making me look pretty bad :(

    #75644
    ovizii
    Participant

    I guess the 1.0.1 update fixed it so far. still got two remaining issues:

    – the feed still shows every topic/post double

    – my key master still has (Inactive) after his name, refreshing sometimes shows him as (key master) but rarely although the integration works, wordpress realizes the user is a keymaster and logged in I can go to the admin part of wordpress and bbpress without hickups, but when viewing a key master’s psot, it still says: Inactive :-(

    #75371

    In reply to: bbPress 1.0 released

    Dolugen
    Member

    @_ck_

    Does it mean the 0.9 and 1.0 have different code architectures ?

    #59170
    dan90036
    Member

    Thank you Ohna, one question in which file and where should I put this snippet of code?

    Dan

    #74435
    punktoronto
    Member

    Has this been solved? I’ve been trying to figure it out as well. Everything I’ve found is for wordpress-mu and I’m not sure what needs to be changed to use it with regular wordpress.

    I found this http://insecure.no/2009/01/wordpress-and-bbpress-nice-url-rewrite-for-nginx/ it sort of works. pretty permalinks work but any attached files such as the css sheet or jquery.js returns a 404 not found error. Any Ideas?

    # SEO friendly URLs for bbPress

    #

    location /forums/ {

    root /path/to/YOURDIRECTORY/public_html/forums;

    index index.php;

    if (!-e $request_filename) {

    rewrite ^/forums/topic/(.*)$ /forums/topic.php?q=$1 last;

    rewrite ^/forums/forum/(.*)$ /forums/forum.php?q=$1 last;

    rewrite ^/forums/profile/(.*)$ /forums/profile.php?q=$1 last;

    rewrite ^/forums/view/(.*)$ /forums/view.php?q=$1 last;

    rewrite ^/forums/tags/(.*)$ /forums/tags.php?q=$1 last;

    rewrite ^/forums/rss/(.*)$ /forums/rss.php?q=$1 last;

    rewrite ^/forums/bb-admin/ /forums/bb-admin/index.php last;

    rewrite ^/forums/ /forums/index.php last;

    break;

    }

    }

Viewing 25 results - 24,426 through 24,450 (of 32,468 total)
Skip to toolbar