Search Results for 'code'
-
Search Results
-
I have added a new input line to the form-user-edit.php I plan to add more and have these either via functions.php or a plugin when I have got it working, but for the moment am changing the .php itself.
So for now I have put in new line, copying the syntax of another one :`<label for=”town”><?php _e( 'Town', 'bbpress' ); ?></label>
<input type=”text” name=”town” id=”town” value=”<?php echo esc_attr( bbp_get_displayed_user_field( 'town' ) ); ?>” class=”regular-text” tabindex=”<?php bbp_tab_index(); ?>” />`This works fine, except how do I get this to save the info? It lets me change it, but doesn’t let me save it.
However if I set a row in phpmyadmin, then this code displays it, but again doesn’t not save a change.
What bit of logic am I missing?
Ok, so I have writen and got working my first plugin, I am adding some user info to the reply display
BBpress has the following lines in loop-single-reply
<?php do_action( 'bbp_theme_before_reply_author_details' ); ?> <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true) ); ?> [...other lines of code here] <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>I worked out how to get a plugin to put the other stuff I need before ‘bbp_theme_before_reply_author_admin_details’ so it’s working fine
BUT I want to change the line
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true) ); ?>
to
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false) ); ?>I think I do this with a “remove action” in my plugin, and then add the code line as I want it back into my plugin – in effect deleting all the code between the two “do actions” and replacing this with what I want.
But I cannot fathom from the codex and other googles quite how you do this
1) is my understanding correct?
2) what would the code line be in my plugin?Topic: Permalinks?
I’m not sure if this is a problem or a setting I need to change – I’m using a shortcode to display the forums here:
http://www.redkitecreative.com/dev/ivas/member-news/forum/
But if I click through to any forum or topic, the URL changes to:
http://www.redkitecreative.com/dev/ivas/forums/forum/members/
What happened to my member-news page in the URL? I think this may be confusing for users – it’s confusing to me…
Topic: phpBB2 to bbpress convert
I’m attempting to convert a phpBB2 forum to bbPress version 2.3.2.
I’ve selected the option to convert users, but it’s failing with the following error:
WordPress database error: [Unknown column 'users.user_form_salt' in 'field list'] SELECT convert(users.user_id USING "utf8") AS user_id,convert(users.user_password USING "utf8") AS user_password,convert(users.user_form_salt USING "utf8") AS user_form_salt,convert(users.username USING "utf8") AS username,convert(users.user_email USING "utf8") AS user_email,convert(users.user_website USING "utf8") AS user_website,convert(users.user_regdate USING "utf8") AS user_regdate,convert(users.user_aim USING "utf8") AS user_aim,convert(users.user_yim USING "utf8") AS user_yim,convert(users.user_icq USING "utf8") AS user_icq,convert(users.user_msnm USING "utf8") AS user_msnm,convert(users.user_jabber USING "utf8") AS user_jabber,convert(users.user_occ USING "utf8") AS user_occ,convert(users.user_interests USING "utf8") AS user_interests,convert(users.user_sig USING "utf8") AS user_sig,convert(users.user_from USING "utf8") AS user_from,convert(users.user_avatar USING "utf8") AS user_avatar FROM users AS users LIMIT 0, 100Is there anything I can do the resolve the issue?
Thank you
Hi – I’d like the same tags allowed in my WordPress comments –
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>– to be allowed in my bbPress posts. In particular, I’d like people to be unable to link to images in their posts. I think the allowed tags in WordPress comments are determined by the wp_filter_kses so was trying to use that.I’ve tried many many different things and have the img tinymce (which I’ve enabled) button disabled and the html editor disappeared, so the only way to get an image is to type in
<img src="whatever" />to the visual editor, but I’d still like it to just not be possible.I thought this would work but it hasn’t (I’ve also tried making a custom filter function which, of course, didn’t work, so I think it’s something here):
remove_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 ); add_filter( 'bp_get_the_topic_post_content', 'wp_filter_kses', 1 );Anyone know? Or just stripping the img tags somehow would be great.
I have bbPress 2.3.2 installed and WordPress 3.5.1. Thanks. The site’s not live so I don’t have a link, apols.
(have edited so I can tick “follow up replies via email”)The [bbp-topic-tags] shortcode works fine in my custom theme…but all the tags come out with the same font size. How do I get it so the tags display with different font sizes like on this forum?
Sorry for such a basic question…I’ve looked but can’t find an answer that applies to bbpress 2.0+.
I’m using wordpress 3.5.1 and bbpress 2.3.2
Thanks.
Topic: Bbpress and Buddypress Roles
buddypress roles:http://codex.buddypress.org/user/setting-up-a-new-installation/group-settings-and-roles/
bbpress roles: http://codex.bbpress.org/bbpress-user-roles-and-capabilities/I have an understanding of the roles within each plugin, but when running both, how do they mingle? Since you can only assign someone to one role, what roles take precedent over the other?
For example if someone is an admin of buddypress, does that also make them a Keymaster? Or vise-versa?
Just need to know what role to assign a new user when they purchase a membership to my help forums. They would be either “members” (buddypress) or “participants” (bbpress).
It would be great if there was a tree structure diagram.
Current Setup:
Bbpress: Version 2.3.1
Buddypress: Version 1.7.1
WP: Version 3.5.1Thank you!
I would like to display bbpress topic tags on top of each forum. I tried several template tags:
bb_tag_heat_map()
bb_get_topic_tags()
bb_list_tags()None of the tags worked no matter where I inserted them (sidebar, bbpress templates, wordpress templates). Usually the rest of the code in the template won’t be executed anymore if I insert one of these tags.
The short code [bbp-topic-tags] works and everything else about tags works too.
Can someone tell me how to display topic tags? Is there a documentation for this template tags?
After recent upgrades (not sure if 2.3 or 2.3.1) all my “participant” users can’t reply to or post new topics. I tried many things based on user role post, but I’m still stuck.
– Ran the repair tool to ensure all subscribers are mapped as forum “participants”
– Used the “Members” plugins to enable subscribers to post/reply to forums
– Re-installed bbpress
– When through the code, and it appears participant don’t get granted to the proper rights.Even though it was not independent from the “blog” privileges before, it was way easier to use a visual permission editor.
Any idea what to do?