Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 9,826 through 9,850 (of 11,571 total)
  • Author
    Search Results
  • #68487

    In reply to: Customizing gravatars

    Okay, having tested it a bunch of different ways, I can’t get it to work.

    I want to make my own image the ‘default’ for the non-gravatard people (which works fine on WordPress).

    In WordPress it’s this:

    <?php echo get_avatar(get_comment_author_email(),50,'http://www.foo.com/gravatar.png');?>

    For bbpress we have this post_author_avatar(); on post.php. Passing the URL into that, either on it’s own or as $default doesn’t work.

    Using echo bb_get_avatar( bb_get_user_email(post_author()), 48, 'http://www.foo.com/gravatar.png' ); didn’t work.

    I’m gonna keep tossing stuff up against the wall for now.

    #63064
    _ck_
    Participant

    Okay this one is testing working.

    For anyone else that wants to use this, you have to replace the domain name by hand. It’s hardcoded for speed, sorry.

    All other target=”_blank” plugins should be uninstalled. Any existing links with target=”_blank” will be left in place for performance since target is not added by bbPress by default.

    <?php
    /*
    Plugin Name: Target Nofollow External Only
    Description: append target="_blank" and rel="nofollow" only on external links
    Plugin URI:
    Author: _ck_
    Version: 0.0.1
    */

    add_filter('post_text', 'target_nofollow_external_only',999); // unfortunately we have to do this on every page load and not in pre_post

    function target_nofollow_external_only( $text ) {
    $domain="travel-writers-exchange.com"; // domain to exclude from target and nofollow
    $text = preg_replace('|<a (.*)rel=['"]nofollow['"](.+)?>|iU','<a $1$2>', $text); // strip ALL nofollow
    $text = preg_replace('|<a (?=([^>]+http://))(?!([^>]+'.$domain.'))(.+)>|iU', '<a $3 rel="nofollow" target="_blank">', $text); // add back in when needed
    return $text;
    }
    ?>

    I’m not happy about the performance of this technique because it has to be done in post_text for every time a page is displayed, but there’s no other easy way around bbPress/WordPress’s unfortunate use of make_clickable with hardcoded “nofollow” in post_text.

    #4251
    irr1449
    Member

    I’ve added a “geo” field to the topics table that contains latitude and longitude data for each topic. The topics table now contains lat/lng from different cities all over the US.

    I’ve modified forum.php to take latitude and longitude GET parameters to use as a “center.” Then I select topics within range of X miles and order by distance from “center.”

    To hack this in I wrote a new function in classes.php called generate_geo_topic_sql. This worked enough so that I can test my idea, but its not a long term solution.

    So now I need to somehow integrate this query into generate_topic_sql. I still want to retain the original functionality, but just create a different view if I’m using a “center” point.

    This is the query. You can not run multiple statements at once in PHP so each of these queries need to be executed separately.

    SET @center = GeomFromText(‘POINT(” . $lng . ” ” . $lat . “)’);

    SET @radius = 1;

    SET @bbox = CONCAT(‘POLYGON((‘,X(@center) – @radius, ‘ ‘, Y(@center) – @radius, ‘,’,X(@center) + @radius, ‘ ‘, Y(@center) – @radius, ‘,’,X(@center) + @radius, ‘ ‘, Y(@center) + @radius, ‘,’,X(@center) – @radius, ‘ ‘, Y(@center) + @radius, ‘,’,X(@center) – @radius, ‘ ‘, Y(@center) – @radius, ‘))’);

    Then this was the “hack” query that I wrote to get it to work. I dumped the SQL from the original generate_topic_sql and grafted on what I needed.

    SELECT t.*,SQRT(POW( ABS( X(t.geo) – X(@center)), 2) + POW( ABS(Y(t.geo) – Y(@center)), 2 )) AS distance FROM bb_topics AS t WHERE t.topic_status = ‘0’ AND t.topic_sticky != ‘2’ AND t.forum_id = ‘” . $this->query . “‘ AND Intersects( t.geo, GeomFromText(@bbox) ) AND SQRT(POW( ABS( X(t.geo) – X(@center)), 2) + POW( ABS(Y(t.geo) – Y(@center)), 2 )) < @radius ORDER BY distance ASC LIMIT 3

    The problem is that paging does not work (and a few other things) in my hackjob function. I need to find a way to integrate this into the regular function so that I can maintain all the functionality.

    Any suggestions?

    #63060
    _ck_
    Participant

    Well we could cheat and make the plugin skip links that have your domain name or no http:// in it.

    function bb_target_blank( $text ) {
    $text = preg_replace('|<a (?=http://)(?!travel-writers-exchange.com)(.+?)>|i', '<a $3 rel="nofollow" target="_blank">', $text);
    return $text;
    }

    This is untested.

    It’s a fancy regex feature called negative lookahead.

    Try it and see what happens.

    Doing nofollow for only externals is essentially the same thing, I’ve added it to the replacement above.Make sure you have no additional tweaks for nofollow. I don’t think it’s on by default? If so, try

    remove_filter('post_text', 'bb_rel_nofollow');
    remove_filter('pre_post', 'bb_rel_nofollow');

    #66115

    I noticed that the cookie & secret related data changed between WordPress 2.6.2 and 2.6.3. Now I am able to find the information that bbPress 0.9.0.2 requests when attempting to integrate with WordPress.

    Does this mean that WP 2.6.3 fixes the cookie-related issues that led to the edict “Do not try to integrate WP 2.6 and bbPress 0.9”? Or is that still a bad idea?

    and no, I haven’t tried to integrate the two in my latest install. I’m still trying to deal with some of my other install issues. I’ve stopped trying to integrate until I actually have the forum working.

    #68633
    _ck_
    Participant

    Don’t send $500, that’s crazy. Well unless that’s a single day of your adsense or something, lol. Donate here.

    https://bbpress.org/plugins/topic/instant-password/

    Make sure you install the Human Test plugin with it.

    #68630
    _ck_
    Participant

    I suggested they change this in the core long ago and let the user choose passwords while sending only an activation link via email.

    If you don’t need them to verify via a link in the email this could be written in an hour as a plugin. The code for password entry with re-entry verification can be lifted from the 1.0 alpha source.

    I do recommend you use my Human Test plugin however.

    #68629
    edwinfoo
    Member

    I have found a developer that can do this for us at a reasonable price.

    It will be done as a plugin with no changes to core files. Will include double password entry for vertification, captcha resolution and outbound welcome email containing username and user selected password.

    Please contact me admin (at) glamrock.com and we can get it figured out. It could potentially be tested and road ready in a couple of days.

    #68827
    _ck_
    Participant

    I have to leave for the rest of the day but essentially if you are able to add the rest of the rules without an error 500, then go back into bb-config.php and put back the line for slugs.

    Then the forum should start using slugs.

    To finish up after it’s all working, go find those three extra rewriterule lines I posted much earlier and add those to the list and then you should be 100% done.

    After those extra three lines are in, remember to test the front-page pagination which is what started this entire exercise in the first place, and hopefully they will be error free.

    #68792
    _ck_
    Participant

    do something like this in your topic.php template just before <?php endforeach; ?>

    <?php if (!isset($adsense)) { $adsense=1; ?>
    <li>
    adsense javascript goes here
    </li>
    <?php } ?>

    (untested)

    #68772
    _ck_
    Participant

    Actually, I think you want to try disabling MultiViews

    Options -MultiViews

    Note the minus instead of the plus.

    If that doesnt’ work, what happens when you try to go directly to

    http://www.domain.com/forum/?new=1

    when NOT logged in? 404 ?

    monica_gs
    Member

    Hi,

    bbpres 0.9.0.2

    Im exhausted looking for a solution so i post, after a clean install in hostgator, when I click on Latest Discussions ADD NEW link, while not logged, I get a link similar as:

    http://www.domain.com/forum/bb-login.php?re=http%3A%2F%2Fwww.domain.com%2Fforum%2F%3Fnew%3D1

    and after clicking on it: I got a WordPress 404 not found page.

    I have tried adding and .htaccess in my bbpress directory with Options +MultiViews

    I have turned off-on pretty permalinks,

    I have installed a wordpress 404 fixer plugin,

    But nothing works,

    Only if is logged a user the ADD NEW link works.

    Please helpme I am on a deadline weekend.

    best regards

    monica

    #4237
    gio50000
    Member

    I just moved WordPress and bbPress to a new host. Everything is working fine with both apps except I can no longer log into bbPress with my WP account and the posts using the BBpress Latest Discussions plugin are no longer displaying.

    The bb-config.php file is configured correctly because the forum posts are displaying. Is there an .htaccess file elsewhere than the root that’s missing? Is it a permission issue?

    Any clue what I’m missing?

    Thanks,

    Gio

    #4234
    jabberwock
    Member

    In forum.php and front-page.php, the latest poster for each topic is identified. Is it possible to also identify the first poster– ie the person who started the thread and perhaps also when the thread was started? After sifting through code for several hours, I’m not sure if I’m overlooking something, or if I simply cannot find something that is not there. Thanks.

    #68775
    epiphone
    Member

    How come the sticky text is not showing on the latest discussions bit on the frontpage though?

    #4228
    epiphone
    Member

    Hi there,

    My bbPress forum (0.9.2) has been theme and databased intergrated, I’ve just decided to test sticky topics, and this occurs on a sticky topic:

    http://www.james-blogs.com/forum/topic.php?id=3

    What is this [sticky] code doing, Is this meant to be how a sticky topic is identified to someone or is broken bbcode?

    Regards,

    James

    #4224
    _ck_
    Participant

    update: I’ve now included this functionality in the topics-per-page plugin so use that instead which is maintained and not this mini-plugin which will not work properly with 1.0a

    Here’s something I had made a mental note of quite awhile ago but forgot to do, add pagination to the front-page for the latest discussions. You can see a demo near the bottom of http://bbshowcase.org/forums/

    (the following two functions are included in the 0.0.4 version of topics-page-page plugin, so don’t use them if you have that)

    add_filter('get_latest_topics_limit','front_page_pagination',999);
    function front_page_pagination($limit="") {
    global $page;
    if (is_front() && $page>1) {$limit.=" OFFSET ".($page-1)*bb_get_option('page_topics');}
    return $limit;
    }
    function front_page_pages() {
    global $page, $bbdb;
    echo get_page_number_links( $page, $bbdb->get_var("SELECT SUM(topics) FROM $bbdb->forums"));
    }

    1. add to your front-page.php template

    <div class="nav"><?php front_page_pages(); ?></div>

    AFTER

    <?php endforeach; endif; // $topics ?>
    </table>

    2. If you use rewrite slugs you MUST add the following rule to your .htaccess file

    RewriteRule ^page/([0-9]+)/?$ /forums/?page=$1 [L,QSA]

    anywhere before </IfModule>

    where /forums/ is the path to your bbpress install.

    #68747

    In reply to: How to move a forum?

    Those plugins come default for 1.0alpha2 under the plugins tab, you have to turn them on. I suspect it’s POSSIBLE if you downloaded the alpha version, they might work in a non-alpha install, but it’s untested.

    But really, if you’re just moving your domain, you can pretty much do what you’d do for WordPress or any other PHP/SQL driven site. You have two basic options.

    1. Download a copy of the main bbpress files from your OLD server to your hard drive and edit wp-config.php to suit the new server.
    2. Go back to your OLD forum and go to options and change the url (both of them) to that of your new site.
    3. Download your database (but keep the old one just in case), upload this new database and the copy of the wordpress core files with the edited bb-config.php to your NEW server.

    Or…

    1. Install a new forum on the new server.
    2. Export the forum content from the OLD server into a BBXF file
    3. Import the data into the new forum.

    #68363
    agitainment
    Member

    Hey, there.

    Well I finally got around to validating my feeds. They do in fact validate, but I’m still getting the document tree intermittently on Firefox 3.0.3 for Mac OSX. I don’t seem to be having a similar problem on Safari (though I haven’t tested it as extensively). Here’s the output for the feed at http://agitainment.com/ics/forum/rss.php?forum=3:

    <!– generator=”bbPress” –>

    <rss version=”2.0″>

    <channel>

    <title>

    Agitainment Forum: Forum: Stan and Jess – Recent Posts

    </title>

    <link>http://agitainment.com/ics/forum/</link&gt;

    <description>Pulse-Pounding Agitainment Letters-Page and Forum!</description>

    <language>en</language>

    <pubDate>Sun, 02 Nov 2008 17:36:29 +0000</pubDate>

    <item>

    <title>admin on “Stan and Jess is on the way!”</title>

    <link>

    http://agitainment.com/ics/forum/topic.php?id=14#post-30

    </link>

    <pubDate>Wed, 22 Oct 2008 22:57:57 +0000</pubDate>

    <dc:creator>admin</dc:creator>

    <guid isPermaLink=”false”>30@http://agitainment.com/ics/forum/</guid>

    <description>

    <p>If you haven’t already been to stanandjess.com, there is currently a place-holder cartoon on the site. Rest assured, the real cartoon is coming soon and will be updating weekly. I’ll be sure to let you all know when I roll out the first strips.

    </p>

    </description>

    </item>

    </channel>

    </rss>

    As I mentioned before, if I page back on the browser and hit the feed again, it usually works.

    Is it possible this is a Firefox issue?

    Any ideas?

    Help, please. A very basic question, maybe a sticky would be a good idea? I have successfully installed and integrated the latest alpha version (as of today) with WordPress 2.6.3, (congratulations to the team) but I can’t figure out how to get into the administration area.

    #4215

    Hi,

    I am in the middle of the install of bbPress (latest alpha as of today) and I get asked for the user database table prefix. Looking at my wp-config.php file, all I see is the following:

    // You can have multiple installations in one database if you give each a unique prefix

    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    Does that mean that I don’t have a WP user database table? What do I need to do? This is my first site and I don’t have any users yet except myself as admin – translation: I am an extreme newbie and just want to get the rest of this install finished.

    I am using WordPress 2.6.3

    Cheers

    #68646
    _ck_
    Participant

    Anyone willing to give an early version a test for compatibility?

    There is no account creation feature yet but you can attach OpenID identities to any existing account, and then login with the OpenID instead of your regular bbPress login (the regular login remains intact).

    #68211
    xeroxss
    Member

    I’m using wordpress 2.6.3 and just upgraded my forum to 1.0-alpha-2 integration works perfectly by following the docs to the letter. The first time I upgraded I didn’t manage to make the integration work the main reason probably is because I just copied the bb-config.php from my old installation. This time I deleted it and do the install again, I put all my database information and just follow the prompts it will detect that bbpress is installed then proceed with the database upgrade. Just make sure that settings for your bb-config.php and wp-config.php are the same for AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY’ under the bbpress integration menu in the admin panel also make sure that the “auth” = “auth_salt”, “secure auth”=”secure_auth_salt”, and “logged in” =”logged_in_salt” in WordPress /wp-admin/options.php are the same.

    The only issue I found is that when i logged out in either bbpress or WordPress i’m still logged in on the other. Probably a cookie issue i’m not sure though, so I have to logged out manually from both.

    –Update: After additional testing I found out that when I logged in using WordPress I can only logged out completely using WordPress logged out meaning I am logged out both from bbpress and WordPress. Same with bbpress if I logged in using bbpress I can logged out completely by using bbpress logged out. If I use WordPress login I cannot logged out from bbpress by using bbpress logged out but can completely logged out if I use wordpress logged out. If I logged in using bpress, I can logged out in WordPress by using WordPress logged out but I’m stil logged in in bbpress so if I want to logged out completely I have to use bbpress to logged out completely.

    #68119

    Viewing source was the first thing I tried. Old habits die hard ;) But really, there was nothing.

    I did not check the error logs, so I did that right now.

    On Server:

    Make sure error-log is set to verbose for now.

    On bbPress:

    Enable XML-RPC – YES

    On WordPress:

    Install plugin – Done

    Activate Plugin – Done (no errors)

    Configure Plugin –

    URL (http://jorjafox.net/forums/)
    ID/Password (Ipstenu / 555Nope!)
    Caching Enabled - NO
    Enable forums widget - YES
    Enable Topics widget - YES
    Copy new WordPress posts to bbPress (not implemented)

    Then I went into widgets and picked ‘bbPress latest topics’, put it at the bottom of my sidebar. I gave it the title of ‘Latest Topics’ and saved my changes.

    The header shows up on the bottom of the side bar, no content.

    Error log is empty. Frustration resumed :(

    By the way, if the standalone function is called to be echoed like print_r($myarray);, shouldn’t that output something?

    #4209
    _ck_
    Participant

    I just wanted to announce I have a primitive prototype of OpenID working with bbPress and should have a more stable version for experimental testing within a few days (likely by the end of the weekend). The only requirement is your PHP needs CURL with https (ssl) support, which many servers have or can easily add ie. via cpanel’s rebuild PHP (check your PHPINFO to be certain).

    I finally got an old openid 1.1 framework working with openid 2.0 so this makes it possible to use it with all the newest providers: aol, yahoo, microsoft and now even Google (as a “consumer”, not as a server).

    The biggest problem was making it work without extra libraries like the complex math support and even DOMXML which is not available on many shared hosting PHP4 servers. But found a way around that too ;-) I’ll eventually add fsockopen support with ssl so even CURL is not a requirement.

    ps. OpenID on WordPress.com needs to be fixed to offer a secure login when a cookie is not present like every other provider. This is annoying :-(

Viewing 25 results - 9,826 through 9,850 (of 11,571 total)
Skip to toolbar