The Arcive of vBulletin Modifications Site. |
|
HELP NEEDED.. should be simple fix Details »»
|
|||||||||||||||||||||||||
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
PHP Code:
PHP Code:
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 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
||||
|
||||
|
ok... i dont see how that helps.. ...wouldnt that just make it the current Point value x2 + dapadd... .that doesnt help with the problem of threads ending up in wrong forums.... any other help?
|
|
#4
|
||||
|
||||
|
Anyone wanna actually help
it would be gretaly appreciated
|
|
#5
|
|||
|
|||
|
You write if (forumid=1) { ... }, change that to if (forumid==1) { ... }, same for other forum numbers. Currently the forumid is changed all the time instead of checked.
|
|
#6
|
||||
|
||||
|
Code:
// ############################## start add DAP #################################
if ($HTTP_POST_VARS['action']!='newthread' and $HTTP_POST_VARS['action']!='postthread') {
// start ap
$dapfield = 'field6';
switch ($forumid) {
case 19:
$dapadd = 4;
break;
case 2:
case 16:
case 40:
case 41:
$dapadd = 2;
break;
case 8:
case 20:
$dapadd = 1;
break;
case 21:
$dapadd = 5;
break;
}
$DB_site->query("UPDATE userfield SET $dapfield=$dapfield+$dapadd WHERE userid=$bbuserinfo[userid]");
}
|
|
#7
|
||||
|
||||
|
thanks guys ill go test this now...
|
|
#8
|
||||
|
||||
|
works great thanks FireFLy
|
![]() |
|
|