ke Technical Documentation

Tuesday, March 15, 2011 Rating User Check

Ratings - Function To Hide Or Show Content If Already Rated .Used on product, partner, resources homepage to hide and show content if logged in user rated on did not rate current object.

Function format: |RATING_USER_CHECK(rating_code,rating_item,username)| , where:

  • rating_code - ke code of the created rating
  • rating_item - partner_id, product_id, etc
  • username - a username from the suers section

Available keywords:

  • |SHOW_ONVISITOR_START_username|
  • |SHOW_ONVISITOR_END_username|
  • |SHOW_ONNOTSUBMITTED_START_username|
  • |SHOW_ONNOTSUBMITTED_END_username|
  • |SHOW_ONSUBMITTED_START_username|
  • |SHOW_ONSUBMITTED_END_username|

Example:

Partner Homepage: |RATING_USER_CHECK(PRODUCT_RATINGS,|PARTNER_ID|,|USER_USERNAME|)|
|SHOW_ONSUBMITTED_START_|USER_USERNAME||
"You can only rate a business once."
|SHOW_ONSUBMITTED_END_|USER_USERNAME||
|SHOW_ONNOTSUBMITTED_START_|USER_USERNAME||
"You can rate this business."
|SHOW_ONNOTSUBMITTED_END_|USER_USERNAME||

back

Add a comment






Comments


http://t8k.me/wlhttp://www.arvut.org/1/ddocrNsEmGWgXVE