Add Things To My Site - What program languages are these and are there other ways of adding th

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Add Things To My Site - What program languages are these and are there other ways of adding th

BooZker
My sites basic outline is done, and have a few of the tutorials up, but before i go any further i want to see how i add these things to my site so i can add them in case they will be in includes so i dont have to go through dozens of pages and add them.

1. Comments. How do i make them and what program languages can i use to create them. An example of where i would put them would be at this link at the bottom of the page:

http://boozkerstweaks.trap17.com/tutorials...ng_programs.php

Do you even think i should add a comments section?

2. Rating system. How could i make a rating system on my site? I would want it so there is no users and it just uses a cookie OR use the same users from my forums. Is this possible and how. And example rating system would be like here:

http://www.amazon.com/gp/product/B000JY1DR...e=ATVPDKIKX0DER

But of course make the stars nicer looking, but how can i make something like that on my site?

Lastly and the biggest question of all is how can i set these things so you can't do them unless you login and it's the same login name and password and user accounts as the forums. So if you make a forum account you can then add comments and rate them and do not have to make a new name.

Sorry i am new to PHP and MySQL. To be honest i have no clue how to use those things other then PHP includes and when i try to learn i get more confused then before. I know CSS and HTML fluently and getting to know Javascript pretty well.

 

 

 


Reply

rldowling03
First of all, i think it would be a great idea to allow users to comment on your tutorials to let you know any feedback they have on if it was or wasnt helpful... etc..

As for the ratings, im not sure exactly how to do it, but if i'm right you want it so the users have to login to rate on it??? Well im sure you can find a script like it, at php.resourceindex.com, i think thats the site, it has lots of pre made php scripts to easily add to your site.


Reply

BooZker
OK thanks a lot. I will be sure to check it out. Do you know if i could connect the phpbb forum and then my website for comments and ratings?

EDIT: I looked on the site and i couldnt find any type of rating system other then for pictures. Have you ever seen a rating system other then picture rating on that site?

Reply

rvalkass
I would use PHP and MySQL to store the information on ratings and comments. You would need two separate tables, one for ratings and one for comments. For the ratings you will need to store their user id, the post id and the rating. Comments is a similar thing: user id, post id, comment.

Using the user information from your forums should not be that difficult. Without looking at the tables the user data is stored in I can't say exactly how it would work, but it shouldn't be too difficult.

The rating system you have found for images would contain the same major code as a rating system for blog posts, you would just need to change a couple of things to adapt it to work for blog posts rather than images.

Reply

BooZker
So PHP comments and ratings? Do you know of where i could get a tutorial on how to do this even? I will look in the morning because its 3:30 am, but remember i am VERY new to PHP. All i know are includes. Do you know of any FREE pre-made scripts?

Reply

fffanatics
Well as for a tutorial i can not really help you but to break it down into terms you might be able to understand i will try and help. For the comment part, you would create a new php table. This table would have a field for the comment id, story id (so that you can pull all the comments just for the matching story) and the comment along with any other data you would like to include like the date, time, etc. You would write a script that would take this information and store it into the table but you have to make sure you store the story id number. Then to display the comments, just grab the data from the comment table that has the same story id number and display it.

As for the ratings, you could actually just add that as a member of the comments table and then average everyone's rating for the story and display the total rating along with the rating per users comment.

If you have any other implementation questions, feel free to PM me and ill help you out.

Reply

rvalkass
I have never seen a tutorial for comments or ratings becuase most CMSs and blogging solutions have things like that built in. The few tutorials out there don't go into a lot of detail and don't look too reliable. I am willing to help you to write your own, or can write one for you if you want. You can reach me on MSN, email or PM (details in my profile, or PM me), I've got quite a bit of free time this weekend.

If you do decide to go it alone then the main things you will need to research will be the MySQL functions and the echo construct. For readability and security reasons, you should read up on nl2br and htmlspecialchars. Remember, if you need any help then contact me and I shall guide you through it.

Reply

BooZker
OK i PMed you rvalkass. Thanks.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords :

  1. Things You Should Know
    things you should know about programming (0)
  2. Mac Programming Languages?
    What are some good ones? (5)
    What are some good Mac Programming Languages? /huh.gif" style="vertical-align:middle" emoid=":huh:"
    border="0" alt="huh.gif" /> I have a friend from school who is like obssed with Mac and Linux (And
    thinks windows sucks when it doesn't /mad.gif" style="vertical-align:middle" emoid=":angry:"
    border="0" alt="mad.gif" /> ), and it would be cool if I could learn some Mac Programming languages
    aside from what I already know about Programming, so I could make some cool programs for mac too,
    show off, and beat him at his own game. /laugh.gif" style="vertical-align:middle....
  3. Liberty Basic And Qbasic
    Also Qbasic's Sister Languages -- FreeBasic or GW-BASIC (3)
    Have you ever heard of Liberty BASIC or Qbasic -- Or Qbasic's Sister Languages, FreeBasic or
    GW-BASIC? They are pretty old, but I still use it though. /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> These are good languages to
    start if you have never programmed before, as it has the base and will help you fully understand the
    concept of most other languages. /wink.gif" style="vertical-align:middle" emoid=";)" border="0"
    alt="wink.gif" /> Liberty BASIC is making its come back. Even though its as much as $119.95 if
    you get a....
  4. Site Loader
    Like you see on video games (2)
    This is a cool little idea I ve bee thinking about lately. I am curious as to how I would make a
    webpage loader in an .exe form. Ex: many RPG games have a launcher program, that shows you the
    current updates and news, and checks for new updates. This thing usually shows a webpage to show the
    news and updates right? I was wondering how I would create one of those (What language?), or if I
    could possibly get a pre-made one where I can just change the code or the page it loads in its
    program frame. I really hope this makes sense. If not, I can try and make more sense of ....
  5. Here Is A Really Good Flash Tutorial Site
    (7)
    This site is the best for creating different flash elements and just learning to use macromedia
    flash in general. Click on the link below and you will be taken to step by step tutorials for many
    different flash objects. Flash tutorials ....
  6. How Can I Use Cgi Email On My Site With Any Generic Hosting?
    (1)
    Can anyone help me to start cgiemail on the ej.am server. I dont know where to go. Do you have to
    have software? I was looking at the site that they give us on the server and it says that I download
    the software and use the unix commands to install iit on the server. it also wanted to see if my
    server had the cgi function enabled. What i am trying to do is to allow people to email me from my
    website without the mailto: function. That is a pain and requires an internet account on their
    computer.....
  7. How Do I Script A Tutorial Submit Site
    (3)
    I am very interested in learning how to create or start my own tutorial submitt site. What do I
    need to learn ? What do I need to have. Is there a script that can be made up or a software? What
    I would like to do is start my own tutorial submit site. something similar to good-tutorials and or
    pixel2life except those sites are really big and cover many tutoriasl for many different programs.
    Id like to just cover tutorials for maybe a total of 3 to 4 different programs. Im sure I need
    hosting a domain a site and some good forums to get something good going. But t....
  8. A Question About Data Collecting Program
    usually found in registers (1)
    does anyone know which programming language is used to make applications like those used in shops
    and malls where the sales assistant will enter name of a product and all its details will come up
    and whn someone makes a purchase the details will go to a database , i need to know which language
    is used and also which platform is used ,thanks in advance /laugh.gif"
    style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /> Please read the rules.
    The What Is..? forum is for answering a common question or telling everybody about what
    interesting fact you ....
  9. Can Johnny Still Program?
    (1)
    After U.S. students earlier this month made their worst showing in the 29-year history of the ACM
    International Collegiate Programming Contest, Patterson and others are wondering whether the United
    States does enough to encourage programming talent. The top U.S. school finished in a tie for 17th
    place. Students from China's Shanghai Jiao Tong University took the top honors, continuing a
    gradual ascendance of Asian and Eastern European schools during the past decade or so. The last time
    a U.S. institution won the world championship was in 1997. whole story at cnet ....
  10. Short Programming Example (in Many Languages)
    (9)
    I want a thread where I can see how to solve a Varity of programming problems in many languages. The
    idea is so I can read short examples to become fluid in many languages. Both reinforcing what I know
    and learning new stuff. The problems should have a short solution and be solvable in many different
    languages. Web applications are alright but make some reference on how the code is used (e.g. CGI).
    The poster can provide the problem and as many different solutions as he likes. For example:
    Problem 1. Write a function to compute a factorial. Solution Soln. (problem 1.) ....
  11. 99 Bottles Of Beer
    One program in 621 variations (0)
    Posting here, because it seemed the best place for it. If you do some programming yourself you
    might want to check out this site, it's really quite funny: http://www.99-bottles-of-beer.net//
    It has 621 variants of a program that writes the song "99 bottles of beer", in loads of different
    programming languages. Everything from PHP to Java (OO variant) to Fromage . I think the Java
    one is funny, it's OO to the extreme /tongue.gif' border='0' style='vertical-align:middle'
    alt='tongue.gif' /> Also check out Whitespace, that's always a nice one /sm....
  12. What Programming Languages Do You Use?
    (26)
    So? What do you use? I use Turing ....

    1. Looking for Add, Things, To, My, Site

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for Add, Things, To, My, Site

*MORE FROM TRAP17.COM*
advertisement



Add Things To My Site - What program languages are these and are there other ways of adding th



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE