<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Total Entry Count Not Specific to User Login</title>
		<link>https://legacy.forums.gravityhelp.com/topic/total-entry-count-not-specific-to-user-login</link>
		<description>Gravity Support Forums Topic: Total Entry Count Not Specific to User Login</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:12:39 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/total-entry-count-not-specific-to-user-login" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Total Entry Count Not Specific to User Login"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/total-entry-count-not-specific-to-user-login#post-134361</link>
			<pubDate>Mon, 28 Jan 2013 20:25:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">134361@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;RGFormsModel::get_lead_count uses your $user_info parameter as a search, not a SELECT, so it will return tree, tree1, teatree, etc.  &#60;/p&#62;
&#60;p&#62;From the source:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;public static function get_lead_count($form_id, $search, $star=null, $read=null, $start_date=null, $end_date=null, $status=null)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will have to check the field in your entry to be sure it matches $user_info exactly.  You did not show the code you are using, so I'm not sure if you can check later, after the if statement, or if you will have to check before, right after retrieving the entries.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>asmeets on "Total Entry Count Not Specific to User Login"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/total-entry-count-not-specific-to-user-login#post-128575</link>
			<pubDate>Tue, 22 Jan 2013 11:37:11 +0000</pubDate>
			<dc:creator>asmeets</dc:creator>
			<guid isPermaLink="false">128575@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've been using the following code to query Gravity Forms entries on a specific form:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
$user_info = get_userdata( $current_user-&#38;gt;ID );
$user_info = $user_info-&#38;gt;user_login;
$entry_count = RGFormsModel::get_lead_count(2, $user_info);
&#38;lt;?php if ($entry_count &#38;gt; 0) { code hidden here... }; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The code does not appear to discriminate between users tree and tree1 or tree2 or tree3. Is there a location in the code that I should make this explicit?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
