26/01/2024, 17:04:37
(Ultima modificare: 27/01/2024, 12:18:04 de Ionut-Mitica.)
Salut băieți! Știe cineva unde pot găsi un script recenzii gen sa votezi de la o stea pana la cinci stele? Gen pe profilul utilizatorului? Mulțumesc!
Salut Musafir! Vrei sa fii la curent cu ce se intampla pe forum? atunci baga un la pagina noastra de facebook => Script-Php.Ro.
Script recenzii
|
26/01/2024, 17:04:37
(Ultima modificare: 27/01/2024, 12:18:04 de Ionut-Mitica.)
Salut băieți! Știe cineva unde pot găsi un script recenzii gen sa votezi de la o stea pana la cinci stele? Gen pe profilul utilizatorului? Mulțumesc!
27/01/2024, 16:06:56
Uite aici https://fastupload.io/prfiAJHZcwE2aXC/file
Acesta este un script prin care poate fi adaugat in site un sistem de notare (cu stelute). Script-ul foloseste sistemul Ajax, e facut cu PHP si JavaScript, pentru a functiona, serverul trebuie sa ruleze PHP. Datele pentru stocarea notelor si verificarea celor care au notat pot fi salvate in fisiere TXT pe server, sau in baza de date MySQL (folosind PDO). Elementul notat, ziua si ip-ul vizitatorului care a acordat o nota sunt salvate atat pe server cat si in cookie, astfel, urmatoarea notare o poate efectua a doua zi. Scriptul poate fi utilizat pt notare la unul sau mai multe elemente care vreti sa fie notate intr-o pagina web. Daca-l adaugati la mai multe elemente, puteti seta ca utilizatorul sa poata efectua doar o singura notare unuia din ele, sau sa acorde cate o nota la fiecare. Scriptul poate fi inclus atat in fisiere ".php" cat si ".html" (inclusiv blog-uri). Daca in site aveti un script de inregistrare /autentificare, puteti seta ca numai utilizatorii inregistrati sa poata nota. - Detalii despre Instalare si Setari gasiti in arhiva cu scriptul,
27/01/2024, 21:17:08
(Ultima modificare: 27/01/2024, 22:01:13 de DevilsRock.)
link direct aici: https://t.me/ResurseSPRO/121 grupul de telegram a forumului.
Varianta originala a scriptului: https://t.me/ResurseSPRO/122 This is a script to add a Rating System (with 5, 7 or 10 Stars) to rate images, articles, videos, games, or any element in pages of your web site. This Stars Rating Script uses Ajax technology, with JavaScript and PHP (with OOP), it can be included in any page (".html", or ".php"), but the server must run PHP. The rating data can be saved in TXT files on the server, SQLite database, or in a MySQL database (using PDO). The rated item, the number of the day, and the user (name or IP) are saved on the server, also in cookies, so, the user /visitor can rate again the next day. You can use the script to add rating system to one or more elements in a web page. If you have a register /login script in your web site, you can set this Rating Script to allow only the logged users to rate. By default, all the visitors can rate an element once to 24 hours. - The script has 4 versions: Five stars, with five numbers to rate (1, 2, 3, 4, 5). - Default Five stars, with 10 numbers to vote (1, 2, .., 10). Seven stars, with 7 numbers to rate (1, 2, .., 7). Ten stars, with 10 numbers to rate (1, 2, .., 10). - Details about Installation and Settings you'll find in a "readme.html" file, in the archive with the script. • It is indicated to put the script in the root directory of you website. If you copy it into a subfolder, see the instructions below. In the archive with this script there is another zip archive (rating_stars_script_set_time.zip) with files that can be used to set various times in which the user can rate the items. For more details, see the instructions from the Other settings category in the readme.html page. • If the rating data are saved in MySQL or SQLite database: To create a list which ranks the score of multiple voted items, based on highest rating, perform a MySQL Select in the "rtgitems" table. This table stores the voted items (in "item" column), points (in "totalrate" column), and number of votes (in "nrrates" column). Example: This Code Only Show For Users
• If you want to use this Rating Script in pages that are in different folders, and the current settings not works, open the "ratings.js" file (in "ratingfiles" directory), and replace this code:This Code Only Show For Users
With this line of code (to use the absolute path to the "ratings.php" file): This Code Only Show For Users
If the "ratingfiles" folder is not in Root, delete the beginning "/": This Code Only Show For Users
Or, add the sub-folder name, with '/' from root:: This Code Only Show For Users
- Also, be sure to have in each page the correct path to the "ratings.css", and "ratings.js" files, included in the HTML code. |
Utilizator(i) care navighează în acest subiect: |