Web Hosting Talk







View Full Version : Quick request + suggestions needed for 2 things.


kayz
04-13-2007, 10:29 PM
This place being the fantastic place that it is i can always rely on it.

I have a few simple things to accomplish and if some of you guys can maybe direct me in the right direction to some quick and easy tutorials for the following, then it would be much appreciated.

Note: I have a working db already with users, login/logout. Security is not important.

1. A tutorial for an admin to analyse the use of the web site statistics. Admin be able to view what pages have been accessed, username to be stored, the date and time of access, browser used, IP address used and page accessed, the count to the number of visits.

2. Small message system, one particular user is able to log into his account and psot a message for admin to read and be notifed. & Vice versa?



This is just for a university project and i do not need security. I just need something very small and easy to implement. If you think you can help then please do let me know.

Thanks

DPI
04-14-2007, 12:44 AM
Have you tried searching HotScripts.com? I've put in some pretty obscure search terms in the search box, and I usually can find exactly what I'm looking for, or something close enough to do the job.

mikey1090
04-14-2007, 03:20 AM
the posting is easy. create a db talbe with a few fields. When posting a message, insert the data into the table. To read the posts, just display the data from the table!

As for the stats, that would be just a mysql query to display the data. Do you store data like page visits etc?

kayz
04-14-2007, 05:45 AM
the posting is easy. create a db talbe with a few fields. When posting a message, insert the data into the table. To read the posts, just display the data from the table!

As for the stats, that would be just a mysql query to display the data. Do you store data like page visits etc?

About posting thats what i thought, but i want a particular user to post within their section in their account only... - i can do that. But the hard bit is i want the admin to reply to that users request/message only... how would i do that?

horizon
04-14-2007, 07:12 AM
About posting thats what i thought, but i want a particular user to post within their section in their account only... - i can do that. But the hard bit is i want the admin to reply to that users request/message only... how would i do that?


You would need to set user levels from your users table so that only the admin's ID level can see the reply button + access to the reply action from your script file.

kayz
04-14-2007, 07:55 AM
You would need to set user levels from your users table so that only the admin's ID level can see the reply button + access to the reply action from your script file.

Aha very good point horizon... so users replying... thats fine i can do that... my next questtion will be... how will i be able to allow the admin to go into the comments area of the members page and post a reply...

horizon
04-14-2007, 08:19 AM
how will i be able to allow the admin to go into the comments area of the members page and post a reply...


My answer above actually covers this part.


so users replying...


No. This is for admin replys. If you wish for registered users to reply to topics, you would set user levels IDs (or moderators IDs as most forums uses) in order to access the reply button + the reply action page from the script. ;)