// As the Default renderhandler for the Forum Categories process even if the element is empty request.element.hasData = 1; // leave isStatic=0 so not to cache specific users data request.element.isStatic = 0; // Get the Configuration data appConfigStruct = application.ptForum.getAppConfig(); // Set the UI theme from the Configuration Element if ( LEN(appConfigStruct['forum_ui_theme']) ) UItheme = appConfigStruct['forum_ui_theme']; else UItheme = 'redmond'; // load jQuery headers application.ptForum.scripts.loadJQuery("1.3.2"); // load headers for jQuery thick box application.ptForum.scripts.loadADFLightbox(); // load header for jQuery UI application.ptForum.scripts.loadJQueryUI("1.7.2", UItheme); // Set the NEW THREAD URL from the Configuration Element if ( LEN(TRIM(appConfigStruct['new_thread_url'])) ) newThreadURL = appConfigStruct['new_thread_url']; else newThreadURL = request.subsitecache[1].url & 'lightbox/forums/add-thread.cfm'; // Get Page URLS topicsPageURL = Application.ptForum.forumsService.getTopicsURL(); threadsPageURL = Application.ptForum.forumsService.getThreadsURL(); messagesPageURL = Application.ptForum.forumsService.getMessagesURL(); // Get Custom Element Data (should be filtered by Topic Name/TopicID) items = attributes.elementInfo.elementData.propertyValues; parentStruct = Application.ptForum.topicsDAO.getTopicInfoByTopicID(TRIM(request.params.TopicID)); request.ptForum.topic = parentStruct.values; categoryStruct = Application.ptForum.categoriesDAO.getCategoryInfoByCatID(parentStruct.values.CatID); request.ptForum.category = categoryStruct.values; //clean up possible CSS attack qs = replaceList(cgi.query_string,"<,>",","); ParentID = ""; ParentName = ""; ParentDescription = ""; ParentCreatedDateTime = ""; if ( structKeyExists(parentStruct,"values") ) { if ( structKeyExists(parentStruct.values,"topicID") ) ParentID = parentStruct.values.topicID; if ( structKeyExists(parentStruct.values,"topicName") ) ParentName = parentStruct.values.topicName; } // initialize a record counter for displayed items itemCount = 0; // Set the page security pageSecurity = Application.ptForum.SecurityService.getPageSecurity("topicID", ParentID); //application.ADF.utils.dodump(pageSecurity, "pageSecurity", false); // Check if the user has an account, then give them post permission //if ( structKeyExists(request.user,'ptForum') AND StructKeyExists(request.user.ptForum,'profileid') AND LEN(TRIM(request.user.ptForum.profileid)) ) { //pageSecurity.canPostPage = true; //} // Get Forum Home URL ParentID = TopicID topic_home_url = Application.ptForum.forumsService.getHomeURL("topicID",ParentID); // LightBox Options AddRecordLinkText = "New Thread"; AjaxPath = application.ADF.ajaxProxy; AjaxBean = "forms_1_0"; renderForm = "renderAddEditForm"; formID = application.ptForum.getForumThreadsFormID(); dpid = 0; formResultHTML = ""; lightboxwidth = 500; lightboxheight = 400;

Topic: #ParentName#

Thread

Originator

Replies

Last Post

#userid#

#max(0,items[i].values.messageQty-1)#

#Application.ptForum.messagesService.getLastPostLinkFormatedString(items[i].values.lastpostMsgID,items[i].values.lastpostProfileID,items[i].values.lastPostDateTime)#

Sorry, but there are no threads available for this topic.