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.
l0rdrayven wrote:
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
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
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
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
if(getplusses(getuid_sid($sid))<75)
{
echo "You need at least 75 plusses to shout!";
and replace it with
if(chatpost(getuid_sid($sid))<100)
{
echo "You need at least 100 chatpost to shout!";
l0rdrayven wrote:
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?
robzky wrote:
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!
}
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.
robzky wrote:
-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..
tres wrote:
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.
kiLLeR-eyEd_14 wrote:
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!