yilmaz68
01-02-2010, 10:00 PM
yoursitename.com/latestthreads.php
Note : If these settings do not come within the page threads ;
vB Options --> External data provider --> Features Open external Javascript? : YES
Maximum External Registration : 100
SAVE and exit.
and now, follow it :
Admincp -> Styles & Themes --> Styles Management --> Your Theme -->
ADD NEW TEMPLATE ;
template name : latestthreads
and, add that codes ;
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="XHTML namespace (http://www.w3.org/1999/xhtml)">
<head>
<title>$vboptions[bbtitle] - Latest Threads</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="60%" align="center">
<tr>
<td class="tcat">Latest Threads</td>
</tr>
<tr>
<td class="alt1">
<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<fieldset><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <span class=\"time\">(Poster: "+threads[x].poster+")</span></fieldset>");
}
//-->
</script>
</div>
</td>
</tr>
</table>
$footer
</body>
</html>
Admin CP --> Plug-in --> add Plug-in and that two plug-in add :
1. Plug-in : (Hook) : online_location_process
İsim : Latest Threads WOL Showing
Aktive : Yes
if($filename=='latestthreads.php'){$userinfo['activity'] = 'latestthreads';}
2. Plug-in : (Hook) : online_location_unknown
İsim : Latest Threads WOL Unknown
Aktive : Yes
if($userinfo['activity']=='latestthreads')
{
$userinfo['where'] = '<a href="latestthreads.php'.$vbulletin->session->vars[sessionurl].'">'.Look Latest Threads Page.'</a>';
$userinfo['action'] = '';
$handled = true;
}
Hail from Turkei's Istanbul city, Respect all to you...
Note : If these settings do not come within the page threads ;
vB Options --> External data provider --> Features Open external Javascript? : YES
Maximum External Registration : 100
SAVE and exit.
and now, follow it :
Admincp -> Styles & Themes --> Styles Management --> Your Theme -->
ADD NEW TEMPLATE ;
template name : latestthreads
and, add that codes ;
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="XHTML namespace (http://www.w3.org/1999/xhtml)">
<head>
<title>$vboptions[bbtitle] - Latest Threads</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="60%" align="center">
<tr>
<td class="tcat">Latest Threads</td>
</tr>
<tr>
<td class="alt1">
<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<fieldset><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <span class=\"time\">(Poster: "+threads[x].poster+")</span></fieldset>");
}
//-->
</script>
</div>
</td>
</tr>
</table>
$footer
</body>
</html>
Admin CP --> Plug-in --> add Plug-in and that two plug-in add :
1. Plug-in : (Hook) : online_location_process
İsim : Latest Threads WOL Showing
Aktive : Yes
if($filename=='latestthreads.php'){$userinfo['activity'] = 'latestthreads';}
2. Plug-in : (Hook) : online_location_unknown
İsim : Latest Threads WOL Unknown
Aktive : Yes
if($userinfo['activity']=='latestthreads')
{
$userinfo['where'] = '<a href="latestthreads.php'.$vbulletin->session->vars[sessionurl].'">'.Look Latest Threads Page.'</a>';
$userinfo['action'] = '';
$handled = true;
}
Hail from Turkei's Istanbul city, Respect all to you...