Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

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

    Hello, I have this code (which comes from another support thread here) on my front-page.php:

    <table id=”highest”>

    <?php $top_topics = bb_top_topics(); ?>

    <?php foreach ( $top_topics as $topic ) : ?> // line 70

    <tr<?php topic_class(); ?>>

    <td>“><?php topic_title(); ?>

    </td>

    <td class=”num”><div class=”rating-holder”><?php bb_rating();?>

    <span class=”count”><?php bb_rating_count(); ?>

    </span>

    </div>

    </td></tr>

    <?php endforeach; ?>

    </table>

    And under it the code for latest topics.

    It gives me this error:

    Warning: Invalid argument supplied for foreach() in /home/home1/novapojistovna_cz/public_html/www/bbpress/bb-templates/kakumei/front-page.php on line 70

    Can anybody help, please. Don’t quite understand what is wrong :-(

    Thanks

    #68938

    In reply to: reCAPTCHA for bbPress

    _ck_
    Participant

    Just out of curiosity, what happens if recaptcha.net is down or gets hit by a ddos attack? Do thousands of sites that rely on them suddenly stop being able to register people?

    I need to upgrade my Human Test so it doesn’t rely on sessions and then it should be even more useful for a completely local solution.

    Meraj Chhaya
    Member

    Hi all!

    I run wordpress 2.6 at phonereport.info. I tried installing bbPress 1.0 Alpha so that it could integrate with WordPress, but just as I concluded the installation successfully, I get the following error:

    ‘Parse error: syntax error, unexpected T_STRING in /home/nokisat7/public_html/phonereport.info/test/bbpress/bb-config.php on line 20’

    Line 20 is the following:

    ‘// the value of their equivalent keys in the WordPress file wp-config.php’

    Here is the installation log, I changed the password:

    ‘Referrer is OK, beginning installation…

    >>> Setting up custom user table constants

    Step 1 – Creating database tables

    >>> Modifying database: nokisat7_bbpress (localhost)

    >>>>>> Table: bb_forums

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_meta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_posts

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_terms

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_relationships

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_taxonomy

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_topics

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    Step 2 – WordPress integration (optional)

    >>> WordPress address (URL): http://phonereport.info/

    >>> Blog address (URL): http://phonereport.info/

    >>> WordPress cookie keys set.

    >>> WordPress “auth” cookie salt set from input.

    >>> WordPress “logged in” cookie salt set from input.

    >>> Fetching missing WordPress cookie salts.

    >>>>>> WordPress “secure auth” cookie salt not set.

    >>> User database table prefix: wp_

    >>> User database name: nokisat7_wrdp9

    >>> User database user: nokisat7_forum

    >>> User database password: something

    >>> User database host: localhost

    >>> User database character set: utf8

    Step 3 – Site settings

    >>> Site name: PhoneReport test forum

    >>> Site address (URL): http://phonereport.info/test/bbpress/

    >>> From email address: only.meraj@merajnet.com

    >>> Key master role assigned to existing user

    >>>>>> Username: admin

    >>>>>> Email address: only.meraj@merajnet.com

    >>>>>> Password: Your existing password

    >>> Description: Just another bbPress community

    >>> Forum name: PhoneReport test forum

    >>>>>> Topic: Your first topic

    >>>>>>>>> Post: First Post! w00t.

    >>> Key master email sent

    Installation complete!’

    Please let me know what else you wish to have.

    There are two different databases: one for the wordpress installation, the other for bbpress.

    Thank you in advance, and keep up the good work!

    #68908

    In reply to: WPMU integration

    Klark0
    Member

    I count the number of blogs and the number of the posts using two queries. All posts from all the other blogs are copied to blog_id 1. So i do like so

    $count_posts = wp_count_posts();
    echo $count_posts->publish;

    and

    $stats = get_sitestats();
    $tmp_blog_count = number_format ($stats[ 'blogs' ] );
    print "".$tmp_blog_count." blogs";

    Can bbpress grab those ?

    #68566
    jonkristian
    Member

    Hm, turns out I still have trouble accessing admin panel in bbpress. Straange, I tested it with login via both bbpress and wp the last time, however now, it doesn’t seem to work. :/

    Regarding the setup, i followed Deadpan’s setup down to the very last line, except that i kept the hash in

    $bb->logged_in_cookie = ‘wordpress_logged_in_ikeptthishashin’;

    #4262

    Topic: reCAPTCHA for bbPress

    in forum Plugins
    dchest
    Member

    I wrote a plugin to add reCAPTCHA to user registration page. (It’s inspired by _ck_’s Human Test.)

    I’ve submitted request to add it to the plugin repository, however 1) the submission form didn’t have any feedback, so I ended up with two identical requests, 2) I didn’t realize you have to put the whole readme.txt to description field of this form. Could someone fix this, and write at least a few sentences describing the submission process?

    Anyway, you can download it from http://www.codingrobots.com/files/bb-recaptcha.zip

    IMPORTANT: You must get an API key from the reCAPTCHA project to use it. See readme.txt.

    Tested under 1.0-alpha1, may not work with previous versions on some PHP deployments.

    See how it works here: http://forum.codingrobots.com/register.php

    Comments and code review are welcome!

    #68590
    Vietson
    Member

    This theme is still under development. I have yet to test the theme out in 1.0. alpha.2. But I will once WP2.7 has a stable release…

    A WP Theme (2.6.3) can be seen at http://idolsavenue.com

    #68636
    johnhiler
    Member

    The bbPress I’m using is on 0.83… upgrading to 0.9.0.2 on a test server, and then testing the integration with WordPress and Mediawiki.

    Once everything is looking good, we’ll migrate the live site to use bbPress 0.9.0.2. Then I’ll install this plugin – excited!

    Yah Mediawiki is tricky stuff. The worst part is that the cookies don’t truly integrate! I used a plugin to get both software reading off of the same bbPress users table… so that works. But you have to re-sign in manually as you click from the blog/boards to the wiki… alas.

    Will keep you posted on the plugin!!

    #68885
    wiseacre
    Member
    #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

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