Jump to content


Photo

Member's area....?????!?!?!?!?


  • Please log in to reply
7 replies to this topic

#1 ghettostickers

ghettostickers
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 06 September 2006 - 02:13 AM

Okay, so i already have a signup and login worked, but when people login i want them to go to a "My account" area. I could make that, but i want to make it so it says "Welcome *username!*" And they should earn points on my site, so i want to know when people do something, example, rate a movie, they get like 10 points, i want it to get added to the "My account area" and it says "Your points:10" or whatever. Any help?

Also if you could i want to make it so they can make a profile and when people look them up they can click "view profile" and it'll show what they wanted their profile to be.

#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 06 September 2006 - 02:20 AM

Stored those 10 points in database and echo them out ?
Actually I don't really understand what you mean.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 ghettostickers

ghettostickers
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 06 September 2006 - 02:29 AM

uhhhm, ok ill put it into more specific ways....

They login and go to "My Account" page,
it says "Welcome *user*!"
They go and rate a movie, and 10 points get added to their account right away, i dont have to manually do it,
they go and submit a movie, it gets added to the movie page automatically,
they can make a public profile that people can see.

I want to know how my users can do that.

#4 xyph

xyph
  • Staff Alumni
  • Advanced Member
  • 3,712 posts
  • LocationSurrey, BC

Posted 06 September 2006 - 02:35 AM

Sounds like you need to learn to crawl before you walk.

Learn the basics of PHP or grab a pre-built membership system with plugins that'll do what you'd like.
Everything you need to know about storing user-names and passwords
http://www.openwall....Users-Passwords
Blank Page? Try forcing errors to display
ini_set('display_errors',1);
error_reporting(-1);

#5 tleisher

tleisher
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts

Posted 06 September 2006 - 05:42 AM

I won't go into the move upload part but when they rate a movie just have it do something like:

$pts = mysql_query("SELECT `points` FROM `your_table` WHERE `username` = '$user'") or die(mysql_error());
$points = mysql_fetch_array($pts);

$newpoints = $points + 10;

#6 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 06 September 2006 - 07:08 AM

As for the rating part, it is a hardwork for you if you don't know some of the basic PHP coding.
Tleisher's reply is one of example, but it can be repeatly rate. And you have to add some features so that they can only vote once...

The about the public profile, if you are too lazy to figure out. You can try to search around.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#7 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 06 September 2006 - 11:31 AM

this is a simple website and basic learn php properly read all the tutorals on here.

good luck.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#8 ghettostickers

ghettostickers
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 06 September 2006 - 08:39 PM

I won't go into the move upload part but when they rate a movie just have it do something like:

$pts = mysql_query("SELECT `points` FROM `your_table` WHERE `username` = '$user'") or die(mysql_error());
$points = mysql_fetch_array($pts);

$newpoints = $points + 10;


thats really helpful, but would i have to like make a new table for the points or something? i have the users table in my database, but seeing as it says $points, how would i do that?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users