Flag options not showing up
Posted: 13 June 2009 10:44 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

The following code is basically from the Module docs (I should not that in the docs the exp:weblog:entries tag does not have a closing slash in it). Anyway - it doesn’t show the flag options when it outputs. I’m wondering what I’m doing wrong?

{exp:weblog:entries  weblog="feedgrab" }

<h2>{feed-description}</h2>
 
{exp:diggie:info entry_id="{entry_id}"}
<h4>Vote for this Entry</h4>
<
ul>
{diggie:flags}
<li><a href="{path=">{diggie:flag_label}</a></li>
{/diggie:flags}
</ul>
{/exp:diggie:info}

{
/exp:weblog:entries} 

So it looks something like this:

Feed description here

Vote 
for this Entry 

UPDATE:
In testing this above, I’m getting around the above issues of not having the flag link show up just by hard coding in a +1 and -1 link but I noticed that in doing so the Flag messages in my vote template that confirms the action with a flag message is also not outputing “Your vote is +1” but the vote is being counted.

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 15 June 2009 10:28 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18
rob - 13 June 2009 10:44 PM

I should not that in the docs the exp:weblog:entries tag does not have a closing slash in it

Thank you… fixed smile

rob - 13 June 2009 10:44 PM

The following code is basically from the Module docs (I should not that in the docs the exp:weblog:entries tag does not have a closing slash in it). Anyway - it doesn’t show the flag options when it outputs. I’m wondering what I’m doing wrong?

Hi Rob,

Is this on a single entry page, or on a list view page? smile
As in, are you displaying 1 entry, or several?

rob - 13 June 2009 10:44 PM

UPDATE:
In testing this above, I’m getting around the above issues of not having the flag link show up just by hard coding in a +1 and -1 link but I noticed that in doing so the Flag messages in my vote template that confirms the action with a flag message is also not outputing “Your vote is +1” but the vote is being counted.

If you are to manually hardcode this area, you should be using the Flag ID or short name, NOT a value wink

 Signature 
Profile
 
 
Posted: 15 June 2009 10:42 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

Hi Rob,

Is this on a single entry page, or on a list view page? smile
As in, are you displaying 1 entry, or several?

I tried both ways. Adding an entry ID into the URL for a single entry page and without for a list view. Ideally, I’d like to utilize a list view but I tried both and no luck.

If you are to manually hardcode this area, you should be using the Flag ID or short name, NOT a value

Agreed and have been using the flag ID numbers for testing and those votes are counted in the CP but no flag message is outputed in my success/failure template. 

Here’s my install info:

ExpressionEngine 1.6.7 - © Copyright 2003 - 2009 - EllisLab, Inc.
Script executed in 1.0551 seconds   21 SQL queries used
Build:  20090515

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 15 June 2009 10:45 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18
rob - 15 June 2009 10:42 AM

I tried both ways. Adding an entry ID into the URL for a single entry page and without for a list view. Ideally, I’d like to utilize a list view but I tried both and no luck.

K, I think there’s an issue with the version of Diggie… I will check back with you very shortly…

rob - 15 June 2009 10:42 AM

Agreed and have been using the flag ID numbers for testing and those votes are counted in the CP but no flag message is outputed in my success/failure template.

Another issue with Diggie. We noticed that the {if diggie:message} conditional stopped working in 1.0.1. If you remove it from around the {diggie:message} variable, you should be fine wink

 Signature 
Profile
 
 
Posted: 15 June 2009 11:14 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

Another issue with Diggie. We noticed that the {if diggie:message} conditional stopped working in 1.0.1. If you remove it from around the {diggie:message} variable, you should be fine

Great - I can confirm that this message on the success/failure template does work for me after pulling out the conditional.

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 16 June 2009 10:53 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

I can confirm the Flag issue for this version. We should have a new version of Diggie out today or tomorrow smile

 Signature 
Profile
 
 
Posted: 18 June 2009 04:38 PM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

So, I was thinking I could just hard code in the flag values and not use

{diggie:flags} 

to provide the links and then go from there. But,I noticed that when I was testing this - while logged out - I could vote an unlimited number of times. I have set the preference for 1 vote per use in the CP.

I assume with the

{diggie:flags} 

  code working that this code might prevent unregistered visitors from voting multiple times? When I was logged in, I was restricted to voting just once as expected.

I should note that I was interested in seeing if I could have unregistered visitors vote and limit them also to just one vote. It would be great to have the option to not have to force a visitor to register just to vote up and down if it was possible to restrict but IP and cookie like one would do for a poll.

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 19 June 2009 07:28 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18
rob - 18 June 2009 04:38 PM

So, I was thinking I could just hard code in the flag values and not use

{diggie:flags} 
to provide the links and then go from there.

Yeah, that works too… wink

rob - 18 June 2009 04:38 PM

But,I noticed that when I was testing this - while logged out - I could vote an unlimited number of times. I have set the preference for 1 vote per use in the CP.

Yes, this is currently a known issue and we have it corrected for a near future release smile
The issue currently only happens to Guests/Non logged in members.

rob - 18 June 2009 04:38 PM

I assume with the

{diggie:flags} 
  code working that this code might prevent unregistered visitors from voting multiple times? When I was logged in, I was restricted to voting just once as expected.

Nope… has nothing to do with Diggie:Flags smile
Only to do with the Diggie:Vote function wink

rob - 18 June 2009 04:38 PM

I should note that I was interested in seeing if I could have unregistered visitors vote and limit them also to just one vote. It would be great to have the option to not have to force a visitor to register just to vote up and down if it was possible to restrict but IP and cookie like one would do for a poll.

As I mentioned above, this will be available within the next couple days… we have it set to restrict based on IP address smile

 Signature 
Profile
 
 
Posted: 19 June 2009 07:34 AM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

Ok, great - glad to hear about the non-logged in ability when fixed. Thanks for the update, I appreciate it. If you can, would you please let me know if you forgo releasing this new version for any reason. I am in development on a small website for work and the diggie function is one of two main purposes of functionality on the site and will be standing by until it’s available.

Thanks,
Rob

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 19 June 2009 07:46 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

I’ll give you an update smile

However, to keep up to date with all updates for Diggie, subscribe to this thread here:
http://www.solspace.com/forums/viewthread/2566/

And/Or download the Solspace Software Update extension smile

 Signature 
Profile
 
 
Posted: 19 June 2009 07:55 AM   [ Ignore ]   [ # 10 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

Great, thanks for the subscriber suggestion. I did that and will add the update software too.

Thanks!!

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 22 June 2009 11:12 AM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Hi Rob,

This bug has been corrected in the latest version of Diggie smile

http://www.solspace.com/forums/viewthread/2566/

 Signature 
Profile
 
 
Posted: 22 June 2009 11:13 AM   [ Ignore ]   [ # 12 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

Awesome!! smile

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 22 June 2009 12:24 PM   [ Ignore ]   [ # 13 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16
Kelsey Martens - 22 June 2009 11:12 AM

Hi Rob,

This bug has been corrected in the latest version of Diggie smile

http://www.solspace.com/forums/viewthread/2566/


I just upgraded to 1.0.2 and it no longer outputs anything within this tag:

{exp:diggie:info entry_id="{entry_id}"
 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 22 June 2009 12:38 PM   [ Ignore ]   [ # 14 ]
Jr. Member
RankRank
Total Posts:  65
Joined  2005-06-16

I think I see why - I need to change entry_id to item_id in my code. You’ll want to update your docs with that too. smile

 Signature 

on Twitter: http://twitter.com/RobQuigley

Profile
 
 
Posted: 22 June 2009 12:39 PM   [ Ignore ]   [ # 15 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18
rob - 22 June 2009 12:38 PM

I think I see why - I need to change entry_id to item_id in my code. You’ll want to update your docs with that too. smile

I did, my friend wink grin

 Signature 
Profile