Author Topic: Sponsor Link Question  (Read 1275 times)

0 Members and 1 Guest are viewing this topic.

Offline Tim

  • New Users
  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Sponsor Link Question
« on: March 11, 2014, 10:30:31 AM »
I understand how to add a banner for the relevant sponsor under each video as per {banner sponsor="XXX"}

But please can you let me know how I can add a text link or specific HTML for relevant sponsor under the videos?

Offline peeperd

  • Newbie
  • *
  • Posts: 46
  • Karma: +1/-0
    • View Profile
Re: Sponsor Link Question
« Reply #1 on: August 06, 2014, 04:18:42 PM »
towards the top

Code: [Select]
{if $video.sponsor_id}
{sponsor var=$sponsor sponsorid=$video.sponsor_id}
{/if}

where you want the url
Code: [Select]
{$sponsor.url}

look in docs under common varriables

Code: [Select]
Assuming the sponsor is being accessed through a template variable named $sponsor, the following values are available:

    $sponsor.sponsor_id - The ID number associated with the sponsor
    $sponsor.name - The sponsor's name
    $sponsor.url - The sponsor's main site URL
    $sponsor.us2257_url - The sponsor's 2257 URL (useful for adult sites)
    $sponsor.videos - The number of videos associated with the sponsor

Unofficial JMB Support Forums

Re: Sponsor Link Question
« Reply #1 on: August 06, 2014, 04:18:42 PM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1084 Views
Last post March 25, 2013, 07:20:46 AM
by vince81540
0 Replies
825 Views
Last post July 11, 2013, 10:18:30 PM
by acmescripts
1 Replies
982 Views
Last post December 10, 2013, 10:35:55 PM
by a4evermedia
0 Replies
945 Views
Last post January 27, 2014, 02:56:00 PM
by ghostmeat
1 Replies
1093 Views
Last post March 11, 2014, 09:25:34 AM
by Tim