The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#10
|
|||
|
|||
![]()
Thanks again guys.
![]() Code:
<?php $username=""; $password=""; $database=""; if ($_GET['p']) { $p = intval($_GET['p']); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $result=mysql_query("SELECT postid FROM " . vb3_ . "post WHERE importpostid = $p"); $postid = mysql_result($result,0,"postid"); header("Location: http://www.domain.com/testvb/showthread.php?p=" . $postid . "#post" . $postid); } else if ($_GET['t']) { $t = intval($_GET['t']); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $result=mysql_query("SELECT threadid FROM " . vb3_ . "post WHERE importthreadid = $t"); $threadid = mysql_result($result,0,"threadid"); header("Location: http://www.domain.com/testvb/showthread.php?t=" . $threadid); } ?> Thanks to you guys, I can keep my old links working. This should tide me over until I (or Jelsoft) come up with a solid script to replace the old links in the database. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|