// 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 UItheme = 'redmond'; if ( structKeyExists(appConfigStruct,"forum_ui_theme") AND LEN(appConfigStruct['forum_ui_theme']) ) UItheme = appConfigStruct['forum_ui_theme']; // 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 newMesssageURL = request.subsitecache[1].url & 'lightbox/forums/add-message.cfm'; if ( structKeyExists(appConfigStruct,"new_thread_url") AND LEN(TRIM(appConfigStruct['new_thread_url'])) ) newMesssageURL = appConfigStruct['new_message_url']; // Get Page URLS topicsPageURL = Application.ptForum.forumsService.getTopicsURL(); threadsPageURL = Application.ptForum.forumsService.getThreadsURL(); messagesPageURL = Application.ptForum.forumsService.getMessagesURL(); // Set the Unsubscribe User Mananager URL from the Configuration Element unsubscribeDashboardURL = ""; if ( structKeyExists(appConfigStruct,"UNSUBSCRIBE_DASHBOARD_URL") AND LEN(TRIM(appConfigStruct['UNSUBSCRIBE_DASHBOARD_URL'])) ) unsubscribeDashboardURL = appConfigStruct["UNSUBSCRIBE_DASHBOARD_URL"]; // Set the Unsubscribe Confirm URL from the Configuration Element unsubscribeConfirmURL = ""; if ( structKeyExists(appConfigStruct,"UNSUBSCRIBE_CONFIRM_URL") AND LEN(TRIM(appConfigStruct['UNSUBSCRIBE_CONFIRM_URL'])) ) unsubscribeConfirmURL = appConfigStruct["UNSUBSCRIBE_CONFIRM_URL"]; A Thread ID was not passed in! // Get Custom Element Data (should be filtered by Topic Name/TopicID) items = attributes.elementInfo.elementData.propertyValues; parentStruct = Application.ptForum.threadsDAO.getThreadInfoByThreadID(TRIM(request.params.threadid)); request.ptForum.thread = parentStruct.values; topicStruct = Application.ptForum.topicsDAO.getTopicInfoByTopicID(parentStruct.values.TopicID); request.ptForum.topic = topicStruct.values; categoryStruct = Application.ptForum.categoriesDAO.getCategoryInfoByCatID(topicStruct.values.CatID); request.ptForum.category = categoryStruct.values; ParentID = ""; ParentName = ""; ParentDescription = ""; ParentCreatedDateTime = ""; if ( structKeyExists(parentStruct,"values") ) { if ( structKeyExists(parentStruct.values,"threadid") ) ParentID = parentStruct.values.threadid; if ( structKeyExists(parentStruct.values,"threadName") ) ParentName = parentStruct.values.threadName; if ( structKeyExists(parentStruct.values,"threadCreatedDateTime") ) ParentCreatedDateTime = Application.CS.data.FROMHTML(parentStruct.values.threadCreatedDateTime); } //clean up possible CSS attack qs = replaceList(cgi.query_string,"<,>",","); // LightBox Options AddRecordLinkText = "Edit Post"; // Set the page security pageSecurity = Application.ptForum.SecurityService.getPageSecurity("ThreadID", 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 = threadid thread_home_url = Application.ptForum.forumsService.getHomeURL("threadid",ParentID); // LightBox Options AddRecordLinkText = "Edit Post"; AjaxPath = application.ADF.ajaxProxy; //AjaxBean = "forms_1_0"; //renderEditForm = "renderAddEditForm"; AjaxBean = "messagesForms"; renderEditForm = "renderAddEditForm"; subscribeBean = "subscriptionsService"; subscribeMeathod = "subscribeUserByThreadID"; subscribeLinkText = "Subscribe"; formID = application.ptForum.getForumMessagesFormID(); dpid = 0; formResultHTML = ""; lightboxwidth = 600; lightboxheight = 400; unsubscribeConfirmLinkText = "Unsubscribe"; unsubscribeLBwidth = 350; unsubscribeLBheight = 200;
You are currenlty subscribed to this Thread. Click here to unsubscribe.
Manage your subscriptions

Thread: #ParentName#

Created on: #dateFormat(ParentCreatedDateTime,"mm/dd/yy")# #timeFormat(ParentCreatedDateTime,"hh:mm tt")#

Replies: #max(0,ArrayLen(items)-1)#

#userid#



Joined: #dateFormat(joindatetime,"mm/dd/yy")#NA

Posts: #postcount#?

#items[i].values.msgName#
#dateFormat(postedDT,"mm/dd/yy")# #timeFormat(postedDT,"h:mm tt")#

","{{br}}","all")> ","all")> ","all")> #postMsgBody#

#Application.ptForum.messagesService.getPostModifiedByFormatedString(items[i].values.msgModifiedByProfileID,items[i].values.msgModifiedDate)#

Link | Top | Bottom

Sorry, but there are no messages for this thread.

if ( ArrayLen(items) EQ 0 ) AddRecordLinkText = "Post to this Thread"; else AddRecordLinkText = "Post a Reply";
#AddRecordLinkText#