Hi,

Now a days I am busy in creating one website for children. I would like to give them one feature where they can change background of website by selecting image from given list.

I am not hard coder thats why it is bit dificult for me to change hard code of module. Can anybody help me in this issue?

Please tell me how I can make it user specific??
Whenever user logged in he can view background selected by himself/herself and he/she can change background for himself/herself anytime.

Thanks,
Aditya

Comments

cableman0408’s picture

This could be create as an extension to the module, but is not supported at the moment. I'll try to find time to build this extension.

adityadubay’s picture

Hi Cableman,

Thanks for reply.
Please help me in this, I really feel it could be great feature for normal user :)

Aditya

cableman0408’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Assigned: Unassigned » cableman0408
Priority: Critical » Normal

I have started working on this feature :-)

adityadubay’s picture

Thanks a ton Dude :)

cableman0408’s picture

StatusFileSize
new89.64 KB

I have create the feature in the 6.x-1.x-dev branch, which should be rebuild to night. I would like to get some feedback before I create a 6.x-1.3 release with the feature.

adityadubay’s picture

Wow its really look beautiful :)
We can also provide upload option to user.
Thanks for your hardwork and help :)

Aditya

cableman0408’s picture

I have not create an upload for users, as I was not sure if it would be a good idea. I'll try to find some time to create a upload field and maybe limit the number of uploads, as users may upload large amounts for data else.

adityadubay’s picture

Ya technically you are right :)

adityadubay’s picture

StatusFileSize
new29.86 KB

Hi,

I install Dev version of module. there is no settings page now ?????????? I got only configure permission option (Image attached) with this warning on user account:
warning: Invalid argument supplied for foreach() in /home/digitall/public_html/newlearnforfun/sites/all/modules/dynamic_background/modules/dynamic_background_user/dynamic_background_user.module on line 104.

Aditya

cableman0408’s picture

That inside a submit handler.... have you tried running update.php to update the database and have you cleared the cache.

korejo’s picture

Great work! :) That really will prove to be the useful module... The selected background will be published too right? I mean it will be visible to the page visitors..

Please let me know if it is completed and where I can get it from..?

adityadubay’s picture

StatusFileSize
new182.4 KB

Hi,
Now I am getting below warning while I try to upload images:

warning: move_uploaded_file(/tmp/background3.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in \includes\file.inc on line 628.

warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '\tmp\php1BDA.tmp' to '/tmp/background3.jpg' in \includes\file.inc on line 628.

File upload error. Could not move uploaded file.

Failed to upload the image; the image type should be jpeg, jpg or png.

I follow all instructions about update.php and clearing cache as you told above :)
Please do the needful :)

Thanks in Advance :)

Aditya

cableman0408’s picture

I can reproduces this error when my temp directory dos not exists or I don't have write permission to the temp directory. Go into admin/settings/file-system and set a correct temporary directory.

adityadubay’s picture

No Success :(
I select background and update but still showing default one.
I cleared all cache(server and browser), rebuild menu and theme stucture and also run cron from default way as well as from supercron too but no change.

cableman0408’s picture

How do you insert the image, are you using the CSS behaviour fields in the administration interface for both the default image (admin/build/backgrounds/settings) and for the user extension (admin/build/backgrounds/user).

You should not use the $background variables in your page.tpl.php files as this will not work. The reason being that this can't be overridden by CSS on less the "!importent" keyword is used, which should be avoided.

adityadubay’s picture

StatusFileSize
new10.92 KB
new103.53 KB
new94.27 KB
new94.4 KB
new98.84 KB
new118.56 KB

Hi,
Attached are some screen shots and some template files, If you have some time then please check and guide me where I am doing wrong configuration?

Thanks in advance

Regards,
Aditya

adityadubay’s picture

No reply :(

cableman0408’s picture

Status: Active » Fixed

You should use these steps.

1. Go to /admin/build/backgrounds/settings and set the "CSS selector" e.g.: body #container
2. Go to /admin/build/backgrounds/user and set the same "CSS selector" e.g.: body #container
3. Go to /admin/build/backgrounds and upload and select a default image.
4. Go to a user profile /user/1/backgrounds and select a background for that user.

You don't have to modify your theme to use dynamic background. You should upgrade to version 1.4, which has a minor bug-fix with selection of the first image.

adityadubay’s picture

I dont know why but it is not working for me :(

cableman0408’s picture

That is strange, have you tried with a clean Drupal installation. Just to test that it's not another module that conflicts with this module ?

Automatically closed -- issue fixed for 2 weeks with no activity.