Okay,
I have a completely different version now which hopefully should work for you. I’m still not 100% certain that this is all the best way to do things so hopefully Derek can chime in and remind me where I am going wrong if I am as I re-read through this thread and to tell the truth even I am confused and I’m the one that wrote the plugin!! 😉
This version works in this way :
{exp:one_voice mode="url_title"} or {exp:one_voice mode="entry_id"}
{if already_spoken}
Sorry you have already posted a comment and so are not allowed to post another!
{if:else}
{exp:comment:form preview="{my_template_group}/comment_preview"}
Standard comment form code goes in here
{/exp:comment:form}
{/if}
{/exp:one_voice}
This totally relies on the important information - in other words the url_title or the entry_id being the last segment in the URL string.
You then just set the mode=”“ parameter to be either url_title or entry_id depending on the way you have your URLs set up and hopefully it should all work?
If you can let me know if it works for you and also Derek if you could let me know if I’m still doing anything wrong with this or more importantly anything dangerous and if so then I will look into this some more.
Hope it all works out good though 😊
Best wishes,
Mark
Ooh and also - it’s getting late here so I could be wrong on this one 😉 I’m pretty sure that if you are logged out of the system - this plugin needs you to be logged in to work as it needs to use the member_id in the query - then I’m pretty sure that it will just show the error message at the moment. By error message I mean the :
Sorry you have already posted a comment and so are not allowed to post another!
I meant to figure out what to do in those sorts of circumstances. I could take out the FALSE on the conditional and then you could just use standard :
{if logged_in}
{/if}
to do whatever you need. Ideas welcomed on that one 😉
Best wishes,
Mark
Still getting that funky php error at the top of my page: http://bridalclarity.com/index.php?/bc/info/15/
Here’s my code. I think I have it correct.
{exp:one_voice mode="entry_id"}
{if already_spoken}
Sorry you have already posted a comment and so are not allowed to post another!
{if:else}
{exp:comment:form weblog="{my_weblog}"}
<div id="comm_form">
{if logged_out}
<strong>Name:</strong>
<input name="name" type="text" class="input" /></p>
<strong>Email:</strong>
<input name="email" type="text" class="input" /></p>
{/if}
<strong>Comment:</strong>
<textarea name="comment" class="input" height:200px;">{comment}</textarea></p>
<input type="checkbox" name="save_info" value="yes" {save_info}" />Remember my info the next time I visit?
<input type="checkbox" name="notify_me" value="yes" {notify_me} />Notify me of followup comments
{if captcha}
<b>Only because of darn Spammers, please enter the word you see in the image below:</b>
{captcha}
<input type="text" name="captcha" value="{captcha_word}" size="20" maxlength="20" /></p>
{/if}
<input type="submit" name="submit" value="Submit »" />
</div>
{/exp:comment:form}
{/if}
{/exp:one_voice}
Hey Mark. I’m just now getting to trying this. I assume you updated the zip file at the beginning, correct? Thanks. Marshall.
Actually no I hadn’t updated that one yet. The new version is a few posts above this one. I was hoping that you could possibly test it out and see if it works first (as a guinea pig like 😉 ) and then if all is working okay then I will update the top thread to have the new version.
Sorry about the confusion there.
Best wishes,
Mark
Excellent news. Now hopefully I haven’t done anything dangerous in this version and I get told off 😉
Will check this one out in the next couple of weeks just to see if I have missed anything obvious but hopefully it will all run well for you.
Thanks for letting me know. Hope it does some good for you. Will update the top post of this thread with the new version now.
Best wishes,
Mark
Do you have a Paypal account where I can hit you up with a donation? 😉
I do have yes and that is very very kind of you. If you PM me then I can send it across if you really want to do so.
And BTW - you are the most gracious Brit I’ve met in these forums. I’ve met a few grumpy frumpy Brits’ in which the experience wasn’t quite enjoyable. 😕
You are WAY too kind. Really I’m a frumpy, grumpy brit who just hides it well!! 😉
Actually I don’t know of many brits on the forums but the ones that I do know are all pretty decent chaps from what I have seen. I think you must have met the dark overlords somewhere on your travels. I hope I don’t end up in that 4th dimension corner that must be lurking in these forums somewhere 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.