Hello,
I am having a super difficult time with this one. I'm very new to PHP and am trying my very best to figure out these problems on my own, but am not quite there yet. If anybody can help I would appreciate it very much. Here are the details...I am using a script for thumbs up and thumbs down. I placed the script include(""); at the very top of my index.php file and included the correct CSS links and everything else that was included and it works fine and I get no errors. However, there is another file that I am using that I would like this script to show up in so what I did is the exact same thing within this file as I did with the index.php file I used i.e. include(""); to reference the php file script and I included all the CSS and script files, same as I did with the index.php, only now no matter what I do I get the following error on the front of my Web page...
Fatal error: Call to a member function setup() on a non-object in tmpl:///home/content.../plugins/system/socialengine/uikit/story/tmpl/story_list_item.php on line 8
on line 8 this is the php code that I am using
<?php $thumbsup->setup('story_thumbs', 'mini-thumbs', array('align' => 'right'))->render() ?>
this is the same code that I used in the index.php only in the index.php I get no error? I'm not sure what the difference is. How come in index.php the object is ok, but in story_list_item.php the object is undefined? It's the same code same idea. Anyways any help would be awesome I love learning about these things, but sometimes they can be frustrating. Thanks for reading.
Cheers,
David