Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,726 through 10,750 (of 11,589 total)
  • Author
    Search Results
  • #56748

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    Arrrrggghhh! Not again! Sorry, this happened with the last update and I don’t know what the problem is. The files are there in the SVN, so something is going wrong with the automatic ZIP downloader. I’m going to fire off an email to the bbDev list.

    Also, I posted the announcement a little prematurely. Version 0.8.1 hasn’t appeared in the Plugin browser yet, it’s still showing version 0.8, so you might want to wait a while (at least half-an-hour to an hour) for the system to “catch up”. Again, the SVN itself has the latest version in the trunk.

    #2199

    Topic: test

    in forum Installation
    stylistka
    Member
    #2198
    neoen
    Member

    Hello, my WP 2.2.1 installation has utf-8 encoding –

    define(‘DB_CHARSET’, ‘utf8’);

    But when I try to integrate WP and BBpress with the help of plugins (bbpress-latest-discussion-for-wp.0.9 and display-name.0.7.2) there are encoding problems.

    When I save a post with word “Administrátor” in WP 2.2 – to MySQL it is saved “Administrátor”, which is right. But when I save a topic with word “Administrátor” in BBpress – to MySQL it is saved like “Administr�tor” (or something else – but always wrong), but on forum it can be seen right like “Administrátor”. So, I think there are problems that WP 2.2 and BBpress uses different DB CHARSET (in WP 2.2 it is utf-8, but in BBpress it is something else – I think cp1250). Is it possible to change this somewhere in source files to work properly? Thank you very much for your help…

    #59657

    In reply to: Caching in bbPress?

    _ck_
    Participant

    Oh I didn’t realize xcache is just an opcode cache. I already use eaccelerator which seems to have zero quirks compared to other solutions. But yeah, any opcode cache for wordpress/bbpress is a must for any active site.

    I already create the sidebar statically across my sites, saves a lot of work and repetition on the db.

    the wp-cache “plugin” has flaws in it’s logic. I noticed that unregistered visitors were getting edit links on posts, not good, even if they couldn’t actually edit. Then it has an exclude feature to keep certain parts dynamic, but you can’t have wordpress calls in those dynamic parts because wordpress isn’t actually loaded, which is the whole point. so it won’t work and gives error (#1 confusion to most people trying to use it)

    In the end, I hacked wp-cache to only cache the RSS feeds which were causing the most requests, yet the most static of all the content. Caching rss feeds on bbpress should be an easy, useful thing too, but then on a forum I highly doubt the use of rss feeds on anything but the latest discussions.

    What really worries me about the 0.84 release is the xml-rpc pingbacks. bbpress is going to become known as the spammers forum of choice with a bad rep, until novices are given an easy option to turn it off, or better yet it’s off by default. I cannot disagree more highly with the entire feature idea. It defeats the entire purpose of a forum. What they are trying to do is have a universal way to cross post across forums but the whole point of a forum is *community* and getting people to actually visit, not stay away.

    What they really should do instead of pingbacks if they want easy cross communication, is have a universal login based on a database at wordpress.com – Basically anyone with a wordpress account could visit your wordpress or bbpress site and instantly post if they wanted as “wp.membername” without having to register again and again. Sure there are security issues to be tackled but it’s better than anonymous spam heaven on pingbacks. Akismet won’t protect pingbacks, I see spam in my wordpress.com account every week.

    #59644
    Sam Bauers
    Participant

    Downloadable ZIP of latest trunk is via a link at the bottom of that page.

    The trunk is pretty stable actually, and is more bug free than the latest release usually.

    You are better off setting up a subversion client and “checking out” a copy of the code. You can then keep up-to-date on changes in the core with the click of a button.

    Search the forum for info on using SVN to checkout a copy.

    A lot has changed, the best thing to do is to trawl through the changelog on the Trac site. Only a couple of things have changed dramatically, how views works is one.

    BB_Query is in the latest trunk in bb-includes/classes.php

    #59643
    riddle
    Member

    Thanks, Sam.

    I’m not sure whether to even touch your last suggestion, about using the latest trunk rather than the latest release. I see the trunk code browser at https://trac.bbpress.org/browser/trunk but I don’t know where to find it as one downloadable archive. And surely the trunk has new bugs and unfinished features, which is why it hasn’t been turned into a new release, right?

    Can you give us any hints about what has changed that plugin writers need to know about?

    P.S. Where do I find BB_Query?

    #59620

    In reply to: AdityaNaik.com

    MaryJane
    Member

    I applied that fix to my Wp and bbpress from your intergration method so1o and it works great! I put a member cp in my sidebar section for bbpress with the latest comments from wp expecting to cringe from the errors and i never got one. Plus i also have some tags in my footer calling from my wp and that works as well. Im loving this!

    The only part i didnt apply on your tutorial was the template intergration where you said to pull the header and footer in. Since the themes i use are the same as my wp themes i didnt see the point in doing that. Glad to say it worked even without using that method though. Keep up the excellent work!

    #59642
    Sam Bauers
    Participant

    There are lots of built-in functions for querying the topic meta, they are all in the same place in the code, so searching in the code for the functions I mentioned above will reveal them all.

    Joining tables to create one query is better than using two queries to retrieve the same data. The new BB_Query class could easily handle the query you wrote up there.

    By the way, I suggest you build your plugin against the latest trunk rather than the latest release.

    #59667
    howtogeek
    Member

    There’s the Add User plugin that will let you add users directly… I’ve used it a number of times for test accounts.

    #59360
    Null
    Member

    Testing this tomorrow after work…. nah after diner after work :)

    Thx for the help mate!

    _Null

    ps. how to open a .diff?? (windows machine)

    #56379

    In reply to: Plugin: bbMenu 1.1

    Null
    Member

    Testing this tomorrow after work…. nah after diner after work :)

    Thx for the help mate!

    _Null

    #51584
    fel64
    Member

    Turn the time-string into a timestamp to be turned into a time-string.

    <?php echo date( 'g:i A', strtotime( $latestpost->post_time ) ); ?>

    There’s a template function that gives you the link to the latest post in the topic. I believe it’s called get_topic_last_post_link() but I’m not sure.

    #51583
    outchy
    Member

    how does one filter the output for time in this example?

    <?php echo $latestpost->post_time; ?>

    i’d like it to be in the format of ( 'g:i A' )

    ps, my good, good people :)

    how would i turn this link into a link to the latest reply itself instead of just the topic:

    <a href="<?php echo get_topic_link($latestpost->topic_id); ?>"><?php echo get_topic_title($latestpost->topic_id); ?></a>

    #52672
    _ck_
    Participant

    Here we go!

    http://ckon.wordpress.com/2007/07/31/new-plugin-bbpress-signatures/

    updated to v0.11 – now with admin menu!

    http://ckon.wordpress.com/files/2007/07/bb-signatures.txt

    (rename .txt to .php)

    If you have plugins for smilies and/or allow images in post text, it will obey them, this is probably a good thing and desired.

    You can set the minimum user level needed to show signatures and also the ability not to repeat a user’s signature more than once per page.

    Instructions: install, activate, tinker with settings in admin menu

    If you would like the optional toggle on new/edit posts to disable signatures you must edit the edit-form.php & post-form.php templates and place at or near the bottom:

    <? bb_signatures_checkbox(); ?>

    (you can wrap it in a DIV and float it to the left, right style anyway you’d like

    sorry but there’s no way to do this directly through a plugin)

    Here’s a fancier version that I use:

    <div style=”float:left” ><? if (function_exists(‘bb_signatures_checkbox’)) {bb_signatures_checkbox();} ?></div>

    Version History:

    0.05 :slashes & autop fixed, replaced input with textarea, max_lines now supported in post-processing, max_length checked in realtime (as well as post processing)

    0.06 :internal testing/bugfix

    0.07 :per-post signature toggle

    0.08 :toggle for allow html and allow images should now work

    0.10 :basic functioning admin menu

    0.11 :more intelligent admin menu

    #2190

    Topic: AdityaNaik.com

    in forum Showcase
    so1o
    Participant

    Here is my latest redesign of my site.. the site has wordpress and bbpress completely integrated..

    there is no bbpress frontpage it shares the wordpress frontpage. the plugins are shared by both bbpress and wordpress.

    I have integrated the search also.. try the ajax live search. type and wait.

    Here is the link – http://www.adityanaik.com

    I will be releasing the last theme ‘sunnyside’ in a few days

    let me hear your thoughts.

    #52666
    _ck_
    Participant

    Whoops, I bet there were some situations I didn’t test for.

    Will investigate… (and she‘ll fix ’em asap)

    #56418

    In reply to: Freshness Linked

    citizenkeith
    Participant

    Ok, I finally got around to some testing. I have disabled almost all plugins and recounted… still the same behavior. However, I was unable to disable “Online List” and “BBPress Private Messaging” because it broke the admin console. So there’s a chance that one of those plugins might be causing this strange behavior.

    #51582
    outchy
    Member

    yes, good call:

    <?php
    $latestpost = $bbdb->get_row("
    SELECT *
    FROM $bbdb->posts
    WHERE post_status = 0

    ORDER BY post_time DESC
    LIMIT 1

    ");
    ?>

    Re:
    <a href="<?php echo get_topic_link($latestpost->topic_id); ?>"><?php echo get_topic_title($latestpost->topic_id); ?></a>:<br /><br />

    <a href="<?php user_profile_link($latestpost->poster_id); ?>"><?php echo get_user_name($latestpost->poster_id); ?></a> said:

    <?php echo $latestpost->post_text; ?>

    #59544
    _ck_
    Participant

    Er, wait a minute. This new view registation method takes away massive potential from views.

    For example you can’t manipulate the data before and/or after the BB_QUERY.

    Here’s how I find “most viewed” and “least viewed” topics and create new views for them. How the heck is this even remotely possible with the new method? The new method also takes away all natural mysql query methods, making things much more complicated and easier to make mistakes on query configuration.

    function most_views( $view ) {
    global $bbdb, $topics, $view_count;
    if ($view=='most-views') {$sort="DESC";}
    if ($view=='least-views') {$sort="ASC";}
    if ($view=='least-views' || $view=='most-views') {
    $limit = bb_get_option('page_topics');
    $where = apply_filters('get_latest_topics_where','');
    $most_views = $bbdb->get_results("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key='views' ORDER BY cast(meta_value as UNSIGNED) $sort LIMIT $limit");
    foreach (array_keys($most_views) as $i) {$trans[$most_views[$i]->topic_id] =& $most_views[$i];} $ids = join(',', array_keys($trans));
    $topics ="SELECT * FROM $bbdb->topics WHERE topic_status=0 AND topic_id IN ($ids) $where ORDER BY FIELD(topic_id, $ids)";
    $topics = $bbdb->get_results($topics);
    $view_count = count($topics);
    $topics = bb_append_meta( $topics, 'topic' );
    }}

    .

    Absolutely no way to do that purely though BB_QUERY, at least to my limited knowledge. You’d have to hook BB_QUERY and check for what it’s doing on every call and that’s nasty.

    #59543
    _ck_
    Participant

    Sigh, I guess I’ll tempt fate and install the latest trunk. Though I know it’s going to instantly break half a dozen plugins or more, so I need to do that when I have a full night to dedicate to it.

    I really like “views” and keep thinking of more helpful ones I can create that drill down through the data.

    You should enquire about the development priorities and directions on the bbPress dev list though, you may get more joy there.

    I find it somewhat hilarious that a *forum* development team uses a mailing list for group communications. The year 2000 called – it wants it’s static email posts back!

    #59566
    _ck_
    Participant

    Since there’s no real way to cache bbpress as static pages like wordpress (and not that there ever really can be, defeats the purpose) if you plan to have anything bigger than a “micro-forum” it’s important your host has mysql caching and optionally but recommend, some kind of php opcode cache (ie. eaccelerator)

    Otherwise you’ll be getting emails from your host about your account creating all of the mysql load, etc.

    The problem is I think most hosts do not have the two features I mentioned enabled. At least most shared hosting that’s done on cpanel “out of the box” on defaults. They have to be a bit more tech-savvy. And then if they are that clever, sometimes they will “oversell” the box thinking it can do more work than average.

    Last but not least, on all shared hosting and VPS, you can have great performance for the moments you test it, but then a “bad neighbour” comes along and your performance will become quite bad for no reasons of your own, until the host does something about it, which can be days. Sometimes even the host can make poor decisions that will cripple your site, like backing it up during times of higher activity or allowing the statistics programs to run on dozens of clients at the exactly same time.

    I wish I could afford dedicated hosting myself! Solves most of these problems. But spending $100 per year instead of $100 a month is no contest.

    ps. 2.490 – 8 queries is not good at all if you are expecting high traffic – I have mysql cache and opcode cache and get always get under 0.300 for 10-30 queries no matter how many visitors. But I suspect I pay much more for my hosting. My guess is there’s definitely no mysql cache on there or you are paying very very little for that hosting.

    #51580
    outchy
    Member

    excellent! i got it to work with this just before i checked back for your reply:

    <a href="<?php echo get_topic_link($latestpost->topic_id); ?>"><?php echo get_topic_title($latestpost->topic_id); ?></a>

    i think i understand it better now, thanks again! :D

    #51579
    fel64
    Member

    That’s great! Passing parameters is just giving the function some data to work with.

    $latestpost->topic_id is the topic ID. There are probably some functions like topic_title() and link_to_topic() or similar that you can use to get the title and link. They too will need the topic ID passed as a parameter, so if those are the actual functions it could be topic_title( $latestpost->topic_id ); :)

    #51578
    outchy
    Member

    wait, i got this to work to display the name:

    <?php echo get_user_name($latestpost->poster_id); ?>

    and this to make it into a link to the person’s profile:

    <a href="<?php user_profile_link($latestpost->poster_id); ?>"><?php echo get_user_name($latestpost->poster_id); ?></a>

    now all i need is to display the topic title and make it a link … i need help with this one please :)

    #2187
    riddle
    Member

    I’m in the process of setting up a bbPress installation (my first) at a new hosting provider (also my first time with them).

    Subjectively, things seem a bit slow. Is there a tool for testing response time on a generic PHP hosting provider? Maybe a PHP app for very gentle stress testing?

    Failing that, what sort of response time should be considered normal in bbPress’s self report in the comments at the bottom of the page? My top page currently says, “2.490 – 8 queries.” (That’s with a nearly-empty database.)

    If there are serious problems with this host, I’d like to figure it out now, before I get settled in and launch.

    Thanks.

Viewing 25 results - 10,726 through 10,750 (of 11,589 total)
Skip to toolbar