<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="vum" active="1">
<title>vLkn - User of the Month</title>
<description>This hack will show user of the mont on forum home</description>
<version>1.4.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="vum" templatetype="template" date="1252563589" username="vLkn" version="1.3.0"><![CDATA[<if condition="$vboptions['vum_enabled'] == 1">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td colspan="3" class="thead">[COLOR=Red]بهترين كاربر اين ماه[/COLOR]</td>
<td colspan="4" class="thead">About $username
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vum')"><img id="collapseimg_forumhome_vum" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_vum].gif" alt="" border="0" /></a>
</td>
</tr>
<tbody id="collapseobj_forumhome_vum" style="$vbcollapse[collapseobj_forumhome_vum]">
<tr>
<td align="center" width="10%" class="alt2">
<a href="$profile" title="$username"><img border="0" src="$avatar" alt="$username" /></a>
</td>
<td width="25%" class="alt1">
<h1 style="margin:0"><b><i>$username</i></b></h1>
<td align="center" class="alt2">
<div class="smallfont">
Thread Count: $threadcount <br />
Message Count: $messagecount
</div>
</td>
</td>
<td width="20%" valign="top" class="alt1">
Biography: <br />
<span class="smallfont">$biography</span>
</td>
<td valign="top" class="alt2">
Location: <br />
<span class="smallfont">$location</span>
</td>
<td valign="top" class="alt1">
Interests: <br />
<span class="smallfont">$interests</span>
</td>
<td valign="top" class="alt2">
Occupation: <br />
<span class="smallfont">$occupation</span>
</td>
</tr>
</tbody>
</table>
<br />
</if>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>vum</title>
<hookname>forumhome_start</hookname>
<phpcode><![CDATA[$uid = $vbulletin->options['vum_id'];
if(empty($uid)){
}else{
$sql = $vbulletin->db->query_read("Select userid, username, avatarrevision From ".TABLE_PREFIX."user Where userid = $uid");
$yaz = $vbulletin->db->fetch_array($sql);
//////////END SQL
$username = $yaz['username'];
$revision = $yaz['avatarrevision'];
$profile = "member.php?u=".$uid;
////////Avatar Start
$usefile = $vbulletin->options['usefileavatar'];
$url = $vbulletin->options['avatarurl'];
if($usefile == 0){
///Dateline Sql
$dt = $vbulletin->db->query_read("Select * from ".TABLE_PREFIX."customavatar Where userid = $uid");
$dtyaz = $vbulletin->db->fetch_array($dt);
///////////End Dateline SQL
$avatar = "image.php?u=".$uid."&dateline=".$dtyaz['dateline']."&type=thumb";
}else{
$avatar = $url."/thumbs/avatar".$uid."_".$revision.".gif";
}
////Avatar End
//Thread SQL
$konusor = $vbulletin->db->query_read("Select * from ".TABLE_PREFIX."thread
where postuserid = $uid");
$threadcount = $vbulletin->db->num_rows($konusor);
//POST SQL
$mesajsor = $vbulletin->db->query_read("Select * from ".TABLE_PREFIX."post
where userid = $uid");
$messagecount = $vbulletin->db->num_rows($mesajsor);
//About SQL
$aboutsql = $vbulletin->db->query_read("
Select * from ".TABLE_PREFIX."userfield
Where userid = $uid
");
$about = $vbulletin->db->fetch_array($aboutsql);
$biography = $about['field1'];
$location = $about['field2'];
$interests = $about['field3'];
$occupation = $about['field4'];
$db->free_result($sql);
}
eval('$vum = "' . fetch_template('vum') . '";');]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>location</title>
<hookname>forumhome_start</hookname>
<phpcode><![CDATA[$yer = $vbulletin->options['vum_yer'];
switch($yer){
case 1:
$searchtext = "<!-- main -->";
$vbulletin->templatecache['FORUMHOME'] = str_replace($searchtext,
fetch_template(vum).$searchtext, $vbulletin->templatecache['FORUMHOME']);
break;
case 2:
$searchtext = "<!-- /main -->";
$vbulletin->templatecache['FORUMHOME'] = str_replace($searchtext,
fetch_template(vum).$searchtext, $vbulletin->templatecache['FORUMHOME']);
break;
case 3:
$searchtext = "<!-- end what's going on box -->";
$vbulletin->templatecache['FORUMHOME'] = str_replace($searchtext,
$searchtext.fetch_template(vum), $vbulletin->templatecache['FORUMHOME']);
break;
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_vum_enabled_desc" date="1252225674" username="vLkn" version="1.0.0"><![CDATA[Yes/No]]></phrase>
<phrase name="setting_vum_enabled_title" date="1252225674" username="vLkn" version="1.0.0"><![CDATA[Hack Enabled?]]></phrase>
<phrase name="setting_vum_id_desc" date="1252300486" username="vLkn" version="1.0.0"><![CDATA[Type user's user id]]></phrase>
<phrase name="setting_vum_id_title" date="1252300486" username="vLkn" version="1.0.0"><![CDATA[User ID]]></phrase>
<phrase name="setting_vum_yer_desc" date="1252315848" username="vLkn" version="1.2.0"><![CDATA[Select User Of The Month Table Location]]></phrase>
<phrase name="setting_vum_yer_title" date="1252315848" username="vLkn" version="1.2.0"><![CDATA[Table Location]]></phrase>
<phrase name="settinggroup_vum" date="1252225650" username="vLkn" version="1.0.0"><![CDATA[User of the Mont Settings]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="vum" displayorder="600">
<setting varname="vum_enabled" displayorder="10">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="vum_id" displayorder="20">
<datatype>free</datatype>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="vum_yer" displayorder="30">
<datatype>free</datatype>
<optioncode><![CDATA[<select name=\"setting[$setting[varname]]\" size=\"1\" id=\"select\">
<option value=\"1\" " . iif($setting['value']==1,'selected="selected"') . ">Below Navbar</option>
<option value=\"2\" " . iif($setting['value']==2,'selected="selected"') . ">Below Forums</option>
<option value=\"3\" " . iif($setting['value']==3,'selected="selected"') . ">Below What's Going On Box</option>
</select>]]></optioncode>
<defaultvalue>1</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>