Forum Replies Created
-
In reply to: double post toolbar?
Yeah, I figured. It’s because I’m using a hook that is pretty general for the templates, ‘bbp_template_notices’ or something.
If I could use a hook that is only going to insert the bar just above the post form then I would, but I haven’t seen one. Below the post form could work, but I don’t like that much -_-
It seems that your theme is missing the
<?php do_action( 'wp_footer' ); ?>
at the bottom of your (probably) footer.php file.I used this action hook to insert the deletion javascript that i mentioned on the ‘ive just made…’ thread
In fact, from viewing the source to your site, your entire footer.php doesn’t seem to be loaded. The HTML structure stops at:
</div><!-- #content -->
</div><!-- #container -->In reply to: double post toolbar?Are you using my plugin? Because, I’ll take a look at it in a few hours (I’m just doing something for my grandma atm).
I’ve asked for hosting and it’s approved. I removed the zip because i need to figure out which one of my copies is the best to put into the browser.
Currently I’ve just been editing the live plugin on my Tartarus test site, and then copying to test-and-edit on a more default WP+bbP on my dumping ground.
Tartarus = http://beta.tartarus.co.nz
dumping ground = http://dump.master5o1.com/wpbb/
FYI. You can’t ignore yourself or anyone who can moderate.
In reply to: My custom bbpress site,That’s awesome.
My brother and I have our own forum site project together also.
I’m the programmer type and he’s the designer type. But we’re both a bit too lazy and apathetic to get our site looking as nice as that.
http://tartarus.co.nz/ (wordpress + bbpress integration).
He also finds it difficult to design considering our forum is more of a general discussion community rather than something specific.
In reply to: My custom bbpress site,That’s awesome.
My brother and I have our own forum site project together also.
I’m the programmer type and he’s the designer type. But we’re both a bit too lazy and apathetic to get our site looking as nice as that.
http://tartarus.co.nz/ (wordpress + bbpress integration).
He also finds it difficult to design considering our forum is more of a general discussion community rather than something specific.
In reply to: I made a Post Toolbar for bbPress 2.0http://dump.master5o1.com/files/bbpress-post-toolbar.zip
Ok, updated the zip.
In reply to: I made a Post Toolbar for bbPress 2.0Ok, I’ve enhanced the extra-bar deletion JS so that it finds them all and deletes all except the last one. Because, assuming that the post form is at the bottom and such….
But it’s still dependant on the above action.
Not sure how to get past that yet without more code reading…
(The whole JS thing is really just a hack until I do find out where to hook it into properly).
Will update the zip file in a moment.
In reply to: I made a Post Toolbar for bbPress 2.0Yeah, I need to figure out some stuff about that. It’s because I’ve hooked it into this:
add_action( 'bbp_template_notices' , array('bbp_5o1_toolbar', 'post_form_toolbar_bar') );
I then delete it using javascript if the bbp-reply-form or bbp-topic-form textarea elements aren’t on the page.
I’ll look for a way to fix it in a moment.
Oh. Just noticed that’s really just a place holder one.
If you had the buddypress bundled forums set up then it would be in root dir of WordPress. Don’t need to delete anything if the buddypress bundled forums aren’t set up.
and buddyPress plugin, latest version. (bbpress forum component is disactivated,
because I dont know where to find the bb-config.php file in a bbpress plugin install ???)
./wp-content/plugins/buddypress/bp-forums/bb-config.php
idk about the rest of your post.
In reply to: Does bbpress have user profiles?Assuming you have name based permalinks on you WP+BBP or bbPress-standalone installation:
On a standalone bbPress install a user’s profile is: /profile/master5o1
E.g. https://bbpress.org/forums/profile/master5o1
For bbPress 2.0 (the WP plugin) the user profiles at default are: /forums/users/master5o1/
Also perhaps /users/master5o1/, depending on settings.
E.g. http://dump.master5o1.com/wpbb/users/admin/
/wpbb/ = install directory for my WordPress + bbPress 2.0 testing site.
Basically, clicking the “member”/”key master”/etc link on standalone bbPress or the user’s username of bbPress 2.0 appears to take you to their profile.
In reply to: bbPress 2 avatarsThis works well for me, and plays nice with bbPress 2.0 also: https://wordpress.org/extend/plugins/add-local-avatar/
In reply to: bbPress 2.0 – UpdatesSeems to only do that if I select the child theme as the activated theme.
Are we supposed to have the bbpress twenty ten as activated or what? -_-
In reply to: bbPress 2.0 – UpdatesOnly noticed this since my test site got beta3 the other day.
http://beta.tartarus.co.nz/ is the WP, and /forum/ is a page that uses the [bbp-topic-index] and [bbp-forum-index] with default templating (ie: not Forum Index template).
I’ve got three screenshots which show the bbpress plugin settings for the slugs, the /forum/ “Recent Topics” page, the forums slug /forums/ page when you click Forums in the breadcrumb, and my work around to make it behave how I want it to behave (see the urls too).
So 1.png is the /forum/ page.
http://dump.master5o1.com/files/images/bbp/1.png
2.png is the /forums/ slug page as WP/bbp naturally does it.
http://dump.master5o1.com/files/images/bbp/2.png
3.png is done using /forums/index.php to redirect to /forum/.
http://dump.master5o1.com/files/images/bbp/3.png
If I made the /forum/ page slug be
forums
then it would show blank page probably because bbpress is getting in there first and showing the forum slug page which is blank -_-I think that if bbpress returns a blank page, it should tell WP that it hasn’t found anything and for WP to continue to look for the page. But I don’t know how the plugin works much atm.
In reply to: Mobile bbPress (using XML-RPC api)Just bumping for letting people know of its existence.
In reply to: Mobile bbPress (using XML-RPC api)Just bumping for letting people know of its existence.
In reply to: Logged out when IP changes!I heard that the IP address is used in the cookie hash. Something about security reasons so that it isn’t possible to spoof someone’s cookies.
In reply to: Logged out when IP changes!I heard that the IP address is used in the cookie hash. Something about security reasons so that it isn’t possible to spoof someone’s cookies.
In reply to: XMLRPC and a Poster's IP address.https://trac.bbpress.org/ticket/1355
I have opened a ticket that provides a patch for xmlrpc.php.
In reply to: XMLRPC and a Poster's IP address.https://trac.bbpress.org/ticket/1355
I have opened a ticket that provides a patch for xmlrpc.php.
In reply to: XMLRPC and a Poster's IP address.Just managed another way by patching bbPress’ xmlrpc.php and overwriting $_SERVER with the desired value.
// Poster IP
$_SERVER['REMOTE_ADDR'] = isset( $structure['poster_ip'] ) ? $structure['poster_ip'] : $_SERVER['REMOTE_ADDR'];Then what I do on the bbPress Mobile side is send the data:
$params_array = new xmlrpcval(
array(
"title" => new xmlrpcval($title, "string"),
"text" => new xmlrpcval($text, "string"),
"forum_id" => new xmlrpcval($forum_id, "int"),
"tags" => new xmlrpcval($tags, "string"),
"poster_ip" => new xmlrpcval($_SERVER['REMOTE_ADDR'], "string")),
"struct");In reply to: XMLRPC and a Poster's IP address.Just managed another way by patching bbPress’ xmlrpc.php and overwriting $_SERVER with the desired value.
// Poster IP
$_SERVER['REMOTE_ADDR'] = isset( $structure['poster_ip'] ) ? $structure['poster_ip'] : $_SERVER['REMOTE_ADDR'];Then what I do on the bbPress Mobile side is send the data:
$params_array = new xmlrpcval(
array(
"title" => new xmlrpcval($title, "string"),
"text" => new xmlrpcval($text, "string"),
"forum_id" => new xmlrpcval($forum_id, "int"),
"tags" => new xmlrpcval($tags, "string"),
"poster_ip" => new xmlrpcval($_SERVER['REMOTE_ADDR'], "string")),
"struct");In reply to: XMLRPC and a Poster's IP address.Sweet. In my plugin, I just made this:
if ( isset($_GET['poster_ip']) && !empty($_GET['poster_ip']) ) {
$bbdb->query( $bbdb->prepare( "UPDATE $bbdb->posts SET poster_ip = %s WHERE post_id = %d", $_GET['poster_ip'], $post_id ) );
}And the
.'&poster_ip='.$_SERVER['REMOTE_ADDR']
is in bbPress Mobile.It would probably be better doing it a different way, can anyone suggest something?
In reply to: XMLRPC and a Poster's IP address.Sweet. In my plugin, I just made this:
if ( isset($_GET['poster_ip']) && !empty($_GET['poster_ip']) ) {
$bbdb->query( $bbdb->prepare( "UPDATE $bbdb->posts SET poster_ip = %s WHERE post_id = %d", $_GET['poster_ip'], $post_id ) );
}And the
.'&poster_ip='.$_SERVER['REMOTE_ADDR']
is in bbPress Mobile.It would probably be better doing it a different way, can anyone suggest something?