Help!

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
BamaRob

Help!

Post by BamaRob »

Okay, so I've copied funtion.contact_form.php to function.titled_contact_form.php, made some changes and got it to working. I added this:

Code: Select all

if (!empty($params['title'])){
          echo "<p class=smalltitle>{$params['title']}</p><p></p>";
}
Now, if I do this:

Code: Select all

{titled_contact_form email="sombody.somewhere.com" title='Email Somebody'}
It returns what I expect:

Code: Select all

<p class=smalltitle>Email Somebody</p><p></p>
etc.
etc.
However, if I do this:

Code: Select all

{titled_contact_form email="sombody.somewhere.com" title="Email Somebody"}

Notice the difference in the quotes around Email Somebody
It returns:

Code: Select all

<p class=smalltitle>"Email</p><p></p>
Can anyone tell me why it don't like the double quotes (")?

Thanks,

BR
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Help!

Post by Ted »

Just a hunch. Try...

Code: Select all

if (!empty($params['title'])){
          echo "<p class=smalltitle>{".$params['title']."}</p><p></p>";
}
Locked

Return to “Modules/Add-Ons”