Search Results for 'code'
-
Search Results
-
Topic: Import first_name/last_name
I’m migrating from a vbulletin forum (3.x) and I’ve figured out how to do a bit of customization, bringing over custom fields in the user table. But one thing I’m having a tough time figuring out is how to bring in the first_name and last_name to the usermeta table.
For some reason, the following does not work:
// fx: last name Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'user', 'from_fieldname' => 'lastname', 'to_type' => 'user', 'to_fieldname' => 'last_name' );But the following does:
// fx: last name Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'user', 'from_fieldname' => 'lastname', 'to_type' => 'user', 'to_fieldname' => 'fx_last_name' );Simply by changing “last_name” to “fx_last_name” it works. I’d prefer to have it bring it in as the WordPress defaults. I understand I can force a move into the correct field once I import, but as I’ll have about 24 hours on the migration day, i’d love to get it accomplished in the import script.
Thanks for any insights.
Topic: New Installation 404 error
Hi,
I am volunteering on a not for profit site running wordpress 4.0.1, bbpress 2.5.4, s2member pro 141007I have yet to be able to see any of the forums, topics etc as all I get is a 404 error. I have ready through the info about this issue and tried everything suggested, including the two plugins that are supposed to fix it to no avail.
I do have pretty links turned on, I do have a “Forums” page and have tried it with and without a shortcode to pull up the forums and it just shows the shortcode and never the forum. The only way I get get anything to show is to use the “ugly” link to the forums but none of the links work from
http://ontariodoulas.org/?post_type=forumAny ideas on where to go from here? Any help would be appreciated! Thank you!
Topic: phpBB import problem
Hi all,
I’ve been trying to import my forum from phpbb 3.1.1 (no mod or themes) to bbpress 2.5.4.
I used row limits 50 and delay time 2. Database settings looks to be ok.
Problem is following code that appears on every line:
‘Warning: set_time_limit() has been disabled for security reasons in /home/int2000/d/xxxxx/html/wordpress/wp-content/plugins/bbpress/includes/admin/converter.php on line 306 Warning: set_time_limit() has been disabled for security reasons in /home/int2000/d/xxxxx/html/wordpress/wp-content/plugins/bbpress/includes/admin/converter.php on line 306’Conversion goes till end and following message will appear:
‘Repair any missing information: Continue’
‘SELECT convert(forums.forum_id USING “utf8”) AS forum_id,convert(forums.parent_id USING “utf8”) AS parent_id,convert(forums.forum_topics USING “utf8”) AS forum_topics,convert(forums.forum_posts USING “utf8”) AS forum_posts,convert(forums.forum_topics_real USING “utf8”) AS forum_topics_real,convert(forums.forum_name USING “utf8”) AS forum_name,convert(forums.forum_desc USING “utf8”) AS forum_desc,convert(forums.left_id USING “utf8”) AS left_id,convert(forums.forum_type USING “utf8”) AS forum_type,convert(forums.forum_status USING “utf8”) AS forum_status FROM phpbb_3forums AS forums LIMIT 0, 100’What am I doing wrong?
How can I add a button next to favorite and subscribe buttons on a forum post? Iv searched everywhere and cant find a similar question. Is there a functions code I could add?
Wordpress 4.0
bbPress 2.5.4Hi,
in admin toolber, I would disable the section about buddyPress, I detected it by css code:
ul#wp-admin-bar-my-account-buddypress.Can I hide it?
Thanks.
Wordpress 4.0
bbPress 2.5.4Hi,
in the function ‘bbp_get_single_forum_description’, I would concat a message for user not logged in.I wrote:
add_action( 'bbp_get_single_forum_description', 'msg_for_user_loggedin' ); add_action( 'bbp_get_single_topic_description', 'msg_for_user_loggedin' ); function msg_for_user_loggedin( $args = '' ) { if ( !bb_is_user_logged_in() ) { $custom_msg = "You must be logged in to see all topics."; } else { $custom_msg = ""; } echo $custom_msg . bbp_get_single_forum_description( $args ); }But it not works, why?
Thanks.
Topic: Shortcode and private topics
Hi,
in my forum, I created public and private topics.I’m using the shortcode:
[ bbp-forum-index ]
for show my topics.Can I show only the title of private topic, anche when user click on it goes on the 404 error page with login form?
Thanks.
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