Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,751 through 10,775 (of 11,524 total)
  • Author
    Search Results
  • _ck_
    Participant

    Ah nevermind – I already knew how to do this but was so tired I didn’t put 2 + 2 together. And a new plugin was born!

    This plugin will either exclude ALL sub-forums from the front page topics list AND/OR exclude any specific forums from the front page that you specify.

    function filter_front_page_topics($where){
    // $exclude_forums=array ("8,1,3,12"); // enable this to manually specify specific forums by id #
    $forums = get_forums(); foreach ($forums as $forum) {if ($forum->forum_parent) {$exclude_forums[]=$forum->forum_id;}} // exclude ALL sub-forums
    if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=" AND forum_id != ".$forum." "; }}
    return $where;
    }
    add_filter( 'get_latest_topics_where', 'filter_front_page_topics');
    add_filter( 'get_latest_posts_where', 'filter_front_page_topics');

    #58968
    _ck_
    Participant

    This plugin now has an official page in the plugin browser:

    https://bbpress.org/plugins/topic/55

    so check there for latest version.

    _ck_
    Participant

    I’ll probably end up trying to write this myself over the rest of the week but just in case a plugin guru is willing to help…

    I’d like to exclude certain sub-forum topics from the latest discussions that are posted on the front page. I know how to tap into the list topics filter but I don’t know how to make it obey only for the front page, because obviously they can’t be excluded from the sub-forum’s own topic list when they are on that page.

    In theory I could hack the template to do this but it would be much better via a plugin if possible. I can see other people wanting this feature eventually to help keep that front page list from becoming cluttered.

    #59016

    In reply to: Punbb -> BBPress

    annathea
    Member

    _ck_, there was no misconception – I tested bbPress thoroughly with MU before I decided it was the right move for us. I would expect any other user to do the same. And I’ll just chime in and say that the bbPress site and forums made it very clear to me before I began that bbPress and WordPress are two different applications and would need manual integration.

    Prior to bbPress, I tried integrating PunBB directly with our WordPress install, and while I wouldn’t call it difficult exactly, it was unnecessary: the features that separate PunBB from bbPress went largely unused by our community, so why not use forum software that uses a similar table structure, takes advantage of the wp_users table, and is supported by the same community of interested users that brought us WordPress?

    I’ll admit my needs are very specific, and that the alternative to using open source software is writing it myself, which means I can get pretty excited that bbPress ONLY requires a certain amount of integration. Also, as specific as my needs are, I posted the conversion script I used for the one or two other people who find themselves in the same position. I don’t know that it’s a common request, and I imagine that anyone who’s in the position of converting already has a bbPress install they’re happy with, whether it’s integrated with WordPress or not.

    #58852

    bbPress should be magic_quotes agnostic. I’ll do some tests to see If I can pin down the problem.

    Are you loading any other scripts at the same time (WordPress, anything else)? Any plugins?

    #59012

    In reply to: Punbb -> BBPress

    annathea
    Member

    _ck_ : Our PunBB forum dates from the inception of our site, and the nature of our community has sort of moved the interaction out of the forums and throughout the rest of the site. So I wanted to be able to incorporate our past discussions into the latest version of the site and have a little finer control over the data (relating archived forum discussions to archived blog entries and such). Since I am expecting that participation in the forums may continue shifting more toward the blog comments, I am trying to merge the old and the new and a PunBB -> bbPress -> WordPress path has fit perfectly so far.

    #50458

    In reply to: Google sitemap

    creatiu
    Member

    This plugin is not working property, actually is creating not valid URLS inside the sitemap like this:

    <url>

    <loc>://?</loc>

    <lastmod>2007-07-14</lastmod>

    <changefreq>monthly</changefreq>

    <priority>0.014705882352941</priority>

    </url>

    This happens with the latest version of bbPress (0.8.2.1)

    #58936
    johnkeegan2
    Member

    Thanks, Sam! Just svn up-ed to the latest revision and I can confirm this bug is fixed! Thanks again!

    #2090
    #58984
    Inquirer
    Member

    I received the following from my web hosting service support.

    [As with everything in computing it never gets easier, just harder. PhPMyAdmin is not installed on the servers but you can install it on your account if you wish to use it. You can also login to the server via ssh and connect to the database from a shell prompt. Use the drop table <tablename> command for each table to remove them.]

    I went to http://www.phpmyadmin.net/home_page/downloads.php#2.10.2

    The latest stable version is phpMyAdmin 2.10.2.

    phpMyAdmin supports themes since version 2.6.0.

    Are phpMyAdmin themes a more user friendly interface to Admin a php database?

    I sent an e-mail to my web hosting serice support to determine which version of php is on my server.

    My web hosting service is running Unix servers.

    I am running Windows 200o Professional on my computer.

    [You can also login to the server via ssh and connect to the database from a shell prompt.]

    I found OpenSSH Windows at http://www.openssh.com/windows.html

    I guess I could use either PuTTY or TTSSH software to login to my server via ssh.

    [Use the drop table <tablename> command for each table to remove them.]

    I have a MYSQL book and a php book, which should help me.

    Thanks a response in advance.

    #58967
    _ck_
    Participant

    Fourth time is the charm? Ugh. Sorry!

    <?php
    /*
    Plugin Name: Admin Can Post Anything
    Plugin URI:
    Description: allows keymaster/administrators to post any content regardless of tag restrictions
    Author: _ck_
    Author URI: http://CKon.wordpress.com
    Version: 0.04
    */

    function bb_admin_post_anything($text) {
    if (bb_current_user_can('administrate') ) {
    remove_filter('pre_post', 'encode_bad' );
    remove_filter('pre_post', 'bb_encode_bad' );
    remove_filter('pre_post', 'bb_filter_kses', 50);
    remove_filter('pre_post', 'addslashes', 55);
    remove_filter('pre_post', 'bb_autop', 60);
    $text=bb_autop(addslashes($text)); // I don't completely understand why this is necessary here but it is

    // the following two lines are untested code to allow compatibility with the allow images plugin
    // it's safe to remove it's filters because this only happens if admin are trying to post
    remove_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    remove_filter( 'pre_post', 'allow_images', 52 );
    }
    return $text;
    }
    add_filter('pre_post', 'bb_admin_post_anything',8);
    ?>

    #58960
    _ck_
    Participant

    Weirdness. I will have to explore and test some more.

    Can you tell me what other plugins you are using that are common to both sites? It almost has to be a plugin conflict at this point.

    Does it let you post other forbidden html like <hr> ?

    #58959
    Trent Adams
    Member

    I tested it on my onvertigo.com site which is not using the default template either. It doesn’t work for me with any themes!

    http://onvertigo.com/topic/media-types-played-in-this-forum?replies=12#post-38

    Strange…..using:

    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/2G_AHHxSctE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/2G_AHHxSctE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    Trent

    #58958
    _ck_
    Participant

    I dug around on your forum until I found your test post.

    Apparently something is yanking out object tags.

    There might be a third party plugin that’s interfering with it and adding the filters back in.

    I have to think about how to handle that situation… not sure if it’s even possible… I gotta figure out what’s happening in more detail somehow.

    #58957
    _ck_
    Participant

    Just tested a youtube embed copied right from their site and it works tested in IE and Firefox.

    I don’t use the default bbpress template however, I wonder if that is affecting it somehow.

    Are you using the updated v0.02 that I posted, not v0.01 ?

    If it still doesn’t work, can you view source on the outputed page and copy just the part with that one post with full html here (between code tags obviously) so I can see what it is doing?

    #58956
    _ck_
    Participant

    Hmm, the adding and removing of slashes may be messing with things. I’ll have to test it some more. I know it works for any regular html tags.

    _ck_
    Participant

    This is so simple I bet I am duplicating what someone else has already done. I am not sure why this isn’t in bbPress by default and it doesn’t even begin to address what I would consider basic moderation tools but it’s a start.

    Install and check under “content” submenu. Why the posts menu =deleted posts in bbpress’s default I have no clue.

    <?php
    /*
    Plugin Name: bbPress Recent Posts
    Plugin URI: http://bbpress.org/plugins/
    Description: shows most recent posts with (extremely limited) moderation options
    Author: _ck_
    Author URI: http://CKon.wordpress.com
    Version: 0.01
    */

    function recent_posts_admin_page() {
    if ( !bb_current_user_can('browse_deleted') ) {die(__("Now how'd you get here? And what did you think you'd being doing?"));}
    global $bbdb, $bb_posts, $bb_post, $page;
    $bb_posts=get_latest_posts(0,$page);
    $total = bb_count_last_query();
    ?>
    <h2>Recent Posts</h2>
    <ol id="the-list">
    <? bb_admin_list_posts(); ?>
    </ol>
    <?php echo get_page_number_links( $page, $total );
    }

    function recent_posts_admin_menu() {
    global $bb_submenu;
    $bb_submenu['content.php'][] = array(__('Recent Posts'), 'use_keys', 'recent_posts_admin_page');
    }
    add_action( 'bb_admin_menu_generator', 'recent_posts_admin_menu' );

    #58770

    In reply to: rebuilding topics DB

    _ck_
    Participant

    tested working – at least for my setup:

    function rebuild_topics() {
    global $bbdb;
    // currently only rebuilds last post pointers, last poster name, last poster id, last topic post date
    // todo: rebuild entire topics table
    // warnings: hard coded for WP user table - backup your DB before using
    // run the built-in post/topic recount first

    echo "t<br>n";
    if ( $topics = (array) $bbdb->get_results("SELECT topic_id,post_id,poster_id,post_time FROM <code>bb_posts</code> a WHERE post_position=(SELECT MAX(post_position) FROM <code>bb_posts</code> WHERE topic_id=a.topic_id) AND post_status = '0' GROUP BY topic_id ") ) :
    echo "tt" . __('Calculating last posters for each topic...') . "n";
    foreach ($topics as $t) {
    echo $t->topic_id."... ";
    $user_login=$bbdb->get_var("SELECT user_login FROM wp_users WHERE ID='$t->poster_id'");
    $bbdb->query("UPDATE $bbdb->topics SET topic_time='$t->post_time',topic_last_poster= '$t->poster_id', topic_last_poster_name='$user_login', topic_last_post_id='$t->post_id' WHERE topic_id = '$t->topic_id'");
    }
    endif;
    echo "<br> tt" . __('Done calculating last posters.');
    }

    #58910
    fel64
    Member

    I think that IE7 does not recognise the <br clear="all"> as it should – kakumei was designed pre-IE7, I think? Try playing around with the HTML; can’t test it myself unfortunately since the problem is in IE. Maybe <br style="clear: both;"/> will work?

    #53436
    oledole
    Member

    regarding my post above: this error only occurs with firefox. With bloglines there is no problem …

    /o

    #53435
    oledole
    Member

    With regard to collegemates’ error above:

    XML Parsing Error: xml declaration not at start of external entity

    Location: http://mysite/rss.php?profile=1

    Line Number 2, Column 1:<?xml version=”1.0″?><!– generator=”bbPress” –>

    I’ve been getting the same error when trying to subscribe to favorites or forums. Topics works great, thou. Is there anyone out there with any clue to this problem?

    #55805
    Beer
    Member

    Testing it out here:

    http://www.grindhouse.com/forums/topic/31

    Will come in handy for the site as it grows. Thanks!

    #58881
    _ck_
    Participant

    Just an untested guess on my part but what you want is something like this?

    <a href="/forum/profile.php?id=<? echo $user_ID; ?>">your profile</a>

    #54695
    rbytes
    Member

    Very interesting solution to display latest post from wordpress, i’ll try it!

    _ck_
    Participant

    Not even a hint if it’s useful to certain kinds of forums?

    Does it deal with geo-location?

    Is it especially helpful for large/active forums?

Viewing 25 results - 10,751 through 10,775 (of 11,524 total)
Skip to toolbar