Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,226 through 29,250 (of 32,491 total)
  • Author
    Search Results
  • #60174
    Null
    Member

    This aint wordpress :) and yes everything has te be done offline :(

    #60160

    In reply to: Wrong user count

    Elias
    Member

    Arrgh! Horrors!

    The problem is caused by the bb_append_meta invocation in line 2075 of functions.php. The query destroys the last SQL_CALC_FOUND_ROWS and so the count is wrong. A quick and dirty workaround is to change 'append_meta' => false to 'append_meta' => false in the $defaults array in line 2021 of functions.php. But this only works if the append_meta argument is not given in the bb_user_search call.

    Now the problem is more complicated as I suspected earlier. It is a problem for the hackers that make bbPress. No further searching for bugs from me, the problem should be clear. (It is clear enough to me after reading lots of code from other people.) I expect it to be fixed in the next release.

    #59830
    Sam Bauers
    Participant

    I believe you can do this…

    <?php topic_time('D M j Y G:i:s'); ?>

    But I’ve never tried it.

    #60159

    In reply to: Wrong user count

    Elias
    Member

    I found something that can help to fix this bug. In the following I use wordpress_ as prefix for my WP tables.

    My wordpress_usermeta table has 65 rows, and 65 users are displayed now in the bbPress dashboard. It seems to be a wrong SQL statement for querying the number of users.

    Instead of the (by me assumed) select count(*) from wordpress_usermeta there should be used either select count(*) from wordpress_users or select count(distinct user_id) from wordpress_usermeta to get the number of users.

    (Oh yes, I know that there will be a where-clause…)

    I suspect line 2046 in bb-includes/functions.php, but I’m not familar with the source.

    #59829
    Inquirer
    Member

    Hi chrishajer:

    I moved the files you listed to my-templates folder then edited using the code

    <?php echo date(“D M j Y G:i:s”, strtotime($topic->topic_time)); ?>

    I FTPed the files to my server.

    The new date time format appears to be working.

    Thanks.

    #2266
    dennylin93
    Member

    I installed bbPress version 0.8.2.1 on Windows XP Pro SP2 with Apache 2.2.4 and PHP 5.2.3. I installed a few plugins, and everything worked fine. However, when I tried to register a new user for testing, I couldn’t receive the e-mail with the password.

    I checked the error log and found this:

    [Sat Aug 18 21:18:09 2007] [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\forums\bb-includes\registration-functions.php on line 105, referer: http://127.0.0.1/forums/register.php

    Most things on Apache and PHP are set to default, so I’m not sure if I skipped any processes. I’ve been having trouble with SMTP for a long time now.

    #50389
    neyoung
    Member

    thanks baptiste!

    The fix worked wonders :)

    #59828
    chrishajer
    Participant

    That php _e(‘Freshness’) just echoes the table header. A couple lines beneath that you will find the call to the function that provides the time elapsed (i.e. the Freshness):

    <?php topic_time(); ?>

    Instead of that topic_time, you could just insert the code like _ck_ has shown, modified a little bit, so instead of this in your template files:

    <?php topic_time(); ?>

    use this:

    <?php echo date("date format here", strtotime($topic->topic_time)); ?>

    where date format here is some combination of characters from here: http://www.php.net/date

    For example:

    <?php echo date("D M j Y G:i:s", strtotime($topic->topic_time)); ?>

    prints like Sun Aug 19 2007 1:53:54 right now, but it would be based on the topic time of the post in your case.

    You would need to look at these files, at least, in your template directory:

    ./favorites.php

    ./forum.php

    ./front-page.php

    ./tag-single.php

    ./view.php

    It’s safe to modify your own template files. You’re not modifying the core bbPress files. But maybe this would be better as a plugin, I’m not sure.

    Good luck.

    #60009
    _ck_
    Participant

    I’ve discovered another interesting approach that SMF takes – their “plugins” are actually true mods where it’s a sort of “diff” file that patches the sources. Keeps it running very fast no matter how make addons you use. To a certain degree it keeps working between minor version changes (ie. 1.1.1-1.1.3) but major changes will break many of them. Still, it’s an interesting approach and very different to bbPress.

    They also do virtually everything in memory as arrays (roles, etc) where bbPress runs through a big bunch of code to return a value ie. bb_current_user_can(“administrate”).

    I know wordpress.org’s forum has distributed backup servers but it operates as a single server correct? I’m wondering just how far bbpress can scale on a single server. Once you offload mysql & email functions, that’s about as far as you can go easily on a single server.

    #60063

    In reply to: top 100 bbPress sites

    _ck_
    Participant

    Actually I have both of those sites already in the list :-)

    I was going to try to get the list out this weekend but sadly I will not have as much time as I hoped to work on it. But it’s coming along.

    I’ll say this much about bbPress sites compared to most other forum software – very few of them look alike.

    #60062

    In reply to: top 100 bbPress sites

    The theme is Blix, and I’ve modified the hell out of it. The headers from the WordPress theme are loaded into bbpress. It’d take some work I’m not willing to put in to make this a bbpress theme :)

    #60061

    In reply to: top 100 bbPress sites

    Null
    Member

    airdrawnd where can we download that theme? I want to make it bbMenu compatible :)

    #60133
    Null
    Member

    There already is a trac for this made. Since mdwaffe made a ajax posting plugin for bbPress and he also builds this forum, I think there is a big change we’ll get it back.

    With any luck, perhaps in the next release :)

    #59827
    Inquirer
    Member

    The following code is in the front-page.php file

    <th><?php _e(‘Freshness’); ?></th>

    What file contains the code to change the Freshness of post format from the default of Days to the Date – Hours – Minutes ?

    #2264
    mazdakam
    Member

    Hi i found that the bbpress had ajax utility for posting rea but it removed i don;t know the reasons!

    but i think everyone will be agree with me it would be nice if there is ajax plugin for bbpress post area

    fastY easy and user friendly feature i hav no technichal knowledge so who like to start it…

    i will test it and get feed back :)

    _ck_ ?

    #60059

    In reply to: top 100 bbPress sites

    #2261

    I’d like to add a dropdown menu which lets the user jump between the different forums, latest discussions, and favorites. I’d love a little help with this :)

    http://www.doublepeace.se/forum

    #58913

    I don’t really remember but this is what I have:

    <li<?php if (is_home() && $forumpage == false) echo " class="current-cat""; ?>><a href="<?php bloginfo('url'); ?>" title="Start">Start</a></li>

    <?php wp_list_cats('sort_column=id&hide_empty=0&exclude=2'); ?>

    <li<?php if ($forumpage == TRUE) { echo " class="current-cat""; } ?>><a href="http://www.doublepeace.se/forum" title="Forum">Forum</a></li>

    #59410

    Thank you! I lost my password to the support forums in a computer crash but now I’m back to show my delayed gratitude :)

    #60007
    howtogeek
    Member

    That doesn’t seem too difficult to believe, I ran bbpress through phped profiler and it looks like the templating makes it slightly slower than if you directly outputted the code like most other forums do.

    Which does make sense… what I’ve been considering is making a theme that doesn’t use all the filters but directly outputs the data.

    That theme author should seriously consider moderating his forum… there’s nothing but spam on it.

    #60042
    chrishajer
    Participant

    I am going to guess that the single quote in this string is causing you trouble:

    $bb->name = 'Le forum des subventions à la création et au développement d'entreprise';

    I bet it would work like this, although I don’t know how it will display (escape the single quote/apostrophe):

    $bb->name = 'Le forum des subventions à la création et au développement d'entreprise';

    I would also bet this would work (double quote the string, no escape):

    $bb->name = "Le forum des subventions à la création et au développement d'entreprise";

    Good luck

    #2259
    Null
    Member

    Well I have read and searched many articles to fix my issue, but still no luck. I have problems uploading the order of the lists when you press submit using bbmenu.

    I know I have to use the serialize option from interface (jQuery), the question only is HOW? How do I get the order updated using it?

    Some stuff I’ve read:

    SortSerialize

    This function returns the hash and an object (can be used as arguments for $.post) for every sortables in the page or specific sortables. The hash is based on the ‘id’ attributes of container and items.

    Code sample:

    serial = $.SortSerialize('sortable1');
    alert(serial.hash);

    And some interesting stuff here:

    The save button function uses the SortSerialize function and some regExp to
    get a comma-delimited list of the movie IDs and sends it to a generic
    webservice:
    $("[EMAIL PROTECTED]").click(function(){
    var serial = $.SortSerialize();
    //alert( serial );
    var idList = serial.hash.replace(/sortableList[]=/gi,'').replace(/
    &/g,',');
    //alert( idList );
    var collectionId = new String( $("[EMAIL PROTECTED]
    $=hiddenCollectionId]").val() );
    if (collectionId != "undefined") {
    $.ajax({
    type: "GET",
    url: "Handlers/Movies.ashx",
    dataType: "html",
    data: "action=savecollection&overwrite=true&collectionId=" +
    collectionId + "&iList=" + idList,
    success: function(msg){
    $("span#updatemsg").html( msg );
    }
    });
    }
    return false;
    });

    (cool: $.ajax is included in jQuery?)

    Any 1 can help me figure this out? The jQuery forum (google groups) is just too sucky (no post appears when I want to add my question) to get any help from.

    To see what I have now download:

    http://www.sourceskins.com/bbmenu2.0alpha.zip

    How to use this Alpha build?

    You MUST have bbmenu 1.2 installed. When installed and running succesfull, deactiate the plugin. Now upload this alpha build and activate it. You can now drag and drop the menu tabs (using jQuery yeah), but saving wont work (the save button is “empty”).

    Thx for the help

    #60005
    howtogeek
    Member

    You should put up a donate button on your page… or just get really familiar with vim =)

    I’m thinking that 0.05 seconds to render a page is really quite good for most sites… I can’t seem to find a big forum that includes the render time in the page source.

    What I’ve been thinking about, however, is that a customizable caching plugin would be really useful, especially for the really old posts that are mostly viewed via a google search. Been reading through the wp-cache2 source to see if there’s really all that much to it.

    #60004
    _ck_
    Participant

    No “fastload” is not very useful for servers with a proper opcode cache and responsive disk system (and files are fetched and rendered on the same node). On my VPS it actually adds a few ms on average.

    The load on dreamhost has been over 20 for most of today so it’s not surprising anyone will find the bbpress+smf test sites slow.

    I’m probably going to switch the showcase back to nearlyfreespeech shortly which is still on the slower side and uses only http 1.0 as it’s forces though a squid proxy.

    Unless someone can find a $20 or less per year host that has a better setup as my budget is maxed out. Can’t even afford to replace my mouse that’s acting up right now.

    #55012
    citizenkeith
    Participant

    Is there a plugin that forces new user registrations to be approved by the keymaster?

    I’m interested in this feature too. (Hint hint) :D

Viewing 25 results - 29,226 through 29,250 (of 32,491 total)
Skip to toolbar