[SOLVED] Confused about how to insert Cforms Tell-a-Friend on a single post page
We've been using Cforms for a while on our group blog. Recently we changed over to Atahualpa. We use the Tell-a-Friend function to allow people to nominate posts for awards that we give out.
We only want the TAF form to show on the single post pages, under the comments. The Cforms instructions for that are: Code:
Simply add a <?php insert_cform(#); ?> (# = your form id) to your existing single.php and/or page.php template, e.g: |
what version of Atahualpa, WP, PHP?
What is the url? Try replacing the last line of 'The LOOP' (ATO->Style & edit CENTER COLUMN) HTML Code:
</div><!-- / Post --> HTML Code:
<?php if (is_single()) { |
thanks for the suggestion!! I'll give that a try right away - but to answer your questions:
WordPress Version 2.8.4 Atahualpa 3.4.1 (will probably upgrade to new one before I make the suggested edits though) PHP5 http://seasonsoflace.com |
putting it there gets it after every post on the front page. But we don't want it to display on the front page, just on the single post pages.
|
oops, I forgot the '<?php' and the closing '</div> - I fixed the code in post #2
|
okay that got me a whole string of this error on the main page and a single on the single page
Code:
Parse error: syntax error, unexpected ';', expecting ')' in /home/seasons/public_html/wp-content/themes/atahualpa/functions.php(478) : eval()'d code on line 25 Code:
<?php the_content('<p>Read the rest of this entry »</p>'); ?> |
ah s$#@...sorry I left out the closing'}' - code fixed in post #2....again...sigh
|
AWESOME!! this worked - thank you so much!
|
As a note - I actually ended up moving it down to the " Content below the loop" section - just after line about loading the comments template -
Doing that gets the form to display below the comments which is where our folks are used to seeing it. I deleted the extra line, because when moved below the loop it made the post print on the page twice. So the final code line was : Code:
|
All times are GMT -6. The time now is 06:52 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.