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

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.