PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Points Addon Hack Installation?


Raiden
19.07.2002, 16:34
Hi,
Hab da ein Problem in der Anleitung steht folgendes:

_________________________
Step 1-Edit newreply.php

Open newreply.php in a ASCII editor (i.e. Notepad, BBEdit)

Right above:


// ############################### start post reply ###############################


Add:


// ############################## start add gil #################################
if ($HTTP_POST_VARS['action']!=="newreply" and $HTTP_POST_VARS['action']!=="postreply") {

// start gil
$pointfield="field5"; // set this to the point field you used for the points hack
$giladd=2; // set this to the amount of gil you want a user to receive per reply
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if ($gil='') {
$gil=0;
}
else {
$postgil = ($gilamt + $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");
}
}


Change:
"field5" to the field you use for points
$giladd=2 to the amount of gil you want a user to receive per reply

Save and upload.

_________________________
Step 2-Edit newthread,php

Right above:


// ############################### start new thread ###############################


Add:


// ############################## start add gil #################################
if ($HTTP_POST_VARS['action']!=="newthread" and $HTTP_POST_VARS['action']!=="postthread") {

// start gil
$pointfield="field5"; // set this to the point field you used for the points hack
$giladd=3; // set this to the amount of gil you want a user to receive per reply
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if ($gil='') {
$gil=0;
}
else {
$postgil = ($gilamt + $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");
}
}


Change:
The same stuff you did above-field5 and $giladd .
______________________

Und jetzt mein Problem
was ist damit gemeint?:

Change:
"field5" to the field you use for points
$giladd=2 to the amount of gil you want a user to receive per reply

Wo finde ich bei mir den "field5" (was ist da überhaupt?) und "$giladd=2" (und was ist das?) hab keine Ahnung davon kann jemand helfen?
Übrigens ich habe schon den Contest hack (addon vom Points hack) installiert kann es vorkommen das sich die zwei Addons nicht vertragen?

Mystics
19.07.2002, 16:47
Mit field5 ist das 5. Benutzer Profil Feld gemeint (userfield.field5).

Aber wie ich dir schon in der PN gesagt habe, ist dieser Hack nicht kompatibel mit deinem Contest hack, weil dieser Hack nicht mehr auf dem Profilfeld aufbaut, sondern auf einer komplett neuen Tabelle.