Chatpost Requeired

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

  • robzky
    replied
    Originally posted by kiLLeR-eyEd_14 View Post
    what error are you experiencing?Maybe you didn't add the function chatpost in core.php..As what i've said..Add it first before calling it..I just edited the script posted here and add the codings you all wanted..I just show you where the codes are to be added..
    -I already use this script.. Thanks.. I see if what is the problem of this script!
    THANKS!

    Leave a comment:


  • robzky
    replied
    Originally posted by tres View Post
    hey robz. kozmoz told me u are good in. . . if user chatpost/plusses is less than (number){you nid number cp/+s to post/create topic}else{<form></form>} hehe.
    -Hehe.. Who you tres?

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Originally posted by robzky View Post
    -why this script not working for my lavalair site?
    what error are you experiencing?Maybe you didn't add the function chatpost in core.php..As what i've said..Add it first before calling it..I just edited the script posted here and add the codings you all wanted..I just show you where the codes are to be added..
    Last edited by kiLLeR-eyEd_14; 28.07.09, 04:15.

    Leave a comment:


  • tres
    replied
    hey robz. kozmoz told me u are good in. . . if user chatpost/plusses is less than (number){you nid number cp/+s to post/create topic}else{<form></form>} hehe.

    Leave a comment:


  • robzky
    replied
    Originally posted by kiLLeR-eyEd_14 View Post
    PHP Code:
    else if($action=="newtopic")
    {
      
    $fid $_GET["fid"];
      if(!
    canaccess(getuid_sid($sid), $fid))
        {
        echo 
    "<head>";
        echo 
    "<title>New Topic</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
          echo 
    "<p align=\"center\">";
          echo 
    "You Don't Have A Permission To View The Contents Of This Forum<br/><br/>";
          echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
      
    $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
        
    addonline(getuid_sid($sid),"Creating new topic ($mmsg)","index.php?action=online");
        echo 
    "<head>";
        echo 
    "<title>New Topic</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
    if(
    getplusses($uid)<100 && chatpost($uid)<100)
    {
    echo 
    "You should have atleast 100 +s and 100cp to create new topic!!!<br/>";
    }else{
        echo 
    "<form action=\"genproc.php?action=newtopic&amp;sid=$sid\" method=\"post\">";
        echo 
    "Title:<input name=\"ntitle\" maxlength=\"250\"/><br/>";
        echo 
    "Text:<input name=\"tpctxt\" maxlength=\"1000\"/><br/>";
        echo 
    "<input type=\"hidden\" name=\"fid\" value=\"$fid\"/>";
        echo 
    "<input type=\"submit\" value=\"Create\"/>";
        echo 
    "</form>";
    }
        
    $fname getfname($fid);
        echo 
    "<br/><br/><b>9 </b><a accesskey=\"9\" href=\"index.php?action=viewfrm&amp;sid=$sid&amp;fid=$fid\">$fname</a><br/>";
        echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
    "</p>";
        echo 
    "</body>";


    -why this script not working for my lavalair site?

    Leave a comment:


  • l0rdrayven
    replied
    tnx bro but i already finish this stuffs,hey bro killer_eyed do u have some download script with category? It i was like w2c.mobi download script.

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    PHP Code:
    else if($action=="newtopic")
    {
      
    $fid $_GET["fid"];
      if(!
    canaccess(getuid_sid($sid), $fid))
        {
        echo 
    "<head>";
        echo 
    "<title>New Topic</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
          echo 
    "<p align=\"center\">";
          echo 
    "You Don't Have A Permission To View The Contents Of This Forum<br/><br/>";
          echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
      
    $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
        
    addonline(getuid_sid($sid),"Creating new topic ($mmsg)","index.php?action=online");
        echo 
    "<head>";
        echo 
    "<title>New Topic</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
    if(
    getplusses($uid)<100 && chatpost($uid)<100)
    {
    echo 
    "You should have atleast 100 +s and 100cp to create new topic!!!<br/>";
    }else{
        echo 
    "<form action=\"genproc.php?action=newtopic&amp;sid=$sid\" method=\"post\">";
        echo 
    "Title:<input name=\"ntitle\" maxlength=\"250\"/><br/>";
        echo 
    "Text:<input name=\"tpctxt\" maxlength=\"1000\"/><br/>";
        echo 
    "<input type=\"hidden\" name=\"fid\" value=\"$fid\"/>";
        echo 
    "<input type=\"submit\" value=\"Create\"/>";
        echo 
    "</form>";
    }
        
    $fname getfname($fid);
        echo 
    "<br/><br/><b>9 </b><a accesskey=\"9\" href=\"index.php?action=viewfrm&amp;sid=$sid&amp;fid=$fid\">$fname</a><br/>";
        echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
    "</p>";
        echo 
    "</body>";

    Leave a comment:


  • tres
    replied
    lol i think that chatpost req idea is from. .. . Tnt (pinoy nga naman)

    Leave a comment:


  • robzky
    replied
    PHP Code:
    else if($action=="newtopic")
    {
      
    $fid $_GET["fid"];
      if(!
    canaccess(getuid_sid($sid), $fid))
        {
        echo 
    "<head>";
        echo 
    "<title>New Topic</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
          echo 
    "<p align=\"center\">";
          echo 
    "You Don't Have A Permission To View The Contents Of This Forum<br/><br/>";
          echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
      
    $mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
        
    addonline(getuid_sid($sid),"Creating new topic ($mmsg)","index.php?action=online");
        echo 
    "<head>";
        echo 
    "<title>New Topic</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<form action=\"genproc.php?action=newtopic&amp;sid=$sid\" method=\"post\">";
        echo 
    "Title:<input name=\"ntitle\" maxlength=\"250\"/><br/>";
        echo 
    "Text:<input name=\"tpctxt\" maxlength=\"1000\"/><br/>";
        echo 
    "<input type=\"hidden\" name=\"fid\" value=\"$fid\"/>";
        echo 
    "<input type=\"submit\" value=\"Create\"/>";
        echo 
    "</form>";
        
    $fname getfname($fid);
        echo 
    "<br/><br/><b>9 </b><a accesskey=\"9\" href=\"index.php?action=viewfrm&amp;sid=$sid&amp;fid=$fid\">$fname</a><br/>";
        echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
    "</p>";
        echo 
    "</body>";


    -Where can i add that code in my CREATING NEW TOPIC script..
    thanks

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Originally posted by robzky View Post
    hmm.. How to do this?
    Need a 100 plusses/Chatpost to Create A New Topic?
    add first the function that huwad had posted..then try this,
    if(getplusses($uid)<100 && chatpost($uid)<100)
    {
    echo "You should have atleast 100 plusses and 100 chatposts to create new topic!!!";
    }else{
    put here the codes for creating new topic!
    }

    Leave a comment:


  • robzky
    replied
    hmm.. How to do this?
    Need a 100 plusses/Chatpost to Create A New Topic?

    Leave a comment:


  • huwad
    replied


    nope.. you have to declare this to core.php to make it work

    Code:
    function chatpost($uid)
    
    {
    
        $cmsg = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'"));
    
        return $cmsg[0];
    
    }
    Last edited by huwad; 07.08.09, 02:22.

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Originally posted by l0rdrayven View Post
    how about in posting and creating topics sir huwad.my shout page required 50 plusses and it is enough for me.all i want now is in forum.
    lol..observe d script, if cpost < 100 then print u nid atleast 100 cpost to post reply else, is the code to post reply..got it?

    Leave a comment:


  • l0rdrayven
    replied
    how about in posting and creating topics sir huwad.my shout page required 50 plusses and it is enough for me.all i want now is in forum.

    Leave a comment:


  • bijaybd
    replied
    just change the value 75 to 100 for new topic 75 to 100 for posting in forum.

    Leave a comment:

Working...
X