View Cart|Wish List|Login|Register | Saturday, February 04, 2012
 
 Search   ..:: Support &
    Service
  Forum
::..
 
    Minimize
www.catalooksupport.com ::: another place for CATALooK.netStore support

    Minimize
SearchForum Home
     
  DotNetNuke  CATALooK.netStore  problems with h...
 problems with help desk
 
 9/23/2007 4:36:01 AM
jlperez
25 posts


problems with help desk

This Help Desk does not work properly...when a customer asks something to a seller and after that he goes to the HelpDesk tab he does not see his post, and the other problem is that all vendors who has threads are able to see threads of other users...

these problems are due to the store procedure CAT_ThreadGetAll...I changed the following code

DECLARE @sql nvarchar(2000)
SELECT  @sql = 'INSERT INTO #PageIndex (ThreadID) SELECT CAT_Threads.ThreadID' +
  ' FROM CAT_Threads, CAT_Posts (nolock)' +
  ' WHERE (CAT_Posts.PostID = CAT_Threads.LastPostedPostID)' +
  ' AND (CAT_Threads.PortalID = ' + CONVERT(varchar, @PortalID) + ')' +
  ' AND ((CAT_Threads.CategoryID = ' + CONVERT(varchar, @CategoryID) +  ') OR (' + CONVERT(varchar, @CategoryID) + '= -1))' +
  ' AND ((CAT_Threads.NotifiedUserID = ' + CONVERT(varchar, @NotifiedUserID) +  ') OR (' + CONVERT(varchar, @NotifiedUserID) + '= -1))' +
  ' AND ((CAT_Threads.NotifiedUserID = ' + CONVERT(varchar, @CurrentUserID) +  ') OR (' + CONVERT(varchar, @CurrentUserID) + ' in (select CreatedByUser from CAT_Threads inner join CAT_Products on CAT_Threads.CategoryID = CAT_Products.ProductID)) OR (' + CONVERT(varchar, @CurrentUserID) + '= -1)) ' +
  @Filter +' ORDER BY ' + @Sort 


by this


DECLARE @sql nvarchar(2000)
SELECT  @sql = 'INSERT INTO #PageIndex (ThreadID) SELECT CAT_Threads.ThreadID' +
  ' FROM CAT_Threads, CAT_Posts (nolock)' +
  ' WHERE (CAT_Posts.PostID = CAT_Threads.LastPostedPostID)' +
  ' AND (CAT_Threads.PortalID = ' + CONVERT(varchar, @PortalID) + ')' +
  ' AND ((CAT_Threads.CategoryID = ' + CONVERT(varchar, @CategoryID) +  ') OR (' + CONVERT(varchar, @CategoryID) + '= -1))' +
  ' AND ((CAT_Threads.NotifiedUserID = ' + CONVERT(varchar, @NotifiedUserID) +  ') OR (' + CONVERT(varchar, @NotifiedUserID) + '= -1))' +
  ' AND ((CAT_Threads.NotifiedUserID = ' + CONVERT(varchar, @CurrentUserID) +  ') OR ' +
              '(EXISTS (SELECT * FROM CAT_Products WHERE ProductID = CAT_Threads.CategoryID AND CreatedByUser = ' + CONVERT(varchar, @CurrentUserID) + ')) OR ' +
              '(EXISTS (SELECT * FROM CAT_Posts WHERE ThreadID = CAT_Threads.ThreadID AND CreatedByUser = ' + CONVERT(varchar, @CurrentUserID) + ')) OR ' +
              '(' + CONVERT(varchar, @CurrentUserID) + '= -1)) ' +
  @Filter + ' ORDER BY ' + @Sort 

 9/24/2007 6:02:08 PM
jlperez
25 posts


Re: problems with help desk

Also, you must change the store procedure named CAT_ThreadGetCount..i changed the DECLARE section by this

DECLARE @sql nvarchar(2000) SELECT @sql = 'SELECT COUNT (DISTINCT CAT_Threads.ThreadID)' + ' FROM CAT_Threads, CAT_Posts (nolock)' + ' WHERE CAT_Posts.PostID = CAT_Threads.LastPostedPostID' + ' AND CAT_Threads.PortalID = ' + CONVERT(varchar, @PortalID) + ' AND (CAT_Threads.CategoryID = ' + CONVERT(varchar, @CategoryID) + ' OR ' + CONVERT(varchar, @CategoryID) + '= -1)' + ' AND (CAT_Threads.NotifiedUserID = ' + CONVERT(varchar, @NotifiedUserID) + ' OR ' + CONVERT(varchar, @NotifiedUserID) + '= -1)' + ' AND ((CAT_Threads.NotifiedUserID = ' + CONVERT(varchar, @CurrentUserID) + ') OR ' + '(EXISTS (SELECT * FROM CAT_Products WHERE ProductID = CAT_Threads.CategoryID AND CreatedByUser = ' + CONVERT(varchar, @CurrentUserID) + ')) OR ' + '(EXISTS (SELECT * FROM CAT_Posts WHERE ThreadID = CAT_Threads.ThreadID AND CreatedByUser = ' + CONVERT(varchar, @CurrentUserID) + ')) OR ' + '(' + CONVERT(varchar, @CurrentUserID) + '= -1)) ' + @Filter

 9/26/2007 5:41:01 PM
host
1831 posts
1st


Re: problems with help desk
 Modified By host  on 9/26/2007 5:43:02 PM)
Thanks! I will check this immediately.
 10/8/2007 10:14:19 PM
host
1831 posts
1st


Re: problems with help desk
Fixed in the v05.04.01, thanks!
  DotNetNuke  CATALooK.netStore  problems with h...

    Minimize
www.excommerce.com ::: eXcommerce are a dedicated reseller of Catalook. If you want the features of catalook without the hassle of setup and maintenance and want some extra support options please check our services.
      

References / Live Stores | Forum | Trial Downloads | Resource Directory | Release History | Support Requests | Referral Program | Contact
CATALooK |  Terms Of Use |  Privacy Statement
Copyright 2002-2010 CATALooK