Search Results for 'code'
-
Search Results
-
Hi,
I have a problem where pagination is not working in my theme.
I am doing template redirect in function.php to template file of forum, topic or reply if URL is like http://domain/forums/…
Right templates are loaded and right content is shown, but pagination is not working, first page is always shown/loaded.
Pagination appends …/page/{page}/ to URL when page is selected, but always first page of data loads.
I have tried to set page manually, among others, $bbpressInstance->forum_query->paged, but no luck.My question is, how and where to set page that should be loaded, and how to track where is the problem. Because problem is in my theme, pagination works in WP default themes.
How to debug this?I am on deadline, but stuck on this basic feature and should appreciate some pointers how to debug this.
BBPress forum is included in my template file through shortcode
echo do_shortcode('[bbp-single-forum id='.$id.']');
Topics are included like
echo do_shortcode ( '[bbp-single-topic id=' . $id . ']' );
And Replays like
echo do_shortcode ( '[bbp-single-reply id=' . $id . ']' );Topic: Deeper capabilities
Hello Everybody.
I hope you understand my “german Englisch”.
I tried many many membership and capability plugins to empower bbpress. But with no success.
This is because bbpress has capabilities, but don´t used them the right way.I am not a developer, so I don´t know, if everything I suggest is possible or not. But I know, for some of these features, that it worked for former versions of bbpress with plugins that are outdated for years.
What bbpress really needs are capabilities in this way (marking new capabilites with (*)):
When talking about forums, I mean forums and categories.Forums/Categories
can_see_forum
can_see_threadThreads
can_create_topic_in_forum (*)
can_edit_owntopic_in_forum (*)
can_edit_anytopic_in_forum (*)
can_delete_owntopic_in_forum (*)
can_delete_anytopic_in_forum (*)Replies
can_create_reply_in_forum (*)
can_edit_ownreply_in_forum (*)
can_edit_anyreply_in_forum (*)
can_delete_ownreply_in_forum (*)
can_delete_anyreply_in_forum (*)Moderators/Admins
Capabilites to create, edit, delete, move or split forums, threads and replies.
With these capabilites, bbpres itself or every capability addon could add members or groups to forums and categories.
This would make bbpress more like full featured forum software (vbulletin, burning board, phpbb and other) than it ever was.
I asked a developer a long time ago, how long it would take to build an extension or add this to the bbpress core features.
He said something like: BBPress is well coded. I think, adding these capabilities and rules to forums, adding some metaboxes for assigning groups, members or capabilites to forums post types.. I think a good developer could do this in no time.
Well… he is specialized in another section of wordpress plugins and not interested in creating for bbpress. But I think, every wordpress user and forum lover would love these features.
And I think, this is also a great way to prevent spam in forums. on non-english websites, most spam plugins block users that are definetly no spammers, because they search for things, that are not present in non english languages.
Hoping for feedback and… hope this can be realized.
Plugins I tried:
– press permit
– advanced access manager
– advanced capabilites manager
– s3members
– members
– and many many more (used keyword in wp repo: bbpress, member, access, restrict, capability, capablites, read, write, permission and more)Hope for positive feedback
Digi
i think that these topics should be discussed in a guide for users in the codex.
How to Moderate in bbPress
How to Deal with SPAM
SEO and bbPress
Common Mistakes to AvoidHow to Moderate is for users who are brand new to dealing with a forum, and are not sure how to handle it.
Dealing with SPAM will definitely be useful because alot of users make topics about how to handle it.
SEO and bbPress , there is some topics about this subject and help optimizing it would be quite useful.
Common mistakes is useful too so that users know what not to do.
what do you guys think??
I added the following code in your theme function:
function get_related_author_posts() { global $authordata, $post; $authors_posts = get_posts( array( 'author' => $authordata->ID, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 5 ) ); foreach ( $authors_posts as $authors_post ) { $output .= '<l i>< a>ID ) . '">' . apply_filters( 'the_title', $authors_post->post_title, $authors_post->ID ) . '</ a></l i>'; } return $output; }On page user-profile.php, I put the following code:
<?php echo get_related_author_posts(); ?>It shows 5 posts, but I want to show only the for profile author of this posts. Now it shows all the user profiles.Each author should have a list of posts in the profile. Tell me how to do it.
