Search Results for 'buddypress'
-
AuthorSearch Results
-
February 4, 2013 at 9:00 pm #152379
In reply to: Buddypress building shortcode
bhguy
ParticipantMy youtube function disappearing here as well as my shortcode from budypress on my site. lol
function youtube( $atts, $content = null ) {
return ‘div id=”youtube”iframe width=”200″ height=”200″ src=”http://youtube.com/embed/’.$content.'” frameborder=”0″ allowfullscreen /iframe/div’;
}add_shortcode(“youtube”, “youtube”);
add_filter(‘bp_get_the_profile_field_value’, ‘do_shortcode’);
add_filter(‘bp_get_activity_content_body’, ‘do_shortcode’);
add_filter(‘bp_get_activity_action’, ‘do_shortcode’);February 4, 2013 at 8:58 pm #152378In reply to: Buddypress building shortcode
bhguy
Participant`
function youtube( $atts, $content = null ) {
return ”;
}add_shortcode(“youtube”, “youtube”);
add_filter(‘bp_get_the_profile_field_value’, ‘do_shortcode’);
add_filter(‘bp_get_activity_content_body’, ‘do_shortcode’);
add_filter(‘bp_get_activity_action’, ‘do_shortcode’);
`I use this, but nothing works on activity, shortcodes disappearing from there, just in full view of article it works.
February 4, 2013 at 8:07 pm #152375In reply to: how to override buddypress function using hook?
shanebp
ModeratorI’m not aware of a filter for this, but you can definitely over-ride wp_safe_redirect in a manner that doesn’t affect its usage otherwise, ie. check the $location and adjust if applicable.
To over-ride it, you must do so within a plugin. It’s not about actions or filters.
More info: https://codex.wordpress.org/Pluggable_Functions
>Or, can I not rewrite the entire function messages_screen_compose() so that it overrides the one in buddypress, and put it in functions.php of my theme?
No. And it would be a bad idea even if you could.
February 4, 2013 at 8:03 pm #152373Mitesh Patel
ParticipantThank you @slaffik for your response. I figured that much, and I posted another thread subsequently asking how to hook into bp_core_redirect(). I was suggested that bp_core_redirect() in turn calls wp_safe_redirect, which could be hooked into, but I am clueless how? Sorry, not a programmer. Can you point me to an example I could analyse?
Secondly, Can I override the messages_screen_compose function from bp-messages-screens.php by writing an entirely new function by same name in my theme’s function.php (with my custom redirects with if-else, which seems very easy and non-intrusive), and doing some remove_action, add_action magic, so to speak? Writing the new function is easy, but how to implement/insert it so that it works is a mystery for me.
February 4, 2013 at 7:52 pm #152372In reply to: how to override buddypress function using hook?
Mitesh Patel
ParticipantSorry @shanebp, for delayed response. Got disconnected for a while.
I don’t understand how to do what you suggest. Any pointers in right direction? I’m not a programmer, but I will understand if I could analyse an example.
Also, if I ‘plug’ the function, as you suggest (not modifying the actual function but by an action hook), will my conditional statement run every time a call to wp_safe_redirect is made from other places (not my form) as well? as wp_safe_redirect would be used hundreds of time.
Or, can I not rewrite the entire function messages_screen_compose() so that it overrides the one in buddypress, and put it in functions.php of my theme? If that’s possible, what’s correct way of doing it?
February 4, 2013 at 7:32 pm #152367In reply to: Get Buddypress Profile Data in WordPress Page
shanebp
Moderatorxprofile_get_field_data function is provided so that you CAN use it on non-profile pages.
Use http://pastie.org/ or similar to show what you tried.
February 4, 2013 at 7:20 pm #152365In reply to: Get Buddypress Profile Data in WordPress Page
linish
ParticipantHello,
I had tried that but it will worked only on buddypress profile page, the same gave blank result in normal wordpress page / custom template for a page
February 4, 2013 at 6:42 pm #152361In reply to: Move profile fields to another field group?
tushargp
ParticipantJust a small favor from you required if you can look that- as Iām very close to execute it.
For http://www.healthitinsider.com – Iām currently using buddypress template file and having the following functionality
https://github.com/kayue/buddypress-blank/tree/master/Activity
Blogs
Forums
Members
RegistrationI would like to create a specific section like groups which I name to Company. So that user can create and register company here.
I have copy the code of groups section (code mention in previous link)- modify it and create a directory which I name company
Healthitinsider.com/wp-admin/content/themes/companyNow I would like to define function in function.php so that it will be functional and we can assign a page on the site like
http://healthitinsider.com/groups/For style.css I’ve use the previous codes. Please let me know how we can have the following functionality.
February 4, 2013 at 6:37 pm #152360In reply to: Buddypress building shortcode
bhguy
ParticipantOn: domain.com/members/admin/activity/13/ = video works.
On: domain.com/activity = video is not shown, shortcode is not shown, there is nothing, shortcode is not showed as text or anything, shortcode doesnt exist.I see only this: admin posted an update 1 day, 8 hours ago.
February 4, 2013 at 6:17 pm #152358In reply to: Buddypress building shortcode
@ChrisClayton
Participantthe filter I mentioned above
`
add_filter(‘bp_get_activity_content_body’, ‘do_shortcode’); // Adds shortcodes to activity content.
`will add it to the content of all activity (including on the profile page and groups)
If you need to add it to activity actions as well, you can also use
`
add_filter(‘bp_get_activity_action’, ‘do_shortcode’); // Adds shortcodes to activity action.
`February 4, 2013 at 4:45 pm #152351In reply to: Missing ADD MEDIA
@mercime
Participant@pjfbncil Contributors and Authors should be able to upload media by default. Have you tried deactivating plugins one by one except BuddyPress and checked which plugin/s might be causing the issue?
February 4, 2013 at 4:16 pm #152350In reply to: Buddypress building shortcode
bhguy
ParticipantPlease someone help, I am stucked with this.
I want to add buddypress to my site, but cant make this work.
Tried many ways.February 4, 2013 at 3:45 pm #152348In reply to: Get Buddypress Profile Data in WordPress Page
shanebp
ModeratorUse :
xprofile_get_field_data( “Company Name” , $member_id)
You have to supply the $member_idIf you’re on a profile page, the $member_id will be provided via bp_displayed_user_id()
Take a look at
/bp-xprofile/ -> bp-xprofile-functions.php -> xprofile_get_field_dataFebruary 4, 2013 at 3:41 pm #152347In reply to: Buddypress forum photo upload nightmare..
mtm123
ParticipantBump I am also looking for some kind of plugin to allow photo and video uploads to the forum and topic area. The activity area and member area I already have a plugin for.
February 4, 2013 at 3:02 pm #152346Lawrence
ParticipantJust seen some activity on this… again, really sorry that things have been on a bit of a pause, but luckily I still have all the code and a basic website so I’ll review everything again with the latest version of wordpress and buddypress and see if I can get this thing published at long last!
February 4, 2013 at 2:10 pm #152341In reply to: BuddyPress Compatible
February 4, 2013 at 12:04 pm #152337In reply to: Buddypress building shortcode
bhguy
ParticipantChrisClayton, thanks.
Can you tell how to enable shortcodes on activity stream of profiles, groups etc.
Or, is there simple way to enable it everywhere?
February 4, 2013 at 11:41 am #152336In reply to: BuddyPress Compatible
Hugo Ashmore
ParticipantSo ‘friend’ hasn’t actually made an attempt to work this up or if so how far did they get?
This does smack a great deal of treating the forum as a coding service!
It may be an idea to wait for 1.7 to be released then this process will be a whole lot easier.
fwiw hasn’t ”Continuum’ already been packed by @mercime?
Yep it has, OP you really need to check these things first, you should have checked the BP codex first you would have seen the link to the guide with all the work done already for you.
https://codex.buddypress.org/legacy/wordpress-to-buddypress-theme/
http://bpsocialnetwork.wordpress.com/2012/10/23/continuum-theme-themeforest/
February 4, 2013 at 11:14 am #152333In reply to: BuddyPress Compatible
Patryk
Participant@mercime
Theme’s called Continuum,friend does not have an account here, but he sent me the files because he did not have time
I think that I do not have to do a new topic so I paste it all here š
ok let’s get started šHeader.php http://pastebin.com/xAvR4rZ4
Footer.php http://pastebin.com/VXGtvD8W
Page.php http://pastebin.com/9iPur64H
Index.php http://pastebin.com/8DMhPR7r
template-full-width.php http://pastebin.com/e1FehrF3Unfortunately, I no found sidebar.php file
February 4, 2013 at 7:59 am #152319@mercime
Participanthttps://buddypress.trac.wordpress.org/browser/tags/1.6.4/bp-themes/bp-default/members/single/profile/edit.php would normally correspond to huddle/members/single/profile/edit.php file. Since you’re using a premium theme, we have no way to know if the theme author changed the HTML structure of that page. Back up your theme’s edit.php file and watch out that when you change the PHP tags, you won’t mess up the HTML tags in return.
February 4, 2013 at 7:38 am #152317In reply to: WP Symposium Vs BuddyPress
@ChrisClayton
Participant@indirakrishna – Chat is a huge area, and there are all kinds of solutions (some better than others) š
It depends on how you need the chat plugin to function, really.
https://wordpress.org/extend/plugins/bowob/
https://wordpress.org/extend/plugins/buddypress-ajax-chat/
https://wordpress.org/extend/plugins/envolve-chat/February 4, 2013 at 6:48 am #152311In reply to: Best Plugin for a points system
indirakrishna
ParticipantAny updates on the questions from the above developers??
And @Talon is it working on your site now ? And how is it ? are there better or best alternates for point and ranking system for all the buddypress users
February 4, 2013 at 6:29 am #152310Thorsten :-)
ParticipantYou are right but the author is not available for six months so I must find another way. Do you now which page is responsible in the standard BuddyPress theme? Is it easy to copy the responsible section of the plugin into the section of the Huddle theme?
I appreciate any support that help š
Regards
Thorsten
February 4, 2013 at 5:54 am #152308In reply to: WP Symposium Vs BuddyPress
indirakrishna
ParticipantBut Before I migrate I want to see if some one can answer me with best plugins available for buddypress chat and etc
February 4, 2013 at 5:43 am #152307In reply to: Facebook-Like-Chat Plugin for Buddypress?
indirakrishna
ParticipantI have seen many of these forums finally Is there a chat which allows both groups and friends with cutomised limitations like if in a group only we want friends to chat or in a group all the members can chat but out side the group only friends can chat
PLEASE TELL ME IF THERE IS ANY SELFHOSTED FREE Plugin ?
-
AuthorSearch Results