Homepage selbermachen 7.846 Themen, 35.563 Beiträge

Datenbank Daten

Infos-Lanzarote / 7 Antworten / Flachansicht Nickles

Hola zusammen!

Ich will ein Voting-Script einarbeiten und benötige dazu ein wenig Hilfe. Folgendes steht in der Config.php:

$rate_username = "mein name";
$rate_password = "kennwort";
$rate_database = "datenbankname";
$rate_table = "ratings";
$rate_host = "der host";
$rate_setcookie = ".mysite.com";
$rate_cookiename = "rateit";

Gebe ich Username, Datenbankname, Kennwort undHost ein, kommt die Fehlermeldung dass er keinen Kontakt zur Datenbank hat.
Muss ich bei Rate Table, setcookies, und cookiename auch etwas eingeben???

Danke im Voraus!!!

bei Antwort benachrichtigen
Infos-Lanzarote Rheinlaender „Genaueres kann man nur dann wissen, wenn man den Code oder die dazugehörige...“
Optionen

Hier mal die Dokumentation dazu:

RateIt
June 2004
Version 2.2

Change setting of cookie to enable more ratings on various pages.
Remains restricted to 1 rating per page.

Index.php gives a sample with all settings.
The 1st rating page here has to be created in the admin section first!

The rest is straight forward.
You can omit the link to hotscripts if not required.

Setting for voting system,
In config.php you can define the voting settings,
This can be 1-10 , 1-5, excellent to stupid or whatever you like.

procedures for calling:

ShowForm($id,$numRate,$rate_me="Rate Me",$rate_it="Rate!",$class="",$hotscript_id)
NumRates($id)
ShowResult($id)
ShowStars($id,$width=20)

$class in Showform is for future use to create classes (groups)
Will be in the next release.

Put the file hotscripts_dummy.php in the directory where
you call the rating system.
It is called by ShowForm().
This dummy file is only to make hotscript receive _POST and not _GET.

Version 2.1 You can now have more than 1 vote block on 1 page.
Vote jacking prevented via cookie and ip address.

Version 2.2 has classes (groups)
The tables have been changed, voting is now counted cummulative.
This makes the tables very small.
Ratings table has completely changed!
If you want to add previous data, sum them and add manual.
count= number of votes/article rate= sum of all scores/article
A new ratings_ip table has been added.
This table cleans itself!

Version 2.3 has extended css file


2 records will be created in ratings_name they can be used
to demonstrate index.php and you can delete them later

Version 2.3 has all text/color configuration in the css file.
By refering to different css files you can have different layout in
different sections of your site

Version 2.4 solves SQL injection vunurability, and a change to
hotscript popup.

bei Antwort benachrichtigen