Search Results for 'code'
-
Search Results
-
Topic: bbpress vs phpbb
Hi there!
I am sorry if someone else has already created a post on this.
I have a website (powered by wordpress) that has a bunch of how-to windows tech articles. I need to get a forum for my site users. Which one would be better? My users will need the capability of uploading files, pasting code and images. Which forum program would put less pressure on my servers and hopefully keep the running a little faster?
Thank you ahead of time for any help.
I have just re-launched a site containing about 43000 topics and over 300000 posts…
I had severe performance issues on all sites using the get_latest_topics functionality (the frontpage was severe because it is using more than once in my custom theme).
Because of the “index” design it file-sorting because it’s sorting on topic_time and is mysql is hitting the stickies index.
The solution was to create a new index only with the topic_time field in it. However I was unable to force this index in the query without touching the core files.
This is what i did:
Could there be a filter there so I could move this out into a plugin?
BB_Query::generate_topic_sql function:
$index_append = '';
switch ($this->query_id) {
case 'get_latest_topics':
$index_append = ' FORCE INDEX (topics_time_order) ';
break;
}
$this->request = $this->_filter_sql( $bits, "$bbdb->topics AS t $index_append" );I guess I will find more places where I could do some index optimization that fit’s my install… I can’t be the first running into this issue?
Hi!
I want to use a couple of WordPress function so i tried to include wp_blog_header in bb_config like this:
“require_once(‘../wp-blog-header.php’);”
This works well if i am in the forum section but as soon as i go into bb-admin i get the terrible feared:
Warning: require_once(/wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in C:wampspeedrevisionforumbb-config.php on line 49
Fatal error: require_once() [function.require]: Failed opening required ‘/wp-blog-header.php’ (include_path=’.;C:php5pear’) in C:wampspeedrevisionforumbb-config.php on line 49
This worked great in 0.9.0.3 but in the latest unstable version 1 A4 it does this, why?
And why does it say that a forum is locked when i am trying to make a post?
Would really appreciate some help
Topic: Getting additional user data
I used:
add_filter('get_profile_info_keys', 'get_profile_info_keys_personal');
to add more fields to the registration. But I don’t know how or can’t seam to find a way to get this data.I thought I could use
$user = new BB_User($user_id);
and then use$user["new_field"]
, but after I didvar_dump($user)
, I couldn’t find it in there. But it does appear in that user’s profile!How can I access the new values in get_profile_info_keys for a particular user?