Search Results for 'code'
-
AuthorSearch Results
-
August 19, 2007 at 2:47 am #60063
In reply to: top 100 bbPress sites
_ck_
ParticipantActually 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.
August 18, 2007 at 10:06 pm #60062In reply to: top 100 bbPress sites
airdrawndagger
MemberThe 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
August 18, 2007 at 8:24 pm #60061In reply to: top 100 bbPress sites
Null
Memberairdrawnd where can we download that theme? I want to make it bbMenu compatible
August 18, 2007 at 8:22 pm #60133In reply to: plugin request: Ajax for submit post
Null
MemberThere 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
August 18, 2007 at 5:57 pm #59827In reply to: How do you change the Freshness of post date format?
Inquirer
MemberThe 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 ?
August 18, 2007 at 4:22 pm #2264Topic: plugin request: Ajax for submit post
in forum Pluginsmazdakam
MemberHi 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_ ?
August 18, 2007 at 11:27 am #60059In reply to: top 100 bbPress sites
airdrawndagger
MemberWhat about mine?
August 18, 2007 at 11:26 am #2261Topic: Dropdown menu to jump between forums
in forum Installationairdrawndagger
MemberI’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
August 18, 2007 at 11:18 am #58913In reply to: WP Blix theme forum tab highlight
airdrawndagger
MemberI 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>August 18, 2007 at 11:14 am #59410In reply to: Go to last post in topic
airdrawndagger
MemberThank you! I lost my password to the support forums in a computer crash but now I’m back to show my delayed gratitude
August 18, 2007 at 5:28 am #60007In reply to: Question about rendering time
howtogeek
MemberThat 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.
August 18, 2007 at 5:11 am #60042In reply to: bbpress install on an existing wordpress blog
chrishajer
ParticipantI 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
August 17, 2007 at 1:37 pm #2259Topic: bbMenu 2.0 alpha help needed (kinda advanced)
in forum PluginsNull
MemberWell 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
August 17, 2007 at 4:33 am #60005In reply to: Question about rendering time
howtogeek
MemberYou 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.
August 17, 2007 at 4:15 am #60004In reply to: Question about rendering time
_ck_
ParticipantNo “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.
August 16, 2007 at 10:29 pm #55012In reply to: Is there an Approve Registration plugin?
citizenkeith
ParticipantIs there a plugin that forces new user registrations to be approved by the keymaster?
I’m interested in this feature too. (Hint hint)
August 16, 2007 at 7:35 pm #56547In reply to: Strut Your bbPress!
lorenbrichter
MemberSimple forum for discussing some of my mac software.
Just put it up, so not exactly a whole lot of content yet
. bbPress rocks.
August 16, 2007 at 7:04 pm #60003In reply to: Question about rendering time
howtogeek
MemberThey are both slower than all hell for me.
I’m very interested in your fastload plugin… but I wonder if it would matter much for opcode cached sites.
Seems like the majority of the problems in speed I’m getting are from the repeated hooks in tight loops.
August 16, 2007 at 4:30 pm #58889_ck_
Participantganzua, “headers already sent” means you have left white space before or after the plugin you made (or edited)
ie.
(remove any spaces here)<?php
blah blah
?>(remove any spaces here)August 16, 2007 at 3:13 pm #60002In reply to: Question about rendering time
_ck_
ParticipantI’ve never seen their mysql take longer than 16-20ms to connect and never, ever more than 100ms to load all the queries. Storing code in mysql is crazy but just may work in weird cases like that. Of course if 1000 people did it, they’d ban the technique.
What’s really interesting is their microtime never gives accurate results and frequently negative numbers. Either their multi-cores have clocks that are out of sync or parts of the code are somehow executing on different servers???? I posted a question about it on their support forum and it was mysteriously deleted the next day.
August 16, 2007 at 2:56 pm #59996In reply to: Question about rendering time
_ck_
ParticipantI’ve reduced the number of files included to:
=== executed files ===
/index.php : 0.44 Kb
/bb-load.php : 0.46 Kb
/config.php : 2.28 Kb
/bb-settings.php : 7.49 Kb
/bb-includes/db-mysqli.php : 12.77 Kb
/my-plugins/fastload-includes.php : 298.75 Kb
/my-plugins/fastload-plugins.php : 93.66 Kb
/bb-includes/pluggable.php : 8.86 Kb
/bb-includes/locale.php : 6.91 Kb
/bb-templates/kakumei/front-page.php : 3.03 Kb
/bb-templates/kakumei/header.php : 1.6 Kb
/bb-templates/kakumei/logged-in.php : 0.21 Kb
/bb-templates/kakumei/footer.php : 1.13 Kb
==================================================With a little work I could make pluggable & locale include properly too.
August 16, 2007 at 2:53 pm #59994In reply to: Question about rendering time
_ck_
ParticipantWell every millisecond on the output does matter and the reasons you listed are very valid, but on heavily loaded servers, I have to believe the biggest weakness is the sheer number of files that have to seek and load. If they aren’t in the server’s file cache (dreamhost might have 1000 virtual hosts per node or more) that can cause long delays. Even if using an opcode cache, the cache still has to check the file date/size in the OS before it allows execution.
But even bbpress’s output template requires 3+ files to be included. SMF does it entirely differently in one single file.
I’ve built a prototype “fastload” plugin that concatinates two pools of files:
1. includes (except a few outside the general block in bb-settings)
2. all plugins
It actually works to some degree to speed things up on dreamhost when they are are at insane loads.
By reducing the number of files to seek from 40 to less than 10 the page load times are much better.
August 16, 2007 at 2:50 pm #55101In reply to: Installation Problem (last time was a disaster!)
ronchicago
MemberMaybe this has been addressed above, not sure. The install menu reminds me I am not in the WordPress directory and will need some code tweeking in order for cookies to match with WP, as well as, getting WP functions. To get the WP functions to work in bbPress, more tweeking is required. Is there any advantage to not putting bbPRess inside the directory?
Ultimately, I simply wish to have one WP blog address with a forum capability inside the WP blog.
Should I move bbPress inside the WP subdirectory? Or leave it as is and fine tune?
August 16, 2007 at 11:52 am #59992In reply to: Question about rendering time
_ck_
ParticipantAh, here’s SMF’s secret against bbPress – sheer number of files + size.
This definitely makes me want to go ahead with making a “quick loader” that will concat all the includes and then all the plugins as two blobs that can be either loaded from disk or mysql at user discretion based on the weakness of their shared server:
Front pages compared:
(keep in mind SMF actually has even more features than the dozen plugins loaded with bbPress, online user tracker, etc)
SMF 1.1.3
files for front page: 8 files, 338.45 Kb
index.php : 14.31 Kb
Settings.php : 3.71 Kb
Sources/QueryString.php : 18.84 Kb
Sources/Subs.php : 132.37 Kb
Sources/Errors.php : 15.94 Kb
Sources/Load.php : 92.47 Kb
Sources/Security.php : 29.88 Kb
Sources/MessageIndex.php : 30.93 Kb
=====================================================`
bbPress 0.8.3 alpha
files for front page: 40 files, 437.15 Kb
index.php : 0.44 Kb
bb-load.php : 0.46 Kb
config.php : 2.28 Kb
bb-settings.php : 7.14 Kb
bb-includes/db-mysqli.php : 12.77 Kb
bb-includes/functions.php : 71.73 Kb
bb-includes/wp-classes.php : 3.37 Kb
bb-includes/classes.php : 37.98 Kb
bb-includes/formatting-functions.php : 8.73 Kb
bb-includes/template-functions.php : 59.12 Kb
bb-includes/capabilities.php : 13.15 Kb
bb-includes/cache.php : 8.52 Kb
bb-includes/deprecated.php : 8.17 Kb
bb-includes/wp-functions.php : 36.06 Kb
bb-includes/kses.php : 17.65 Kb
bb-includes/l10n.php : 1.76 Kb
bb-includes/bozo.php : 10.1 Kb
bb-includes/akismet.php : 8.14 Kb
bb-includes/default-filters.php : 4.45 Kb
bb-includes/script-loader.php : 9.2 Kb
bb-includes/compat.php : 0.57 Kb
my-plugins/_bb-benchmark.php : 4.79 Kb
my-plugins/_cookie-year.php : 0.92 Kb
my-plugins/bb-polls.php : 21.04 Kb
my-plugins/bb-signatures.php : 11.52 Kb
my-plugins/report-post.php : 3.92 Kb
my-plugins/user-topics-to-favorites.php : 0.59 Kb
my-plugins/bb-topic-views.php : 5.91 Kb
my-plugins/my-views.php : 10.13 Kb
my-plugins/notification.php : 2.26 Kb
my-plugins/my-views-started-participated-topics.php : 1.52 Kb
my-plugins/my-views-most-least-views.php : 2.7 Kb
my-plugins/plugin-browser.php : 21.72 Kb
my-plugins/my-views-installed-available-plugins.php : 6.61 Kb
bb-includes/pluggable.php : 8.86 Kb
bb-includes/locale.php : 6.91 Kb
bb-templates/kakumei/front-page.php : 3.03 Kb
bb-templates/kakumei/header.php : 1.6 Kb
bb-templates/kakumei/logged-in.php : 0.21 Kb
bb-templates/kakumei/footer.php : 1.13 Kb
=====================================================
August 16, 2007 at 9:43 am #60021In reply to: Cannot access profile page
amethystdragon
MemberHmmm I’d already added the
<? if (function_exists('show_blah')) { show_blah();} ?>
block around stuff and I’ve added the
error_reporting(E_ALL);
To config.php but I’m not getting any more information – its very very odd
-
AuthorSearch Results