Search found 10 matches

by GJM
Sat Sep 29, 2012 2:59 am
Forum: PHP - Code
Topic: Fatal error: Call to undefined function
Replies: 4
Views: 2369

Re: Fatal error: Call to undefined function

..... So I was thinking that maybe it wasn't installed. Thanks for the reply requinix. Yes I have it installed and Activated. I actually uninstalled and reinstalled it just to be sure. I am pretty sure it is how I have written the code. That is why I was hoping to have someone look at how I have wr...
by GJM
Sat Sep 29, 2012 2:55 am
Forum: PHP - Code
Topic: Fatal error: Call to undefined function
Replies: 4
Views: 2369

Re: Fatal error: Call to undefined function

That error message means that it could not find a function named types_render_field, which I must assume, should be part of Wordpress, so my first guess is that your Wordpress library is either not being initiated or is missing that function. Thanks for the reply califdon. I am still very new to ph...
by GJM
Sat Sep 22, 2012 2:58 am
Forum: PHP - Code
Topic: Fatal error: Call to undefined function
Replies: 4
Views: 2369

Fatal error: Call to undefined function

At this very moment I am attempting to play with the "Types" plugin for Wordpress. The Types Fields API page here: http://wp-types.com/documentation/functions/ suggests the following syntax: <?php echo(types_render_field("field-slug", array("arg1"=>"val1",&quo...
by GJM
Fri Mar 26, 2010 11:33 am
Forum: PHP - Code
Topic: Referencing a picture based on a url
Replies: 4
Views: 62

Re: Referencing a picture based on a url

THANK YOU Alkis!!!! <?php $small_logo='<img src="http://www.mysite.com/image/small-logo.png" />'; print $small_logo; ?> worked like a charm. learning php I find is kinda like patting my head and rubbing my belly at the same time :lol: (I'm not that coordinated) but when you see it done, it...
by GJM
Thu Mar 25, 2010 10:19 pm
Forum: PHP - Code
Topic: Referencing a picture based on a url
Replies: 4
Views: 62

Referencing a picture based on a url

I have some php code that is printing a sites 'logo' and 'name' at the top of an email and making it a link back to the site. It looks like this: <td>             <h1 style="font-family:Arial,Helvetica,sans-serif; font-size:18px;"><a href="<?php print $site_url; ?>" title="<...
by GJM
Fri May 01, 2009 2:27 pm
Forum: PHP - Code
Topic: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING
Replies: 8
Views: 891

Re: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING

That's awesome folks! It is working perfectly. - Yes, you're right, use a backslash in front of the apostrophe. But there are two more in there you missed. I didn't think that those other 2 needed to have the backslash on them because the code hadn't changed color ... stupid me. Again, thank you ver...
by GJM
Fri May 01, 2009 1:37 pm
Forum: PHP - Code
Topic: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING
Replies: 8
Views: 891

Re: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING

..... that is weird, I am not sure why the backslashes didn't showup in the Fri May 01, 2009 10:39 am post, but now only the ( ' ) are a different color . . . . . . . I did put them in when I posted it, I am sure of it. I'm not sure what to say.

Wish I could be more help. :?
by GJM
Fri May 01, 2009 12:13 pm
Forum: PHP - Code
Topic: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING
Replies: 8
Views: 891

Re: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING

hmmmm, I think I missed something. I quickly tried it and my interpretation of the solution didn't work.

Sorry for the bother, but I am not sure what it is I am missing.

Again, thanks for the help :?
by GJM
Fri May 01, 2009 11:39 am
Forum: PHP - Code
Topic: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING
Replies: 8
Views: 891

Re: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING

I feel kinda dumb asking this, but, how did you turn on syntax highlighting? It's interesting how these syntax errors are suddenly visible with syntax highlighting The second question I have is with regard to the solution......where the code changes color is in between two single quotes ( ' ). If I ...
by GJM
Fri May 01, 2009 3:59 am
Forum: PHP - Code
Topic: Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING
Replies: 8
Views: 891

Parse err: syntax err, unexpected T_CONSTANT_ENCAPSED_STRING

I am very new to php coding. Your patients is appreciated. Here is the error that I am getting: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/tp/public_html/sites/all/modules/custom/tp/tp.module on line 1905 I have a link that works perfectly when written like this:   $ou...