Gossamer Forum
Home : Products : Gossamer Links : Discussions :

add link = add user ... how?

Quote Reply
add link = add user ... how?
Hi,

I just purchased LinksSQL (Version: 2.0.3) within the last few days. I'm very pleased so far. Seems like a very professionally put together piece of work.

Of course, there are a few things I need to do to get it to do what I want. I knew this when I bought it and was eager to tackle the project. However, in looking at how it's put together, I'm now thinking it's just a bit over my head. I'm hoping to get a little guidance/input to get me on the right track.

My first challenge is this:

For marketing/business model reasons, I want every link submission to ALSO be a user, and vice versa. In other words, there is one form, the add link form, which creates the record in the Links table and also creates the record in the Users table (users can only have one link... if they want more, they have to create a new account).

The way I see it, I can either add all the pertinent fields (name, email, username, password, etc) to the Links table (and add resource form), and just ignore the Users table altogether. If I want to use the mailing functions, then the script(s) that handle that would have to be hacked to access the Links table instead of the Users table.

-or-

I can have the script that adds to the Links table also enter the extra information that I gather on the add resource form to the Users table.

So, which way would be more efficient/better? If the former, how would I go about modifying the mail scripts to access a different table? And, if the latter, how would I go about implementing it?

A quick note on my experience level: I've been hacking Perl off & on for a couple years now, but I have next to zero OO and MySQL experience. Plus, I'm finding the "hook" & plugin concept a little daunting. Of course, I'm always willing to learn :-)

Any guidance would be *most* appreciated!



Thanks,
Matt Glaspie
Subject Author Views Date
Thread add link = add user ... how? Matt G 1642 Apr 13, 2001, 11:57 AM
Thread Re: add link = add user ... how?
pugdog 1599 Apr 13, 2001, 12:18 PM
Thread Re: add link = add user ... how?
Matt G 1585 Apr 13, 2001, 1:38 PM
Post Re: add link = add user ... how?
Stealth 1568 Apr 13, 2001, 3:51 PM
Post Re: add link = add user ... how?
pugdog 1552 Apr 13, 2001, 10:32 PM