View Single Post
  #72  
Old 01-01-2003, 08:51 PM
ZaonDude ZaonDude is offline
 
Join Date: Dec 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Couple of things, as I'm new here, ... but first: great hack! Thank you!

I received an identical error as freeshares1 did (the global.php unable to access the admin/config.php file) and solved it the same way by changing the full server UNC path to:
chdir("../forums");
require("global.php");



Second item... and I don't know if this was something peculiar to just my server or not, but the archives were displaying uber slow. I tried changing the 'include' command for the header/footer lines from:
include "$archiveurl/footer.php";
to:
readfile("http://www.yoursite.com/archives/header.txt");
(notice that i renamed the actual header.php file to header.txt). And, all of a sudden the whole archives site display became lightning quick! Not sure what that was about, but I wasn't familiar with the include command and I was with the readfile command which allowed web URLs, which is why I tried it. Again, not sure if the massive difference in speed was unique to my site or not.


Third item is that I'd like the order of threads displayed sticky first followed by most recent and ending with the oldest thread instead of the other way around... Is this what I change in the forum file:
$getthreadids=$DB_site->query("
SELECT
thread.threadid,thread.title
FROM thread
WHERE thread.forumid = $forumid
AND thread.visible=1
ORDER BY sticky DESC, lastpost
");

?? Do I change the 'DESC' to 'ASC' or something? Or, is it more complicated than that?


The last question/issue I have is with the main index.php display of the forums table. The individual forums (forums that contain threads) link properly and perfectly. However, the forum Groups (the non-indented titles that have indented forums beneath them) link to a blank page containing only part of my header/footer and no data. Everything else links/works great. Is there any way to fix this or better yet have only Group titles be plain text instead of hyperlinked?


Thanks, SkuZZy!!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01216 seconds
  • Memory Usage 1,767KB
  • 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)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