Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,176 through 10,200 (of 11,578 total)
  • Author
    Search Results
  • #64919
    mrhoratio
    Member

    IPSource,

    The short answer is you have to convert your WordPress theme to bbPress by hand.

    I’m currently doing the same thing you’re trying to do on my WordPress blog with bbPress also. It pretty much means taking your WordPress theme and going through each file one by one and converting them to bbPress. So you have to strip out the WordPress tags and functions in the theme files and replace them with bbPress versions. There’s no list of equivalent tags, so translating them is just gonna take a lot of trial and error and testing.

    #64665
    Sam Bauers
    Participant

    @ mykes

    I double checked, the latest stable version of WordPress MU uses the old password hashing and cookie types.

    You can dumb down bbPress to work with that version of WordPress MU by using both of these bbPress plugins.

    https://bbpress.org/plugins/topic/mouldy-old-cookies-for-bbpress/

    https://bbpress.org/plugins/topic/md5-insecurity-for-bbpress/

    #64891
    _ck_
    Participant

    It would be easier to disable the auto-link entirely for a post when is detected than to parse it out, if that will do. Somehow I missed the original question was scrolling on code, sorry about that but as you found it’s very simple CSS.

    Disabling auto-link is something like: (untested)

    remove_filter('post_text', 'make_clickable');
    add_filter('post_text', 'make_clickable_if_not_code');
    function make_clickable_if_not_code($text) {
    if (strpos($text,'<code>')===false) {return make_clickable($text);}
    return $text;
    }

    [code] is detected than to parse it out, if that will do. Somehow I missed the original question was scrolling on code, sorry about that but as you found it’s very simple CSS.

    Disabling auto-link is something like: (untested)

    remove_filter('post_text', 'make_clickable');
    add_filter('post_text', 'make_clickable_if_not_code');
    function make_clickable_if_not_code($text) {
    if (strpos($text,'<code>')===false) {return make_clickable($text);}
    return $text;
    }

    #63537
    mdata
    Member

    In addition to the above, the following seem to work properly

    Human Test for bbPress

    Post Count Plus – Dynamic.Titles & More!

    #64874
    bobbyh
    Member

    This also happens to me! However, I’ve never looked into it…

    I just looked, and bbPress uses newlines to indicate breaks. This is parsed into <p>’s by a filter upon display. However, the edit textarea shows the unparsed text with just the newlines, and this gets mangled by tinymce.

    If you set this tinymce config value, though, it will turn newlines into br’s, which should fix this problem for new posts:

    * http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/convert_newlines_to_brs

    I just tested this, and it works on new posts! (It won’t work on old posts…)

    #3351
    chilledfresh
    Member

    I’m using the latest version of tinyMCE in my bbPress forum, but have run into an issue while editing posts. This problem occurs in both TinyMCE AND FCKeditor, so it must be related to how bbPress handles these types of plugins.

    I can post new topics fine and everything works. However, when I go in to edit a post the WYSIWYG editor loses all <p> tags, forcing everything to appear on a single line. All other formatting is retained correctly by the editor.

    Any idea on how I can fix this problem?

    _ck_
    Participant

    The proper header for the page apparently is not being sent until there is a logged in user.

    I’ll see if I can reproduce this. Is it in kakumei theme?

    Update: this works fine on my setup:

    http://bbshowcase.org/forums/topic/put-your-test-posts-here?bbtheme=kakumei#post-302

    You might have something sending whitespace before all the headers can be sent so the page encoding gets broken until the user is logged in. Are there any errors visible when you do a “view source” or any javascript errors?

    #64664
    Sam Bauers
    Participant

    @ mykes

    What version of WordPressMU?

    I’m not sure that the latest version is compatible with bbPress yet. The recent Release Candiadte is though.

    #3346
    mrhoratio
    Member

    I have bbPress installed in a directory called “forums” on my web server. I have Pretty Permalinks enabled and working. To view the profile of a member, I can go to this URL:

    http://www.example.com/forums/profile/membername

    However, I would like the url to be:

    http://www.example.com/profile/membername

    I’ve tried writing a mod_rewrite rule which rewrites the latter to the former. However, instead of rewriting it, it redirect and exposes the URL. For example. Typing this into the browser:

    http://www.example.com/profile/membername

    Redirects to this, instead of rewriting it:

    http://www.example.com/forums/profile/membername

    Here is the mod_rewrite I am using:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/profile/membername [L]
    </IfModule>

    If I change the rule to rewrite the URL to a simple text file, it rewrites properly and masks the URL. For example, this works:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/textfile.txt[L]
    </IfModule>

    Another example, I wrote this rule, as a test, to rewrite a URL to the rewrite-rules.php file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^profile/membername$ /forums/bb-admin/rewrite-rules.php [L]
    </IfModule>

    I type in this url into my browser:

    http://www.example.com/profile/membername

    And it redirects to ths instead:

    http://test.doublebad.com/forums/

    If I replace all the text in the rewrite-rules.php file with “test text”, then the URL rewrites properly.

    So it seems that when you are rewriting and URL to a bbPress php file, it will always redirect instead of rewriting, which is quite annoying. I’m trying to trace in the bbPress functions and settings where this is occuring. But I’m having no luck.

    Any suggestions?

    #56464
    mrhoratio
    Member

    Hi bobby, I tried out your hack in bbPress 0.9, and it doesn’t seem to work. Here’s what I did:

    I have my bbPress directory installed in a directory called “forums” in the root web directory. So the URL to access the forums’ home page is:

    http://www.example.com/forums

    and accessing a forum titled “test forum” is at this URL:

    http://www.example.com/forums/forum/test-forum

    a topic titled “test topic” is at this URL:

    http://www.example.com/forums/topic/test-forum

    I implemented your hack, and changed “forum” to “board” in the template-functions.php. I copied the rewrite rules from rewrite-rules.php and placed them into .htaccess file in the root web directory. I also added the two lines of code you suggested in that file:

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

    I also tried adding this to the rewrite-rules.php:

    RewriteRule ^board/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^board/([^/]+)/?$ <?php bb_option( 'path' ); ?>topic.php?id=$1 [L,QSA]

    When I go to this URL:

    http://www.example.com/board/test-forum

    I get a 404 error.

    However, when I go to this url:

    http://www.example.com/forums/forum/test-forum/

    It redirects and changes the URL in the address bar in the browser window changes:

    http://www.example.com/forums/board/test-forum/

    That also brings up a 404 page.

    Also, when I go this URL:

    http://www.example.com/topic/test-topic

    The URL works, but it redirects and changes the URL in the address bar in the browser window changes to:

    http://www.example.com/forums/topic/test-forum

    I am a little perplexed as to what is going on.

    #64842
    bobbyh
    Member

    Chris, I did disable plugins, but I hadn’t wrapped the Email Notifications plugin function call with a function_exists wrapper, so my active theme stopped working when I did so. I then oh-so-intelligently reasoned that this plugin couldn’t be the cause of the problem, so I moved on…

    I couldn’t just disable all plugins and test with a default theme because of the existence of private forums. Finally, I moved the database to a private test server (and used a HOST file) and went through all the plugins carefully one-by-one until the problem was fixed.

    Let my idiocy be a lesson for others: wrap your plugin function calls with function_exists wrapper! :-)

    #64829
    bobbyh
    Member

    Lookfab, here’s a slight tweak to the default kakumei topic.php theme file that should do what you want:

    <ol id="thread" start="<?php echo $list_start; ?>">

    <?php $i = 0; ?>

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <li id="post-<?php post_id(); ?>"<?php if ($i == 0) { echo 'class="firstpost"'; } elseif !($i % 2) { echo ('class="alt"'); }?>>

    <?php bb_post_template(); ?>

    </li>

    <?php $i++; ?>

    <?php endforeach; ?>

    </ol>

    You can then style the class “firstpost” using CSS to make it stand out however you want…

    I didn’t test this, but I think it should work either by itself or with a tweak or two.

    #64847

    In reply to: Page Bug

    citizenkeith
    Participant

    It’s not going to tell you much because it’s a private forum. However, if you’d like to have a test login, send me an email at kamera [at] gmail [dot] com.

    #64837
    chrishajer
    Participant

    I made two test posts. The both resulted in 500 errors, but they also both appeared to go through. They also took a really really long time, like something is going on in the back end. Are you sure the PHP errors are being logged? A 500 error should go *somewhere*.

    #3339
    bobbyh
    Member

    A few days ago, out of the blue, users of my bbpress forum reported that submitting a new topic/post resulted in an error. Previously, my bbpress forum was working perfectly. However, over the last few days, I have verified that if you submit a new post or leave a comment, the browser takes you to bb-post.php, where the page hangs. You can verify this on my forum using user “testuser” and password “test123”.

    There are a few weird things about this:

    • I hadn’t touched the server for some time prior to this sudden problem, so it’s weird that the problem started, since I hadn’t changed anything
    • I’ve been running two bbpress forums authenticated against the same WP user table. The problem is only with the first bbpress installation, while the second bbpress installation continues to work with no problems.
    • When you post, the browser returns a 500 internal server error, and doesn’t display a “die” message, e.g. “You need to actually submit some content!”
    • Although the browser returns a 500 internal server error, the posted content does go through.

    I’ve hand-inspected http://boards.weddingbee.com/bb-post.php, and it has exactly the same PHP code as http://classifieds.weddingbee.com/bb-post.php. I’ve tried everything I can think of… I disabled plugins and Akismet, and the problem didn’t go away. (I’ve turned them back on.)

    I’m using bbPress 0.83, with bb_db_version 788. I haven’t upgraded to bbPress 0.9.0.2 yet because I’ve integrated my WordPress 2.33 install with two bbPress installs and a Mediawiki install, and it will be a ton of work to reintegrate. However, that is the next step…

    Does anybody have any ideas? :-)

    #3336
    Bloggsbe
    Member

    Hi!

    I made a small plugin that lets users show of their latest Tweet on their profile page. The user turns the option on or off as they please.

    It’s nothing fancy, but it works.

    You can download it here

    It has been tested with bbPress 0.9.0.2 and 1.0-dev, but should work on earlier versions.

    Regards,

    Rune

    #64770
    _ck_
    Participant

    I put a ticket into trac about this a few months ago.

    https://trac.bbpress.org/ticket/779

    Changing the way it functions is not too difficult but it does have to be done via the core so unfortunately I can’t address it via a plugin. At least I dont think I can, not easily.

    Oh and forget a captcha ever being built into bbPress/WordPress. It will have to be done via plugin with a hook. Because the moment thousands of people have the same standardized captcha, that’s the moment it will be analysed to be broken by bots. As a plugin the method can be changed on a whim and vary from site to site easily. Besides, I’d rather have people do simple math than an awkward captcha.

    #64784
    _ck_
    Participant

    Add some numbers? Oh you mean to show position #

    Well the problem is I tinker with it from time to time.

    If I find a new site that’s not in the top 100 I’ll usually just queue it until next time but if it’s a biggie I will rebuild the list right away.

    Plus the number of posts is subjective and no indication of quality. I don’t really want to make that part a contest or people will start faking results and I’ll have to delete their listing entirely.

    Fawked
    Member

    I installed the latest bbPress. Everything went well. Then I decided to be an idiot and changed the bbPress url in the options page to my main site because when I clicked on my site name I wanted it to redirect back to my main site (the site name beside the bbPress logo).

    I tried to re-install bbPress but it wont go past after installing bb-config.php

    My main site is : http://www.fawked.net

    My forum is : http://www.fawked.net/forum

    Please tell me what file (or perhaps what line in my database)? to edit. I need to change my bbPress url back to http://www.fawked.net/forum

    Thanks in advance

    #64663
    mykes
    Member

    This stuff is frustrating as all hell. It seems so simple until it doesn’t work out of the box and you spend hours trying to figure it out. Fix these kinds of problems and you’re golden!

    Anyhow, just downloaded and installed the latest wordpress mu and bbpress today.

    wordpress in DocumentRoot, and bbpress in DocumentRoot/forums/

    Both in mysql 5.x database named wordpress.

    When installing bbpress, I did not enable wordpress integration.

    I followed this checklist:

    1. You are running latest versions of WordPress (2.5.1) and bbPress (0.9.0.2)

    2. You have matched SECRET_KEY in wp-config.php with BB_SECRET_KEY in bb-config.php

    3. You have matched WordPress “secret” database option with bbPress “secret” database setting

    4. You have setup compatible cookie domains and paths in config files (see instructions in bbPress admin)

    5. You are successfully sharing user tables from WordPress with bbPress

    Everything seems to be right.

    BIG FIRST PROBLEM is I setup the roles on the wordpress integration page so “admin” is “key master.” As soon as I turn on integration, my old key master is gone and admin can login but is NOT key master. Google is my friend, most of the time, and I found a query to do by hand to fix it. This should be automatic in the install process of bbpress or turn on of integration, no?

    So I’m able to login to wordpress. I login to bbpress. My user’s password is wiped out in wordpress. I can do lost password thingy in wordpress and restore the password. When I navigate to /forums/ and login as my user, the password in wordpress is wiped out again. Oddly, I can login as my user at bbpress over and over again, no problem.

    notes:

    1) my user is a user I created on wordpress, and he has admin privs and thus key master privs in bbpress. I see the admin link in bbpress when I login. But when I do login, wordpress won’t accept this user’s password anymore. I either have to keep loging into wordpress as admin and resetting the user’s password or go through the forgot password by email process. Changing the user’s password in bbpress has no effect on wordpress.

    2) The integration forum in admin is confusing as all hell. Or maybe the installation process is not well documented. Maybe a page on your site about how to install the two together and get the integration working would be good. For example, should bbpress and wordpress share the same database? Not clear. The integration page asks for both a site url and a blog url, what’s the difference?

    3) Did anyone try doing a fresh install of both as part of your Q/A before releasing a latest version of bbpress?

    4) If I can’t get the password problem resolved, bbpress is the one to go, not wordpress.

    5) I probably should post some of this in multiple threads, but I doubt there’s any notification feature that would e-mail me if/should anyone reply to my posts :)

    6) I want to give bbpress every opportunity to replace my existing 20K+ member / 1.6M post message board site.

    #64429

    In reply to: Categories in 0.901?

    mrhoratio
    Member

    Hey bobby, thanks! I didn’t notice the “Stick topic (to front)” link before.

    However, there is a bug. If you click the “to front” link, the topic appears as a Sticky on the Latest Discussions list, but it disappears from the forum it was originally assigned. Seems like it should show up in both places. I did a test where I made a forum with one post in it. I made it Sticky on the front page. On the front page of bbPress, it shows the number of topics as “1” in that forum. However when you forum title, it doesn’t display any topic. Instead it takes you to a New Topic form.

    #64772
    bobbyh
    Member

    I reproduced this error with FF, so it must just be my server. I’ll try upgrading to the latest version of bbpress and see if this fixes the problem…

    #64758

    In reply to: GMT Offset

    scooter7978
    Member

    bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)

    The SQL I used was just an interval clause…i.e. if I was going to import my current forums I would use something like:

    SELECT ID, Body, DateCreated – interval ‘9 30’ hour_minute FROM current_forum_whatever

    This takes the date field and drops 9.5 hours off, coincidentally, my time zone.

    You could probably adapt this to an ‘update’ statement to change what’s already in your database, eg:

    UPDATE bb_topics SET DateCreated=(SELECT DateCreated – interval ‘9 30’ hour_minute);

    I haven’t tested it but it probably wouldn’t be too far wrong.

    #64295
    berfarah
    Member

    Anyone? Anyone at all?

    #50417

    In reply to: Importing from vanilla

    scooter7978
    Member

    I’m using Vanilla on my forums and since I like to change things every now and then, I’m going to move to BBPress in the near future. Since I’m testing at the moment, I thought I’d hand over the SQL statements for grabbing the categories, topics and posts and formatting them as best as possible for bbpress.

    SQL to get the categories:

    SELECT CategoryID, Name, REPLACE( LCASE( Name ) , ‘ ‘, ‘-‘ ) AS Slug, Description, Priority

    FROM LUM_Category

    SQL to get the topics:

    SELECT DiscussionID, Name, REPLACE( Name, ‘ ‘, ‘-‘ ) AS Slug, AuthUserID,

    (SELECT LUM_User.Name FROM LUM_User WHERE UserID = AuthUserID) AS PosterName,

    LastUserID, (SELECT LUM_User.Name FROM LUM_User WHERE UserID = LastUserID) AS LastPosterName,

    DateCreated, DateLastActive, CategoryID, Closed, Active, (SELECT 0) AS LastPostID, Sticky, CountComments, (SELECT 0) AS TagCount

    FROM LUM_Discussion

    SQL to get the discussions:

    SELECT CommentID, LUM_Discussion.CategoryID AS ForumID, LUM_Comment.DiscussionID, LUM_Comment.AuthUserID, Body, LUM_Comment.DateCreated, RemoteIp

    FROM LUM_Comment

    JOIN LUM_Category ON LUM_Discussion.CategoryID = LUM_Category.CategoryID

    JOIN LUM_Discussion ON LUM_Discussion.DiscussionID = LUM_Comment.DiscussionID

    ORDER BY CommentID, ForumID

    SQL to get the tags:

    SELECT TagID, REPLACE( Tag, ‘ ‘, ‘-‘ ) , Tag, (SELECT 0) FROM LUM_DiscussionTags

    From there you will need to fix up the slugs in the bb_topics table and in the bb_forums so that the web browser doesn’t have a conniption when it tries to load a forum thread but you can do that with a series of select(replace) queries like this:

    update bb_topics set topic_slug = replace(topic_slug,’?’,”);

    update bb_topics set topic_slug = replace(topic_slug,’.’,”);

    update bb_topics set topic_slug = replace(topic_slug,’/’,”);

    update bb_topics set topic_slug = replace(topic_slug,’&’,’and’);

    update bb_topics set topic_slug = replace(topic_slug,’"’,”);

    update bb_topics set topic_slug = replace(topic_slug,’\’,”);

    update bb_topics set topic_slug = replace(topic_slug,'”‘,”);

    update bb_topics set topic_slug = replace(topic_slug,’!’,”);

    update bb_topics set topic_slug = replace(topic_slug,’,’,”);

    update bb_topics set topic_slug = replace(topic_slug,”’,”);

    update bb_topics set topic_slug = replace(topic_slug,’#’,”);

    There might be a better or quicker way of doing the last bit but since it works fine on mine I am not too concerned.

    I had to kludge some results in the queries like; SELECT 0 or SELECT 1 to get the answers I wanted or to pad out the columns to fit properly into the bbpress SQL layout. In most cases its just count fields or an active or open flag which is nearly always 1 or 0 anyway.

    Generally this is all you need to get started, from there you can just export this table data to a CSV or something and then import it into the requisite bbpress table. If you go into the admin interface of bbpress and get the system to recount everything it should be ok from there. I only recommend doing this if you’re familiar with the inner workings of MySQL, otherwise you could bollocks things up and then noone wins.

    Please remember too that this is the basics, if you’ve integrated with wordpress you’ve still got some work ahead of you to coordinate your wordpress ID’s with your forum ones. It can be done as I managed to do it, it’s just painful.

    Cheers,

    Scott

Viewing 25 results - 10,176 through 10,200 (of 11,578 total)
Skip to toolbar