https://www.icyphoenix.com/viewtopic.php?f=35&t=2734
-----------------------------------
xenusean
Mon 03 Sep, 2007 13:15

How To Hide Post With Minimum Post Count Of The Member
-----------------------------------
Hi my friends,

I want to ask, How to HIDE Post with Minimum Post COunt of member.... 
If the member had post more than XX posts, he/she can see the hiding post.

example :

[CODE]

[HIDE="20"] hi how are you? [/HIDE]

[/CODE]

it mean, member (registered) who want to see the hide post must had minimum 20 post in the forum....

i will appreciete to helping me, n maybe this might be useful for the other thx u


-----------------------------------
Mighty Gorgon
Sun 09 Sep, 2007 02:09

Re: How To Hide Post With Minimum Post Count Of The Member
-----------------------------------
I don't have the time to code this... maybe someone else is interested and will help you.

Sorry. :mricy:


-----------------------------------
Zuker
Sun 09 Sep, 2007 19:59

Re: How To Hide Post With Minimum Post Count Of The Member
-----------------------------------
On bbcode.php, try this

replace

[code linenumbers=false]			if($userdata['session_logged_in'])
			{
				$sql = "SELECT *
					FROM " . THANKS_TABLE . "
					WHERE topic_id = $topic_id
					AND user_id = " . $userdata['user_id'];
				$resultat = $db->sql_query($sql);
				$show = $db->sql_numrows($resultat) ? true : false;
				if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
				{
					$show = true;
				}
			}[/code]

with 

[code linenumbers=false]
			if ($userdata['user_posts']) > 20
			{
				if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
				{
					$show = true;
				}
			}[/code]

Set 20 to the amount of post you want.


-----------------------------------
xenusean
Thu 13 Sep, 2007 20:07

Re: How To Hide Post With Minimum Post Count Of The Member
-----------------------------------
Wow, Thx zulker.... it's works


-----------------------------------
Zuker
Fri 14 Sep, 2007 01:07

Re: How To Hide Post With Minimum Post Count Of The Member
-----------------------------------
:mricy:


-----------------------------------
Mighty Gorgon
Mon 17 Sep, 2007 01:46

Re: How To Hide Post With Minimum Post Count Of The Member
-----------------------------------
Good shoot Zuker. :P


