Jump to content

call links from database in vbulletin template


qatarson

Recommended Posts

 

Hi Im using vbdownloads plugin it is save links called (mirrors) in blob feild in database as following

<input type="text" class="bginput" name="download[mirrors][0]" value="{$download[mirrors][0][link]}" tabindex="1"/>

<input type="text" class="bginput" name="download[mirrors][1]" value="{$download[mirrors][1][link]}" tabindex="1"/>

<input type="text" class="bginput" name="download[mirrors][2]" value="{$download[mirrors][2][link]}" tabindex="1"/>

 

these mirrors links display in download links page as template (dbtech_downloads_download) with following code

 

<if condition="$download['mirrorList'] AND $vboptions['dbtech_downloads_mirrors_enabled']">
<h2 class="downloads-filelist-heading">$vbphrase[dbtech_downloads_mirrors]</h2>
<ul class="stats">
$download[mirrorList]
</ul>
</if>

 

while i have another template called dbtech_downloads_download_mirrorbit to display all mirror links in sequence by repate the following code

<a href="$mirror[link]">$mirror[link]</a>

 

I want to display these mirrors links separately and distribute it by it is link entry number without repetition so i can call each link in a particular place or even just specific link, I tried to call the first link and second by following code  $mirror[link][0] & $mirror[link][1] but this didn't worked with me.

 

can anyone help with this

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.