User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Existing Scripts section within the Web Development category of DaniWeb, a massive community of 361,899 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,383 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Existing Scripts advertiser:
Views: 23191 | Replies: 117
Reply
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

vBulletin mod_rewrite for vB 3.0.7

  #1  
Apr 30th, 2005
I figured it was about time I updated my mod_rewrite tutorial for vBulletin. Therefore, I decided to provide you guys with the exact, full mod_rewrite that I use here at DaniWeb. It's written for a clean install of vB 3.0.7. This version is not for the faint of heart!

Some new features you can expect to find in this version, that aren't in previous versions, included multi-page support, support for linear, hybrid, and threaded thread modes, full support in the who's online (no more Unknown Locations!), previous / next thread links, and much more!

Attached is my massive .htaccess file. Rename it .htaccess and upload it to your forum directory. Also attached is an .xml file that contains all of the templates that need to be changed. They are already fully edited. Use the vB Admin Panel to create a new style out of the attached XML file. Then, simply edit it as you'd like. However, for the most part, CSS customizations will do - most of what I accomlish at DaniWeb is mere changing the CSS and the header and footer templates.

Below are the PHP files that need to be edited. You will notice two lines at a time. The first line represents what to search for, and the second line represents what to replace it with.

<< update >>

This hack is now obsolete! Please visit the new version:

http://www.daniweb.com/techtalkforums/thread35147.html


<< end update >>

So without further ado ...

forumdisplay.php

[php]$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
$navbits["forum$forumID.html"] = $forumTitle; // edited by Dani

$announcementidlink = iif(!$vboptions['oneannounce'] , "&amp;announcementid=$announcement[announcementid]");
$announcementidlink = iif(!$vboptions['oneannounce'] , "-$announcement[announcementid]");

$pagenav = construct_page_nav($totalthreads, "forumdisplay.php?$session[sessionurl]f=$forumid", "&amp;sort=$sortfield&amp;order=$sortorder&amp;pp=$perpage&amp;daysprune=$daysprune");
$pagenav = construct_page_nav($totalthreads, "forum$forumid", "-$sortfield-$sortorder-$perpage-$daysprune.html");[/php]

search.php

[php]$highlightwords = '&amp;highlight=' . urlencode(implode(' ', $display['highlight']));
$highlightwords = '-' . urlencode(implode(' ', $display['highlight']));

$display['forums']["$key"] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
$display['forums']["$key"] = "<a href=\"forum$forumid.html\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
[/php]

showthread.php

[php]$highlightwords = iif($goto, '&', '&amp;') . 'highlight=' . urlencode($_GET['highlight']);
$highlightwords = '-' . urlencode($_GET['highlight']);

exec_header_redirect("showthread.php?$session[sessionurl_js]p=$getlastpost[postid]$highlightwords#post$getlastpost[postid]");
exec_header_redirect("threadedpost$getlastpost[postid]$highlightwords.html#post$getlastpost[postid]");

exec_header_redirect("showthread.php?$session[sessionurl_js]p=$posts[postid]$highlightwords#post$posts[postid]");
exec_header_redirect("threadedpost$posts[postid]$highlightwords.html#post$posts[postid]");

exec_header_redirect("showthread.php?$session[sessionurl_js]t=$threadinfo[threadid]&goto=lastpost$highlightwords");
exec_header_redirect("lastpostinthread$threadinfo[threadid]$highlightwords.html");

exec_header_redirect("showthread.php?$session[sessionurl_js]t=$thread[pollid]");
exec_header_redirect("thread$thread[pollid].html");

$pagenav = construct_page_nav($totalposts, "showthread.php?$session[sessionurl]t=$threadid", "&amp;pp=$perpage$highlightwords");
$pagenav = construct_page_nav($totalposts, "threadnav$threadid", "-$perpage$highlightwords.html");

$firstunread = 'showthread.php?' . $session['sessionurl'] . 't=' . $threadid . '&goto=newpost';
$firstunread = 'newpostinthread' . $threadid . '.html';

$pagenav = construct_page_nav($numhybrids, "showthread.php?$session[sessionurl]p=$_REQUEST[postid]", "&amp;pp=$perpage$highlightwords");
$pagenav = construct_page_nav($numhybrids, "post$_REQUEST[postid]", "-$perpage$highlightwords.html");

$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
$navbits["forum$forumID.html"] = $forumTitle;
[/php]

clientscript/vbulletin_thrdpostlist.js

[php]window.location = "showthread.php?" + SESSIONURL + "postid=" + postid + "#poststop";
window.location = "post" + postid + ".html#poststop";

document.write('<a href="showthread.php?postid=' + postid + highlightwords + '#post' + postid + '" id="link' + postid + '"><i>' + morephrase + '</i></a></div>\n');
document.write('<a href="threadedpost' + postid + highlightwords + '.html#post' + postid + '" id="link' + postid + '"><i>' + morephrase + '</i></a></div>\n');

document.write('<a href="showthread.php?postid=' + postid + highlightwords + '#post' + postid + '" onclick="return showPost(' + postid + ')" id="link' + postid + '"' + titlestyle + '>' + title + '</a> ');
document.write('<a href="threadedpost' + postid + highlightwords + '.html#post' + postid + '" onclick="return showPost(' + postid + ')" id="link' + postid + '"' + titlestyle + '>' + title + '</a> ');
[/php]

includes/functions_forumdisplay.php

[php]$address = "showthread.php?$session[sessionurl]t=$thread[threadid]";
$address = "threadnav$thread[threadid]";

$address2 = "$thread[highlight]";
$address2 = "-$vboptions[maxposts]$thread[highlight].html";[/php]

includes/functions_online.php

[php] $userinfo['where'] = "<a href=\"showthread.php?$session[sessionurl]t=$threadid\" title=\"$threadpreview\">$threadtitle</a>";
$userinfo['where'] = "<a href=\"thread$threadid.html\" title=\"$threadpreview\">$threadtitle</a>";

$userinfo['where'] = "<a href=\"showthread.php?$session[sessionurl]p=$postid#postid=$postid\" title=\"$threadpreview\">$threadtitle</a>";
$userinfo['where'] = "<a href=\"post$postid.html#post$postid\" title=\"$threadpreview\">$threadtitle</a>";

$userinfo['where'] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>";
$userinfo['where'] = "<a href=\"forum$forumid.html\">$forumtitle</a>";[/php]

Also, in functions_online.php, after
[php] $userinfo['values'] = $values;[/php]
insert
[php] // added by dani for seo hack
if (eregi("thread([0-9]+).html$", $filename, $tmatch))
{
$filename = 'showthread.php';
$values['threadid'] = $tmatch[1];
}

if (eregi("forum([0-9]+).html$", $filename, $fmatch))
{
$filename = 'forumdisplay.php';
$values['forumid'] = $fmatch[1];
}

if (eregi("post([0-9]+).html$", $filename, $pmatch))
{
$filename = 'showthread.php';
$values['postid'] = $pmatch[1];
}
if (eregi("post([0-9]+).html#post([0-9]+)$", $filename, $pmatch))
{
$filename = 'showthread.php';
$values['postid'] = $pmatch[1];
}
// added by dani for seo hack[/php]

Thanks for everyone's support with this hack over the last months. Keep in mind, as always, please don't redistribute my code in any way, shape, or form, on other websites, or in print. While I am offering use of this code for free, I put many hours into figuring out the algorithm, coding it, and publishing it, and it is still my intellectual property, and I would like the display of the code, itself, it to stay on DaniWeb only. I appreciate your cooperation. This also ensures that everyone can get support all in one place.

And as always, a link back is much appreciated but not necessary!
Last edited by cscgal : Nov 10th, 2005 at 1:26 pm. Reason: Link to updated version
Attached Files
File Type: txt htaccess.txt (2.7 KB, 484 views)
File Type: xml vbulletin-seo.xml (90.8 KB, 386 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Posts: 16
Reputation: yakusasci is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
yakusasci yakusasci is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite for vB 3.0.7

  #2  
Apr 30th, 2005
Really great job ! I'm gonna test it soon. Thanks so much.

Juste one thing missing :

When you are on a forum, for example : http://www.daniweb.com/techtalkforums/forum34.html you have this :

vBulletin mod_rewrite ( 1 2 3 4 5 ... Last Page )
cscgal

1,2, 3 ... is ok

but last page doesn't match : http://www.daniweb.com/techtalkforum...&goto=lastpost

Hope this helps

Yakusasci
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #3  
Apr 30th, 2005
Don't worry - it turns out that is actually a bug I had on DaniWeb where some forums displayed correctly and others didn't. I'll fix it right now. But it's actually the correct way in the tutorial and should work with no problems
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #4  
Apr 30th, 2005
I recently realized that you must be a logged in member in order to download the above attachments. And I do understand that not everyone wishes to register on DaniWeb (tear). The reason I attached the files is because they're rather lengthy and it's easy to just download them and then upload them to your web-server as is. However, for those of you who are unable to do that because you are not registered, the code is available here:

The first is the .htaccess file

[html]Options +FollowSymLinks
RewriteEngine on
RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^forum([0-9]+)-([0-9]+)-(.*)-(.*)-([0-9]+)-(.*).html$ forumdisplay.php?f=$1&page=$2&sort=$3&order=$4&pp=$5&daysprune=$6 [L]
RewriteRule ^announcement([0-9]+).html$ announcement.php?f=$1 [L]
RewriteRule ^announcement([0-9]+)-([0-9]+).html$ announcement.php?f=$1&announcementid=$2 [L]
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^thread([0-9]+)-(.*).html$ showthread.php?t=$1&highlight=$2 [L]
RewriteRule ^nextnewesttothread([0-9]+).html$ showthread.php?t=$1&goto=nextnewest [L]
RewriteRule ^nextoldesttothread([0-9]+).html$ showthread.php?t=$1&goto=nextoldest [L]
RewriteRule ^threadnav([0-9]+)-([0-9]+).html$ showthread.php?t=$1&page=$2&pp=$3 [L]
RewriteRule ^threadnav([0-9]+)-([0-9]+)-([0-9]+).html$ showthread.php?t=$1&page=$2&pp=$3 [L]
RewriteRule ^threadnav([0-9]+)-([0-9]+)-([0-9]+)-(.*).html$ showthread.php?t=$1&page=$2&pp=$3&highlight=$4 [L]
RewriteRule ^threadmode([0-9]+)-linear.html$ showthread.php?t=$1&mode=linear [L]
RewriteRule ^threadmode([0-9]+)-hybrid.html$ showthread.php?t=$1&mode=hybrid [L]
RewriteRule ^threadmode([0-9]+)-threaded.html$ showthread.php?t=$1&mode=threaded [L]
RewriteRule ^threadmode([0-9]+)-linear-(.*).html$ showthread.php?t=$1&highlight=$2&mode=linear [L]
RewriteRule ^threadmode([0-9]+)-hybrid-(.*).html$ showthread.php?t=$1&highlight=$2&mode=hybrid [L]
RewriteRule ^threadmode([0-9]+)-threaded-(.*).html$ showthread.php?t=$1&highlight=$2&mode=threaded [L]
RewriteRule ^post([0-9]+).html$ showthread.php?p=$1
RewriteRule ^post([0-9]+)-([0-9]+).html$ showpost.php?p=$1&postcount=$2 [L]
RewriteRule ^post([0-9]+)-([0-9]+)-([0-9]+)-(.*).html$ showthread.php?p=$1&page=$2&pp=$3&highlight=$4 [L]
RewriteRule ^threadedpost([0-9]+).html$ showthread.php?p=$1 [L]
RewriteRule ^threadedpost([0-9]+)-(.*).html$ showthread.php?p=$1&highlight=$2 [L]
RewriteRule ^postmode([0-9]+)-linear-(.*).html$ showthread.php?p=$1&highlight=$2&mode=linear [L]
RewriteRule ^postmode([0-9]+)-hybrid-(.*).html$ showthread.php?p=$1&highlight=$2&mode=hybrid [L]
RewriteRule ^postmode([0-9]+)-threaded-(.*).html$ showthread.php?p=$1&highlight=$2&mode=threaded [L]
RewriteRule ^postmode([0-9]+)-(.*).html$ showthread.php?p=$1&mode=$2 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+)-(.*).html$ showthread.php?goto=lastpost&t=$1&highlight=$2 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L][/html]
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #5  
Apr 30th, 2005
The vbulletin-seo.xml file is broken down into multiple parts because it's way too long to be handled by the forum system. Be sure to copy and paste it all into one XML file and save it to your local computer. Then, go into the vB Admin Panel, and upload and import it into a new style.

[html]<?xml version="1.0" encoding="ISO-8859-1"?>

<style name="SEO Friendly" vbversion="3.0.7" type="custom">

<templategroup name="Forum Display">
<template name="FORUMDISPLAY" templatetype="template" date="1114833497" username="cscgal" version="3.0.7"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<meta name="description" content="$foruminfo[description]" />
<title>$foruminfo[title]</title>
$headinclude
</head>
<body>
$header
$navbar

<if condition="$show['forumslist']">
<!-- sub-forum list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">: $foruminfo[title]</span></td>
<if condition="$show['forumsearch']">
<td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td>
</if>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<br />
<!-- / sub-forum list -->
</if>

<if condition="$show['threadslist']">
<!-- threads list -->

<!-- controls above thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav"><td align="$stylevar">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal">: $foruminfo[title]</span></td>
<td class="vbmenu_control" id="forumtools"><a href="#goto_forumtools">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td>
<if condition="$show['forumsearch']">
<td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td>
</if>
</tr>
</table>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$announcebits
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2">&nbsp;</td>
<else />
<td class="thead">&nbsp;</td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="floatstylevar"><a href="$sorturl&amp;order=desc&amp;sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&amp;order=asc&amp;sort=title">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views">$vbphrase[views]</a> $sortarrow[views]</span></td>
</tr>
<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
<!-- <tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>">&nbsp;</td></tr>-->
</if>
$threadbits
<!-- end show threads -->
<else />
<!-- show no threads message -->
<tr>
<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
<div style="padding: 16px">
<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
</div>
</td>
</tr>
<!-- end show no threads message -->
</if>
</table>



<!-- controls below thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav"><td align="$stylevar">$pagenav</td></if>
</tr>
</table>
<!-- / controls below thread list -->


<br />






<!-- Active Users in this Forum (and sub-forums) and Moderators -->

<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[display_options]</td>
<if condition="$show['activeusers']">
<td class="tcat">$vbphrase[currently_active_users]</td>
</if>
<if condition="$show['moderators']">
<td class="tcat">$vbphrase[moderators]</td>
</if>
</tr>
<tr>
<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
<if condition="$show['activeusers']">
<td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td>
</if>
<if condition="$show['moderators']">
<td class="thead">$vbphrase[moderators]: $totalmods</td>
</if>
</tr>
<tr valign="top">
<td class="alt1">

<table cellpadding="0" cellspacing="1" border="0" width="auto">
<tr>
<td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td>
<td><select name="sort">
<option value="title" $sort[title]>$vbphrase[thread_title]</option>
<option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
<option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option>
<option value="views" $sort[views]>$vbphrase[number_of_views]</option>
<option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option>
<if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if>
</select></td>
<td class="smallfont" style="padding-right:6px; padding-left:12px">$vbphrase[sort_order]</td>
<td><select name="order">
<option value="asc" $order[asc]>$vbphrase[ascending]</option>
<option value="desc" $order[desc]>$vbphrase[descending]</option>
</select></td>
</tr>
<tr>
<td class="smallfont" style="padding-right:6px">$vbphrase[from_the]</td>
<td><select name="daysprune">
<option value="1" $daysprunesel[1]>$vbphrase[last_day]</option>
<option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option>
<option value="7" $daysprunesel[7]>$vbphrase[last_week]</option>
<option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option>
<option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option>
<option value="30" $daysprunesel[30]>$vbphrase[last_month]</option>
<option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option>
<option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option>
<option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option>
<option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option>
<option value="365" $daysprunesel[365]>$vbphrase[last_year]</option>
<option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option>
</select></td>
<td colspan="2" align="$stylevar"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
</tr>
</table>

</td>
<if condition="$show['activeusers']">
<td class="alt1"><div class="smallfont">$activeusers</div></td>
</if>
<if condition="$show['moderators']">
<td class="alt1"><div class="smallfont">$moderatorslist&nbsp;</div></td>
</if>
</tr>
</table>

</form>
<!-- End Active Users in this Forum (and sub-forums) and Moderators -->

<if condition="$show['popups']">
<br />
<!-- popup menu contents -->


<!-- forum tools menu -->
<div class="vbmenu_popup" id="forumtools_menu" style="display:none">
<form action="moderator.php" method="post" name="forumadminform">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td></tr>
<if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]">$vbphrase[post_a_new_thread]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]">$vbphrase[mark_this_forum_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]">$vbphrase[subscribe_to_this_forum]</a></td></tr>
<tr><td class="vbmenu_option"><a href="forum$foruminfo[parentid].html">$vbphrase[view_parent_forum]</a></td></tr>
<if condition="$show['adminoptions']">
<tr>
<td class="thead">$vbphrase[admin_tools]<a name="goto_forumadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="fa_mpo"><input type="radio" name="do" id="fa_mpo" value="modposts" checked="checked" />$vbphrase[view_posts_queue]</label></div>
<div><label for="fa_mat"><input type="radio" name="do" id="fa_mat" value="modattach" />$vbphrase[view_attachment_queue]</label></div>
<div><label for="fa_mov"><input type="radio" name="do" id="fa_mov" value="move" />$vbphrase[massmove_threads]</label></div>
<div><label for="fa_prn"><input type="radio" name="do" id="fa_prn" value="prune" />$vbphrase[massprune_threads]</label></div>
<if condition="$show['addmoderator']">
<div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div>
</if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / forum tools menu -->

<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr valign="top">
<!-- forum tools -->
<td class="alt1">
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[mark_this_forum_read]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]">$vbphrase[mark_this_forum_read]</a></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" /> <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]">$vbphrase[subscribe_to_this_forum]</a></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forum$foruminfo[parentid].html">$vbphrase[view_parent_forum]</a></div>
</div>
</td>
<!-- / forum tools -->

<!-- search this forum -->
<td class="alt1">
<form action="search.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<strong>$vbphrase[search_this_forum]</strong>:<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php?$session[sessionurl]forumid=$forumid">$vbphrase[advanced_search]</a>
</div>
</form>
</td>
<!-- / search this forum -->
</tr>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>


<!-- ############## END THREADS LIST ############## -->
</if>

<if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]forumid=$forumid">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / forum search menu -->
</if>

<!-- icon key -->
<if condition="$show['threadslist']">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td>
<td class="smallfont">$vbphrase[new_posts]</td>
<if condition="$vboptions['usehotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
<td class="smallfont">$vbphrase[hot_thread_with_new_posts]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td>
<td class="smallfont">$vbphrase[no_new_posts]</td>
<if condition="$vboptions['usehotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
<td class="smallfont">$vbphrase[hot_thread_with_no_new_posts]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td>
<td class="smallfont">$vbphrase[thread_is_closed]</td>
<if condition="$show['dotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td>
<td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
</table>
<else />
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
</tr>
</table>
</if>
<!-- / icon key -->

<!-- forum rules & forum jump -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td width="100%">
<div class="smallfont">&nbsp;</div>
<if condition="$show['threadslist']">$forumrules</if>
</td>
<td>
$forumjump
<if condition="!$show['popups'] AND $show['adminoptions']">
<br />
<form action="moderator.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
<select name="do" onchange="this.form.submit();">
<optgroup label="$vbphrase[admin_tools]">
<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
<option value="modattach">$vbphrase[view_attachment_queue]</option>
<option value="move">$vbphrase[mass_move]</option>
<option value="prune">$vbphrase[mass_prune]</option>
<if condition="$show['addmoderator']">
<option value="addmoderator">$vbphrase[add_moderator]</option>
</if>
</optgroup>
</select>$gobutton
</form>
</if>
</td>
</tr>
</table>
<!-- / forum rules & forum jump -->

$footer
</body>
</html>
]]></template>[/html]
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #6  
Apr 30th, 2005
[html]<template name="forumdisplay_announcement" templatetype="template" date="1114833523" username="cscgal" version="3.0.7"><![CDATA[<tr>

<td class="alt1"><img src="$stylevar[imgdir_statusicon]/announcement_$announcement[statusicon].gif" border="0" alt="$vbphrase[announcement]" /></td>

<td class="alt2" colspan="<if condition="$show['threadicons']">5<else />4</if>">

<div>

<span class="smallfont" style="floatstylevar">$vbphrase[views]: <strong>$announcement[views]</strong> <a href="announcement$foruminfo[forumid]$announcementidlink.html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="" border="0" /></a></span>

<strong>$vbphrase[announcement]</strong>: <a href="announcement$foruminfo[forumid]$announcementidlink.html">$announcement[title]</a>

</div>

<div>

<span class="smallfont" style="floatstylevar">$announcement[postdate]</span>

<span class="smallfont"><a href="member.php?$session[sessionurl]u=$announcement[userid]" target="_blank">$announcement[username]</a> ($announcement[usertitle])</span>

</div>

</td>

</tr>]]></template>

</templategroup>



<templategroup name="Forum Home">

<template name="FORUMHOME" templatetype="template" date="1114833616" username="cscgal" version="3.0.7"><![CDATA[$stylevar[htmldoctype]

<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">

<head>

<!-- no cache headers -->

<meta http-equiv="Pragma" content="no-cache" />

<meta http-equiv="Expires" content="-1" />

<meta http-equiv="Cache-Control" content="no-cache" />

<!-- end no cache headers -->

<title>$vboptions[bbtitle]</title>

$headinclude

</head>

<body>

$header

$navbar



<!-- main -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<thead>

<if condition="$show['guest']">

<!-- guest welcome message -->

<tr>

<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>

</tr>

<tr>

<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">

<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>

</td>

</tr>

<!-- / guest welcome message -->

</if>

<tr align="center">

<td class="thead">&nbsp;</td>

<td class="thead" width="100%" align="$stylevar">$vbphrase[forum]</td>

<td class="thead" width="175">$vbphrase[last_post]</td>

<td class="thead">$vbphrase[threads]</td>

<td class="thead">$vbphrase[posts]</td>

<if condition="$vboptions['showmoderatorcolumn']">

<td class="thead">$vbphrase[moderator]</td>

</if>

</tr>

</thead>

$forumbits

<tbody>

<tr>

<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>

<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>

&nbsp; &nbsp;

<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>

</strong></div></td>

</tr>

</tbody>

</table>

<!-- /main -->



<br />

<br />



<!-- what's going on box -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<thead>

<tr>

<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>

</tr>

</thead>

<if condition="$show['loggedinusers']">

<!-- logged-in users -->

<tbody>

<tr>

<td class="thead" colspan="2">

<a style="floatstylevar" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>

<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)

</td>

</tr>

</tbody>

<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">

<tr>

<td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>

<td class="alt1" width="100%">

<div class="smallfont">

<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>

<div>$activeusers</div>

</div>

</td>

</tr>

</tbody>

<!-- end logged-in users -->

</if>

<tbody>

<tr>

<td class="thead" colspan="2">

<a style="floatstylevar" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>

<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>

</td>

</tr>

</tbody>

<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">

<tr>

<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>

<td class="alt1" width="100%">

<div class="smallfont">

<div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>

<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>

</div>

</td>

</tr>

</tbody>

<if condition="$show['birthdays']">

<!-- today's birthdays -->

<tbody>

<tr>

<td class="thead" colspan="2">

<a style="floatstylevar" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>

$vbphrase[todays_birthdays]

</td>

</tr>

</tbody>

<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">

<tr>

<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>

<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>

</tr>

</tbody>

<!-- end today's birthdays -->

</if>

<if condition="$show['upcomingevents']">

<tbody>

<tr>

<td class="thead" colspan="2">

<a style="floatstylevar" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>

<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>

</td>

</tr>

</tbody>

<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">

<tr>

<td class="alt2"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>

<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>

</tr>

</tbody>

</if>

</table>

<br />

<!-- end what's going on box -->



<!-- icons and login code -->

<table cellpadding="0" cellspacing="2" border="0" width="100%">

<tr valign="bottom">

<td>

<table cellpadding="2" cellspacing="0" border="0">

<tr>

<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>

<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>

</tr>

<tr>

<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>

<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>

</tr>

<tr>

<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>

<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>

</tr>

</table>

</td>

<if condition="!$show['guest']">

<!-- member logout -->

<td align="$stylevar"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>

<!-- end member logout -->

</if>

</tr>

</table>

<!-- / icons and login code -->



$footer

</body>

</html>

]]></template>

<template name="forumhome_forumbit_level1_nopost" templatetype="template" date="1114833874" username="cscgal" version="3.0.7"><![CDATA[<tbody>

<tr>

<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

<a style="floatstylevar" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>



<a href="forum$forum[forumid].html">$forum[title]</a>

<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</td>

</tr>

</tbody>

<if condition="$childforumbits">

<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">

$childforumbits

</tbody>

</if>

]]></template>

<template name="forumhome_forumbit_level1_post" templatetype="template" date="1114833927" username="cscgal" version="3.0.7"><![CDATA[<tbody>

<tr align="center">

<td class="alt1Active" colspan="2" align="$stylevar" id="f$forum[forumid]">



<table cellpadding="0" cellspacing="0" border="0">

<tr>

<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>

<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>

<td>

<div>

<a href="forum$forum[forumid].html"><strong>$forum[title]</strong></a>

<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>

</div>

<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>

<if condition="$show['subforums']"><div class="smallfont" style="margin-topstylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</td>

</tr>

</table>



</td>

<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

<td class="alt1">$forum[threadcount]</td>

<td class="alt2">$forum[replycount]</td>

<if condition="$vboptions['showmoderatorcolumn']">

<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>

</if>

</tr>

</tbody>

<if condition="$childforumbits">

<tbody>

$childforumbits

</tbody>

</if>

]]></template>

<template name="forumhome_forumbit_level2_nopost" templatetype="template" date="1114834009" username="cscgal" version="3.0.7"><![CDATA[<tr>

<td class="tcat"><span class="smallfont">&nbsp;</span></td>

<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">5<else />4</if>">

<a href="forum$forum[forumid].html">$forum[title]</a>

<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</td>

</tr>

$childforumbits

]]></template>

<template name="forumhome_forumbit_level2_post" templatetype="template" date="1114834049" username="cscgal" version="3.0.7"><![CDATA[<tr align="center">

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>

<td class="alt1Active" align="$stylevar" id="f$forum[forumid]">

<div>

<a href="forum$forum[forumid].html"><strong>$forum[title]</strong></a>

<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>

</div>

<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>

<if condition="$show['subforums']"><div class="smallfont" style="margin-topstylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</td>

<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

<td class="alt1">$forum[threadcount]</td>

<td class="alt2">$forum[replycount]</td>

<if condition="$vboptions['showmoderatorcolumn']">

<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>

</if>

</tr>

$childforumbits

]]></template>

<template name="forumhome_lastpostby" templatetype="template" date="1114834091" username="cscgal" version="3.0.7"><![CDATA[<if condition="$show['lastpostinfo']">

<div class="smallfont" align="$stylevar">

<div style="clear:both">

<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>

<a href="newpostinthread$lastpostinfo[lastthreadid].html" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>

</div>

<div<if condition="is_browser('ie', 6)"> style="floatstylevar"</if>>

<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>

</div>

<div align="$stylevar">

$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>

<a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>

</div>

</div>

<else />

<div class="smallfont" align="$stylevar">

$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>

<a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>

</div>

</if>

]]></template>

</templategroup>[/html]
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,866
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #7  
Apr 30th, 2005
[html]<templategroup name="Navigation / Breadcrumb">

<template name="navbar" templatetype="template" date="1114834285" username="cscgal" version="3.0.7"><![CDATA[<script type="text/javascript">

<!--

function log_out()

{

ht = document.getElementsByTagName("html");

ht[0].style.filter = "progidXImageTransform.Microsoft.BasicImage(grayscale=1)";

if (confirm('$vbphrase[sure_you_want_to_log_out]'))

{

return true;

}

else

{

ht[0].style.filter = "";

return false;

}

}

//-->

</script>



<br />



<!-- breadcrumb, login, pm info -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>

<td class="alt1" width="100%">

<if condition="is_array($navbits)">

<table cellpadding="0" cellspacing="0" border="0">

<tr valign="bottom">

<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>

<td>&nbsp;</td>

<td width="100%"><span class="navbar"><a href="./" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>

</tr>

<tr>

<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>

</tr>

</table>

<else />

<div class="navbar" style="font-size:10pt"><a href="./" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>

</if>

</td>



<if condition="$bbuserinfo['userid']">



<td class="alt2" valign="top" nowrap="nowrap">

<div class="smallfont">

<!--<span style="floatstylevar">[<a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>

</div>

</td>



<else />



<td class="alt2" nowrap="nowrap" style="padding:0px">



<!-- login form -->

<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">

<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>

<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">

<tr>

<td class="smallfont">$vbphrase[username]</td>

<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>

<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>

</tr>

<tr>

<td class="smallfont">$vbphrase[password]</td>

<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>

<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>

</tr>

</table>

<input type="hidden" name="s" value="$session[sessionhash]" />

<input type="hidden" name="do" value="login" />

<input type="hidden" name="forceredirect" value="1" />

<input type="hidden" name="vb_login_md5password" />

<input type="hidden" name="vb_login_md5password_utf" />

</form>

<!-- / login form -->



</td>



</if>



</tr>

</table>

<!-- / breadcrumb, login, pm info -->



<!-- nav buttons bar -->

<div align="center">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">

<tr align="center">

<!--<td class="vbmenu_control"><a href="../">Home</a></td>-->



<if condition="$show['member']">

<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>

</if>

<if condition="$show['registerbutton']">

<td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>

</if>

<td class="vbmenu_control"><a href="faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td>

<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>

<if condition="$show['popups']">

<if condition="$show['searchbuttons']">

<if condition="$show['member']">

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>

<else />

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>

</if>

<td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>

</if>

<if condition="$bbuserinfo['userid']">

<td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>

</if>

<else />

<if condition="$show['searchbuttons']">

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a></td>

<if condition="$show['member']">

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>

<else />

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>

</if>

</if>

<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>

<if condition="$bbuserinfo['userid']">

<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>

</if>

</if>

<if condition="$bbuserinfo['userid']">

<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a></td>

</if>

</tr>

</table>

</div>

<!-- / nav buttons bar -->



<br />

<br />



<if condition="$show['popups']">

<!-- NAVBAR POPUP MENUS -->



<if condition="$show['searchbuttons']">

<!-- header quick search form -->

<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">

<table cellpadding="4" cellspacing="1" border="0">

<tr>

<td class="thead">$vbphrase[search_forums]</td>

</tr>

<tr>

<td class="vbmenu_option" title="nohilite">

<form action="search.php" method="post">

<input type="hidden" name="do" value="process" />

<input type="hidden" name="showposts" value="0" />

<input type="text" class="bginput" name="query" size="20" />$gobutton<br />

</form>

</td>

</tr>

<tr>

<td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>

</tr>

</table>

</div>

<!-- / header quick search form -->

</if>



<if condition="$show['member']">

<!-- user cp tools menu -->

<div class="vbmenu_popup" id="usercptools_menu" style="display:none">

<table cellpadding="4" cellspacing="1" border="0">



<tr><td class="thead">$vbphrase[quick_links]</td></tr>

<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr></if>

<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>

<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>



<tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td></tr>

<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>

<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>

<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>

<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>



<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>

<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if>

<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>

<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>

<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>



</table>

</div>

<!-- / user cp tools menu -->

</if>

<!-- / NAVBAR POPUP MENUS -->

</if>]]></template>

</templategroup>



<templategroup name="Page Navigation">

<template name="pagenav" templatetype="template" date="1114834351" username="cscgal" version="3.0.7"><![CDATA[<div class=&q