PDA

View Full Version : Start getreputationimage (PetzvB2)


Total-XS
07-01-2005, 09:41 PM
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

################################################## #########################################
# 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.

// ###################### 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.

Marco van Herwaarden
07-02-2005, 06:37 AM
I suggest you try searching again, because that line should be there. If you can't find it, try searching for only the text 'start get..'

PS It is better to ask questions in the support thread of the hack you are installing.

Total-XS
07-02-2005, 06:46 AM
Hi there,

I did search the file a 1000 times and i did also extract de zipfile twice so i am realy sure that it aint in there.

Please check it out yourself.

*** vB source code removed, see our rules and your license agreement (MarcoH64) ***

Next time i will post it in a other thread but because i didt saw anyone ask this question i thought i had to open a new one!

Greeting,

Paolino_Preach
07-06-2005, 04:04 PM
i'm havin the same problem man and I did everything just liek it said. There has to be a mistake in the hack.

Paul M
07-06-2005, 05:14 PM
The hack was obviously written for versions prior to 3.0.2. The getreputationimage code moved to functions_reputation.php in 3.0.2 and beyond.

Paolino_Preach
07-06-2005, 05:27 PM
Thanks! one more thing, do not know if its related, but it never happened before intalling this hack. My administrator is stuck logged in. I cannot log into my admincp panel. It thanks me, then redirects me to my admincp log in...
thoughts?

nm, it was my browser...