Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Category page first extension made by mark problems
Ok so I tried the category page first extension mark posted in one of the topics about getting the categories page to show up first instead of the discussions page and I couldn't get it to work properly. It did make the category page first, but if I tried going to any other tab or page on my site it would just go back to the category page every time. Here's my code in the default.php:
<?php
/*
Extension Name: Category Page First
Extension Url: http://lussumo.com/docs/
Description: Makes the category page the default page.
Version: 1.0
Author: Mark O'Sullivan
Author Url: http://www.markosullivan.ca/
*/
// Make the category tab come first.
$Configuration['TAB_POSITION_CATEGORIES'] = '20';
$Configuration['TAB_POSITION_DISCUSSIONS'] = '30';
// If looking at the discussions without a category specified, send them to the category page.
if ($Context->SelfUrl == 'index.php' && ForceIncomingInt('CategoryID', 0) == 0) {
header('location:categories.php');
}
?>
0
This discussion has been closed.
Comments
ie
type in http://rivercity.waterski.org and you get redirected to http://rivercity.waterski.org/Forum/?Page=welcome
go to url="whatever it should redirect to"
after content="#of seconds"
<html> <meta http-equiv="refresh" content="1;url=http://rivercity.waterski.org/Forum/?Page=Welcome"> </html>
I dont know if 0 seconds works, 1 sec seems like instantaneous... the page loads then goes to the new address