Search Results for '+.+default+.+'
-
AuthorSearch Results
-
September 20, 2008 at 3:12 pm #4017
Topic: Anyone use GoDaddy host?
in forum Troubleshootingleoleoleo
MemberAnyone use Godaddy webhost? I just use the service and moved my old site to .
WordPress http://xxx.com (URL Rewrite is fine)
bbPress http://xxx.com/forum/
but the default (rewrite-rules.php) permalinks is not work. Anyone know how to use bbPress URL Rewrite with GoDaddy?
September 19, 2008 at 12:51 pm #67699In reply to: BB Poll anonymous can see vote bar
_ck_
ParticipantWorks fine for me with default template in newest 1.0 alpha. Or do you mean you want anonymous people to be able to vote. That’s not possible.
Any particular reason you started a new topic on this rather than asking on the page for the plugin itself?
September 19, 2008 at 12:49 pm #61909In reply to: BB Poll Plugin
_ck_
ParticipantI am not sure why people bump year old topics instead of posting on the page for the plugin itself, but to answer your question, if you are logged in and admin, you can add a poll anytime. Otherwise the ability to add a poll expires an hour after the topic is started by default (which you can change in the settings).
September 18, 2008 at 7:57 am #67681In reply to: Transferring forum to another host server (intranet)
_ck_
ParticipantIf you didn’t hack the core and just templates, all they need to do is install the same version of bbPress you have installed, send them your custom theme files to install, and then send them a full export of your bbpress db to replace their default install. Then it should be identical.
September 18, 2008 at 5:19 am #67643In reply to: Fulltext searching very slow
_ck_
ParticipantRemember, the problem with MATCH AGAINST is it will not do partial words or words under 4 characters.
It’s not too hard to replace the search, you just have to decide which way you want to go. The regular expression will at least do 3 character words which I find is more common than you’d imagine.
The problem is that the time for any way without an index is going to increase dramatically once you start adding sorting and other options that cause full table scans. You can see this happen if you try to add a simple option to the regex demo like sorting by reverse post_id (which is a trick that should be a little faster than sorting by date).
SELECT * FROM bb_posts WHERE post_text LIKE '%test%' LIMIT 5 ORDER BY post_id DESC;and
SELECT * FROM bb_posts WHERE post_text LIKE '%test%' AND REGEXP ':<:%test%:>:' LIMIT 5 ORDER BY post_id DESC;You might want to test a worse case scenario by using three character nonsense words that will cause a cache-miss like “zzz” and “aaa”. Change them each time so mysql cannot cache the results and give you faster times.
If the above example returns in an acceptable amount of time you can just replace bbpress’s built in search with that simple method. By parsing a query you can also AND words together instead of bbPress’s default OR which to me is incredibly annoying and useless (you’ll notice no major search engine like Yahoo or Google does OR by default).
September 17, 2008 at 1:53 pm #67640In reply to: Fulltext searching very slow
_ck_
ParticipantBut keeping a full-text index can get rather huge, which is probably why bbPress doesn’t use it by default.
BTW, MySQL 5.1 apparently has some nice improvements in fulltext search.
If you have your own dedicated or vps server you can tinker with some mysql settings to speed things up. (You never did answer if you have mysql cache turned on)
_ck_
ParticipantI think that’s one of the default javascripts scripts loaded in the topic.php page.
It only shows in mini-track because it’s generated by a php file.
Most of the javascript in bbPress can be disabled and makes for faster loading pages (ajax goes away however).
So the answer is no, it’s not hacking. But you will see the attempts sooner or later – there are thousands of bots out there scanning sites and most people are unaware.
I’ll put in some code to exclude bb-includes in the next mini-track.
September 16, 2008 at 3:54 pm #67661Clicknathan
ParticipantThanks everyone, I’m going to try out the first plugin Chris recommended and I’ll let the thread know if that’s the ticket.
September 16, 2008 at 3:36 pm #67660chrishajer
ParticipantSeptember 16, 2008 at 3:01 pm #67638In reply to: Fulltext searching very slow
_ck_
ParticipantSuper-Search is currently over 20k and only about halfway done in what it needs to do. All the bbPress core needs is a proper way to and/or words and disable partial matching instead of defaulting to just searching for every single fraction of each word.
September 16, 2008 at 2:51 pm #67659Andrew
MemberThere is also a plugin that does this.
I can’t find the plugin link, it was one of fel64’s specials and it isn’t in the repository. It was called ‘page’ and added a > at the end of each topic title.
September 16, 2008 at 2:33 am #67655In reply to: Searching forums for my past posts
chrishajer
ParticipantIf you click on the profile link (the title under your username) you will get a list of all posts you’ve made and threads you’ve started. It’s not search, but it will all be there. I don’t believe the member name is searched by default (could be completely wrong there and haven’t tested it in a long while.) I think it just shows “recent posts” and “relevant posts” (at least in my old version that’s what happens.) If you click the profile link, you get topics started and recent replies.
September 15, 2008 at 11:53 pm #67635In reply to: Fulltext searching very slow
_ck_
ParticipantActually, the best thing to do is completely replace the search facility. That’s what I do in Super Search. bbPress’s search is very weak, so weak that there wasn’t even a link to it on any page in 0.9 (it’s similar to WordPress’s search, which also sucks, it’s the ugly truth no one seems to talk about).
I assume you are using the bb-benchmark plugin to watch those queries happen (if not, you should be).
Stupid question but you DO have the mysql cache turned on? I only ask because on many server configs (like CPANEL) it’s turned off by default. What does your
my.cnflook like? (do acat /etc/my.cnfin your shell)Try going into phpmyadmin (or command line) and test that first test query against adding
AND post_text REGEXP ':<:%test%:>:'to the query like so:SELECT p.*, 0 AS search_score, MAX(post_time) AS post_time FROM bb_posts AS p JOIN bb_topics as t ON ( t.topic_id = p.topic_id ) WHERE p.post_text LIKE '%test%' AND p.post_text REGEXP ':<:%test%:>:' AND p.post_status = '0' AND t.topic_status = '0' GROUP BY t.topic_id ORDER BY p.post_time DESC LIMIT 5;I suspect in the end due to your huge db size you are going to need to completely replace the search functions with something like this http://sphinxsearch.com which has a PHP api. Fortunately in bbPress it’s very simple to hook the internal search and bypass it entirely without even template hacks. A quick google shows that a few WordPress plugins have sphinxsearch support so that would be easy to copy over to bbPress. If you find the keyword “sphinxsearch” on this source for example, you can see how it’s done: http://svn.scriblio.net/plugin/trunk/scriblio.php
September 15, 2008 at 7:11 pm #67667In reply to: Can’t see posts if not logged in
Clicknathan
ParticipantThe error was from a Private Messaging plugin (note: not a private forums plugin).
I have the default Akismet & Bozo plugins installed, and also the “Use Display Name” (which just changes your username to your nicename) and BBPrivate Messaging Plugin (as mentioned above) plugins installed. Removing them does not allow me to see the forums content either.
I just noticed that actually only admins can see the forum content.
You asked:
You didn’t make all your forums categories in the admin, did you?
I’m not sure what you mean, I’m new to BBPress. I converted an old WordPress XDForum plugin to BBPress, so perhaps something happened with permissions there, but even so, any direction as to how to open these up to everyone would be great!
September 15, 2008 at 2:34 pm #4000Topic: Default to the last page of a thread instead of the first
in forum PluginsClicknathan
ParticipantWould anyone know of a way to show the last page of a thread by default instead of the first?
For example, if a thread has 3 pages worth of posts, we want to by default show page #3 rather than #1.
Any ideas? Thanks!
September 15, 2008 at 11:02 am #66083In reply to: WordPress + bbPress Integration 101
nekita
MemberSeems as if I have the same problem as doyle640. Integrated the Alpha with WP 2.6.2 and after adding “require_once(‘../wp-blog-header.php’);” to bb-config.php I can’t access the bbP Admin section anymore. the “Reply” and “New Topic” area is gone as well, Profile can’t be edited etc. The title under my Admin name (“Key Master” by default) will also change to Invalid.
The loading error for the admin section is indeed a 500 error. At first I figured it might be related to some class conflicts within the WP and bbP CSS structure but fiddling with that didn’t help either.
Now it seems more likely that the User Account looses all of it’s user privileges in bbP once it’s integrated with WP for some reason.
September 14, 2008 at 8:41 am #67632In reply to: Fulltext searching very slow
_ck_
ParticipantI’m curious about this issue as performance problems always intrigue me. You must be using 0.9 as 1.0 has an index on stickies by default.
As far as fulltext search there is a trick I use because of the multiple issues with fulltext (not only speed but fulltext can’t do words less than 4 characters until you customize and rebuild mysql). The trick is to use regex and do a two pass query where you first exclude all the posts without the words and then allow mysql to do a regular scan of the remaining posts.
Query example from my Super-Search plugin:
WHERE post_text LIKE '%".$term."%'" AND post_text REGEXP ':<:".$term.":>:[^']' "Compare the performance of that against a fulltext search that uses
"MATCH post_text AGAINST $term"I don’t have enough data to do a huge benchmark but some simple tests with the cache off shows 0.4 seconds for the trick and 0.9 for the fulltext.The only downside to the trick is you cannot do partial word searches that way. ie.
$term="cat"will only return posts with the exact word “cat” and not “cats” or “category”. But it should be way faster.Searching a huge number of posts is a non-trivial problem. It’s been known to crush other forums like vbulletin which has fancy code to prevent users from searching too often/too quickly and even disable search temporarily on high server load. Sites like Wikipedia have to go through several technically complex tricks to keep the search fast on that much data.
Many large sites end up using sphinxsearch to replace fulltext search. You could interface it to bbPress via their PHP api.
You can read more workarounds on the mysql fulltext search page (with far more knowledgeable people than me) http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html
September 12, 2008 at 7:57 am #3985Topic: Integration with WP and roles
in forum TroubleshootingJens Wedin
MemberHi
I have WP 2.6 installed and the latest svn version (updated yesterday) of bbPress. The two are integrated with each other. I had a look at the users and roles in WP and noted that bbPress had changed all the roles to the bbPress role types. The WP roles are now all gone. The problem is that no one of my users can login, only the first admin user which I created when installed WP and bbPress. If I change another user from member to admin he cannot login.
Can I change back the roles to the default WP roles or do you have any clue what have happened?
September 10, 2008 at 10:16 pm #66712In reply to: bbPress 1.0 alpha
kannued
ParticipantI didn’t change the database table prefix from the default. This is the only table in the new database. The database says ‘bb_’, and bb.config.php says ‘bb_’. My keymaster shows up in ‘bb_users’. So if the keymaster is there, then the table prefix is not the problem. It is something else.
September 10, 2008 at 4:55 pm #67568In reply to: Integrating to WP has broken the static front page
jpope
MemberSo I have confirmed that this happens even if I set both bbpress and wordpress to the default themes, so it is definitely not something in the themes I’ve customized.
I really wish I could find the code where wp is determining the post ID of the home/front page as I suspect that is the best place to start trying to tackle this.
September 7, 2008 at 11:42 pm #67496In reply to: Edit posts: show other posts of the topic
meitershaker
Member“You could do it with two browser tabs or windows.”
lol, euh yes, but not very user-friendly i think

“Why are you looking to see other posts while editing another (just curious)? “
because for me, edit a post for add or complete post, it’s more interesting to have always the entire thread. And for political forum, where the post are many times big, it’s necessary to have entire thread..
so, in phpbb by default for example, it’s like that…
i have no idea how to do it with a plugin, and i ask you for a little help :p
++
chrishajer
ParticipantThere is no author rank in the default installation. Are you talking about their title (like Member or Administrator)?
If so, you would need to modify the template file for each place where the title appears (maybe it’s only on the topic pages, for each post?) If so, just remove it from the post.php file in your template directory:
Remove this line:
<small><?php post_author_title(); ?></small>That removes the author title from under the author’s name. If that’s not what you mean, then you have something installed that I do not. I think there is a post rating plugin and an author reputation (karma) plugin: maybe one of those is showing the rank you’re talking about.
September 7, 2008 at 4:30 am #67401In reply to: Server Overload
_ck_
ParticipantI probably made a bad assumption that it was not installed, though it definitely doesn’t come by default on a cpanel setup so that’s a bit unusual. Strange someone would put eaccelerator on there but not enable the mysql cache.
You can look at your phpinfo() to find out if eAccelerator is really installed and active.
That eaccelerator compress and compression level is just a waste of cpu time. I’d either set
eaccelerator.compress="0"or
eaccelerator.compress_level="1"By the way, the php configuration is located in
/usr/local/lib/php.iniand the eAccelerator options are at the very bottom of the file if you ever have to manually edit them.
September 6, 2008 at 10:52 am #67442In reply to: Cannot modify header information
_ck_
ParticipantDatabase error: []
SELECT * FROM bb_online WHERE user_id = LIMIT 1
Caller: online_logoutThe user_id is empty in this case which causes the error.
The question is why it’s empty.
This could be a cookie problem, this could be an alpha bug.
If you have no plugins running and switching to the default template does not make the error go away, it’s a bug and should be reported on TRAC (along with your configuration if possible, server type, PHP, etc)
September 6, 2008 at 10:08 am #3949Topic: Very basic header footer plug in
in forum Pluginslstelie
MemberHello,
I wrote this for my own use, in case it could be of some use for someone, here it is :
This allow to put some html code in header (or example metatags) and footer (for example counter code)
There is no admin part for two reasons :
1) I’m learnig how it works
2) I’m not sure it would be a great idea to have a DB request for a code that never change
So for instance you’ll have to edit manually the plugin file
Why use a plug in instead of a direct ad in the template ? because for alpha release the default template (my own is based on kakumei) sometimes change, so keeping the personal code updated each time can be tedious.
Luc
-
AuthorSearch Results