Search Results for 'code'
-
AuthorSearch Results
-
May 9, 2011 at 6:42 pm #95250
In reply to: bbPress 2.0 – Updates
Gautam Gupta
Participantpadams: I think JJJ is thinking of getting them into the alpha or the first major release of the plugin.May 9, 2011 at 6:35 pm #95248In reply to: bbPress 2.0 – Updates
Gautam Gupta
Participantpadams: No, forums are made using custom post types. bbPress will soon introduce its own feeds.
May 9, 2011 at 12:00 pm #100366In reply to: Custom topic Fields
christopher jon
MemberSounds good.
I’ve found working with the plugin to be pretty easy. Beneath all of the code, it’s still wordpress at heart.
The next thing I want to try out is modifying the single topic loop to display certain topics with a different style, something similar to a featured post on a blog.
This is where the meta box was needed, adding a check box to notify the loop to use a different style for those topics.
The default theme has something similar already in place with the first topic posting having slightly larger text than the replies. An additional conditional check should do the trick.
May 9, 2011 at 12:00 pm #105466In reply to: Custom topic Fields
christopher jon
MemberSounds good.
I’ve found working with the plugin to be pretty easy. Beneath all of the code, it’s still wordpress at heart.
The next thing I want to try out is modifying the single topic loop to display certain topics with a different style, something similar to a featured post on a blog.
This is where the meta box was needed, adding a check box to notify the loop to use a different style for those topics.
The default theme has something similar already in place with the first topic posting having slightly larger text than the replies. An additional conditional check should do the trick.
May 9, 2011 at 10:01 am #100364In reply to: Custom topic Fields
whitehats
MemberNever mind the stupidity! I was jumping the gun too quickly.
Will post my solution for a completely custom Topic a bit later.
May 9, 2011 at 10:01 am #105464In reply to: Custom topic Fields
whitehats
MemberNever mind the stupidity! I was jumping the gun too quickly.
Will post my solution for a completely custom Topic a bit later.
May 9, 2011 at 9:53 am #100363In reply to: Custom topic Fields
whitehats
MemberChris –
Actually I do have an event post type working. I think I am only confused because the hooks I add in the function.php of bbbTwentyten theme do not affect the plugin files at all. So I went ahead and modified the files in my comment above.
I do believe there is a better way of doing it. But probably will not realize until I break some stuff.
May 9, 2011 at 9:53 am #105463In reply to: Custom topic Fields
whitehats
MemberChris –
Actually I do have an event post type working. I think I am only confused because the hooks I add in the function.php of bbbTwentyten theme do not affect the plugin files at all. So I went ahead and modified the files in my comment above.
I do believe there is a better way of doing it. But probably will not realize until I break some stuff.
May 9, 2011 at 9:50 am #95245In reply to: bbPress 2.0 – Updates
miruru
Member@JJJ – that’s okay. The shortcode was to be used so that I could create a list of new forum topics that displays the following:
[Topic Title] Posted in [name of forum] on [topic date] by [topic author]
unless the bbPress topics/replies list can be modified to display the above info. I’m currently using the Query Posts plugins to do this as it allows me to display the page the topic is on etc, and when i used [entry-author], it displays the wordpress user (author/name), not the bbpress user (user/name).
May 9, 2011 at 9:39 am #100360In reply to: Custom topic Fields
John James Jacoby
Keymaster@whitehats – You should never, ever, modify any core files. The WordPress actions/filters system is in place to let you inject code and modify existing values as needed. Anywhere you feel the need to hack the core, there should be another way.
The only times when hacking core files makes sense are specifically when fixing a bug in the software or when creating new features to be inserted into core.
May 9, 2011 at 9:39 am #105460In reply to: Custom topic Fields
John James Jacoby
Keymaster@whitehats – You should never, ever, modify any core files. The WordPress actions/filters system is in place to let you inject code and modify existing values as needed. Anywhere you feel the need to hack the core, there should be another way.
The only times when hacking core files makes sense are specifically when fixing a bug in the software or when creating new features to be inserted into core.
May 9, 2011 at 9:36 am #100359In reply to: Custom topic Fields
whitehats
MemberThanks. The error I get is call to undefined function add_meta_box() in bbpress.php, so was wondering if it was supposed to be differently.
Sorry about noobish questions! I am learning most of it.
May 9, 2011 at 9:36 am #105459In reply to: Custom topic Fields
whitehats
MemberThanks. The error I get is call to undefined function add_meta_box() in bbpress.php, so was wondering if it was supposed to be differently.
Sorry about noobish questions! I am learning most of it.
May 9, 2011 at 9:28 am #100358In reply to: Custom topic Fields
christopher jon
Member“Did you have to call any additional function to add meta boxes? Have you tried that yet?”
Nope. Using the default wordpress code should work. Just remember to set the correct page type (forum/topic) or you wont see it.
Here is part of my code so you can see where I changed the page type to the “topic” custom post type.
$meta_boxes[] = array(
‘id’ => ‘forum_options’,
‘title’ => ‘Forum Options’,
‘pages’ => array(‘topic’),
‘context’ => ‘side’,
‘priority’ => ‘core’,
May 9, 2011 at 9:28 am #105458In reply to: Custom topic Fields
christopher jon
Member“Did you have to call any additional function to add meta boxes? Have you tried that yet?”
Nope. Using the default wordpress code should work. Just remember to set the correct page type (forum/topic) or you wont see it.
Here is part of my code so you can see where I changed the page type to the “topic” custom post type.
$meta_boxes[] = array(
‘id’ => ‘forum_options’,
‘title’ => ‘Forum Options’,
‘pages’ => array(‘topic’),
‘context’ => ‘side’,
‘priority’ => ‘core’,
May 9, 2011 at 9:28 am #95244In reply to: bbPress 2.0 – Updates
John James Jacoby
Keymaster@miruru – Thanks for the kind words. Right now shortcodes are pretty limited to major template functions, like complete single forums, single topics, etc… I’m open to more shortcodes, but we should assemble and break them into template parts or functions as needed (to make overriding and customizing them easier.)
May 9, 2011 at 9:05 am #95243In reply to: bbPress 2.0 – Updates
miruru
MemberThe plugin is looking fantastic and so far no issues.
Is there a shortcode to display the author name of the topic. I have tried everything but cannot display the name. Ive managed to display the WordPress username (author/name) but not the bbPress username (user/name) as they both display two different pages.
Thank you for all the hard work to everything working on this plugin.
May 9, 2011 at 9:02 am #100357In reply to: Custom topic Fields
whitehats
MemberThanks. I realize I will have to modify a lot of core files to do that. Anywho, I might be wrong but I will report back the changes I made and the results of it.
May 9, 2011 at 9:02 am #105457In reply to: Custom topic Fields
whitehats
MemberThanks. I realize I will have to modify a lot of core files to do that. Anywho, I might be wrong but I will report back the changes I made and the results of it.
May 8, 2011 at 6:24 pm #105488In reply to: It all works… except, I can't see the posts!
Gautam Gupta
Participantfrankdamienzoe: Sorry, but I can’t help you out with your posts being marked as spam. That is handled by Akismet. Please run this sql query in your database via phpMyAdmin (it’s very easy, there are many tutorials available for this):May 8, 2011 at 6:24 pm #100388In reply to: It all works… except, I can't see the posts!
Gautam Gupta
Participantfrankdamienzoe: Sorry, but I can’t help you out with your posts being marked as spam. That is handled by Akismet. Please run this sql query in your database via phpMyAdmin (it’s very easy, there are many tutorials available for this):May 8, 2011 at 4:50 pm #105486In reply to: It all works… except, I can't see the posts!
frankdamienzoe
MemberThanks you guys…
I’m out of here,.. nothing personal but bbpress (as far as I am concerned) is Bugged Like Hell.
If you ask “normal users” like me, myself and I to start fiddling with the SQL tables and adjust a tiny bit of PHP code here and there, then, and trust me, you have got a BIG problem.
After my third install (intent) on a localhost MAMP server that runs 2 instances of WP and an instance of JOOMLA – all flawlessly – I got this nice little message:
Database error: [Table ‘fdzforum.bb_posts’ doesn’t exist] INSERT INTO
bb_posts(topic_id,post_text,post_time,poster_id,poster_ip,post_status,post_position,forum_id) VALUES (‘1′,'<p>First Post! w00t.n</p>n’,’2011-05-08 11:05:12′,’1′,’::1′,’0′,’1′,’1′) Caller: BB_Install->BB_Install, BB_Install->process_form, BB_Install->process_form_finalise_installation, bb_insert_postDatabase error: [Table ‘fdzforum.bb_posts’ doesn’t exist] SELECT p.* FROM bb_posts AS p WHERE p.post_id != ‘0’ AND p.topic_id = ‘1’ AND p.poster_id = ‘1’ AND p.post_status = ‘0’ ORDER BY p.post_time DESC LIMIT 30 Caller: BB_Install->BB_Install, BB_Install->process_form, BB_Install->process_form_finalise_installation, bb_insert_post, BB_Query->BB_Query, BB_Query->query, bb_cache_posts
Database error: [Table ‘fdzforum.bb_posts’ doesn’t exist] SELECT DISTINCT poster_id FROM bb_posts WHERE topic_id = ‘1’ AND post_status = ‘0’; Caller: BB_Install->BB_Install, BB_Install->process_form, BB_Install->process_form_finalise_installation, bb_insert_post, bb_update_topic_voices
So cheerio, gimme a call when you have an install that works,
Frank
May 8, 2011 at 4:50 pm #100386In reply to: It all works… except, I can't see the posts!
frankdamienzoe
MemberThanks you guys…
I’m out of here,.. nothing personal but bbpress (as far as I am concerned) is Bugged Like Hell.
If you ask “normal users” like me, myself and I to start fiddling with the SQL tables and adjust a tiny bit of PHP code here and there, then, and trust me, you have got a BIG problem.
After my third install (intent) on a localhost MAMP server that runs 2 instances of WP and an instance of JOOMLA – all flawlessly – I got this nice little message:
Database error: [Table ‘fdzforum.bb_posts’ doesn’t exist] INSERT INTO
bb_posts(topic_id,post_text,post_time,poster_id,poster_ip,post_status,post_position,forum_id) VALUES (‘1′,'<p>First Post! w00t.n</p>n’,’2011-05-08 11:05:12′,’1′,’::1′,’0′,’1′,’1′) Caller: BB_Install->BB_Install, BB_Install->process_form, BB_Install->process_form_finalise_installation, bb_insert_postDatabase error: [Table ‘fdzforum.bb_posts’ doesn’t exist] SELECT p.* FROM bb_posts AS p WHERE p.post_id != ‘0’ AND p.topic_id = ‘1’ AND p.poster_id = ‘1’ AND p.post_status = ‘0’ ORDER BY p.post_time DESC LIMIT 30 Caller: BB_Install->BB_Install, BB_Install->process_form, BB_Install->process_form_finalise_installation, bb_insert_post, BB_Query->BB_Query, BB_Query->query, bb_cache_posts
Database error: [Table ‘fdzforum.bb_posts’ doesn’t exist] SELECT DISTINCT poster_id FROM bb_posts WHERE topic_id = ‘1’ AND post_status = ‘0’; Caller: BB_Install->BB_Install, BB_Install->process_form, BB_Install->process_form_finalise_installation, bb_insert_post, bb_update_topic_voices
So cheerio, gimme a call when you have an install that works,
Frank
May 8, 2011 at 7:32 am #105484In reply to: It all works… except, I can't see the posts!
Gautam Gupta
ParticipantNamaste!

Recently, even I installed bbPress on MAMP and it gave an error that the
bb_poststable could not be created, a simple change in the query solved the problem though. Can you please check if you actually have thebb_poststable there?
May 8, 2011 at 7:32 am #100384In reply to: It all works… except, I can't see the posts!
Gautam Gupta
ParticipantNamaste!

Recently, even I installed bbPress on MAMP and it gave an error that the
bb_poststable could not be created, a simple change in the query solved the problem though. Can you please check if you actually have thebb_poststable there?
-
AuthorSearch Results