The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VBCMS Plugin Woes
Hi Team,
I'm trying to write a plugin that will affect each of the articles on the VBCMS home. I want to evaluate something for each article, and if i find what I am looking for, I want to show some text or an image on that specific preview. So, I've run into some issues: 1) I cannot even get anything from a plugin to show in the "vbcms_content_article_preview" template. None of the vbcms_xxxx hooks worked, so i even tried global_start (which im using for similar logic in navbar template), which still doesnt work. Here's my test code: Hook: global_start Code: $testme = "abc123cba"; vB_Template:reRegister('vbcms_content_article_pr eview',array('testme' => $testme)); inside my vbcms_content_article_preview template, i have: :{vb:raw testme}: All I see is "::", the variable doesnt show. ---------------------------------------------------------- 2) I want to process my logic for EACH article on the page. So I need a hook that gets fired multiple times, and allows me to send output to the template in question for each iteration. I have paid support over at vbulletin.com, but they sent me over here anyways, as youse guys are the bomb. ---------------------------------------------------------- An example of this plugin, might be to show a small graphic for new articles, vs articles over a week old, vs articles over a month old. Please give a hand, as Im ripping out what little hair i have left!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|