Toggle #whats-new-form Like Facebook 'Update Status' Link
-
Just like on facebook now, how the textarea to update your status is hidden until you click the link ‘Update Status’, I want to do this for my whats-new-form on the activity stream & group home pages. Can anyone offer some help? I’ve tried a few methods, but keep seeming to get caught up with the jquery.
Once, I got it to work in IE, but not in chrome (odd) with this code:
bp-custom.php file:
<?php function toggle_activity_form () { ?> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> <a href="#">Update Status</a> <?php } add_action ('bp_before_directory_activity_content', 'toggle_activity_form '); add_action ('bp_before_group_activity_post_form','toggle_activity_form ');
But, again, I couldn’t get this working in Chrome. Plus, I think I’d prefer jquery in case someone has javascript turned off.
I really appreciate anyone’s help. I’m approaching a deadline!
Thanks
- The topic ‘Toggle #whats-new-form Like Facebook 'Update Status' Link’ is closed to new replies.