Skip to:
Content
Pages
Categories
Search
Top
Bottom

Letting the user upload a custom background?

Viewing 25 replies - 1 through 25 (of 32 total)

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


    findly.tk
    Member

    @findlytk

    I want to show it on just the profile.

    Thanks for your help so far.


    Brajesh Singh
    Participant

    @sbrajesh

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


    findly.tk
    Member

    @findlytk

    Thank you very much :)


    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.


    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?


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


    @mercime
    Keymaster

    @mercime

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


    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.


    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.


    pcwriter
    Participant

    @pcwriter

    @sbrajesh

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


    gregfielding
    Participant

    @gregfielding

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


    pcwriter
    Participant

    @pcwriter

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


    @mercime
    Keymaster

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


    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.


    modemlooper
    Moderator

    @modemlooper

    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.


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


    Bowe
    Participant

    @bowromir

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


    Brajesh Singh
    Participant

    @sbrajesh

    thank you Bowe.
    Looking forward to that :)

    @Brajesh Singh

    Thank you! I appreciate it.

    How can they revert to having no background?


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

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