Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: New Forum Software  (Read 5264 times)

0 Members and 1 Guest are viewing this topic.

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
New Forum Software
« on: July 13, 2008, 08:15:50 PM »

Good evening,

The Anope Team are pleased to unveil our new look forum with a Simple Machines Forum (SMF) which offers much more flexibility than our last offering with XMB.

We're open to suggestions on how to further improve the service we offer so please don't hesitate in getting in touch with us through the IRC Channel or indeed via PM on here.

Enjoy!

PS. Sadly due to the complexities in migrating such a large database over, we've lost a few of the more recent posts/registrations but feel free to post them again and I'm sure they'll get answered.

Anope Team.
Logged

eggburt

  • Anope User
  • Offline Offline
  • Posts: 1
Re: New Forum Software
« Reply #1 on: August 16, 2008, 07:03:48 PM »

Would it be possible to hack up a viewthread.php that redirects to the new style links?

There are many results on Google that get 404'd, it would be handy

e.g. taking from viewthread.php?tid=### and turning it into index.php?topic=### with a permanent redirect

Also has the added benefit of search engines updating themselves if they hit the link again :)
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: New Forum Software
« Reply #2 on: August 17, 2008, 08:43:00 PM »

I shall look into this.
Logged

metallica48423

  • Anope User
  • Offline Offline
  • Posts: 1
Re: New Forum Software
« Reply #3 on: August 17, 2008, 11:00:22 PM »

Not hard at all.  I wrote this up real quick.

Save this as "viewthread.php"

Code: [Select]
<?php

if(!empty($_GET[&#39;tid&#39;]))
{
        
$tid $_GET[&#39;tid&#39;];
        
header(&#39;HTTP/1.1 301 Moved Permanently&#39;);
        
header("location:http://forum.anope.org/index.php?topic=$tid");
}
else
{
        
header(&#39;location:http://forum.anope.org&#39;);
}

?>


This script serves three functions:

1.) redirects users who click the links to the SMF equivalent
2.) Tells bots the resource has moved permanently -- reindex the new link
3.) If they don't specify a topic ID, instead of blanking out or erroring, it'll send them to the forum homepage.
« Last Edit: August 17, 2008, 11:24:10 PM by metallica48423 »
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: New Forum Software
« Reply #4 on: August 18, 2008, 05:46:24 PM »

Another cookie for you!

In place, thanks for that.
Logged
Pages: [1]   Go Up