ke Technical Documentation

Tuesday, March 15, 2011 Bookmark User Check

The bookmark user check function is used to display content based on the existion of a bookmark for a certain object made by the user. The bookmark user check function format is as follows:

Function format:

|BOOKMARK_USER_CHECK(bookmark_value,bookmark_type,bookmark_group,username,bookmark_privacy,bookmark_status,label,label_visible)|

where:

  • bookmark_value - the code of the object for which the bookmark was created (url, user code, partner code, product code etc.)
  • bookmark_type - 0 for URL, 1 for user, 2 for partner, 3 for product, 4 for classified, 5 for blog, 6 for auction, 7 for eGroup, custom
  • bookmark_group
  • username - the username of the user beeing checked
  • bookmark_privacy - private or public
  • bookmark_status - active is -1
  • label
  • label_visible - -1 for all, 0 for not visible only, 1 for visible only

Available datetime format keywords:

  • |SHOW_ONVISITOR_START_username|
  • |SHOW_ONVISITOR_END_username|
  • |SHOW_ONNOTUSED_START_username|
  • |SHOW_ONNOTUSED_END_username|
  • |SHOW_ONUSED_START_username|
  • |SHOW_ONUSED_END_username|

Example:

Service: |BOOKMARK_USER_CHECK(|PRODUCT_CODE|,3,,|USER_USERNAME|,-2,-1,,)|

|SHOW_ONNOTUSED_START_|USER_USERNAME||
content to be shown if no bookmarks were found
|SHOW_ONNOTUSED_END_|USER_USERNAME||

|SHOW_ONUSED_START_|USER_USERNAME||
content to be shown if a bookmarks was found
|SHOW_ONUSED_END_|USER_USERNAME||

back

Add a comment






Comments