View Single Post
  #74  
Old 09-14-2002, 11:58 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I've updated the zip file to V1.30.

This new release contains options to show PM info and who's online (with or without usernames). There is no more copy&paste creation so things should be a bit simpler.

There are a couple of more templates to create if you want to use the pm and who's online bits.

I also fixed a very minor bug. If you chose not to show avatars the welcome text would not be centred in the box as there would still be a blank avatar column. A simple change to the webwelcome template and the php file has sorted that.


OK, this include global.php does cause a few problems. This is mainly when you have other scripts running on the same page. If these scripts require other directories they may not work. I've got Tubedog's latest threads hack on my homepage, but it's creating problems when I try to pull info from my reviews engine (Censura).

This is what I have at the very top of my index.php homepage.

<?php
chdir("forums/");
require('./global.php');
?>
<html>

I then have this where I want to show my welcome panel
<?php include("webwelcome.php"); ?>

and it works OK. Different servers behave differently. I'm running Apache on Linux.

Tony, I have no idea why you're getting that message Any other hacks/scripts on your page that may be creating trouble?

Darren.

PS I'll probably not be adding any new features to this hack from now. It does everything I personally need it to do on my site, and I don't have the time to do any custom work. Hopefully it will work with VB3, but if not I'll sort something out as I'll be going to VB3.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00999 seconds
  • Memory Usage 1,762KB
  • 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