Forum Replies Created
-
In reply to: WP+BB integrated, theme integrating login issues..
spencerp..
good thing – you know how to talk to yourself huh??
In reply to: REQ: Redirect upon logoutthis plugin will do it..
<?php
add_action(‘bb_user_logout’,’function_xy’);
function function_xy() {
global $re;
$re = bb_get_option(‘uri’);
}
?>
In reply to: 1st line of the first post in a topic?ok..
try this plugin
<?php
function your_function_name($where) {
global $topic;
if ($topic)
return $where . ' AND topic_id = ' . $topic->topic_id;
else
return $where;
}
function get_first_post_of_current_topic() {
global $bb_post;
add_filter('get_latest_posts_where','your_function_name');
$bb_post = get_latest_posts(1);
if(count($bb_post) == 1 ) {
$bb_post = $bb_post[0];
post_text();
}
}
?>
where you want call get_first_post_of_current_topic();
In reply to: 1st line of the first post in a topic?try this..
create a plugin with this code..
function your_function_name($where) {
global $topic;
return $where . ' AND topic_id = ' . $topic->topic_id;
}
function get_first_post_of_current_topic() {
add_filter('get_latest_posts_where','your_function_name');
get_latest_posts(1);
}
call get_first_post_of_current_topic in the loop where you show tipc name.
let me know if works.. this is just a hunch
cheers
In reply to: bbPress 0.74 releasedIn reply to: Release notes for bbPress 0.74i suggest you report it.. we can track it..
In reply to: Release notes for bbPress 0.74the existing themes will be compatible.
for plugins: there is one change to the hook ‘init’. if the plugin used ‘init’ hook that will have to be changes to use the ‘bb_init’ hook
In reply to: Integrated WP and BBPress Search?nope just drop the file in the directory my-plugins.. if you dont have the directory create that directory in the bbpress install and drop it in that..
In reply to: Plugin: Private Forums v 2.1the best option is to put the action hook in.. and the safest coz other plugins might also use that hook
In reply to: Plugin: Private Forums v 2.1ok i think i know what the problem is.. you have a custom theme.. you dont have a ‘bb_head’ hook in that theme..
check header.php in the default theme..
In reply to: Plugin: Private Forums v 2.1that post what forum does that belong to? does that show up?
In reply to: Plugin: Private Forums v 2.1try clearing the cache and cookies..
In reply to: Plugin: Private Forums v 2.1yup i did.. im still trying to figure out what could go wrong.. can you reproduce it?
In reply to: Plugin: Private Forums v 2.1not in this version
im working on it..
In reply to: Plugin Helphere you go bbolman
<php
add_action('bb_head' , 'my_plugin_function_name');
function my_plugin_function_name() {
?>
stuff that you want to put
<?php
}
?>
In reply to: post_form’s _wponce, what is it?_wpnonce doesnt have anything to do with the functionality.
you dont need to set the value of the variable. just call
bb_nonce_field($x);
and when you are processing the $_POST call
bb_check_admin_referer( $x);
you can put $x as ‘create-topic’ or ‘create-no-forum-specific-topic’ or anything else you want.. it will take care of itself
i think the _wpnonce is a security mechanism that checks for the posting source.
In reply to: integrated bbPress, STICKY & bbadmin ERRORIn reply to: put topics’ tags on frontpage, forumspage, etcthis can be easily done by creating your own theme and designing as you want.. showing what you want.
please do leave a note here in the forum or create a ticket if you see that there is something that you cannot do with the current core infrastructure. the functionality that you mentioned can definitely be done using current template features.
In reply to: post_form’s _wponce, what is it?The _wpnonce is used to determine if there needs to be a confirmation page for the post.. if you remove it you will see one (or atleast you should).
if you see the delete functionalities closely you will see what i mean.
you can’t add code but can add functionality – IF it has filter hooks in for the function
In reply to: Slashes being added in front of apostrophesWhat database are you using and what is collation?
In reply to: Theme – Bloody Grayif you go to http://themes.wordpress.net/columns/2-columns/1303/bloody-gray-10/
you’ll see a link for try it.. there you can see it in action
In reply to: Posting Form Disappearsput printstatements for variables and see which variable is coming in wrong..
In reply to: Posting Form Disappearsin function post_form –
$page == get_page_number( $topic->topic_posts + $add )
this is probably being evaluated as false.
i say this because this your paging is messed up..
http://booksinbed.com/wordpress/bbpress/topic.php?id=3&page=2
if you go to the above link the number 1 should have link in the page navigation. in your case page 2 has..
debug the get_page_number function whats getting loose..
In reply to: Posting Form Disappearshave you checked if the next page.. because the post form comes up after all the posts..
eg if you have 16 posts the post form will be on 2nd page.
if you have 33 posts the post form will be on 3rd page.