Hi
I'm in over my head, but hopefully someone can point me in the right direction?
I'm trying to automatically display a remote video (to members only) before each K2 item's fulltext in Item display. I have the video ID stored in an extra field called Media.
So I added this code to models/item.php in function prepareItem:
if($extraField->name == "Media"): $mediavalue = $extraField->value; endif;
$item->fulltext = "{jugaaccess Members},{jwplayer}&botr.file=http://content.bitsontherun.com/players/" . $mediavalue . "-UGxbzzKa.js{/jwplayer},{/jugaaccess}<br />" . $item->fulltext;
This does add the HTML, but in Item Display I see it exactly as shown below - the code is NOT interpreted by the relevant plugins.
<div class="itemIntroText">{jugaaccess Members},{jwplayer}&botr.file=http://content.bitsontherun.com/players/FAEoO6dC-UGxbzzKa.js{/jwplayer},{/jugaaccess} <br />The fulltext description....</div>
How do I get the plugins to work on it?
Can you tell me where in my coding infancy I have gone wrong?thanks very muchDex
FAEoO6dC
I'm in over my head, but hopefully someone can point me in the right direction?
I'm trying to automatically display a remote video (to members only) before each K2 item's fulltext in Item display. I have the video ID stored in an extra field called Media.
So I added this code to models/item.php in function prepareItem:
if($extraField->name == "Media"): $mediavalue = $extraField->value; endif;
$item->fulltext = "{jugaaccess Members},{jwplayer}&botr.file=http://content.bitsontherun.com/players/" . $mediavalue . "-UGxbzzKa.js{/jwplayer},{/jugaaccess}<br />" . $item->fulltext;
This does add the HTML, but in Item Display I see it exactly as shown below - the code is NOT interpreted by the relevant plugins.
<div class="itemIntroText">{jugaaccess Members},{jwplayer}&botr.file=http://content.bitsontherun.com/players/FAEoO6dC-UGxbzzKa.js{/jwplayer},{/jugaaccess} <br />The fulltext description....</div>
How do I get the plugins to work on it?
Can you tell me where in my coding infancy I have gone wrong?thanks very muchDex
FAEoO6dC