Search Results for 'codes'
-
Search Results
-
Please, what are the shortcodes for Edit Profile, Change Password?
Regards,
Stardrive
Topic: BBCode Buttons?
I’m looking for a way to get bbcode buttons for users. I have the gd bbpress toolbox, but I’d like to have buttons for those codes on the toolbar. Any suggestions?
Hi everyone,
Looking for some assistance here,Instead of using WordPress facing registration page/ login page i have made a page that has login, registration an d lost password shortcodes. However during the registration process, i cannot get the user to specify the password therefore there is a need for approving admins to go create a password then email the user. Any ideas?
I have looked at many forums, plugins but haven’t got very far. Many thanks
Hello,
I uses CodeStyling Localization to translate 13 language. and CodeStyling Localization report the issue as below:
PHP runtime error reporting detected !
Reason: some executed PHP code is not written proper | Originator: unknown (probably by Theme or Plugin)
Below listed error reports has been traced and removed during page creation:STRICT Error: [2048] Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) /home/xxx/cookkoo.com/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28
Please help
Thank youI’ve been using bbpress plugin to set up forums for my website’s users. Originally there is no function when it comes to ‘counting views’ of each post. So I added some codes according to this website’s advice.
It works fine with general(sitewide) forums but when I made a group(buddypress function) and tried to integrate it with bbpress forum, the view count php code does not work in group forums. (Still, it works perfectly fine at sitewide forums)
this is my code right now (wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php)
<li class="bbp-topic-voice-count"> <?php if( !function_exists('get_wpbbp_post_view') ) : // get bbpress topic view counter function get_wpbbp_post_view($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0"; } return $count; } function set_wpbbp_post_view($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if( $count == '' ){ add_post_meta($postID, $count_key, '1'); } else { $new_count = $count + 1; update_post_meta($postID, $count_key, $new_count); } } endif; if( !function_exists('add_wpbbp_topic_counter') ) : // init the view counter in bbpress single topic function add_wpbbp_topic_counter() { global $wp_query; $bbp = bbpress(); $active_topic = $bbp->current_topic_id; set_wpbbp_post_view( $active_topic ); } add_action('bbp_template_after_single_topic', 'add_wpbbp_topic_counter'); endif; echo get_wpbbp_post_view( bbp_get_topic_id() ); ?> </li>