Chatpost Requeired

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • robzky
    replied
    How about 100 plusses for creating a new topic and 100 plusses for posting in forum! WHAT IS THE CODE FOR THIS? THANKS HUWAD!

    Leave a comment:


  • huwad
    replied
    Originally posted by l0rdrayven View Post
    guys how to code this and where to insert the code? It is like
    if(getplusses) code something like that.for example You Need 100+s To Shout In Lavalair script.then what is the code if we want to required chatpost before the user can create topic and post a reply.thanks in advance for those who wants to help.
    add this to core.php

    Code:
    function chatpost($uid)
    
    {
    
        $cmsg = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'"));
    
        return $cmsg[0];
    
    }
    and edit genproc.php

    in else if($action=="shout") look for

    Code:
    if(getplusses(getuid_sid($sid))<75)
    
        {
    
        echo "<img src=\"../images/notok.gif\" alt=\"X\"/>You should have at least 75 plusses to shout!<br/><br/>";
    and replace it with

    Code:
    if(chatpost(getuid_sid($sid))<100)
    
        {
    
        echo "<img src=\"../images/notok.gif\" alt=\"X\"/>You should have at least 100 chatpost to shout!<br/><br/>";
    also in index.php, in else if($action=="shout")

    look for

    Code:
    if(getplusses(getuid_sid($sid))<75)
        {
            echo "You need at least 75 plusses to shout!";
    and replace it with

    Code:
    if(chatpost(getuid_sid($sid))<100)
        {
            echo "You need at least 100 chatpost to shout!";
    Last edited by huwad; 10.07.09, 06:14.

    Leave a comment:


  • l0rdrayven
    started a topic Chatpost Requeired

    Chatpost Requeired

    guys how to code this and where to insert the code? It is like
    if(getplusses) code something like that.for example You Need 100+s To Shout In Lavalair script.then what is the code if we want to required chatpost before the user can create topic and post a reply.thanks in advance for those who wants to help.
Working...
X