i am having problems with this one, i install you last one and work like a charm, although i had to use the AcceptPathInfo On in the .htaccess file
this time i use it and i can get to some pages
PHP Code:
<?php
##############################################################
### vB Easy Archive (vb3.5) - Released on June 20th, 2005 ###
### Scripts created by Stefan "Xenon" Kaeser ###
### Copyright info MUST stay on the bottom of all scripts ####
#### Visit http://www.vbulletin.org for updated versions! ####
##############################################################
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'easy_archive_topic');
require('config.php');
//require_once('./includes/functions_showthread.php');
$DB_site = &$vbulletin->db;
$vars = fetch_vars_array();
$threadid = $vars['id'];
$pagenumber = $vars['pagenumber'];
$threadinfo = verify_id('thread', $threadid, 1, 1);
if ((!$thread['visible'] OR $thread['isdeleted']) AND !can_moderate($thread['forumid']))
{
archive_output('Invalid thread!');
}
$foruminfo = fetch_foruminfo($threadinfo['forumid']);
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($thread['postuserid'] != $bbuserinfo['userid'] OR $bbuserinfo['userid'] == 0))
{
print_no_permission();
}
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
$postcount = $DB_site->query_first("
SELECT COUNT(postid) AS posts
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
WHERE threadid = $threadid
AND visible = 1
AND deletionlog.primaryid IS NULL
");
$pagination = fetch_pagelinks($postcount['posts'], 'topic/' . $threadid);
$posts = $DB_site->query("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
WHERE threadid = $threadid
AND visible = 1
AND deletionlog.primaryid IS NULL
ORDER BY post.dateline
LIMIT " . (($pagenumber - 1) * 200) . ", 200
");
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$postbits = '';
while ($post = $DB_site->fetch_array($posts))
{
$postbits .= "
Posted by: <b>$post[username]</b><br /><br />
" . $bbcode_parser->parse($post['pagetext'], $threadinfo['forumid'], true) . "
<br /><br /><hr /><br />
";
}
archive_output("
$pagination<br />
<hr />
<center>
<b><h1><font color=\"red\">
$threadinfo[title]
</font></h1></b>
<font size=\"3\" color=\"red\">
<a href=\"$forumurl/showthread.php?threadid=$threadinfo[threadid]\">(Click here to view the original thread with full colors/images)</a>
</font>
</center>
<hr />
<br />
$postbits
");
?>
could you please tell me if i did some thing wrong?