-
Brajesh Singh posted on the forum topic it redirects my user to wp-admin instead of homepage which i dont like in the group Creating & Extending: 12 years, 10 months ago
Hi Naved,
try this plugin
https://wordpress.org/extend/plugins/bp-redirect-to-profile/I had written it an year ago but it still works. Hope it helps. If it does not work. Please do let me know here.
-
Brajesh Singh posted on the forum topic Letting the user upload a custom background? in the group How-To and Troubleshooting: 12 years, 10 months ago
Thank you all. Sorry, I left yesterday as It was 5 AM in the morning here. Thanks for for all your suggestions. I am putting the update. @gregfielding , you are right Greg. I am including the auto delete on uploading new image. @modemlooper , yes I believe that can be modified. In this plugin I did […]
-
Brajesh Singh posted on the forum topic Letting the user upload a custom background? in the group How-To and Troubleshooting: 12 years, 10 months ago
@mercime, thank you ๐
@naijaping thanks. That is easily achievable. If you are using Bp-default theme, you can use this code in your functions.php
https://gist.github.com/1034872
That should do it. -
Brajesh Singh posted on the forum topic Letting the user upload a custom background? in the group How-To and Troubleshooting: 12 years, 10 months ago
@pcwriter
Thanks Patrick. Will sure do that in update. It was something I did in an hour, so could not do much.
btw, you can do your own css section using some code (here is an example)
https://gist.github.com/1034853just putting that in functions.php or bp-custom.php and you can modify it ๐
-
Brajesh Singh posted on the forum topic Letting the user upload a custom background? in the group How-To and Troubleshooting: 12 years, 10 months ago
Ok, Here you go
https://github.com/sbrajesh/bp-custom-background-for-user-profilePlease note, I have not added localization to the plugin yet. It will work with single/Multisite both. Once you activate the plugin, a user can visit his/her profile and change Background link will be present next to the change avatar. Hope that helps.
-
Brajesh Singh posted on the forum topic Letting the user upload a custom background? in the group How-To and Troubleshooting: 12 years, 10 months ago
Thanks. Let me clean the code and put the plugin in an hour here ๐
-
Brajesh Singh posted on the forum topic Letting the user upload a custom background? in the group How-To and Troubleshooting: 12 years, 10 months ago
Hi, I have done something similar in one of my project. So, I may put the code here. Where do you want to show the background. Just on user profile page or for every page on the site when the user is logged in. I mean if you see twitter, It allows to setup the […]
-
Brajesh Singh posted on the forum topic Where to submit patch in the group CubePoints Buddypress Integration: 12 years, 10 months ago
Thanks Thosh. Just sent you a message with the details and the modifications. Yes, It is all about adding 2 actions. One in the form section where points are allocated and one in the update section where points are updated. Rest is delegated on the plugin developers to support cubepoint in their plugin. Your plugin […]
-
Brajesh Singh posted on the forum topic Reply Button Not Working in the group How-To and Troubleshooting: 12 years, 10 months ago
ooh, Since the thread was regarding cosmic buddy I misunderstood that. sorry.
Isn’t Randy Candy a child theme of BuddyPress ? If yes, then you won’t need to update much. It should be some simple fix. -
Brajesh Singh posted on the forum topic Reply Button Not Working in the group How-To and Troubleshooting: 12 years, 10 months ago
@dubsel
Get the update from here https://github.com/sbrajesh/cosmicbuddy
It supports activities/reply. -
Brajesh Singh posted on the forum topic Activity Post/Reply To Not Working in the group Third Party Components & Plugins: 12 years, 10 months ago
Hi, It seems you went in a little different direction. The
add_action( โwpโ, โbp_activity_action_post_updateโ, 3 );
Is used for the time when javascript is disabled. Please have a look at bp-default/_inc/ajax.php and the line add_action(‘wp_ajax_post_update’,’bp_dtheme_post_update’); this is used by bp-default for posting update in ajax mode. I…[Read more] -
Brajesh Singh posted on the forum topic Activity Post/Reply To Not Working in the group Third Party Components & Plugins: 12 years, 10 months ago
Hi, Look for the post request. You will see some variable as action:”post_update” or something similar. Then look into your themes ajax.php(most probably in _inc/ajax.php) for a hook wp_ajax_{the action_name} , i.e. wp_ajax_post_update in this case. There will be a function attached to that. You can put your debug code in that function. rest is […]
-
Brajesh Singh joined the group Third Party Components & Plugins 12 years, 10 months ago
-
Brajesh Singh started the forum topic Where to submit patch in the group CubePoints Buddypress Integration: 12 years, 10 months ago
Hi Tosh, I have created a patch for extending the buddypress cube point to automatically allow other plugins to support it. It is simple, I have added two actions to admin section to allow addition of new points(in the form & update section). Would you like taking a look at it? Where should I submit […]
-
Brajesh Singh posted on the forum topic Default Tab depending on Friendship in the group Creating & Extending: 12 years, 10 months ago
No, That should not work. Reason, the $bp->displayed_user object is not initialized at the moment we are making changes.
Instead check $displayed_user_id==$current_user_id -
Brajesh Singh posted on the forum topic what search does buddypress use??? in the group Installing BuddyPress: 12 years, 10 months ago
@famous, you are right about that. searching multiple blogs is too costly on database if the posts are not cached in a global table. The unified search does not includes it because most of the sites do not use any sort of global post caching, and searching the posts on a network of say more than […]
-
Brajesh Singh posted on the forum topic Default Tab depending on Friendship in the group Creating & Extending: 12 years, 10 months ago
Put this code in bp-custom.php
add_action("bp_setup_globals","my_default_tab",8); function my_default_tab(){ global $bp; global $displayed_user_id; $current_user_id=get_current_user_id(); if(!$displayed_user_id) return;//if it is not profile return //a fix for table name before querying friendship $bp->friends->table_name =…
[Read more] -
Brajesh Singh posted on the forum topic Limit Activity Posting to own profile only – not in groups. in the group How-To and Troubleshooting: 12 years, 10 months ago
open bp-default/activity/post-form.php look for these lines
<option value="">
It should be 43-45. remove it from the post from and user can only post to his profile. Btw, if you have child theme, then copy this file in your child theme and modify there. Otherwise the changes will be lost in another upgrade of […] -
Brajesh Singh posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 12 years, 11 months ago
No, you are doing it right then(assuming you are using some sort of PHp exec plugin for wordpress as wp will not allow including raw php). Doing independent page will need extra care to include wp-load.php and not a very good idea. in the current case, just double check that you have enabled BuddyPress plugin. […]
-
Brajesh Singh posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 12 years, 11 months ago
well, In that case, some more questions will help. 1. how do you create a buddypress page? from wordpress admin? from theme, have you added a new component as I don’t see other way to add a page in buddypress 2. Is the page opened using wordpress/is coming inside wordpress (seems to me iT is […]
- Load More
@sbrajesh
Active 5 months, 3 weeks ago