Jump to content
Killersites Community

morigeau

New Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About morigeau

  • Rank
    New member
  1. morigeau

    PHP Newbie Question for Undefined Object

    Hello, I have since corrected the problem by removing all the script code from the file and moving it to a separate PHP file. Now I just PHP include, the PHP file I created with the script code, in another file and it shows up without the error. Thank you so much for your help above. Please ignore the file attachments as they do not apply anymore. Cheers, David index.php story_list_item.php config.php
  2. 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
  3. morigeau

    Need Help. Easiest Way to Find Div's

    =) Thank you! I know I most of what I say is probably very confusing. Sorry =( but yes this is what I am trying to accomplish. I had Dreamweaver open, but I couldn't figure out how to open up my site so that I could inspect the elements like I do in firebug. I will read some articles on how to do this in Dreamweaver now. Thank you for pointing me in the right direction. Cheers, David
  4. Hello everyone, Exactly what I am trying to do is learn how to find div id's within my Web page. I'm using firebug and for the most part it's not terribly difficult to find div id's in the backend because many of them are in the index.php, but there is always that one that no matter what pages I'm looking in I can never find. Basically there are elements within my web page that I am trying to create separate div id's for so that when I style one object it doesn't style 100 other objects the same way because there all in the same div. Any easy way to find div's? Is there a way to read firebug that will point me in the right direction? Anything would be appreciated. Thank you. Cheers, David
×