View Single Post
  #16  
Old 07-21-2005, 05:33 AM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'$threadid11);

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($vbulletinfetch_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?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01059 seconds
  • Memory Usage 1,813KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete