Log in

View Full Version : How to get rid of "Array"


Valter
06-11-2006, 09:53 AM
Why this in plugin:

$cyb1['datejoined'] = vbdate($vbulletin->options['dateformat'], $get_member['joindate']);

with this in template:
$cyb1[datejoined]

gives me on forumhome "Array" above table I created.


Thanks for any help.

DrewM
06-11-2006, 10:26 AM
try this $cyb1['datejoined']

Valter
06-11-2006, 10:47 AM
Thanks but nope, in templates we don't use '

DrewM
06-11-2006, 11:38 AM
did you try it? Did you get a error?

Code Monkey
06-11-2006, 02:06 PM
Just asign it to a straight var instead of an array item, $cyb1datejoined. And see if that works.

Adrian Schneider
06-11-2006, 03:50 PM
Post your template (or at least a few lines in either direction of it).

Code Monkey
06-11-2006, 03:58 PM
Is that code being used in another code loop?

Valter
06-12-2006, 06:21 AM
Just asign it to a straight var instead of an array item, $cyb1datejoined. And see if that works.
This was easy LOL but when you are tired nothing's easy. It works perfect now. Thanks JumpD, thanks Larrysw and SirAdrian too.