1

Topic: Background Image

I want makes the user can insert a Background Image on profilpage like twitter

someone help me? thx

Last edited by foxnetwork (2010-07-15 10:27:02)

The best dating script vldPersonals 2.5.6

2

Re: Background Image

Rmove the background image from your content CSS
Make a field in your questions where the can upload a picture and insert that code into the header.tpl
It should go something like this:
<BODY BACKGROUND="{member_profile_bgimage}"  >
Use it only on the member profiles.

This is just out of my head, check the syntax of everything, it's only the idea.

3

Re: Background Image

would this be secure? i mean what if they upload a virus or something?

4

Re: Background Image

I think you must do an extension for this ...
so it can be stored in the database ...

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals   Swedish Dating on Love2u.se   VldCrowd:s Community

5

Re: Background Image

has this been completed?

could we get the full tutorial?thx!!

6

Re: Background Image

doc wrote:

would this be secure? i mean what if they upload a virus or something?

It would be easy enough to check that it was only graphic images that were uploaded

7

Re: Background Image

There is an image type of field in profile fields.
Basic algorithm of achieving this should be:

1. Create new field of "image" type "Background image", label "bgimage"
2. Add this code to header tpl in <head></head>:
<!-- IF active_module == "member_profile" AND profile_field_bgimage_value != "" -->
<style>
body {ldelim} background: url('{virtual_path}media/uploads/{member_media_path}/{profile_field_bgimage_value');{rdelim}
</style>
<!-- ENDIF -->

I'm pretty sure this won't work from the first try but it covers 90% of what you have to do. You'll also face some design/layout issues caused by disharmony between image and colors of design elements but that's another story...

Last edited by radioact (2010-08-02 01:30:06)

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

8

Re: Background Image

first you need to creat profile type called images?then group called bgimage ok i see what you meen but how to we set it to show?

load in account profile?

Last edited by mario702 (2010-08-02 07:03:01)

9

Re: Background Image

ok so i got the box fixed..afther messing around with it..now i put the header info but still nothing?

should we try in members_profile.tpl?

Last edited by mario702 (2010-08-02 20:20:01)

10

Re: Background Image

if you used radioact`s code that should work when you are on a members profile page and he has a bgimage uploaded

11

Re: Background Image

Long time reader, first time poster here, just wondering if this should function in 2.7.  I've done exactly what was instructed, but I don't see the background images that I've uploaded.

Profile Types: Members
Settings==>Profile Types==>Profile Groups==>Fields:
Created a new field:
Name: Background Image
Label: bgimage
Type: Image
Load in account profile: yes

Now the option is there to upload an image in the profile edit screen.  I uploaded a test image, and can view it using the view image link.

Then I copied the code from Radioact exactly, and placed it at the top of the Header.tpl file, inside the <head></head> brackets. But on site refresh nothing changes in the member profiles.

Did I miss a step, or is something amiss?

Any help is appreciated, I'm enjoying the switch here from crappy SkaDate.

12

Re: Background Image

So, I was just wondering, 4 days later...maybe no one wants to resurrect an old post, But I'm very interested in this code change and if it should work as described by Radioact in vldPersonals 2.7.  I have detailed what I've done to try and implement this above, but perhaps this isn't the correct place.  Should I start a new post and hope for assistance there?

13

Re: Background Image

I just wanted to let anyone else who is watching this topic know that I received assistance from Ramil (Radioact) with this at his vldMagic.com site, and now it works.  He responded to me within minutes of receiving my ticket, and stuck with me for a few back and forth exchanges until we got it sorted out.  I strongly suggest anyone with a real customization issue try to contact him.  Days went by here in the forum without a response, then I opened a ticket with the vldPersonals ticket support, and they suggested I try to contact Ramil since they don't help with html issues.

I'm glad I did.

Thanks Ramil. +1 for you.