Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 17, 2006 04:43 PM by suegooge
Mar 03, 2006 01:42 PM|LINK
If anyone requires any specific fuctionality post your wants here. Hopefully people will read and respond with solutions that they have built.
Ill start with:
A good user forum (i might use ASP.net forums).
A multiple image upload facility, so i can let people add directory listings (I have already built one but am suffering with max size upload and aspect ratio!!
Does any one know how to let people see there own stuff. I am not quite talking about peronalisation but rather if i let someone add an advert, i would like them to be able to logon and edit their adverts. Any ideas. I am
used to classic asp and found it easy. I have to admit im finding it difficult trying to intergrate this with PWS.
I used to just set a session equal to their userid if login is succesful and then when the user clicked on manage my adverts or anything else i used to run an sql query such as "select * from adverts where userid = sessionid"
How would i do such a thing with this system.
Any pointers would be great. I am not asking for code just ideas
Get posting people
Mar 03, 2006 03:53 PM|LINK
I'm not sure how you plan to organize it but one way would be to make each Advert editable where it sits. Let say you were using a Datalist for this. You create a template to display all the information for an advert and an edittemplate for editing an advert. You
could associate the user name with the advert in the Advert table when an advert is added. Then have an edit button next to each advert that has a visible property set to false.
In code you look for a logged in user. If you find one you get the user name and compare it to each Advert record in the Datalist. If the the logged in user is the same as the user associated with a particlular record set the edit button visible to true.
If you downloaded my source code you could look at the FavoriteLinks.ascx. It allows for add, edit, and delete for each item based on being logged in using the administrator role.
Mar 04, 2006 03:31 AM|LINK
Mar 09, 2006 01:18 PM|LINK
I am shortly going to try to build a system that lets people build their own directoy listings and classified adverts.
So far i have done the following:
when you login it loads a loggedin template that displays some links such as manageAds.aspx. This link picks up the userid and apends it to the url. So next i have to build a page that loads any adds associated with that user. or a management screen that
will have links to add, edit or delete ads.
My only problem is understanding the membership thingy with the login. In order to return the userid i have had to make a connection to the memebership_users table in ASPNETDB. I was wondering if i can get these values another way.
Becuase the welcome message is getting them from somewhere, ie welcome Paul
Mar 09, 2006 01:20 PM|LINK
Yes i would like a reduced fuctionality forum as well.
asp.net forums is quite good through. And will work but you will need to get your users to login twice.
Mar 09, 2006 01:22 PM|LINK
Anyone customised the register system. i would really like to take some more details such as address ect
Mar 09, 2006 01:23 PM|LINK
Oh and email registration response. i have downloaded this but it will not work on my machine
Mar 09, 2006 02:41 PM|LINK
If you’re using my code you need to set the SMTP server in the Manage/Site Settings. If your SMTP server uses authentication you'll need to specify the user name and password for your email account.
If you’re not using my code you may be able to extract that functionality out of my code to use in your site.
User.Identity.Name will give you the current user. The user name in the membership table is unique so you can use the name to edit the user, manage the user's role, etc.
Mar 09, 2006 03:26 PM|LINK
Thnaks for your reply JW
I wasnt using your code but i do have it. Thanks and i will have a look at it to see if i can suss out the email feature. One step at a time at first.
My first task is to customise the user registration system so i can take more details from them. Once done i will see if i can get it to send an email of confirmation. i hope to have a confirmation link in the email.
Strange, but im having a little difficulty understanding the PWS way of controling users and roles ect. I have all that i have mentioned in classic ASP many times.
Thanks i will have a look at your code
Mar 10, 2006 04:32 AM|LINK