I did see the instructions in the article
https://vborg.vbsupport.ru/showpost....05&postcount=6
PHP Code:
$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 but not working

Looking forward to the help !