Questions fonction commentaires

  • Posts: 382
  • Thank you received: 13
  • Hikashop Business
8 years 3 weeks ago #249233

-- HikaShop version -- : 3.64
-- Joomla version -- : 3.6.2

Bonjour, je veux mettre en ligne la fonction commentaires :

1) Les étoiles s'affiche pas :/
2) J'ai réglé sur 1 le nombre de commentaires par article et par personne.... ont peut en faire 2 ?
3) je voudrais ne pas afficher l'email qui est l' username en fait et plutôt le prénom comment faire ( Que les commentaires soit anonymes )

Du coup j'ai désactivé la fonction ... :(

Merci.

Last edit: 7 years 11 months ago by hikaphil.

Please Log in or Create an account to join the conversation.

  • Posts: 4684
  • Thank you received: 631
  • MODERATOR
8 years 3 weeks ago #249239

Bonjour,

Pouvez vous nous fournir votre page de configuration avec vos réglages ?
Cela nous permettrait de mieux comprendre la situation et de mieux vous répondre.

En attentes de vos retours.

Cordialement.

Last edit: 8 years 3 weeks ago by Philip.
The following user(s) said Thank You: hikaphil

Please Log in or Create an account to join the conversation.

  • Posts: 382
  • Thank you received: 13
  • Hikashop Business
8 years 3 weeks ago #249374

Bonjour je vous renvoie les accès au site... :dry:

Please Log in or Create an account to join the conversation.

  • Posts: 82518
  • Thank you received: 13282
  • MODERATOR
8 years 3 weeks ago #249383

Bonjour,

1.
Le CSS d'HikaShop que vous utilisez provient de la version 2.5.0:[
take.ms/vS5DR
Du coup, il vous manque tout le CSS pour le système de vote, car il a été refait depuis la 2.5.0
Il va falloir rajouter ce CSS:

.ui-rating{
	margin:auto;
	display: inline;
}

.ui-rating-star {
	width: 16px;
	height: 16px;
	font-size: 2px;
	display:inline-block;
	text-decoration: none;
	vertical-align: bottom;
	background-image: url('../images/star.gif') !important;
	background-repeat: no-repeat;
}
.ui-rating a {cursor: pointer; background-color: transparent !important;}
.ui-rating-full  {background-position:left top;}
.ui-rating-mid  {background-position:left -16px;}
.ui-rating-empty {background-position:left -32px;}
.ui-rating-hover {background-position:left -48px !important;}

/*
 * Rating
 */
.hk-rating {
	margin:auto;
	display:inline;
}
.hk-rating a { cursor: pointer; background-color: transparent !important; }
.hk-rate-star {
	width:16px;
	height:16px;
	font-size:2px;
	display:inline-block;
	text-decoration:none;
	vertical-align:bottom;
	background-image:url('../images/star.gif') !important;
	background-repeat:no-repeat;
}
.hk-rate-star.state-full { background-position:left top; }
.hk-rate-star.state-mid { background-position:left -16px; }
.hk-rate-star.state-empty { background-position:left -32px; }
.hk-rate-star.state-hover { background-position:left -48px !important; }


.hikashop_vote_notification{
	display:inline;
	color:grey;
}

.hikashop_vote_form .hikashop_comment_textarea{
	border: 1px solid #EEEEEE;
	border-radius: 4px 4px 4px 4px;
	color: #666666;
	height: 60px;
	margin: 5px 0;
	padding: 5px;
	width: 98%;
}

.hikashop_vote_form .button{margin-left:0px}

.hikashop_comment_textarea:hover, .hikashop_comment_textarea:focus{
	border:1px solid #ddd;
}

.hikashop_vote_stars{
	width: 100%;
	padding:5px 0px;
}

.hikashop_vote_notification_mini{color:#666; font-size:11px; font-style:italic}
.hikashop_total_vote{color:#666; font-size:11px;}

.hikashop_total_vote{
	display: inline;
}

.hikashop_vote_form{margin-top:10px}
.hikashop_vote_listing_useful_bought{font-style:italic}

.hikashop_vote_listing_useful_note{
	margin-right:10px;
}

.hikashop_vote_listing_notification:hover{
	margin-left:3px;
}

#hikashop_product_vote_listing{
	margin-top:30px;
}

#hikashop_product_vote_form table, .hikashop_product_vote_form table{
	margin:auto;
	color:#666;}

.hikashop_vote_no_comment{
	margin-left: 80px;
	font-weight:bold;
}

.hikashop_listing_comment{
	color:#555555;
	font-weight: bold;
}

.hikashop_form_comment{
	color:#555;
	font-weight: bold;
}

.hikashop_vote_notification_mini{
	display: inline;
}

.hikashop_comment_form{
	width:100%;
}

.hikashop_comment_form input{
	border: 1px solid #DDDDDD;
	border-radius: 3px 3px 3px 3px;
	padding: 3px;
}

.hikashop_product_vote_listing .pagination{text-align:center;}

.hikashop_product_vote_listing .pagination .list-footer{
	margin: 10px 0px 5px 0px;
}

.hikashop_product_vote_listing .pagination .list-footer .counter{
	display: none;
}

.hikashop_product_vote_listing .pagination .list-footer .limit{
	display: none;
}

.hika_comment_listing{
	margin:10px auto;
	border: 1px solid #eee;
	color: #999;
	width: 100%;}

.hika_comment_listing_notification{
	width: 120px;
	font-style:italic;
}

.hika_comment_listing td{padding:5px;}

.hika_comment_listing:hover{border: 1px solid #ddd;}

.hika_comment_listing:hover .hika_comment_listing_useful_p{
	color: 	#90b1c3;
}
.hika_comment_listing_name{
	font-weight: bold;
	color:#2C8296
}
.hika_comment_listing_stars{
	width:85px;
}
.hika_comment_listing_content{
	background-color: white;
	padding: 2px;
	color: #333;
}

.hika_comment_listing_useful_p{
	width: 18px;
	background-color: #ffffff;
	border: 1px solid #90b1c3;
	font-weight:bold;
	padding: 1px;
	text-align:center;
}
.hika_comment_listing_useful{
	background-color: transparent !important;
	width: 16px !important;
	height: 14px !important;
	background-image:url(../images/icons/vote_plus.png) !important;
	background-size:16px 14px !important;
	background-repeat:no-repeat !important;
	background-position: right !important;
	cursor: pointer !important;
}

.hika_comment_listing_useful.hide{
	width: 16px;
	height: 14px;
	background-size:0px 0px;
}

.hika_comment_listing_useful_p.hide{
	display:none;
}

.hika_comment_listing_useful.locked{
	opacity: 0.2;
	cursor: default !important;
}

.hika_comment_listing_useful.locked:hover, .hika_comment_listing_useless.locked:hover{
	opacity: 1;
}

.hika_comment_listing_useless{
	background-color: transparent !important;
	width: 16px !important;
	height: 14px !important;
	background-image:url(../images/icons/vote_minus.png) !important;
	background-size:16px 14px !important;
	background-repeat:no-repeat !important;
	background-position: right !important;
	cursor: pointer !important;
}
.hika_comment_listing_useless.locked{
	opacity: 0.5;
	cursor: default;
}

.hika_comment_listing_full_stars {
	width: 16px;
	height: 16px;
	display:inline-block;
	text-decoration: none;
	background-image: url('../images/star.gif') !important;
	background-repeat: no-repeat;
	background-position:left top;
	cursor: default;
}

.hika_comment_listing_empty_stars {
	width: 16px;
	height: 16px;
	display:inline-block;
	text-decoration: none;
	background-image: url('../images/star.gif') !important;
	background-repeat: no-repeat;
	background-position:left -32px;
	cursor: default;
}
.hika_comment_listing_empty{
	color: #666;
	padding:5px;
}
.hika_comment_listing_bottom{
}

@media only screen and (max-width: 420px) {
	.hikashop_sort_listing_comment{display: none;}
}

2. Je n'arrive pas à faire 2 commentaires sur le même produit avec le même compte utilisateur sur votre site.
J'obtiens bien le message d'erreur lors de la seconde tentative:
take.ms/Loaic

3. C'est le username qui est affiché, et non l'email. Le problème apparemment, c'est que l'email est utilisé en tant que username sur votre site.
Pour changer l'affichage, il va falloir éditer le fichier "listing" de la vue "vote" via le menu Affichage>Vues. Vous pouvez essayer de changer:
echo $elt->username;
par:
echo $elt->name;

The following user(s) said Thank You: hikaphil

Please Log in or Create an account to join the conversation.

  • Posts: 382
  • Thank you received: 13
  • Hikashop Business
8 years 3 weeks ago #249421

Merci, @ tous les deux c'est en place ...
Le seul truc c'est que echo $elt->name; affiche le nom et le prénom pour avoir plus d'anonymat j'aurais préféré afficher que le prénom par exemple...

Merci en tout cas.

Please Log in or Create an account to join the conversation.

  • Posts: 382
  • Thank you received: 13
  • Hikashop Business
8 years 2 weeks ago #249434

Bonjour, j'ai tenté
$elt->address_firstname; et $elt->firstname; ça foncrionne pas ...

Comment faire pour afficher le prénom qui se trouve sur la table ?

FROM `xxxxxxxx_hikashop_address` ORDER BY `address_firstname` DESC

Merci.

Please Log in or Create an account to join the conversation.

  • Posts: 82518
  • Thank you received: 13282
  • MODERATOR
8 years 2 weeks ago #249441

Bonjour,

Cette donnée n'est pas chargée dans la vue. Il va falloir faire une requête MySQL vous même à partir de $elt->user_id sur la colonne address_user_id de la table hikashop_address pour pouvoir charger les adresses de l'utilisateur.
Mais bon, je ne recommande pas cela pour plusieurs raisons:
- l'utilisateur n'a peut être pas d'adresse. Par exemple, s'il s'enregistre via le formulaire d'enregistrement de Joomla.
- l'utilisateur a peut être plusieurs adresses avec des noms/prénoms différents. Dans ce cas, lequel choisir ? Le premier dans la liste ? Le dernier créé ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum