Can anyone tell me which are the top and bottom lines I should be removing?
Not making much sense there. Are you trying to add some functionality tied to a plugin? What are you trying to achieve?
My apologies. As per the OpenId plugin found here I was attempting to at the code
<?php include dirname(__FILE__).’/../../plugins/openid/openidform.php’; ?>
in my theme’s Comments.php file. I am currently using the theme Waterlily 2.0 which seems to have a fairly standard comments.php.
However, I think I am inserting it into the wrong place or deleting too much / little of the original code as I always recieve an error:
“Parse error: parse error, unexpected T_ELSE in” (my file at line something depending on what I do)
Sometimes its an “unexpected $” if I try to fix the code.
Can anyone tell me which code I should be removing and inserting code in its place?
Thank you!
A parse error is usually due to improper structure. I’m guessing or deleting too much / little of the original code is probably accurate.
The instuctions at that link: Edit your template and replace your comments form code (likely in comments.php) with
<?php include dirname(__FILE__).'/../../plugins/openid/openidform.php'; ?>
Based on that, suggest you look for the <form tag, find the end </form> and comment that out. Start with <!-- right before the ‘form’ and end with --> right after.
Then insert your code right above or below…
I love you! Thanks a million
Welcome! Please mark this ‘Resolved’, ok?
(@cleverclio)
19 years, 7 months ago
Hiya,
Can anyone give me some advice. I need to replace the “comments form” in my comments.php file (Waterlily 2.0 Theme) with a include string but every time I do I recieve a Parse error message. Can anyone tell me which are the top and bottom lines I should be removing?
Thanks in advances!