Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,426 through 24,450 (of 32,481 total)
  • Author
    Search Results
  • #15259

    I’m trying to protect page on another subdomain… but unfortunately bbPress is not authenticating the cookie. (they are set for .domainabc.net)

    for test.domainabc.net:
    Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc

    for forums.domainabc.net
    Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc

    on test.domainabc.net i have something like this:

    require_once ('../forums.domainabc.net/bb-load.php');

    function add_allowed_redirect_hosts() {
    $allowed_redirects = array('test.domainabc.net');
    return $allowed_redirects;
    }
    add_filter('allowed_redirect_hosts', 'add_allowed_redirect_hosts');

    bb_auth( 'auth' );

    It will properly redirect to the login page, enter info, redirect back to test.domainabc.net – but then it will issue another 302 redirect back to forums.domainabc.net.

    and if i place a die statement within this bb_auth else on test.domainabc.net it will echo

    if ( 'auth' === $scheme && !bb_is_user_logged_in() ) {
    //redirects fine to login page the first time...
    } else {
    //echo - this happens when returning a 2nd time
    }

    BUT… if i return to forums.domainabc.net i’m logged in… and everything works.

    #75831
    citizenkeith
    Participant

    I have switched off all plugins except the following:

    Allow Images 0.7.1

    BBCode Buttons Toolbar 0.0.9

    BBCode Lite 1.0.3

    bbPress Smilies 0.0.8

    Human Test 0.9.2

    I haven’t had a problem for 24 hours. Will slowly switch on plugins until I do.

    #15256
    sms1962
    Member

    Hi,

    I did not see information on how to upgrade from 1.0-alpha-x to 1.01. Are there any problems? Someone already did this?

    I’ve bbPress 1.0-alpha-2 with WP integration (v. 2.8)

    SMS

    #75742
    Ohna
    Member

    Curiously if I write the code in “functions.php” that break my login/logout/edit profile page and display a blank page. I have moved the code in “my-plugins” and no issue now.

    Thank you for your information and your patience _ck_, I will try to solve my last problem by my self.

    Edit: solved with :

    foreach ($results as $result){$list.=" ".bb_get_avatar($result->ID, 20, $default)."<a href='".bb_get_option('uri')."profile/".$result->user_login."'>".$result->user_login." </a>";}

    #75868

    Which version of bbPress are you using?

    If you have phpMyAdmin access, then open the usermeta table (should be bb_capabilities if you are not using shared user tables and should be wp_capabilities if you are using shared tables) and change the value of bb_capabilities to a:1:{s:9:"keymaster";b:1;} for your user.

    Hope that helps.

    P.S. – Change the default table prefixes as your case may be.

    @toosalty & @navjotjsingh

    WordPress 2.8 integrates easily with bbPress 1.0

    I just wrote a post today : http://blog.ashfame.com/2009/07/integrate-bbpress-10-with-wordpress-28/

    I will also be writing a post on how to upgrade existing integrated installations (most probably tomorrow morning). Let me know if you are facing any issue, I will try to help.

    P.S. – No plugin is now needed for integration. ;)

    #15253

    Fistly excuse my english ….

    Hi, i have integrated bbpress inside my wordpress installing on the same database.

    The problem is that i have made all the integration except the user relation, so now i can logon like admin user on bbpress but i can’t change nothing :-( it seems to be a normal user

    Can i do manually (changing the database) to assign admin user as administrator ????

    #75697
    Ohna
    Member

    Hi, bb-gian

    If you want this in “front-page” latest topic you can try this:

    <a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id); ?></a>

    or if you just want show all categories:

    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>

    #75372

    In reply to: bbPress 1.0 released

    grassrootspa
    Member

    Loving the addition of Voices into the core. Just figured out how to display them :)

    #75859
    deadlyhifi
    Participant

    I may have to start doing it manually, then either adapt an existing plugin, or get my head around it myself at a later stage. They’re really banging on about it at work right now :( as a must have ASAP feature. It’s all about the monies!

    #75786
    deadlyhifi
    Participant

    ooh, that’s good to know. That’s not the explanation then. oh well. Maybe it will all blow over :)

    #75784
    deadlyhifi
    Participant

    mmm, just noticed that cookies with _utma, _utmb etc. state they come from

    .MYWEBSITE.com

    whereas the “wordpress_logged_in_NUMBER” states it’s website as

    www.MYWEBSITE.com (without the http this forum is auto adding it)

    could the fact that it has www at the start be the issue?

    My test site, on a subdomain, shares the same source – but then because its a subdomain it doesn’t have the www at the start.

    thanks for your continued replies ck.

    #75782
    deadlyhifi
    Participant

    They definitely have a different name.

    wordpress_logged_in_TWOdifferentVALUES

    tried to do the clear cookies thing in a function but, even though it’s running correctly, the cookie reset is getting ignored. Can’t figure out why :(

    #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.

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