How To Hide Post With Minimum Post Count Of The Member »  Show posts from    to     

Icy Phoenix


Old Support Topics - How To Hide Post With Minimum Post Count Of The Member



xenusean [ Mon 03 Sep, 2007 13:15 ]
Post subject: 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]
  1.  
  2. [HIDE="20"] hi how are you? [/HIDE]  
  3.  
  4.  


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 ]
Post subject: 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.


Zuker [ Sun 09 Sep, 2007 19:59 ]
Post subject: Re: How To Hide Post With Minimum Post Count Of The Member
On bbcode.php, try this

replace

Code: [Hide] [Select]
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;
}
}


with

Code: [Hide] [Select]
if ($userdata['user_posts']) > 20
{
if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}


Set 20 to the amount of post you want.


xenusean [ Thu 13 Sep, 2007 20:07 ]
Post subject: 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 ]
Post subject: Re: How To Hide Post With Minimum Post Count Of The Member


Mighty Gorgon [ Mon 17 Sep, 2007 01:46 ]
Post subject: Re: How To Hide Post With Minimum Post Count Of The Member
Good shoot Zuker.




Powered by Icy Phoenix