Forum Moderators: coopster
I am looking for a rating script coded in PHP with mysql backend for a static article management website. Is there any such?
I should be able to :
1. Plug that script into a static site.
2. Each article in my static site should be ratable.
3. the current ratings should be visible on the actual article page and also on the list of articles page.
4. rating scale of 1 to 10
5. Rating images.
Kindly give me some pointers ( by PM , if the URL's cannot be posted here ), if any script like that exists?
Cheers
What seems to be missing in almost all the scripts i have looked into is that the scripts' ability to plug into a staic driven site and i wanted the rating system one which is exclusively meant to rate articles and not pictures or products.
Any help would be greatly appreciated.
Cheers
the scripts' ability to plug into a staic driven site
So then do you just want to make links that go to your script that has params to let it know what article they are rating then?
If the article pages just have a link with a param that is passed to the script the script can then access the db(?) and select the row for the article in question. It can maybe have
average vote - vote total / vote count
vote count - total number of votes
vote total - the sum of all votes
pagename - for reference and returning them to the proper page
They come to the vote script, select a vote, submit, the script adds the totals, calcs the average and reinserts the values. It will then send them back from whence they came.
That sort of what you were thinking?
1.Site basically contains articles and glossary.
2.It is completly a static site, HTML+CSS+javaScript driven.
The url structure is like this :
[mydomain.com...] ( index page )
[mydomain.com...] ( article on blue widgets )
[mydomain.com...] ( article on red widgets )
Similiarly for other articles, many of them.
[glossary.mydomain.com...] and similiarly for other alphabets.
What the rating script, i am looking for should do is :
1. ability for my site users to Rate each article even if the article is spread across many pages.
2. Kind of pull down menu with a rating scale of 1 to 10 ( Poor to Excellent ) for each article and each page of glossary.
3. The script should calculate the average voting value ( upto two decimal values ) and display on the article page.
4. Top rated articles should appear on homepage ( say 6 to 10 of them ) configurable from the admin side of the script. This display will contain article title and the rating upto 2 decimal values.
5. It should be php coded with mysql backend.
Thanks for any help.
Cheers
your table structure could be as above.
As far as finding something ready made, I am not sure. If you have tried a lot of what you found out there it may be the point to get the closest one to what you want and tweak it.
You can't plug php into a static site really. The word static in this case is not the right word to use. You could always enable php parsing for the html extension and then plug in the php where ever you want. At some point the site is going to have to be able to parse some scripting language to get this done.
You could always enable php parsing for the html extension and then plug in the php where ever you want.
How can i do that? is it something like this?
static url : [mydomain.com...]
get converted to :
[mydomain.com...]
or is it something else?
thanks
enabling php parsing for a file extension is done through Apache.
I believe it is the AddHandler Directive
[httpd.apache.org...]
Also, if the new rewrite is not overwriting the old static url, whaich url will the google bot see and read for its indexing purposes?
I was also just wondering, if its the same technique news.com is using for its URL system?
Or
are they using some custom CMS and then converting the dynamic url's to static ones?
Thanks
will that require overwriting of the old static url's?
Not at all. What I am suggesting will allow you to put php into your existing pages. The urls won't change at all, which is what you want.
which url will the google bot see
In this case it will see the exact same ones, that is why it is better to just turn on php parsing for the html extension instead of changing all of your file extensions to .php.
I believe news.com does use mod rewrite for their urls but that is not what I am suggesting here.