sbrajesh / bp-custom-background-for-user-profile Goto Github PK
View Code? Open in Web Editor NEWAllows Users to set custom Background Image for Their profile
Allows Users to set custom Background Image for Their profile
Hi,
Thanks for this plugin by the way, it's working great but there are some useful options that are missing and that could make it even better. I'm way too much of a neophyte in coding to be of any help unless I'd already be forking this so I'm just throwing some suggestion if/whenever you get the time to work on this plugin.
It would be nice to be able to position the BG (vertical alignment : top, middle, bottom / horizontal alignement : top, middle, bottom)
It'd also be use to be able to set its size settings (cover, contain, initial)
A great addition would be to be able to add a colored BG overlay (color picker + transparency)
Cheers!
BBC
Hi, any possibility to make it change groups background too? I suppose this part of code can be base for a new function:
//adda sub nav to My profile for chaging Background function setup_nav(){ global $bp; $profile_link = $bp->loggedin_user->domain . $bp->profile->slug . '/'; bp_core_new_subnav_item( array( 'name' => __( 'Change Background', 'bppg' ), 'slug' => 'change-bg', 'parent_url' => $profile_link, 'parent_slug' => $bp->profile->slug, 'screen_function' =>array(&$this,'screen_change_bg'), 'position' => 40 ) ); }
I tried something like this, but no sucess:
function setup_navgroup(){ global $bp; $group_link = $bp->groups->slug . '/'; bp_core_new_subnav_item( array( 'name' => __( 'Change Background', 'bppg' ), 'slug' => 'change-bg', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' =>array(&$this,'screen_change_bg'), 'position' => 40 ) ); }
And to hook:
add_action( 'bp_xgroup_setup_nav',array(&$this,'setup_navgroup' ));
Any advise on how to get this (if possible)? Thank you.
Hi,
I'm testing this and it's great idea. I have though one suggestion. Adding so the max upload size value shows up in intruction text. This for user experience and overall information how big in kb/mb size the background should be. Instead of doing wrong and the get the right answer.
Best Regards
Felipe Chamorro
Allow site admins to upload custom background images. The users can use one of these or opt for uploading a new one.
Hi, i was just going through your plugin and it's definitely a great creation but unfortunately when i try using it - the background image doesn't show up then during the loading of one of the page background image was there behind the full page
check it here
it doesn't change here http://pr-e.com/members/ars/
but in this http://pr-e.com/members/ars/forums/favorites/ the black background u see below the page is the part of the image i set
Hello! I was wondering how i could check if a user has an background image in an if statement, and if not, return a default image?
Example:
show it
show default image i created
Any ideas?
Hi,
I'm testing this and it's great idea. I have though one suggestion. Adding so the max upload size value shows up in intruction text. This for user experience and overall information how big in kb/mb size the background should be. Instead of doing wrong and the get the right answer.
Best Regards
Felipe Chamorro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.