Search Results for 'code'
-
Search Results
-
Hi all,
I hope you can help me. I am trying to create and attach a bbp forum automatically after a BuddyPress group is created.
I have “unset” the BuddyPress group creation steps, and only the “group settings” step remains.
I have been digging in bbp code to try to reproduce the forum creation process, and this is what I put together (though it is not working):
<?php $bbpforum = new BBP_Forums_Group_Extension; ?>
<?php $bbpforum->__construct(); ?><!-- Reproducing parts of public edit_screen() -->
<!-- Reproducing fieldset return -->
<?php $_POST['bbp-edit-group-forum'] = true; ?> <!-- this comes from the edit screen; this form field is sent -->
<!-- end of fieldset return -->
<!-- start of edit_screen_save -->
<?php
if ( empty( $group_id ) ) {
$group_id = bp_get_new_group_id();
}$create_forum = true; // Changed this to true (there was a switch structure down and I kept the true case only
$forum_id = 0;
$forum_ids = bbp_get_group_forum_ids( $group_id );if ( !empty( $forum_ids ) )
$forum_id = (int) is_array( $forum_ids ) ? $forum_ids[0] : $forum_ids;// Set the default forum status
$status = bbp_get_public_status_id();
// Create the initial forum
$forum_id = bbp_insert_forum( array(
'post_parent' => bbp_get_group_forums_root_id(),
'post_title' => bp_get_new_group_name(),
'post_content' => bp_get_new_group_description(),
'post_status' => $status
) );// Run the BP-specific functions for new groups
$bbpforum->new_forum( array( 'forum_id' => $forum_id ) );// Update forum active
groups_update_groupmeta( bp_get_new_group_id(), '_bbp_forum_enabled_' . $forum_id, true );// Toggle forum on
$bbpforum->toggle_group_forum( bp_get_new_group_id(), true );?>
It is placed in create.php, right after the create group form submission entry.
As you see, I have erased the wp_nonce_field functions and the associated admin_referrer functions to avoid the “Are you sure you want to do this?” screen.
If it is not clear, please, let me know what else would be needed to try get the automatic forum, and of course, if you know a better and easier way of doing it.
Thank you very much!
Hi, Can you please advise how to extend the Vbulletin importer.
I know the fields i want to get and where i want them to go. but i am unsure how to add this to the import routine.
Example is to get from vbulletin the user signature (which is a simple lookup to sigparsed field in the db by userid) and insert that into an xprofile field for that user.
Secondly i ahd an issue importing which i believe was because the mycred plugin adds fields to the user table. It might be worth adding some validation of the user fields as the insert is hardcoded with the default fields.
Hello,
if you look at our latest topic, you will see the blue notice bar. In in, the time is formatted incorrect. There should be a comma, or even better, the word “und” between the hours and the minutes, not a full stop. I tried to change it in the translation, but there is only a code for the whole timestamp. I would suggest to update bbpress in this regard, so the timestamp becomes localizable.
Best
ManuelHello there,
I use WP 4.4.2, bbpress 2.5.8, this is a post in our forums.
To insert a link in my copy, there is this popup window. Apparently, it gets its styling from various sources, including my theme’s settings, where for regular text, I set the font-size to 17px, while line-height of 26px is hard-coded into the theme. As you can see (if you click the link-button in the reply form below the sample post given above), this disturbs the styling of this popup.
Is there any way to a) make this popup draw its styling from the back-end CSS (where the same window is used, and looks fine), which in any case I would like to suggest for future updates of bbpress, or b) style it with custom CSS?
Thank you
ManuelHi guys,
So thhis is the a portion of the code right now for the sign up pop-up on my site. Its for the username, email, password and email.
<div class="six columns"> <input type="text" id="reg-username" name="signup_username" class="inputbox" required placeholder="<?php _e("Username", 'kleo_framework');?>"> </div> <div class="twelve columns"> <input type="text" id="reg-email" name="signup_email" class="inputbox" required placeholder="<?php _e("Your email", 'kleo_framework');?>"> </div> <div class="six columns"> <input type="password" id="reg-password" name="signup_password" class="inputbox" required placeholder="<?php _e("Desired password", 'kleo_framework');?>"> </div> <div class="six columns"> <input type="password" id="confirm_password" name="signup_password_confirm" class="inputbox" required placeholder="<?php _e("Confirm password", 'kleo_framework');?>"> </div>In this same sign up form I want to have a dropdown menu where you select your age because it didn’t come included in the theme. The age options being from 18-99.
How can I implement this?
Thanks
Regards
Topic: forum cover art….
I would like to know how I can put up a ‘forum cover image’ on the page of each of my forums…..
I was hoping to use the ‘featured image’ function and display a landscape image on top of the page.For example, if i am running a fitness forum community with a cardio workouts forum, and put up a cover image showing pple doing cardio….. and then for the weights forum, i’d have a weights cover image.
How could I do this?
FYI My knowledge of wordpress, bbpress, buddypress is beginner – intermediate. I know how to edit files, but not write code myself.
Hello,
I tried to use this code to remove the little character between the Subscribe and Favorite link, but it does not seem to work./*Fix character issue with BBPress admin links menu*/ function hide_before2 ($args = array() ) { $args['before'] = ' '; $args['subscribe'] = 'Subscribe'; $args['unsubscribe'] = 'Unsubscribe'; return $args; } add_filter('bbp_before_get_user_subscribe_link_parse_args', 'hide_before2');http://yourtechadvisors.com/forums/topic/testing/
Feel free to create an account, I think the biggest problem is the Subscribe/Unsubscribe link that can be found under the Options menu. Please check screenshot.
https://drive.google.com/file/d/0B_h6oU4LzDtlYU44LUNCQVNaZ0U/view?usp=sharingAny suggestions?
