Jump to content
SAU Community

Recommended Posts

Hi Christian,

You may well be aware of this but I thought I would mention it anyway as others might find it useful.

I've been having a bit of a fiddle trying to get SAU forum links in posts before the switch to work.

vB uses a syntax like so:

http://www.skylinesaustralia.com/forums/showthread.php?t=

Invision uses a syntax like so:

http://www.skylinesaustralia.com/forums/index.php?showtopic=

So if I wanted to follow a link for the old forum like this one:

http://www.skylinesaustralia.com/forums/sh...ead.php?t=39145

I would just change it to:

http://www.skylinesaustralia.com/forums/in...showtopic=39145.

I would suggest running a SQL query to just replace all old vB references using the new syntax.

Unfortunately I haven't worked out how to get links to individual posts working yet. vB uses a syntax that only includes the post number, like so:

http://www.skylinesaustralia.com/forums/showthread.php?p=<postid>

Invision seems to use a syntax that calls the thread number and then the post number, like so:

http://www.skylinesaustralia.com/forums/index.php?showtopic=<topicid>&p=<postid>entry<postid>

Since you can't get the topic ID from the vB URL I can't see an easy fix.

Cheers

Lucien.

Link to comment
https://www.sau.com.au/forums/topic/83049-getting-old-vb-forum-links-to-work/
Share on other sites

The old thread linking is most likely an easy solution.

If this is hosted on a linux system then just symlink showthread.php -> index.php and edit index.php to contain something like

if($t) {
  $showtopic = $t;
}

Near the top of the index.php file. (Obviously that assumes that register_globals is on).

As for the individual posts, the solution should follow the same idea, but basically if $p then do a lookup through the database to find the thread # linked to that post id, then do a http redirect to index.php?showtopic=<topic_id>&view=findpost&p=<post_id>

Should work - And I agree that making this forum backwards compatible with the old forums links would be a great thing to do! :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Latest Posts

    • As a general rule removing rubber fuel hose is so difficult I would replace it if it hasn't been done in the last 5 years. The risk you damage the liner or one of the inner layers is pretty high if it's not almost brand new. BMW's recommendations around coolant hoses is similar. My R33's fuel hoses at the fuel tank were so perished that they were ready to burst FYI. 
    • Ah yep, will do. Cheers!
    • Yes. It's either "2 wires", or 1 wire, depending on how you look at it. It is the connection that ties the battery -ve to both the chassis and the engine. Every electron that goes in or out of the battery goes through those 2 small spots (on the inner guard and on the engine block). If those are not clean and tight, then shit starts to suffer. Yeah, but measure it again cold in the morning, after it has had hours to rest. You can't usefully test the charge state of a battery immediately after it has been running because the alternator puts a surface charge onto the plates that takes a while to soak in and balance out. It will always read higher, and potentially look properly healthy, when fresh off of charge. But hours later it can look a lot less healthy. It's also worth measuring the battery voltage while cranking, although this can be difficult with a typical DMM because the screem update rate is so slow on most of them. An analogue voltmeter is actually a better tool for that. If the voltage drops too far while cranking, it is a sign of a poor battery. Although I don't think we're necessarily looking for a weak battery here - just wanting to exclude it.
    • https://www.facebook.com/share/15ZMn5oXtc/ Updated Event (so its not private and can be shared easier)  Attempting to coordinate a big push of Stagea's to this years GTR Festival. Great event last year and hoping for the same this year.  Discounted tickets 20% off for their various tickets until the 3rd of Feb Monday. Drags, show and shine etc.  I've emailed them to ask to set a location aside for the Stageas for the show and shine - they are happy to do so if we can get them numbers, I'm happy to keep track of that. Entering as Nismo category.  I'll be road tripping up from Melbourne, would be cool to convey if people are interested, maybe there is SAU convoys from each capital? If you have ideas about that let me know.  https://gtrfestival.com.au  
    • Does have series 2 airbag steering wheel and passenger side airbag also.
×
×
  • Create New...