E
03-25-2002, 09:20 AM
ok.. in addition too the points hack im trying too make it so u get an automatic number of points for posting new threads in certain forums.... the number of points u get changes thru the different forums... anyway this is what i have too add in my newthread.php but when i do so all new threeads end up in the forum of the last If statement related too $dapadd
// ############################## start add DAP #################################\
if ($HTTP_POST_VARS['action']!=="newthread" and $HTTP_POST_VARS['action']!=="postthread") {
// start ap\
$dapfield="field6";
if ($forumid="19"){
$dapadd=4;
}
if ($forumid="2"){
$dapadd=2;
}
if ($forumid="16"){
$dapadd=2;
}
if ($forumid="8"){
$dapadd=1;
}
if ($forumid="20"){
$dapadd=1;
}
if ($forumid="21"){
$dapadd=5;
}
if ($forumid="19"){
$dapadd=4;
}
if ($forumid="40"){
$dapadd=2;
}
if ($forumid="41"){
$dapadd=2;
}
$dapstr=$DB_site->query_first("SELECT $dapfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$dap=$dapstr[$dapfield];
$dapamt=$dapstr[$dapfield];
if ($dap='') {
$dap=0;
}
else {
$postdap = ($dapamt + $dapadd);
$DB_site->query("UPDATE userfield SET field6='$postdap' WHERE userid='$bbuserinfo[userid]'");
}
}
All new threads goto the forum of the last if statement:
if ($forumid="41"){
$dapadd=2;
}
^^that one...
You still get the right points for making threads in these forums but they dont stay there... help needed as soon as possible.....
Thanks in advance
---
E
// ############################## start add DAP #################################\
if ($HTTP_POST_VARS['action']!=="newthread" and $HTTP_POST_VARS['action']!=="postthread") {
// start ap\
$dapfield="field6";
if ($forumid="19"){
$dapadd=4;
}
if ($forumid="2"){
$dapadd=2;
}
if ($forumid="16"){
$dapadd=2;
}
if ($forumid="8"){
$dapadd=1;
}
if ($forumid="20"){
$dapadd=1;
}
if ($forumid="21"){
$dapadd=5;
}
if ($forumid="19"){
$dapadd=4;
}
if ($forumid="40"){
$dapadd=2;
}
if ($forumid="41"){
$dapadd=2;
}
$dapstr=$DB_site->query_first("SELECT $dapfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$dap=$dapstr[$dapfield];
$dapamt=$dapstr[$dapfield];
if ($dap='') {
$dap=0;
}
else {
$postdap = ($dapamt + $dapadd);
$DB_site->query("UPDATE userfield SET field6='$postdap' WHERE userid='$bbuserinfo[userid]'");
}
}
All new threads goto the forum of the last if statement:
if ($forumid="41"){
$dapadd=2;
}
^^that one...
You still get the right points for making threads in these forums but they dont stay there... help needed as soon as possible.....
Thanks in advance
---
E