Gossamer Forum
Home : Products : DBMan : Customization :

Creating one default file per user.

(Page 2 of 2)
> >
Quote Reply
Re: Creating one default file per user. In reply to
You should set your signup permissions to be the same in both .cfg files. Otherwise you're going to have problems.

Can you post your sub html_footer here so I can see what you have?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Creating one default file per user. In reply to
Well, I'm finallynow squared away to this point (I hope). I'll spare you the details.

I have several things on my list at the moment. I'm not sure which is better to address next.

When someone signs on to the list, their username is also their DJ name. Is it necessary to have that field appear after they've signed in and switch to the playlist database form. Essentially it's asking them to sign in again. Alternately, is it possible that the DJ field is automatically filled in after they've signed in and ready to add another playlist. Then the field would be there, but less chance for input error.

The other area concerns the way that the results will be displayed in a search. Right now, 'View' returns either a playlist or a profile, depending on which database one's in. What I really want is a list that combines elements from both playlists.

Thanks
Rich

Quote Reply
Re: Creating one default file per user. In reply to
In Reply To:
Alternately, is it possible that the DJ field is automatically filled in after they've signed in and ready to add another playlist. Then the field would be there, but less chance for input error.
If you have set the $auth_user_field in the playlist database, the username will automatically be entered into the field when the record is added. You can even make it a hidden field, if you want.

In Reply To:
What I really want is a list that combines elements from both playlists.
That's where the relational part comes into play.

You have both databases working correctly, yes? Or were there some other issues that still need to be dealt with?

Assuming everything is going okay, you'll need to add the "switch_to_" subroutines to db.cgi. The instructions are at http://www.jpdeni.com/.../Mods/relational.txt. If you need help with it, I'll need to know your field names for both databases. We'll work it out together. Smile

Once we get the subroutines written, you can add code to sub html_record that will list the playlists for the DJ. It'll all fall into place. Smile

JPD
http://www.jpdeni.com/dbman/
> >