Forum OpenACS Q&A: User Intrests

Collapse
Posted by amit singh on
Is the users intrests ported to openacs. If the categories are
functional and the same does not figure out on the users homepage. The
commented out code is as
      follows

      # set selection [ns_db select $db "select # c.category, #
c.category_id, # decode(ui.category_id,NULL,NULL,'t') as selected_p #
from categories c, (select * # from
      users_interests # where user_id = $user_id # and interest_level
<blockquote> 0) ui # where c.enabled_p = 't' # and c.category_id =
</blockquote>
ui.category_id(+)"] # set interest_items "" #
      while { [ns_db getrow $db $selection] } { #
set_variables_after_query # if { $selected_p == "t" } { # append
interest_items " $category
      " # } else { # append interest_items " $category
      " # } # } # if ![empty_string_p $interest_items] { # ns_write "
# <#h3>Your Interests (According to Us)

      # <#form method=POST action="interests-update.tcl"> #
<#blockquote> # $#interest_items # <#br> # <#br> # <#input type=submit
value="Update Interests"> #
      <#/blockquote> # <#/form> # " # }
Collapse
2: Response to User Intrests (response to 1)
Posted by amit singh on
Can i find any inputs please