Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 11,051 through 11,075 (of 11,589 total)
  • Author
    Search Results
  • #56400

    In reply to: Freshness Linked

    fel64
    Member

    Not sure how to do that specifically, however here’s a quick rip of Sam Bauer’s pagination plugin that’ll add a double-forward arrow to the end of each topic name linking to the latest post. Copy it into a text file, save it as something.php and upload.

    <?php
    /*
    Plugin Name: Link to last Post
    Plugin URI:
    Description: Adds page links to topic lists
    Author: fel64
    Version: 0.7
    Author URI: http://www.loinhead.net/
    */

    if (!function_exists('is_tags')) {
    function is_tags()
    {
    return is_tag();
    }
    }

    if (is_front() || is_forum() || is_tags()) {
    add_filter('topic_title', 'fel_addlatestlink', 101);
    }

    function fel_addlatestlink($title)
    {
    global $topic;
    $felgtlpl = get_topic_last_post_link($topic->topic_id);
    $title = $title . ' <a href="' . $felgtlpl . '">&nbsp;&raquo;&nbsp;</a>';

    return $title;
    }
    ?>

    #1678
    Nola1974
    Participant

    I just got finished posting a whole bunch of posts a little while ago. Worked on my theme a bit.. added this to the header, that’s it:

    <?php
    function w3l_tl_pages($before = '', $after = '', $between = ' ') {
    global $wpdb;
    $query = "SELECT ID, post_title FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish' AND post_parent = 0) ORDER BY menu_order";
    $pages = $wpdb->get_results($query, ARRAY_A);
    $temp_pages = array();
    foreach ($pages as $page) {
    $temp_pages[] = $before . '<a href="' . get_bloginfo('url') . '/' . get_page_uri($page['ID']) . '">' . $page['post_title'] . '</a> ' . $after;
    }
    echo implode($between, $temp_pages);
    }
    ?>

    This is to get the menu of pages from my wordpress.mu install.

    Now, whenever I try to post, after I submit a new topic, it turns yellow and doesn’t not then appear in the discussions list.

    I can’t delete ANY posts. Not even old ones.

    THe new topics appear in the dashboard under “Recently Moderated” and says this:

    Topic titled test post started by bb_get_user needs a numeric ID

    #56372

    In reply to: Plugin: bbMenu 1.1

    wittmania
    Member

    Null, thanks for the help. Yeah, going into the table isn’t a whole lot of fun, but this isn’t something that would need to be changed very often.

    PM is private messaging, i.e. this plugin:

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

    The plugin adds a page (/yourforum/pm.php) that lets you read/write private messages to other users. Because it is a static page, you can define the address in the table.

    What would be really great, though, is a way to make the links dynamic. The PM plugin also comes with a notification function where users can be given an alert when they visit the forum letting them know a new message has arrived. The tab would say something like “Private Messages (1)” or something like that. Unfortunately, since the page addresses are stored in the DB, I can’t really think of a way to do this.

    As far as wanting to see it, you can check my forum here:

    http://www.lne97.com/bbpress/

    I have it locked down so you have to register, which addresses the issue you mentioned above. However, you can log in using:

    user: just a test

    password: justatest (no spaces)

    Thanks again for the plugin!

    #1675
    fel64
    Member

    This is a simple plugin that will highlight which posts are new since a (logged-in!) user last visited the forums. It will modify your front page’s listing of recent threads, showing threads with new posts as bold.

    It REQUIRES the Simple Onlinelist plugin by Thomas Klaiber, whose work this is largely based on.

    The plugin should not highlight posts which the user made, since obviously those have already been seen. Please tell me if it does otherwise.

    The only testing I have done is on my 1.0-alpha build, so I would be very grateful if people could test the plugin and tell me if it works!

    Grab it here.

    #56368

    In reply to: Plugin: bbMenu 1.1

    Null
    Member

    Darn that error again, there must be something wrong with that insert part when a table is created.

    Check with phpmyadmin if the table bb_menu is created. If not do so manually (this is not tested, but it contains the stuff needed in the table):

    "CREATE TABLE$bbdb->menu` (

    item_id INT(3) NOT NULL AUTO_INCREMENT,

    item varchar(50) NOT NULL default ”,

    set varchar(50) NOT NULL default ”,

    page varchar(50) NOT NULL default ”,

    location varchar(50) NOT NULL default ”,

    order int(9) NOT NULL default ‘0’,

    PRIMARY KEY (item_id)

    );`

    Then you will have to fill it (again not tested, but it contains what needed):

    "INSERT INTO$bbdb->menu` VALUES

    (DEFAULT, ‘Forums’, ‘active’, ‘index.php’, ‘front-page’, 0),

    (DEFAULT, ‘Search’, ‘active’, ‘search.php’, ‘search-page’, 1),

    (DEFAULT, ‘Statistics’, ‘inactive’, ‘statistics.php’, ‘stats-page’, 0);”`

    When sucesfully created this table, things should work…

    Trent Adams
    Member

    I registered over at your forums to test this out. I registered and then logged into bbPress. I then went over to your blog and tried the /wp-admin/ link to find out if I was registered. It gave me the login page where I added my information and then was redirected to:

    http://mpm.org.au/wp-admin/

    That URL doesn’t exist. Is there something in your WP install that has the URL of the site as the first URL? That might be causing the problems.

    As well, do you have the integration plugin that pulls the registrations from bbPress across to WordPress? That way all users are in the wp_users and not the bb_users table.

    Trent

    #1667
    davetropeano
    Member

    I recently did my first bbpress install on localhost and it went miserably. I used the latest download from today.

    Checking on this forum I had the same path seperator issues and stylesheet issues others had, etc.

    My $bb->domain and $bb->path were fine. The fresh install just didn’t work properly under xampp and then again a retry on easyPHP.

    This is the solution and findings I found:

    1. The first issue is because in config.php and bb-load.php dirname(__FILE__) is used to get the base path for BBPATH. This is not a good thing on localhost Windows based installs.

    2. There are a number of attempted workarounds to this that I’ve read about in this forum. All of them that I saw didn’t work. Focusing on the issue with the stylesheet href not being correct I noticed that there was logic in the bb_get_active_theme_folder() function.

    By default, the installer does NOT create an option entry ‘bb_active_theme’ in the database table topicmeta. The code logic doesn’t make the correct uri.

    To fix this, do an install and then add a database field bb_active_theme in the topicmeta table.

    For example, I set mine to:

    http://localhost/dev/bbpress/

    Playing regular expression games to change x: and in general is not worth it. This seemed to be simple and worked right out of the box.

    #56345
    tegolino
    Member

    ops sorry for the swiching! I’m doing a tests!

    I have my-templates folder, but I want the same theme of my blog http://www.motiongraphics.it . When I switch to MW theme the error is

    Fatal error: Call to undefined function: get_settings() in /web/htdocs/www.motiongraphics.it/home/forum/

    my-templates/mw1.1/themetoolkit.php on line 331

    :((((

    #55693

    In reply to: Plugin: Latest Replies

    LMD
    Participant

    I’m not that surpised it didn’t work. Here is a different fix, editing the ‘bbPress Post’ plugin itself. I’m using line numbers to reference the code. I’ve based the line numbers on an UNEDITED version of the ‘bbpress_post.php’ file. So, if you open up a fresh version of the file that hasn’t been touched (i.e. do not use the version you previously added my ‘fix’ to – you no longer need that fix).

    Try these code changes:

    Line # 457 – replace with:

    bbpress_bb_new_post($topic_id, $content, $forum, $author, $now, $title);

    Line #533 – replace with:

    $wpdb->query("UPDATE ". $bb_table_prefix ."posts SET post_text='$content', post_title='$title' WHERE post_id=$bbpost_id LIMIT 1;");

    Line #540 – replace with:

    $otherdb->query("UPDATE ". $bb_table_prefix ."posts SET post_text='$content', post_title='$title' WHERE post_id=$bbpost_id LIMIT 1;");

    Line #585 – replace with:

    function bbpress_bb_new_post( $topic_id, $content, $forum, $author, $now, $title ) { // making new post in bbPress

    Line #587 – replace with:

    $wpdb->query("INSERT INTO ". $bb_table_prefix ."posts VALUES ('', $forum, $topic_id, $author, '$content', '$now', '127.0.0.1', 0, 1, $title);");

    Line #591 – replace with:

    $otherdb->query("INSERT INTO ". $bb_table_prefix ."posts VALUES ('', $forum, $topic_id, $author, '$content', '$now', '127.0.0.1', 0, 1, $title);");

    Note: this is assumes two things:

    1. That in the bbPress ‘posts’ table the ‘post_title’ field was added as the last field.

    2. That you do not have any other plugins that have added fields to the bbPress database.

    Let me know how you get on this time.

    #55692

    In reply to: Plugin: Latest Replies

    Aagh. Sadly I get SQL errors. But I can tell you the posts appear empty as well as closed in the forums, in line with your comments above. So thanks to you I know what’s going on and will try to get the other plugin developer to come take a look here. Thanks again!

    #55691

    In reply to: Plugin: Latest Replies

    louisedade, thanks so much for getting back to me on this and yes, I’ve emailed the other plugin developer but no response as yet.

    I am enormously appreciative of you going to the trouble of working on a possible fix. I hear what you’re saying about your views on its chances, but I will give it a try and head back here to let you know if it works or no.

    Other than that, I only hope the BBPress Post plugin author gets back to me on this. But yeah, thank you!

    #53816
    Atsutane
    Member

    Sorry my bad :) Forgot to update the readme file.

    #53815
    drcmanx
    Member

    doh, thx i was thinking it was going to be added into the plugin (like Akismet) and not the options tab.

    and the part you didn’t know was me thinking that it might be interfering with my other forum topic reader for another board.

    Thx for the plugin support!

    add an updated install readme ;)

    #49577
    Prebrov
    Member

    I’m still having that problem. I tried all solutions on this page, but had no luck getting pretty URLs. Forum is working fine, but whenever I apply .htaccess settings, either copy-pasted from this forum or from rewrite-rules.php, I get an error

    Not Acceptable

    An appropriate representation of the requested resource /forum/topic/1 could not be found on this server.

    Available variants:

    * topic.php , type application/x-httpd-php, language ru

    What could that be? I have the latest version of bbPress, it’s using wordpress database for authorization & authentication, but runs in a separate directory.

    #56185

    In reply to: Numbered Posts

    fel64
    Member

    I believe that if you attach this to your CSS file:

    ol#thread li {
    list-style-type: decimal;
    }

    you would see the post numbers without any extra code, certainly the most elegant method. There is likely already a definition for ol#thread, so you could simply add this property to that one. Bear in mind that this is entirely untested (will try it when I get home).

    #53814
    Atsutane
    Member

    With new version of plugin, u dont need to edit the file directly anymore. U can always get the new version from https://bbpress.org/plugins/topic/39

    From what i can see. SELECT * FROM topics WHERE It seem the bb table prefix is missing. Maybe u miss the setting.

    I dont know what u mean by “i still have the SMF forum that reads the forum topics” but u can find the option page inside wordpress option under “BbLD Option”

    #1653
    #53813
    drcmanx
    Member

    I’m just going to add onto this post with my error about the plugin.

    I edited the php at these two lines:

    Code:
    $bbpath = ‘/forum’; // Adjust the path to suit your bbpress
    $forum_slimit = ’10’; // Adjust the limit to show

    uploaded the plugin into wp-content/plugin and then added

    Code:
    <?php wp_bb_get_discuss_sidebar(); ?>

    to my sidebar. activated the plugin to get the following error:

    Code:
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
    SELECT * FROM topics WHERE topic_status = 0 ORDER BY topic_time DESC LIMIT

    i still have the SMF forum that reads the forum topics with the line code:

    Code:
    <?php include (‘/forum1/extern.php?action=active’);?>

    so i have no clue what I did wrong… i’m thinking maybe its something I didn’t edit. Also i keep hearing about a option page for the plugin and can’t seem to find it.

    #56140

    In reply to: Some links do not work

    webscratches
    Member

    OK well I did a new install.

    The link do work now but the other problem is that the last posts I made do not show up in the Latest Discussions section. There is a new tag ‘trying’ which does display along with the tag ‘BBPress’ but when clicking on it does not seems to find any posts.

    http://forum.webscratches.com/

    Oh and BTW, in the Dashboard, when going to Topics or Posts, nothing is listed there. I am correctly listed as a Moderator and I am not in the Bozos list

    On a sidenote I had to set all files to 755 because I got a permission error (this is related to my hosting though I’m not sure it might have sth to do)

    #1649
    Vili
    Participant

    I’m not sure if I should ask this here or over at WordPress.org, but perhaps this is more of a bbPress question in the end.

    I have the latest bbPress and WordPress installations, and both are running fine. The user databases are integrated, and I have also managed to get bbPress to use my WordPress theme after some poking around.

    What I actually did with the theme integration was that I made bbPress to call the WordPress header and footer files instead of the bbPress ones, having in turn modified the WordPress files in a way that everything except for the page-specific content is in those two files. This way, the forum shows up where the WordPress content (posts, pages, etc.) would otherwise go. Life is good.

    My problem now is that I would like WordPress to recognize bbPress when it is serving a bbPress page. In other words, I would like to have something like an “if” condition for example in my WordPress header that checks whether the page currently being shown is a bbPress page. If I could do that, then I could do something like “if bbPress then echo bbPress headers, else echo WordPress headers”.

    The most basic solution that I could come up with was the following: before having a bbPress page call the WordPress header, introduce a variable like “$forumpage” and set it to “true”. Then simply include a check in the WordPress header that checks whether $forumpage is “true”. For some reason, however, this doesn’t work as the variable seems to get erased.

    I also tried something like using the condition if($forums) in the WordPress header, which I saw was in bbPress, but that gave no results, either.

    There probably is a(n easy) solution to all this, so I would really appreciate it if someone could point me to the right direction. I’ve spent most of the evening working on this, and have tried just about everything that I can think of and have read about on these forums and over at WordPress.org, but alas without the desired results.

    Thanks for reading!

    #50659

    In reply to: bozo

    Trent Adams
    Member

    You don’t need an SVN client to get the latest TRAC version. If you don’t mind downloading the entire package, you can just download the entire thing as a zip and then upload it to your server. That is the way I do it right now. I just know which files are changed and upload them.

    Trent

    #1637
    webscratches
    Member

    Hello,

    I just installed BBPress but some links appear to be broken. I tried to make new posts in order to test the forum but they would not show up either

    My forum is located here:

    http://forum.webscratches.com

    Does anyone knw where this could be coming from?

    thank you very much

    #56093
    Null
    Member

    Hi sul,

    I also think your problem is a php or sql version issue. I have 2 testservers at different hosting providers and it works great on both :) I will take a look at the version nrs perhaps you can upgrade/downgrade then…

    But that’s not the problem of this topic, I need to get rid of this double content showing :)

    #55632

    In reply to: Duplicate Posts

    I didn’t test the Safari problem myself but got the report from one of our key users so rather than go back and forward trying to track the problem down I just reverted the change.

    #56147
    Arlo
    Member

    Thanks for the responses.

    1) The link is stripped in the database. I had tested the “img” tag plugin, but disabled it because it didn’t work (it was actually having the same problem, stripping out the src="").

    2) I looked over baptiste’s thread. I guess it’s the same thing, but sadly there’s no solution there. I’m using a WP include as well.

    I don’t know if this is relevant, but I also had the stripslashes problem as well. That was fixed with a template hack. Is there a hack to fix this? It’s pretty much a show stopper…

Viewing 25 results - 11,051 through 11,075 (of 11,589 total)
Skip to toolbar