View Single Post
  #413  
Old 04-20-2009, 06:03 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gsmph View Post
this is really a nice mod.

i tried to merge it with autoindex but i got problems..

here is the code i use:

PHP Code:
 
 
 
 
 
 
echo "$stylevar[htmldoctype]";
echo 
"<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">";
echo 
"<head>";
echo 
"<title>$vboptions[bbtitle] $WT_PageName</title>";
echo 
"$headinclude";
echo 
"</head>";
echo 
"<body>";
echo 
"$header";
echo 
"$navbar";
echo 
"$nowbrowsing";
echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
echo 
" <tr>";
echo 
"<td valign=\"top\"> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\">";
echo 
"<thead>"
echo 
"    <tr>";
echo 
"        <td class=\"tcat\" align=\"left\">&raquo; $WT_PageName</td>";
echo 
"</tr>";
echo 
" <tr> ";
echo 
"  <td class=\"alt2\" align=\"left\">";
echo 
"<div class=\"normalfont\"> ";
// ============================
// Put Your PHP CODE right after this line
 
require_once("autoindex.php");
require_once(
"AutoIndex.conf.php");
 
 
 
 
 
// ============================
echo "</div> ";
echo 
"</td>";
echo 
"</tr>";
echo 
"<tr> ";
echo 
"<td class=\"thead\" align=\"left\">Page ";
echo 
"      Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname] ";
echo 
"      at $WT[lastvisitdate]$WT_Editor_link<br>";
echo 
"      Page Created at <b>$creationdate</b>, Last Modified ";
echo 
"      : <b>$lasteditdate</b>.</td>";
echo 
" </tr>";
echo 
"</thead>";
echo 
"</table>";
echo 
"</td>";
echo 
"</tr>";
echo 
"</table>";
echo 
"$footer";
echo 
"</body>";
echo 
"</html>"

it works perfect but..



every time i click the each folder my URL change from view.php?pg=phptest2 to view.php?=dir=x then it redirects to invalid page...

any solution?

Reason why am merging this hack with autoindex to VB is that autoindex has the ability to control speed download and anti-leeching sequence..


thou this is really a great hack i nomionate this hack MOTM
great job Logician

br
gsmph
The url in your folders are created by autoindex hack. So it seems that you need to modify that hack to use WT urls in its folders to achieve your goal
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01143 seconds
  • Memory Usage 1,806KB
  • 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)bbcode_quote
  • (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