Sorry, but I really don't know what you're telling me here. I'm not a coder
Can you give me a hint by pasting what the entire plugin code should look like? It'll be easier for me to dissect it carefully from there.
--------------- Added [DATE]1240546636[/DATE] at [TIME]1240546636[/TIME] ---------------
Ok, I tried this:
Code:
$blocklist = array_merge($blocklist, array(
'mymodification' => array(
'class' => 'Shelfari',
'title' => 'My Shelfari Bookshelf',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_Shelfari extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_shelfari';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['shelfari'] != '');
}
function prepare_output($id = '', $options = array())
{
$var = $this->profile->userinfo['field44'];
$this->block_data['shelfari'] = '<embed width="700" height="700" src="http://www.shelfari.com/ws/shelf.swf" wmode="transparent" FlashVars="UserName' . $var . '&ShelfType=list&verE=s1.5&ListType=isowned&booksize=large&AmazonAssociate=taljes-20&Alpha=0&BGColor=FFFFFF"></embed>';
}
}
now, the output works except one more problem:
The actual widget is giving an error stating that a username was not provided and must be provided.
--------------- Added [DATE]1240547063[/DATE] at [TIME]1240547063[/TIME] ---------------
Fixed. I had to had the = after UserName.
Thanks Lynne.
One quick question, I'd like to make an xml plugin file so people can install this as a product. Could I trouble you to explain how this can be done?