<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[vldPersonals Forum - Block admin group from showing in latest_visitors]]></title>
	<link rel="self" href="http://www.vldpersonals.com/forum/feed/atom/topic/1341/"/>
	<updated>2010-03-11T09:06:29Z</updated>
	<generator>PunBB</generator>
	<id>http://www.vldpersonals.com/forum/topic/1341/block-admin-group-from-showing-in-latestvisitors/</id>
		<entry>
			<title type="html"><![CDATA[Re: Block admin group from showing in latest_visitors]]></title>
			<link rel="alternate" href="http://www.vldpersonals.com/forum/post/36794/#p36794"/>
			<content type="html"><![CDATA[<p>1) Instead of just not displaying saved record, I would just not save profile visit:</p><p>Open lib.member_profile.php and find:</p><div class="codebox"><pre><code>if (!$profile_preview &amp;&amp; $PREFS-&gt;conf[&#039;enable_visitors&#039;]</code></pre></div><p>add right after it <br /></p><div class="codebox"><pre><code>&amp;&amp; $SESSION-&gt;conf[&#039;group_id&#039;] != 1</code></pre></div><p>2) Just use groups param for {members:} extension and pass all active group ids besides admins group id.<br />{members:....,groups=&quot;5|7&quot;}</p>]]></content>
			<author>
				<name><![CDATA[radioact]]></name>
				<uri>http://www.vldpersonals.com/forum/user/554/</uri>
			</author>
			<updated>2010-03-11T09:06:29Z</updated>
			<id>http://www.vldpersonals.com/forum/post/36794/#p36794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Block admin group from showing in latest_visitors]]></title>
			<link rel="alternate" href="http://www.vldpersonals.com/forum/post/36660/#p36660"/>
			<content type="html"><![CDATA[<p>I would like to do the same, however this post is quite old so I´m wondering if the equivalent for 2.5.5 is:</p><p>File:<br />includes/lib/lib.account_visitors.php</p><p>...and code:<br /></p><div class="codebox"><pre><code>$result = $DB-&gt;query(&quot;SELECT v.visitor_id, v.visitdate, m.*
                          FROM &quot; . DB_PREFIX . &quot;members AS m, &quot; . DB_PREFIX . &quot;visitors AS v
                          WHERE v.member_id=&#039;&quot; . $SESSION-&gt;conf[&#039;member_id&#039;] . &quot;&#039; AND v.visitor_id=m.member_id AND m.active=&#039;1&#039;
                          ORDER BY v.visitdate DESC
                          LIMIT &quot; . (($page - 1) * $PREFS-&gt;conf[&#039;visitors_per_page&#039;]) . &quot;, &quot; . $PREFS-&gt;conf[&#039;visitors_per_page&#039;]);</code></pre></div><br /><br /><p>1) If yes, which changes do I need to make in order to hide Admin group members?</p><p>2) How can I do the same for &quot;Latest members&quot; in the sidebar?</p><br /><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[tigr]]></name>
				<uri>http://www.vldpersonals.com/forum/user/4040/</uri>
			</author>
			<updated>2010-03-01T18:39:29Z</updated>
			<id>http://www.vldpersonals.com/forum/post/36660/#p36660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Block admin group from showing in latest_visitors]]></title>
			<link rel="alternate" href="http://www.vldpersonals.com/forum/post/5927/#p5927"/>
			<content type="html"><![CDATA[<p>Thanks vlad. That is what I was looking for. I have also upgraded to the most recent version of that ext and added the changes to that.</p><p>Here are the changes for others if they want to use them:</p><p>In latest_visitors.php (around line 75)</p><p>Look for:<br /></p><div class="codebox"><pre><code>WHERE m.member_id=d.data_id AND m.active=&#039;1&#039; AND m.pending=&#039;0&#039;</code></pre></div><p>and replace it with:<br /></p><div class="codebox"><pre><code>WHERE m.group_id!=1 AND m.member_id=d.data_id AND m.active=&#039;1&#039; AND m.pending=&#039;0&#039;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[geoff]]></name>
				<uri>http://www.vldpersonals.com/forum/user/218/</uri>
			</author>
			<updated>2007-07-27T03:16:49Z</updated>
			<id>http://www.vldpersonals.com/forum/post/5927/#p5927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Block admin group from showing in latest_visitors]]></title>
			<link rel="alternate" href="http://www.vldpersonals.com/forum/post/5923/#p5923"/>
			<content type="html"><![CDATA[<p>It should be m.group_id!=1 (not member_group_id).</p>]]></content>
			<author>
				<name><![CDATA[vlad]]></name>
				<uri>http://www.vldpersonals.com/forum/user/2/</uri>
			</author>
			<updated>2007-07-27T02:25:32Z</updated>
			<id>http://www.vldpersonals.com/forum/post/5923/#p5923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Block admin group from showing in latest_visitors]]></title>
			<link rel="alternate" href="http://www.vldpersonals.com/forum/post/5920/#p5920"/>
			<content type="html"><![CDATA[<p>I have added m.member_group_id!=&#039;1&#039; to the DB query for the latest_visitors extension but it is not doing what I thought it would. I am trying to have everybody in group one hidden from the scrip output.</p><p>Help getting this to working would be appreciated.</p><p>Below is the code that is not working:</p><div class="codebox"><pre><code>    {
        $result = $DB-&gt;query(&quot;SELECT m.*, d.*
                              FROM &quot; . DB_PREFIX . &quot;members AS m, &quot; . DB_PREFIX . &quot;members_data AS d, &quot; . DB_PREFIX . &quot;visitors AS v
                              WHERE v.member_id=&quot; . intval($member_id) . &quot; AND m.member_group_id!=&#039;1&#039; AND v.visitor_id=m.member_id AND m.member_id=d.data_id AND m.active=&#039;1&#039; $gender $picturesonly
                              ORDER BY v.visitdate DESC
                              LIMIT &quot; . intval($max));
    }
    else
    {
        $result = $DB-&gt;query(&quot;SELECT m.*, d.*
                              FROM &quot; . DB_PREFIX . &quot;members AS m, &quot; . DB_PREFIX . &quot;members_data AS d
                              WHERE m.member_id=d.data_id AND m.member_group_id!=&#039;1&#039; AND m.active=&#039;1&#039; $gender $picturesonly
                              ORDER BY m.lastvisit DESC
                              LIMIT &quot; . intval($max));
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[geoff]]></name>
				<uri>http://www.vldpersonals.com/forum/user/218/</uri>
			</author>
			<updated>2007-07-27T01:16:42Z</updated>
			<id>http://www.vldpersonals.com/forum/post/5920/#p5920</id>
		</entry>
</feed>

