csm2012
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Customize WP Admin BarHello Angela,
Thank you for posting this code. I have been able to utilize it on my bbpress 2.1.1 site. I have been working on creating another version of your code to add a link in the admin drop-down bar to the bbpress favorites. I am stuck and have tried everything that I know. If you or anyone could give me some pointers I would greatly appreciate it. Below is the php code in the bbp-user-template.php file.
I figured I could somehow merge the two codes to create the link. There is not a straite link because the favorites calls up the user id of the specific user.
/** Favorites *****************************************************************/ /** * Output the link to the user's favorites page (profile page) * * @since bbPress (r2652) * * @param int $user_id Optional. User id * @uses bbp_get_favorites_permalink() To get the favorites permalink */ function bbp_favorites_permalink( $user_id = 0 ) { echo bbp_get_favorites_permalink( $user_id ); } /** * Return the link to the user's favorites page (profile page) * * @since bbPress (r2652) * * @param int $user_id Optional. User id * @uses bbp_get_user_profile_url() To get the user profile url * @uses apply_filters() Calls 'bbp_get_favorites_permalink' with the * user profile url and user id * @return string Permanent link to user profile page */ function bbp_get_favorites_permalink( $user_id = 0 ) { return apply_filters( 'bbp_get_favorites_permalink', bbp_get_user_profile_url( $user_id ), $user_id ); }
Thank you,
CSM2012
Vsanto,
That did it, Thank you again for your quick responses. I am still learning so thanks for your patience. Maybe this will take care of the error message until antonchanning is able to find out what is causing the issue and release an update.
Thank you again,
C.S.
Hello Vsantos,
Thank you for responding so quickly. Getting this plugin to work on my site fast is important to me too. I have gone in to the class_bbpress-shortcode-whitelist.php file and made the edit. I placed the(array) before $tag_array on line 51 and it returns a bigger error on the WP.
Parse error: syntax error, unexpected T_ARRAY_CAST, expecting ‘(‘ in /home/csmontg1/public_html/diyitdept.com/wp-content/plugins/bbpress2-shortcode-whitelist/class_bbpress-shortcode-whitelist.php on line 51
Here is my code below.
function get_known_plugins($tag_array) { $plugins = array(); foreach (array)($tag_array as $tag) { $plugin = $this->get_known_plugin_by_tag($tag); if(false !== $plugin) $plugins[] = $plugin;
Thank you for your help or any other things you think I should try.
Genuinely,
C.S.
I am having the same issue. I have found the file and line to edit however I am not sure exactly what or how to edit the “(array) casting before $tag_array”. If someone could please post a step by step on how to edit the bbpress2-shortcode-whitelist/class_bbpress-shortcode-whitelist.php file or release update for the plugin.
Thank you,
C.S.
Forum: Fixing WordPress
In reply to: Custom re-order BBPress Plugin "Topics"Hello,
The newer version of Advanced Post Type Order Version 2.5.0.5 fixes this issue. Thank you NSP-Code for the quick response and resolution.