Letting the user upload a custom background?
-
How can I allow the user to upload a custom background?
-
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 background for user profile, while on orkut, the theme changes sitewide. Just trying to understand your need.
I want to show it on just the profile.
Thanks for your help so far.
Thanks. Let me clean the code and put the plugin in an hour here
Thank you very much
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.
Nice job… works great! You da man… as usual
Maybe an update could include an option to have the chosen background image stay fixed on screen or scroll with pages?@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
Thank you @sbrajesh. Just tested it and it’s working as advertised, cool.
what a nice plugin, just tried it and it work like a charm. but i will prefer if it can change the colour of the container rather than the site background.
@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.Thanks. I’ll give those additional snippets a try tomorrow
Probably should be an option to delete the background image.
Any chance of adding a color picker option?This looks like it’s gonna be one of those oh-so-popular goodies by Brajesh!
@sbrajesh – Now you’ve done it. We’re cooking up with more feature requests
… add option to change background for groups as well?
Thank you.It would actually be very cool if users could have options to change background image or color, either just in their profile or, click, apply the change to the whole site.
https://buddypress.org/community/groups/buddypress-group-css/
Couldn’t this be converted to profiles?
For all those asking for feature requests, I hope you’ve made donations to sbrajesh
Or failing that it might be sort of cool if instead of requests the community returned mods to the work, the backbone of the work done and given to the community then enhanced and extended so the onus isn’t on one single person to have to do, after all the basics are quite easy to throw together but it starts becoming increasingly more work and testing as features get added.
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 not work to provide custom css, rather my point was, just upload and go .@mercime, @pcwriter
Thanks to both of you for the suggestions. Including now.@djpaul, Thank for the suggestion Paul. I appreciate it.But that is not required
@hnla no worries. When I publish a plugin as free, I do love to support them. So, the updates will follow today . Btw, It is on Github, so always welcome to forkCool initiative Brajesh.. I’ll write a post about it on BP-Tricks to let others know about this plugin.
thank you Bowe.
Looking forward to that@Brajesh Singh
Thank you! I appreciate it.
How can they revert to having no background?
@findly.tk
ooh wow, I never thought about that. I am updating it today again and that will allow users to choose this. nice pointlol
- The topic ‘Letting the user upload a custom background?’ is closed to new replies.