Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,526 through 10,550 (of 11,584 total)
  • Author
    Search Results
  • #2699
    refueled
    Member

    I have just released my latest bbPress theme: Misty Morning.

    Demo

    Download

    I also have a matching WordPress theme:

    Demo

    Download

    Let me know what you think!

    #2687

    Topic: Replace word in Post

    in forum Plugins
    ruilouis
    Member

    Hello all,

    I tried to realize a plugin that would allow me to replace some words by others in the post. I created the DB contained the words to replace and the word to put instead, i created the function and all is working fine, BUT, I don’t find how to use it on BBPRESS.

    My function is something like

    echo replace_words($TextToBeTransform,$WordToReplace)

    , and the function use the DB to see what is be put instead of the $WordToReplace. As I can see, the post are printed out from the post.php of the template we do use.

    I got this:

    <?php

    $tset="A trial phrase.";

    $WordToBeReplaced="trial";

    ?>

    <div class="threadpost">

    <div class="post">

    <?php echo replace_words( $test,$WordToBeReplaced); post_text()?></div>

    <div class="poststuff">

    <?php printf( __('Posted %s ago'), bb_get_post_time() ); ?>

    ">#

    <?php post_ip_link(); ?> <?php post_edit_link(); ?>

    <?php post_delete_link(); ?></div>

    </div>

    It print me exactly as I want the “A trial phrase” replace trial by “new” (from the DB).

    The problem is that when I want to apply this to the text of the post, post_text(), it won’t work at all. I see that this post_text() is actually applying filters and others to the text, which my cause my function to fail (no error, it just don’t replace the words).

    Could someone tell me where should I apply my own filter replace_words() for it to be taken into account?

    Thank you very much.

    #54426

    In reply to: Add nofollow to links

    bedbugger
    Participant

    Okay, upon further testing, it does seem to be working with older posts–in certain circumstances.

    Let me explain

    If you simply type (or in the past typed) in a URL, this plugin adds “nofollow.” But if you write a sentence and add a link to the text, it doesn’t. You can see this in effect here:

    http://bedbugger.com/forum/topic/test-5?replies=3#post-14812

    Compare the two tests of a link to google. The first, where the URL is typed in, adds nofollow, the second, where the HTML is used to link out to google, doesn’t.

    Please help me fix this? Thanks again, this is a huge help!

    #54425

    In reply to: Add nofollow to links

    bedbugger
    Participant

    livibetter,

    Thanks so much! It works beautifully.

    I know it works on new posts, on URLs in the post.

    Does it also work on URLS in old posts, when they’re viewed? I am not able to test that.

    Also, it obviously doesn’t work on author’s website links (the ones saves in their user profile, I mean). How do we make those nofollow if we want to?

    Many, many thanks. I am learning, but slowly.

    #61854
    Sam Bauers
    Participant

    The quickest (and dirtiest) solution might be to change line 91 in bb-settings.php to:

    require( BBPATH . BBINC . 'db.php');

    .

    I haven’t tested this, but it should work.

    It will force bbPress to use the MySQL PHP extension instead of MySQLi

    #57159
    theshovel
    Member

    Hi All,

    I have BBpress integrated with WordPress. We just launched the forums yesterday and noticed that users were registering, but not posting. After some testing it looks like the password emails are being sent, but they can take up to five minutes. Users seem to be getting impatient and leaving. We are on a hosted service and the email service works just fine so it’s not the server. Any ideas what is happening?

    #61846

    In reply to: Next page not working

    chrishajer
    Participant

    It certainly LOOKS like a rewrite problem. When you click a link that looks like http://pakten.se/forum/forum/testa-loss/page/2, you are redirected to http://pakten.se/forum/forum/testa-loss. That to me says it’s a rewrite problem, maybe only when the url contains “page” or something.

    You can try it with mod_rewrite set to false and see if it works properly. If it does, then it’s an issue with the rewrite rules. You could also check the apache logs (if you have access to them) to see how the rewriting is happening and why it’s doing this. It doesn’t result in a 404, it just redirects someplace that’s incorrect. I think that’s because of the rewrite rules. I would try it with mod_rewrite to false and see what happens.

    Good luck.

    #56055
    c00l2sv
    Member

    Glad we could help somehow…

    Good luck!

    #56054
    madcap
    Member

    Well, that was definitely the problem.

    I have the bbpress directory in the wordpress directory, and had the language parameter set in both. I read your post above, set the lang in bbpress to ”, and viola! It worked immediately.

    It took me forever to find this post, but I’m glad it was posted. I would have died of old age before I figured that out on my own.

    #61845

    In reply to: Next page not working

    I managed to duplicate the problem on my own project. Take a look, Next link (Nästa in Swedish, way down) doesn’t work. :(

    http://pakten.se/forum/

    and

    http://pakten.se/forum/forum/testa-loss

    The forum is installed in /forum. There’s a WordPress MU installation in the root directory, with working permalinks.

    #61822

    In reply to: Lost in Login Loop

    chrishajer
    Participant

    There’s nothing special to bbPress to get this working.

    What browser are you trying with? And is this always the admin user or have you created another user and tested with that?

    #61811
    pwdrskier4
    Member

    Okay now the latest discussions do not show up on frontpage because I have attempted to completely reinstall bbpress but it still gets the same error.

    #2657
    pwdrskier4
    Member

    I am getting a new error: Cannot select DB.

    My forums were set up and working at http://www.snownation.com/forums/

    All of the sudden, now I am getting this error. I have checked the DB settings like 10 times. You will notice on my frontpage at snownation.com the latest discussions pluggin is still pulling info and it has the same login info as does my wordpress setup.

    Any ideas???

    #61800
    livibetter
    Member

    I tested on my test forum (no plugins activated), that didn’t happen. The subforums of deleted forum were promoted one level.

    #60418
    alexhertz
    Member

    Captcha won’t help. All spam software is trained for captchas. If all bbpress forum would use the same captcha, spammers will quickly adapt. Email verification is also useless: every decent spam package allows for confirmation of mail links.

    Try more of Turing test. One option is a two-level confirmation: a mail link AND after it is clicked – a captcha. Something new that spam software doesn’t expect.

    Or send an email with password and OPT-OUT (rather than confirmation) link. Automated software will click the link, and opt out of the forum.

    Or send email verification with text to be typed into url window rather than a link.

    Or, send confirmation email which must be confirmed by reply-to rather then clicking a link. Still better, reply-to and type something in the subject line.

    #57152
    chrishajer
    Participant

    AndrewMac, did you try the test in this post:

    https://bbpress.org/forums/topic/registration-email-not-being-sent-new-issue?replies=15#post-6931

    That will confirm if you can send mail from your server. It’s odd that WordPress works but bbPress does not. Is it possible the $bb->admin_email needs to be a real email address for the mails to be sent by your host? Is that a real email account?

    Also, are there any mail logs or error logs? Maybe that would provide a clue.

    #61784

    In reply to: Create a blank page

    livibetter
    Member

    You need to format the return array of bb_top_topics() on your own.

    <?php
    /*
    Page Name: Highest rated
    2007-11-29 14:47:26
    */
    $sidebar_area = "forum";
    // $sidebar_ibox = "topic";
    require_once('./bb-load.php');
    bb_get_header();
    ?>
    <div id="content" class="narrowcolumn">
    <h2>Most highly rated topics</h2>
    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>
    <?php if ( $topics = bb_top_topics() ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    </div>
    <?php
    bb_get_footer();
    ?>

    #61602
    viveksivaram
    Member

    @ chrishajer

    thanks for the reply.

    My site url is : http://aavaas.com

    My forum url is : http://aavaas.com/forums

    I have created a test user : bbpresstest

    Password is : test

    Currently there is only 1 post in my forum – “Your first topic”

    When I am logged in the url for the same is : http://aavaas.com/forums/topic/1?replies=1

    When I am logged out the url is : http://aavaas.com/forums/topic/1

    I believe the later is a pretty permalink whereas the first is not.

    Help here is appreciated. My .htaccess is located in the root folder with the following lines:

    #

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forums/

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

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

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

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

    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forums/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/([^/]+)/?$ /forums/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /forums/tags.php [L,QSA]

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

    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forums/profile.php?id=$1&tab=$2 [L,QSA]

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

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

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

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

    RewriteRule ^rss/?$ /forums/rss.php [L,QSA]

    RewriteRule ^rss/forum/([^/]+)/?$ /forums/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([^/]+)/?$ /forums/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([^/]+)/?$ /forums/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([^/]+)/?$ /forums/rss.php?profile=$1 [L,QSA]

    </IfModule>

    #58219

    In reply to: bbSync

    vafaaaan
    Member

    it was a test plugin .. i tried to understand the db relationships, and i did .. now i know now how to update a post tag .. so there is nothing usable? :) ok

    #58211

    In reply to: bbSync

    vafaaaan
    Member

    that was just a test if i understand the relationships between the tables. I can probably write a own plugin that updataes the tags bb_tags etc. but thats not a good solution

    #61717
    Null
    Member

    Nice, I like it.

    Suggestion: auto deletion after xx days/hours. As I understand, this has te be done manualy by the admin? (with 200 regis spams a day this is gonna be a day job).

    Is this the same mail where the password is in when you registrate? Or do we get 2 seperate mails. Would like to see it in 1 mail then.

    Haven’t tested this (I am at work), so if my suggestions are already in, I appoligize

    Null

    #61566

    In reply to: How Do I Do This?

    chgogrrl99
    Member
    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="hottags">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
    </div>

    <div id="discussions">
    <?php if ( 0 > 1 ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $topics ?>
    </table>
    <?php endif; // $topics or $super_stickies ?>

    <?php
    if ( bb_forums() ) :
    global $bb_forums_loop;
    $_loop =& $bb_forums_loop;
    bb_forum();
    $skipForum = false;
    while ($_loop) :
    if ($_loop->walker->depth == 1) {
    if (in_array(get_forum_id(), array(2, 3, 4, 5, 6, 7, 18, 19, 20, 101)))
    $skipForum = true;
    if ($skipForum) {
    ?>
    <h2<?php bb_forum_class?>><a href="<?php forum_link(); ?>">Click Here To Go To the <?php forum_name(); ?> Forums</a></h2>
    <?php
    }
    else {
    ?>
    <h2<?php bb_forum_class?>><?php forum_name(); ?></h2>
    <table id="forumlist">
    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php
    }
    }
    elseif (!$skipForum) {
    ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php
    }
    bb_forum();
    if ($_loop === null || $_loop->walker->depth == 1) {
    if (!$skipForum)
    echo '</table>';
    $skipForum = false;
    }
    endwhile; ?>
    <?php endif; // bb_forums() ?>

    <?php if ( bb_is_user_logged_in() ) : ?>
    <div id="viewdiv">
    <h2><?php _e('Views'); ?></h2>
    <ul id="views">
    <?php foreach ( bb_get_views() as $view => $title ) : ?>
    <li class="view"><a href="<?php view_link(); ?>"><?php view_name(); ?></a></li>
    <?php endforeach; ?>
    </ul>
    </div>
    <?php endif; // bb_is_user_logged_in() ?>

    </div>

    <?php else : // $forums ?>

    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h3>

    <?php post_form(); endif; // $forums ?>

    <?php bb_get_footer(); ?>

    #61716
    vafaaaan
    Member

    Great! .. im gonna try it right now :) brb..

    Update 1: No mail yet. Dont know if i have set that up correct. Can see this in phpmyadmin, in wp_users..

    ID : 2

    user_login : xxxxxxx

    user_pass : 63db6f94498b383aa4eebb38b9d41505

    user_nicename :

    user_email : xxxxxx@gmail.com

    user_url :

    user_registered : 2007-11-26 08:21:45

    user_activation_key :

    user_status : 0

    display_name :

    user_activation_key shouldnt be empty ?

    Update 2: in wp_usermeta..

    umeta_id : 12

    user_id : 2

    meta_key : act_code

    meta_value : 12345678 (eight numbers & letters value)

    dammit! this is a winxp test server with wamp.. dont think mail() works here :(

    #2633
    livibetter
    Member

    Should be used for TESTING ONLY

    Download this file

    Install:

    Put activate.php to your template folder.

    Put bb-activate.php to your bbPress root folder.

    Put EnhancedRegistration directory to my-plugins

    Only tested on kakumei template without other plugins. Currently, it only support user activation. User will receive an additional mail with a code for activation. They can click the link within that mail, or manually navigate to the activation page.

    And Key Master can delete user haven’t activated over ## hours.

    Possible features in later releases: Registration Approval, Registration Email Verification.

    Please tell me what do you think!

    #61552

    In reply to: How Do I Do This?

    chrishajer
    Participant

    Color, bold and underline looks good.

    I see the latest discussions are gone.

    I see a logo but it’s under the login box, in Firefox 2.0.0.9 anyway. I won’t mess with that at all since you are going to redo it. You could move it over with some left-padding in the CSS if you wanted to.

    For now, you could do something like add a text link to the website home, like I did here a long time ago:

    http://www.riversideinfo.org/forum/

    That is a modification to header.php to add that text link, and I think I modified the style.css to move it where I wanted it.

    Regarding the cities, where’s livibetter? :) (seriously, I haven’t looked at it at all…)

Viewing 25 results - 10,526 through 10,550 (of 11,584 total)
Skip to toolbar