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

edited January 2007 in Vanilla 1.0 Help
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'); } ?>

Comments

  • Err...it shouldnt do. What if you try browsing to something by typing the URl in the bar (e.g. domain.name/folder/search.php)?
  • I had the same problem with "Category Page First" however since I installed Discussion Overview I now have a much better first page than Categories alone. (Thanks Jazzman).
  • I have my install located in a folder on my server, so i just use a redirect...
    ie
    type in http://rivercity.waterski.org and you get redirected to http://rivercity.waterski.org/Forum/?Page=welcome
  • how do you do this redirection Waterski? I think i'll be happy with doing it that way. and Wanderer I have the discussion overview extension installed already, I was planning on modifying this category page first extension to redirect to a home tab I created instead.
  • edited November 2006
    This is the source of my index.html at the root of my site, so when you go to http://rivercity.waterski.org it lauches that page and that page tells it...

    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
  • ok cool thanks! :) now I don't have to mess with extensions and trying to edit the index.php file. :D
  • I'm having a problem with this extension myself. I cannot get to the discussions page at all. It always redirects to the categories page.
  • Waterskiaddict, that's cheating! I like it =)
This discussion has been closed.