Skip to:
Content
Pages
Categories
Search
Top
Bottom

Letting the user upload a custom background?

Viewing 25 replies - 1 through 25 (of 32 total)
  • Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    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.

    Profile photo of findly.tk
    findly.tk
    Member

    @findlytk

    I want to show it on just the profile.

    Thanks for your help so far.

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    Thanks. Let me clean the code and put the plugin in an hour here :)

    Profile photo of findly.tk
    findly.tk
    Member

    @findlytk

    Thank you very much :)

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    Ok, Here you go
    https://github.com/sbrajesh/bp-custom-background-for-user-profile

    Please 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.

    Profile photo of pcwriter
    pcwriter
    Participant

    @pcwriter

    @sbrajesh

    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?

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    @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/1034853

    just putting that in functions.php or bp-custom.php and you can modify it :)

    Profile photo of @mercime
    @mercime
    Moderator

    @mercime

    Thank you @sbrajesh. Just tested it and it’s working as advertised, cool.

    Profile photo of Prince Abiola Ogundipe
    Prince Abiola Ogundipe
    Participant

    @naijaping

    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.

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    @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.

    Profile photo of pcwriter
    pcwriter
    Participant

    @pcwriter

    @sbrajesh

    Thanks. I’ll give those additional snippets a try tomorrow :-)

    Profile photo of gregfielding
    gregfielding
    Participant

    @gregfielding

    Probably should be an option to delete the background image.
    Any chance of adding a color picker option?

    Profile photo of pcwriter
    pcwriter
    Participant

    @pcwriter

    This looks like it’s gonna be one of those oh-so-popular goodies by Brajesh! :-)

    Profile photo of @mercime
    @mercime
    Moderator

    @mercime

    @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.

    Profile photo of pcwriter
    pcwriter
    Participant

    @pcwriter

    @sbrajesh

    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.

    Profile photo of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    https://buddypress.org/community/groups/buddypress-group-css/

    Couldn’t this be converted to profiles?

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    For all those asking for feature requests, I hope you’ve made donations to sbrajesh :)

    Profile photo of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    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 fork :)

    Profile photo of Bowe
    Bowe
    Participant

    @bowromir

    Cool initiative Brajesh.. I’ll write a post about it on BP-Tricks to let others know about this plugin. :-)

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    thank you Bowe.
    Looking forward to that :)

    Profile photo of findly.tk
    findly.tk
    Member

    @findlytk

    @Brajesh Singh

    Thank you! I appreciate it.

    Profile photo of findly.tk
    findly.tk
    Member

    @findlytk

    How can they revert to having no background?

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    @findly.tk
    ooh wow, I never thought about that. I am updating it today again and that will allow users to choose this. nice point :)

    Profile photo of findly.tk
    findly.tk
    Member

    @findlytk

    :) lol

Viewing 25 replies - 1 through 25 (of 32 total)
  • The topic ‘Letting the user upload a custom background?’ is closed to new replies.
Skip to toolbar