From: Michael C. <mi...@ca...> - 2003-02-17 21:37:08
|
Matt, Is there a way to test that a string is a serialized string? Sadly, looking at something and saying it looks good doesn't mean that it's in the correct format. Michael |
From: Eloi G. <el...@re...> - 2003-02-17 23:59:03
|
$array = unserialize($string); if ($array !==false) or if (is_array($array)) echo "Yay, Eloi!"; ----- Original Message ----- From: "Michael Cannon" <mi...@ca...> To: <php...@li...> Sent: Monday, February 17, 2003 5:40 PM Subject: [Phpwebsite-developers] $variable unserialize() failed > Matt, > > Is there a way to test that a string is a serialized string? Sadly, looking at > something and saying it looks good doesn't mean that it's in the correct format. > > Michael > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > |
From: Matthew M. <ma...@tu...> - 2003-02-18 01:27:15
|
It was my fault. I was not checking the data properly. When I echoed the variable it stated 'Array'. So I thought it was trying to pass one. Actually, the word 'Array' was what was saved in the database. So it was trying to unserialize the word array. The process that was saving the data as such was fixed. It just took me a while to figure it out because it looked innocent. Thanks for the response though everyone! Matt |
From: R. S. B. <Ba...@Ba...> - 2003-02-18 00:02:12
|
Could anyone help me out here... I'm trying to figure out how to add an image to the main menu... to the left each entry in to the menu... for simplicity.. I don't need it to change for visited, active, inactive... I can figure that out hopefully after.. once I get going. I'm assuming that this is going to be using the templates from /mod/menuman I have messed with these files a little..and cant get any results.. to be displayed... I have read the readme.txt & template.txt in the doc dir of menuman... to me.. its kind of vague.. maybe not others... If you could show me how to modify they actual files.. I then should be able to modify/copy the entries in the a theme... I wanted to work on the system default files first.. I know this is a bad idea.. but it will help me in figuring out exactly which files to modify... then I can restore the system defaults... and create the files that I need in my themes dir. Anyway.. any help would be appreciated Scott |
From: R. S. B. <Ba...@Ba...> - 2003-02-18 15:13:55
|
Here's a little more info.... I have gotten it to work by editing the: ./mod/menuman/templates/default/menuitem0.tpl here it is... Its the default file... except for my <img ...bla..bla..bla> lines... *************** <!-- BEGIN InactiveCell --> <td align="left" nowrap="nowrap"> {INACTIVE_INDENT} <!-- BEGIN InactiveItem --> <a href={INACTIVE_ITEM_HREF}>{INACTIVE_ITEM}</a>  <!-- END InactiveItem --> <img src="http://hardl-link-for-testin/images/layout/down.gif" alt="htl"> <a href={INACTIVE_HREF}>{INACTIVE_TITLE}</a> </td> <!-- END InactiveCell --> <!-- BEGIN ActiveCell --> <td align="left" nowrap="nowrap"> <img src="http://hardl-link-for-testin/images/layout/up.gif" alt="htl"> {ACTIVE_INDENT} <!-- BEGIN ActiveItem --> <a href={ACTIVE_ITEM_HREF}>{ACTIVE_ITEM}</a>  <!-- END ActiveItem --> <a href={ACTIVE_HREF}>{ACTIVE_TITLE}</a> </td> <!-- END ActiveCell --> <!-- BEGIN OpenCell --> <td align="left" nowrap="nowrap"> {OPEN_INDENT} <!-- BEGIN OpenItem --> <a href={OPEN_ITEM_HREF}>{OPEN_ITEM}</a>  <!-- END OpenItem --> <a href={OPEN_HREF}>{OPEN_TITLE}</a> </td> <!-- END OpenCell --> ************************************ Now... this works fine when its in the or dir.. but when I put it in the /themes/templates/menuman/templates/default/menuitem0.tpl it does not work... same file... just doesn't work... This seems to work for the Cal mod... I copied the ./themes/AHP/templates/calendar to my themes.. /templates/ and it worked fine Any Ideas ??? Scott ----- Original Message ----- From: "R. Scott Baer" <Ba...@Ba...> To: <php...@li...> Sent: Monday, February 17, 2003 7:02 PM Subject: [Phpwebsite-developers] Theme -- Template help > Could anyone help me out here... > I'm trying to figure out how to add an image to the main menu... to the left > each entry in to the menu... for simplicity.. > > I don't need it to change for visited, active, inactive... > I can figure that out hopefully after.. once I get going. > > I'm assuming that this is going to be using the templates from > > /mod/menuman > > I have messed with these files a little..and cant get any results.. > to be displayed... > > I have read the readme.txt & template.txt in the doc dir of menuman... > to me.. its kind of vague.. maybe not others... > > If you could show me how to modify they actual files.. I then should be able > to modify/copy the entries in the a theme... > I wanted to work on the system default files first.. I know this is a bad > idea.. but it will help me in figuring out exactly which files to modify... > then I can restore the system defaults... and create the files that I need > in my themes dir. > > Anyway.. any help would be appreciated > > Scott > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > |