hoangserip
09-23-2014, 03:14 PM
I did see the instructions in the article https://vborg.vbsupport.ru/showpost.php?p=2154205&postcount=6
$record = vB::$vbulletin->db->query_first("SELECT a.threadid
FROM " . TABLE_PREFIX . "cms_article AS a
JOIN " . TABLE_PREFIX . "cms_node ON(" . TABLE_PREFIX . "cms_node.contentid = a.contentid)
WHERE nodeid = " . $this->getNodeId());
$view->threadid = $record['threadid'];
I used threadid in templates in this format: {vb:raw threadid}
I have tried to do as directed by Lynne in vBulletin 4 Template Syntax: Links (https://vborg.vbsupport.ru/showthread.php?t=221572) but not working
:) Looking forward to the help !
$record = vB::$vbulletin->db->query_first("SELECT a.threadid
FROM " . TABLE_PREFIX . "cms_article AS a
JOIN " . TABLE_PREFIX . "cms_node ON(" . TABLE_PREFIX . "cms_node.contentid = a.contentid)
WHERE nodeid = " . $this->getNodeId());
$view->threadid = $record['threadid'];
I used threadid in templates in this format: {vb:raw threadid}
I have tried to do as directed by Lynne in vBulletin 4 Template Syntax: Links (https://vborg.vbsupport.ru/showthread.php?t=221572) but not working
:) Looking forward to the help !