PDA

View Full Version : Mini Mods - Latest threads


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

ravenfaust
01-04-2010, 03:39 AM
i dont understand what this is?

MarkFoster
01-04-2010, 04:06 AM
Lol, good job at stretching the front page, yilmaz68.

http://img99.imageshack.us/img99/6286/lolpf.png

i dont understand what this is?

It's a page that shows the latest threads created.

saadessa
01-04-2010, 04:47 AM
applied and workink fine tank you

yilmaz68
01-04-2010, 05:48 PM
your welcome : )

@Mark, thanks.

yilmaz
01-05-2010, 08:30 AM
very nice thanks