Hello all,
I'm completly new with vBulletin so i guess u see me around more asking newbie questions.
To start with, i'm using
vBulletin 3.0.7
My first question is:
I'm trying to install
PetzvB2
I like to do it like its told to me in de
install.txt.
This is what i need to do according the
install.txt
Quote:
################################################## #########################################
# IN: includes/functions_showthread.php #
################################################## #########################################
Find:
__________________________________________________ _________________________________________
// ###################### Start getreputationimage #######################
?????????????????????????????????????????????????? ?????????????????????????????????????????
Above this, add:
__________________________________________________ _________________________________________
// ###################### Start Petz #######################
$result_petz = $DB_site->query("SELECT ID,OWNER,NAME,TYPE,COLOR,HP,MHP,PLZ,HNG,LVL FROM " . TABLE_PREFIX . "petz_petz");
while ($petzar = $DB_site->fetch_array($result_petz)){
$petz[$petzar[ID]]['OWNER'] = $petzar['OWNER'];
$petz[$petzar[ID]]['TYPE'] = $petzar['TYPE'];
$petz[$petzar[ID]]['COLOR'] = $petzar['COLOR'];
$petz[$petzar[ID]]['NAME'] = stripslashes($petzar['NAME']);
$petz[$petzar[ID]]['ID'] = $petzar['ID'];
$petz[$petzar[ID]]['LVL'] = $petzar['LVL'];
$happy=$petzar[PLZ]-$petzar[HNG];
$happy=($happy+$petzar[HP])/($petzar[MHP]+100);
$happy=$happy*100;
$happy=round($happy, 0);
if ($happy<0) { $happy=0; }
$petz[$petzar[ID]]['HAPPINESS'] = $happy;
}
__________________________________________________ _________________________________________
Find:
__________________________________________________ _________________________________________
// user
global $bbuserinfo, $session, $ignore, $permissions, $_REQUEST;
?????????????????????????????????????????????????? ?????????????????????????????????????????
Above this, add:
__________________________________________________ _________________________________________
// petz
global $petz;
__________________________________________________ _________________________________________
Find:
__________________________________________________ _________________________________________
$show['messageicon'] = iif($post['iconpath'], true, false);
?????????????????????????????????????????????????? ?????????????????????????????????????????
Above this, add:
__________________________________________________ _________________________________________
// show petz
if ($petz) {
foreach ($petz as $key => $pet) {
if ($pet['OWNER']==$post['userid']) {
eval('$post[\'mypet\'] .= "' . fetch_template('petz_view_postbit') . '";');
}
}
}
|
So i open de file
functions_showthread.php but i can't seem to find the rule with the following in it.
Quote:
// ###################### Start getreputationimage #######################
|
Am i doing something wrong because as far as i can see i do everything excactly like i'm told to do.
Please help me out here.
Btw, sorry for my ++++ed up english!
Greetings
Ow btw, i did a long search on this forum but everybody seems to have that line in his file because nobody is asking for it! Sorry if i didnt see the answer somewere on this forum.