Search Results for 'code'
-
Search Results
-
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?
Replace :
$uri = preg_replace('!?page=[0-9]+!', '%_%', $uri );By :
$uri = preg_replace('!?page=[0-9]+!', '%_%', $uri );That’s all .
Topic: Subforums and Feedback
Hi there everyone, right now we’re trying to restructure our wordpress blog and bbpress forums to allow blog entries to appear in the forums via Bbsync.
http://bbpress.org/plugins/topic/bbsync/
Because of this need to have our blog entries appear in the forums, we’re restructuring our forums to tie into the blog entries.
Check it out here: http://www.feastoffools.net/community
Wondering if there is a way for parent forums to show all the entries in their subforums instead of showing entries specifically intended for the top parent category. Am I making sense?
Or is there a way to lock out people from making an entry on a top level forum (allow only subforum
Is there a way to have the top level forums count the entries in the subforums? Any feedback would be greatly appreciated. Thanks.
<hr>
Right now this is the structure we’re looking at:
Feast of Fools
– Podcast (Gay Fun Show) PODCAST
– Video (Our original videos) VIDEO
– Photos (Our original Photos) PHOTOS
– Mini Bites (Audio clips and songs from the podcast) MINI BITES
– One on One (Video Blogs) VIDEO BLOGS
Topics
– About Us (Press, Appearances, Announcements)
– Animals (Our furry and not so furry friends)
– News & Rumors (What’s the Buzz)
– Trends & Tech (How we are changing, technology & the environment)
– Culture & Style (Media, Ideas, Recipies, Looks & Things that are hot)
– Gender & Sexuality (Gay, Lesbian, Straight, Trans, Male, Female, Bi, Trans & Everything Else)
– Health & Wellness (AIDS/HIV, Fitness, STDs, Diet, Nutrition, Mental Health)
– People (Celebrities, Guests, Hotties & You)
– Politics & Activism (Creating Change and the people and ideas behind it)
– Travel & Tourism (where to go, what to see)
Fans & Friends
– Ask for Advice (questions)
– Promote Your Work (links and samples of: Photos, Video, Blog, Podcasts, Designs)
– Your Thoughts (statements)
Support
– Site News (Changes, Upgrades & News About the Site)
– Listening to Shows
– How to Post (Tips and tricks on posting in the forums)
– New Listeners
– Questions
Feedback
– Bugs (Report problems for the site)
– Show Ideas
– Favorite Moment (Time and Episode in a podcast you found fabulous)
Topic: navigation using forum_id
