I seem to have hit a brick wall..
I',m modifying (only slightly) the Pligg 9.9.0
I'm storing extra data (array, which is serilzed) in the link_field1 in the DB.
I think retrive the data and display it with each story/link posted.
This is my code (or the bit that doesnt seem to do what it should!)
[link_summary.tpl]
Code:
{if $link_field1 neq ""}
<b>{$link_field1} </b>
{php}
$array = unserialize($link_field1);
{/php}
{foreach from=$array item=entry}
, <a href="{$entry->category_name}">:-:-:{$entry->category_safe_name}</a>
{/foreach}
{/if}
Code:
a:1:{i:0;O:8:"stdClass":2:{s:18:"category_safe_name";s:9:"MyTestData";s:13:"category_name";s:9:"My Test Data";}}
he for loop doesnt seem to be printing out the category_name and category_safe_name
why am I not getting the relvant print out, do i need to clean some cache (I've done this) or something? Could it be a server problem? Maybe a bug in the FrameWork? Could I possible have the wrong version of PHP??
This is all in the tpl file. I know the $link_field1 is fine as it shows data, the database holds the data too. So the only thing I can point to is the serialize method as show above? is that correct? shouldit be like that
Its driving me insane, I've been trying to get to the bottom of this for dayyys!! Huh Huh
Any help would be appreciated
Thanks in advance
Will




Linear Mode

