We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Plugin - One Voice…

Development and Programming

grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

Trust me. 😉

Thanks man.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen

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

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen

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

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen

Hi Marshall,

Was just wondering if this latest version was any use at all?

Best wishes,

Mark

       
grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

Hey Mark. I’m just now getting to trying this. I assume you updated the zip file at the beginning, correct? Thanks.

Marshall.

       
grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

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}
       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen
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

       
grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

Oh ok. Cool. I’ll update it when I get home and let you know. Thanks!

       
grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

I think you hit this one on the head Mark! It seems to be working.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen

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

       
grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

Do you have a Paypal account where I can hit you up with a donation? 😉

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. 😕

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen
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 😊

       
grantmx's avatar
grantmx
1,439 posts
about 17 years ago
grantmx's avatar grantmx

Ooops. I may have spoke too soon. Just found something else. It appears to block all comments now even if there were any comments made. Do you need to see my code?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen

Hmm seems like I zipped up the wrong version methinks!!

Have now changed the V1.0.4 on the top thread for the correct version. Just tested this out and it seems to be working so hopefully should do for you too?

I had left out one pesky little = sign!!

Best wishes,

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
about 17 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

Just wondering if the update is now working for you?

Best wishes,

Mark

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.