Vbulletin插件调用值


vbulletin plugin call value

我在vBulletin中使用插件。这个插件将镜像链接存储在数组或类似的东西中,我不确定我是否真的想通过单独调用来显示页面上的每个镜像链接。

插件中的代码如下:

{vb:var mirrorid=$i=1}

返回第一个镜像id值,即1;和:

{vb:var mirror.link}

返回镜像链接的值。

如何直接返回所有镜像链接值或其他值?

我尝试例如{vb:var mirror.link=$i=3}显示第三链接值,但没有为我工作。

If you are using vb4 then you can loop through array in template like
lets you have an array 
$binaries = array( 
    0 => array( 
        'subject'    => 'Subject 1', 
        'binaryid'    => 1, 
        'groups'    => array('alt.binaries.teevee', 'alt.binaries.multimedia') `enter code here`
    ), 
    1 => array( 
        'subject'    => 'Subject 2', 
        'binaryid'    => 2, 
        'groups'    => array('alt.binaries.xvid') 
    ), 
);  
and in vb4 you can pass array to template by registering variable.Then in your template you can easily access array values like
<vb:each from="binaries" value="binary">
    {vb:raw binary.subject}
    {vb:raw binary.binaryid}
</vb:each>
if you are using VB 3.8 the you can not loop through array, you have to pass single variable to template or you can loop array in your php plugin code