Forum Replies Created
-
In reply to: What is up with my IP Address in bbPress Forums?
This is a valid IP address – it’s just a IPv6 address – the new bigger ones as the world is running out of the old IPv4 addresses
In reply to: Newbie help – profiles and layout through themes1.
The following if added to your functions file will add fields, you can alter the coding as needed//add code for adding first and last name to registration //1. Add a new form element... add_action('register_form','myplugin_register_form'); function myplugin_register_form (){ $first_name = ( isset( $_POST['first_name'] ) ) ? $_POST['first_name']: ''; $last_name = ( isset( $_POST['last_name'] ) ) ? $_POST['last_name']: ''; ?> <p> <label for="first_name"><?php _e('First Name as people call you eg Dave','mydomain') ?><br /> <input type="text" name="first_name" id="first_name" class="input" value="<?php echo esc_attr(stripslashes($first_name)); ?>" size="25" /></label> </p> <p> <label for="last_name"><?php _e('Last Name','mydomain') ?><br /> <input type="text" name="last_name" id="last_name" class="input" value="<?php echo esc_attr(stripslashes($last_name)); ?>" size="25" /></label> </p> <?php } //2. Add validation. In this case, we make sure first_name is required. add_filter('registration_errors', 'myplugin_registration_errors', 10, 3); function myplugin_registration_errors ($errors, $sanitized_user_login, $user_email) { if ( empty( $_POST['first_name'] ) ) $errors->add( 'first_name_error', __('<strong>ERROR</strong>: You must include a first name.','mydomain') ); if ( empty( $_POST['last_name'] ) ) $errors->add( 'last_name_error', __('<strong>ERROR</strong>: You must include a last name.','mydomain') ); return $errors; } //3. Finally, save our extra registration user meta. add_action('user_register', 'myplugin_user_register'); function myplugin_user_register ($user_id) { if ( isset( $_POST['first_name'] ) ) update_user_meta($user_id, 'first_name', $_POST['first_name']); if ( isset( $_POST['last_name'] ) ) update_user_meta($user_id, 'last_name', $_POST['last_name']); }
Plenty of captcha plugins – just google ‘wordpress plugin captcha’
If you’d like to specify your req’s further, I’ll try to help.
2. no need to change theme, just add the following to your css file
.site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { max-width: 100% !important; }
In reply to: locked out of adminthe a:2 says that there is an array with two entries then they are contained within the {}
the S:13 says that the entry is a string with 13 letters ie ‘administratior’ so yes you need to change that if you change the contents.
dinlt know what the b:1 is, except that you need it after the entries !
In reply to: What is up with my IP Address in bbPress Forums?edited filter above
In reply to: What is up with my IP Address in bbPress Forums?that is entirely intentional – it lets keymasters see IP addresses to spot people who might post under several names.
you could hide it with css
.bbp-reply-ip {
display : none !important ;
}or amend line 512 of loop-single-reply
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
bbPress will now use this template instead of the originalthen take out line 51 – you may also need to do this to loop-single-topic
or use a filter to get rid of it
function remove_ip () { $author_ip = '' ; return $author_ip ; } add_filter( 'bbp_get_author_ip', 'remove_ip');
In reply to: limited capabilities for roles in a specific forumsorry capabilities are forum wide, and lots of code would be needed to make them forum specific.
I can’t immediately think of an alternate solution
In reply to: limited capabilities for roles in a specific forumIn reply to: Forum Topics Not LinkingIf your site is that busy, you really should have a test site
In reply to: Forum Topics Not Linkingok, I thin k this is your theme – can you try a default one such as twentyten, just as a test
In reply to: Forum Topics Not Linkingok, did you do either of
Dashboard>settings>permalinks. Don’t change anything, but just click save. This resets the permalinks, and can solve some 404 errors.
Dashboard>tools>forums>repair forums and run one at a time. Useful if you’ve got some stuff not showing – doesn’t often fix but occasionally does.In reply to: Not displaying proper freshness for each subforum.great !
In reply to: Users' avatarIn reply to: Not displaying proper freshness for each subforum.so presume you are fixed?
In reply to: Not displaying proper freshness for each subforum.ok, I don’t think you have the standard index template
Have you got in your theme the following file
wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.php
where %your-theme-name% is the name of your theme
or have you amended
wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php
In reply to: Fresh install, php warning on all pages in sitewhat other plugins do you have?
viz
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
In reply to: BBpress and the wordpress custom headerGreat – glad you’re fixed !
In reply to: BBpress and the wordpress custom headerIt could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Then come back
In reply to: Font SizeGreat !
In reply to: Admin Forum Role: BlockedDon’t know – never tried it ! 🙂
In reply to: Would be possible a forum with only one topic?sorry without spending a large amount of time and code, best I can come up with.
In reply to: Not displaying proper freshness for each subforum.Currently it is using the bbpress.php template
which you got from where, and have put where?
You originally posted a picture of a screen with ‘…marketing forum’ which I took to be a forum not a topic, and therefore I posted a solution for forum.
Now you have posted a topic without a description, complaining that my solution did not work which it would have as it is a topic not a forum, the forum being the solution to the original picture.
Please re-describe what exactly it is that you do want. and how/where you would expect to post a topic description?, are you expecting topic creators to have an area to put a description?
Yours confused …
In reply to: Admin Forum Role: Blockedno firm ideas except that you blocked yourself by mistake !
In reply to: Would be possible a forum with only one topic?yes, just create a topic, no forums, and then create a page with the following shortcode
[bbp-single-topic id=$topic_id]
That way you’ll just have a page with that one topic.
In reply to: Permalinkdashboard>settings>forums and look for the forum slugs