Search Results for 'code'
-
Search Results
-
Topic: DAMN POST FORM!!! any ideas?
Hellooo!
Well, i recently change to bbpress (this rocks) and i’m trying to make a theme compatible with the current theme in my wordpress blog. It went pretty well, until i came across the post-form to create a new topic and i’m in blank…
Let me explain: i’m using the theme kakumei, and instead off the hottags on the left, i’m going with a sidebar with other features (tags, the ‘fav this’ feature, link to main forum, etc…). This works well in the front-page, in the topic, profile, and other, but i’m having some problems put this working in the post-form.php !
The way i use to style was: the sidebar in <div id=sidebar></div>, and the content (infobox, post, topic meta, etc) in <div id=”content”></div> just like the kakumei theme.
My problem with the post-form.php is the function that is used in the functions.bb-template to the ‘pre_post_form’ and ‘post_post_form’. Using the <div id=”content”></div> in the post-form.php the <div> actually appears in the middle of the code of the form in the post-form and the content dont stay aligned. Putting the <div> in the functions.bb-template, just makes the <div> repeating in the others pages where the post-form is used, and the content dont stay aligned anyway.
i’ll really appreciate if you could suggest me some ideas. tks
Topic: Installation Error
I downloaded the latest release of bbPress. I uploaded all the files/folders to my site. I even deleted them and uploaded them again to see if it fixed it. I get to the install screen and when I click “let’s get started” I get the following error about 200 times.
Warning: cannot yet handle MBCS in html_entity_decode()! in /home/content/t/b/i/tbiznet1/html/bbpress/bb-includes/wp-functions.php on line 113
I have installed bbpress for a client who does not want users to be able to add a topic.
Although I would like to see that as an option in settings, it is not, so I guess I have to get my hands dirty in the php files. OK fine.
So I’ve found and commented out the code in the forum.php and front-page.php files which contains the link to add a topic as so….
‘ <th><?php _e(‘Topic’); ?> <!–—–> <?php // new_topic(); ?></th>’
But to my dismay, I also see that a user can add a topic when they click on a Forum “Main Theme” title. The page they are taken to has a huge “New Topic in this Forum” area. I don’t want that and can’t quite figure out what file and what code I need to delete to get rid of that.
Help please?
Topic: what is forum_id?
Hello,
I’ve noticed I have some queries that are performing slowly:
SELECT t.* FROM bb_topics AS t WHERE t.topic_status = ‘0’ AND t.topic_sticky = ‘2’ ORDER BY t.topic_time DESC LIMIT 30
The index the db is using is forum_stickies which is a composite index of (topic_status, forum_id, topic_sticky, topic_time)
THe problem is since the query thats created doesn’t include forum_id, mysql is not able to utilize the composite index completely and performs an additional filesort which slows the performance of the query.
To fix this, I can either create a new index that doesn’t include the forum_id field OR somehow force the code to include the forum_id conditional in the query. I only have one forum and I only plan on having one forum per a database.
I can hack the code, but I suspect there is a setting somewhere that can fix this issue. Any ideas?
Thanks!