FreeWebshop.org
May 24, 2013, 12:57:36 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Support the project. Please consider to donate a small amount
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Customer review mod with star rating  (Read 3611 times)
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« on: March 29, 2010, 02:28:52 PM »

A review mod with star rating system, especially dedicated to inferno Wink

Demo at test location: http://tinyurl.com/yj53yy5 (see "Group 1")



Features:

  • Logged in customers can rate products and post comments (also anonymous if they wish to)
  • Logged in admins can see loginnames, IP's and a delete-function with the reviews
  • Shop owners can choose to receive mail when a new review has been added (they can also choose to only receive mail when a comment has been posted)
  • The number of reviews to show per page can be specified in reviews_show.inc.php

This one should be very easy to install.
Just add the database table 'comments' as instructed and upload all included files to the right places.
If you're using the unmodified original FWS 2.2.9 R2 files, you only have to add some rules to your lang.txt and otherwise you have to add some code at one place in your browse.php and details.php.

All needed info is in the zip-file.

* Customer_reviews_with_star_rating.zip (25.06 KB - downloaded 198 times.)
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
inferno
chaozz.nl Starter
*
Posts: 18


« Reply #1 on: March 29, 2010, 02:59:31 PM »

Thanks for you perfect work again will test it late  Grin
Logged

Best Regards
Allan
inferno
chaozz.nl Starter
*
Posts: 18


« Reply #2 on: March 29, 2010, 03:46:21 PM »

I've tested the MOD now and it works of course as it should, thanks for your help  Grin
Logged

Best Regards
Allan
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« Reply #3 on: March 29, 2010, 04:06:12 PM »

You're welcome !

and it works of course as it should

Well... Actually it's always a relief when it DOES work with other users also Cheesy
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« Reply #4 on: March 29, 2010, 07:09:58 PM »

OOPS !
Forgot one modification for details.php.
(In the file __info.txt in the folder _modifications_for_integrating_in your_own_pages_) Embarrassed


* __info.txt (6.11 KB - downloaded 187 times.)
* Customer_reviews_with_star_rating.zip (25.25 KB - downloaded 156 times.)
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
inferno
chaozz.nl Starter
*
Posts: 18


« Reply #5 on: March 29, 2010, 09:06:21 PM »

If you like this MOD please make a donations to Rtpln at paypal@ons-domein.info  Grin
Logged

Best Regards
Allan
OGGS
chaozz.nl Starter
*
Posts: 5


« Reply #6 on: March 29, 2010, 10:54:25 PM »

Thank you very much, this works great!
Logged
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« Reply #7 on: March 31, 2010, 05:45:18 PM »

Very weird... Today the script looked different in my Internet Explorer Huh

If the lines in Internet Explorer are getting too fat:

[includes/reviews_show.inc.php]

[find] (2x)
<hr noshade size="1">
[/find]

[modify] (2x)
<hr size="1">
[/modify]

[/includes/reviews_show.inc.php]


If you're getting a linebreak too much in Internet Explorer:

[details.php]

[remove]
<?php // Add an extra linebreak if browser is IE
$br = "";
$IE_check = "yes";
$IE = "MSIE";

while ($IE_check == "yes")  {
 $pos = strpos($_SERVER['HTTP_USER_AGENT'],$IE);
 
 if($pos === false) {
  $IE_check = "no";
  }
  else {
   $br = "<br />";
   $IE_check = "no";
   }
}
?>
[/remove]

[find]
echo $br.'<br /><a href="index.php?page=details&prod='.$row[0].'&cat='.$row[2].'&action=showreviews#show">'.$txt['comments7'].'</a>';
[/find]

[modify] (2x)
echo '<br /><a href="index.php?page=details&prod='.$row[0].'&cat='.$row[2].'&action=showreviews#show">'.$txt['comments7'].'</a>';
[/modify]

[find]
            echo $br.'<a href="index.php?page=details&prod='.$row[0].'&cat='.$row[2].'&action=hidereviews#reviews">'.$txt['comments24'].'</a>'.$br2;
[/find]

[modify] (2x)
            echo '<a href="index.php?page=details&prod='.$row[0].'&cat='.$row[2].'&action=hidereviews#reviews">'.$txt['comments24'].'</a>'.$br;
[/modify]

[find]
          $br2 = "";
         if ($action == "showreviews" || $action == "delete") {
          $br2 = "";
          $br2 = "<br />";
[/find]

[modify] (2x)
          $br = "";
         if ($action == "showreviews" || $action == "delete") {
          $br = "";
          $br = "<br />";
[/modify]

[/details.php]

* details.php (14.46 KB - downloaded 141 times.)
* Customer_reviews_with_star_rating.zip (24.96 KB - downloaded 145 times.)
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
insidemyhead
chaozz.nl Starter
*
Posts: 28


« Reply #8 on: July 09, 2010, 09:33:09 PM »

hij voert `m in mn multi-categorie niet door op alle groepen.. is dat simpel aan te passen?..
Logged
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« Reply #9 on: July 10, 2010, 12:20:00 AM »

Dan moet je i.p.v. met het ID-nummer van het product met de productnaam werken bij het opslaan + uitlezen van de reviews. Zou op zich niet zo moeilijk moeten zijn, maar je moet dan eigenlijk óók de namen in de database-tabel `comments` mee laten updaten wanneer je in productadmin.php een naam wijzigt. En wellicht vergeet ik nog wat...
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
insidemyhead
chaozz.nl Starter
*
Posts: 28


« Reply #10 on: July 10, 2010, 06:16:51 AM »

moet ik dan in details.php PRODUCTID veranderen in PRODUCTNAME en dan in mn Database onder 'fws_Comments' een rij toevoegen met de naam PRODUCTNAME?
Logged
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« Reply #11 on: July 10, 2010, 07:20:47 AM »

Ik kan mijn reactie hier niet posten, want dan krijg ik een foutmelding.

Zie: http://tinyurl.com/3ytaqnw
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
azka117
chaozz.nl Starter
*
Posts: 3


« Reply #12 on: July 21, 2010, 04:12:00 AM »

hELLO..

im new here..

i have problem...
can i put this coding for zingiri?
plz help me guys...tq
Logged
insidemyhead
chaozz.nl Starter
*
Posts: 28


« Reply #13 on: July 21, 2010, 10:50:21 AM »

Shit, Rtpln,excuus, maar mag ik je wederom HEEL hartelijk bedanken?!

werkt super!

verder qua vorderingen geloof ik dat ik er bijna ben.. alleen de registratie van een betaalmodule.. wat een gedoe is dat!! dus niet zo zeer het integreren op de site, eerder het maken van een account die je kunt gebruiken om uiteindelijk I-deal te ontvangen Wink

maargoed, het houdt je van de straat. Tongue

Groetjes en weer super bedankt nogmaals,
Marc
Logged
Rtpln
chaozz.nl Die-hard
****
Posts: 344



« Reply #14 on: July 21, 2010, 06:03:22 PM »

can i put this coding for zingiri?
plz help me guys...tq

I'm sorry, but I don't know anything about Zingiri...
Logged

When you're in one of my mod topics, always scroll down for the newest updates !

I'll be away from this forum as of September 1, 2010.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!