theredheadhenry
Forum Replies Created
-
Forum: Plugins
In reply to: [Default Featured Image] Confused on Using Different Images on CategoriesShouldn’t this gave a second closing
)? It didn’t save without it, this is what I put:} else if ( has_category( 'cat3', $post_id ) ) {It seems to be working, unless this is some kind of fluke.
Forum: Plugins
In reply to: [Default Featured Image] Confused on Using Different Images on CategoriesI actually got an error message trying to save this:
function dfi_category ( $dfi_id, $post_id ) { // all which have 'cat1' as a category if ( has_category( 'cat1', $post_id ) ) { //sub category if ( has_category( 'cat2', $post_id ) ) { return 902; // cat2 img } else if has_category( 'cat3', $post_id ) { return 603; // cat3 img } return 667; // cat1 picture } return $dfi_id; // the original featured image id } add_filter( 'dfi_thumbnail_id', 'dfi_category', 10, 2 );Error message:
Your PHP code changes were rolled back due to an error on line 153 of file /functions.php. Please fix and try saving again.
syntax error, unexpected ‘has_category’ (T_STRING), expecting ‘(‘
- This reply was modified 5 years, 8 months ago by theredheadhenry.
Forum: Plugins
In reply to: [bbp user ranking] Give users the option…Just bbpress.
Sorry for the late response.
If you could at all get this working that would be amaizing.
Forum: Plugins
In reply to: [bbp user ranking] Give users the option…Bump. Just seeing if you’ve had the chance to review this yet. No worries on timing.
Forum: Plugins
In reply to: [bbp user ranking] Give users the option…No rush. Take your time. 🙂
Forum: Plugins
In reply to: [Basic User Avatars] UpdateThank you for checking and for that recording.
I will double check some things and let you know.
Forum: Plugins
In reply to: [Basic User Avatars] UpdateYou sir, have awesome response time. Much appreciated thank you! I checked the log. I also set WP_DEBUG_DISPLAY to true. Below is what shows up on the page (I removed the path parts):
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /--------/--------/--------/--------/wp-includes/functions.php on line 3996 Notice: The called constructor method for WP_Widget in my_wdg_meta is deprecated since version 4.3.0! Use __construct() instead. in /--------/--------/--------/--------/wp-includes/functions.php on line 3767 Notice: The called constructor method for WP_Widget in my_wdg_post_categories is deprecated since version 4.3.0! Use __construct() instead. in /--------/--------/--------/--------/wp-includes/functions.php on line 3767 Notice: The called constructor method for WP_Widget in my_wdg_post_tags is deprecated since version 4.3.0! Use __construct() instead. in /--------/--------/--------/--------/wp-includes/functions.php on line 3767 Notice: The called constructor method for WP_Widget in my_wdg_newsletter is deprecated since version 4.3.0! Use __construct() instead. in /--------/--------/--------/--------/wp-includes/functions.php on line 3767 Notice: The called constructor method for WP_Widget in my_wdg_website_description is deprecated since version 4.3.0! Use __construct() instead. in /--------/--------/--------/--------/wp-includes/functions.php on line 3767I checked those lines int he functions.php I don’t see any issues.
- This reply was modified 9 years, 8 months ago by theredheadhenry.
- This reply was modified 9 years, 8 months ago by theredheadhenry.
- This reply was modified 9 years, 8 months ago by theredheadhenry.
Forum: Plugins
In reply to: [Basic User Avatars] UpdateI should also mention that this plugin worked great, up until the newest version of WP came out. I’m trying to trouble shoot in your code what the problem is, and why it would only affect certain pages and not others. I’ve deleted my temp files, no dice. Nothing.
Forum: Fixing WordPress
In reply to: Broken RSS FeedAnd this is why I need to read up on RSS feeds. Thanks for the help! This worked.
Forum: Fixing WordPress
In reply to: Broken RSS FeedOn my version of Chrome it’s generating all this HTML text. It looks fine in my version of Firefox as well.
Forum: Fixing WordPress
In reply to: Displaying bbpress link after returnI did already, isn’t this a simple PHP writing rite code issue? How would you display a link after a return? Google gives me nothing.
Forum: Plugins
In reply to: [bbp user ranking] Calling Badge/Rank on ProfileMarking resolved. That was exactly what I was looking for sir. This plugin does everything I need it too and more. Hope you keep expanding on it!
Forum: Plugins
In reply to: [bbp user ranking] Remove rank image for specific userPerfection! You sir, solved all my issues. This plugin is awesome, keep doing what you’re doing.
Forum: Plugins
In reply to: [bbp user ranking] Remove rank image for specific userDude, you rock! I’ll test this out when I get home later and let you know how it is.
Just out of curiosity, what files did you make changes too?
Forum: Plugins
In reply to: [bbp user ranking] Removing Userranking for specific usersAwesome! Looking forward to seeing the results. 😀