vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

Mr_P 08-11-2002 09:51 PM

sorry m8 yes was referring to the mini calendar hack.
I can see it if i call it in on a page on its own but cant get it to integrate with vbindex.

NTLDR 08-11-2002 10:33 PM

You need to put:

PHP Code:

include('./filename.php'); 

after the require golbal.php statement.

Add the template for the calendar and then make sure that the calendar php file doesn't output the template but evals it to a variable, eg:

PHP Code:

eval("\$calendar = \"".gettemplate(small_calendar)."\";"); 

ie $calendar instead of dooutput then you just place your variable in this case $calendar in the required template.

DWZ 08-12-2002 01:09 AM

Quote:

Originally posted by NTLDR
After I did this I thought that may be what you wanted, heres the change to vbindex.php which will show the results of the poll for users with the userid 0:
w00t, worked perfectly :D
Quote:

Originally posted by NTLDR
I'll have a look at the logout issue and post here/PM you when its done ;)

great, thanks a million!

atease 08-12-2002 06:20 AM

Quote:

Originally posted by NTLDR

They can be private or public, note that if they are private users can't won't be able to post comments or view the thread ;)

thanks. another question:
like some else said. it takes about ages to load. and i have a lot users (100?) online at the same time.

i'm guessing it's the 'online users' script that might cause, which i don't really need. can i ditch that left column? or maybe ditch everything except for the display of the actual news stories? (i don't need the welcome box either)

i'd like to use it a php include on my news page.

any help would be appreciated.

(excellent hack btw, just needed to say that)

NTLDR 08-12-2002 09:00 AM

Quote:

Originally posted by atease
like some else said. it takes about ages to load. and i have a lot users (100?) online at the same time.
I belive its the poll code that is causing the high load time, try removing that section.

Quote:

i'd like to use it a php include on my news page.
All you need to do is make sure that you have the section with the news code and that in your news page or the vBindex file that you require golbal.php

atease 08-12-2002 11:51 AM

that worked. thank you very much.

but i can't get rid of that 'welcome' table

NTLDR 08-12-2002 02:52 PM

Quote:

Originally posted by atease
but i can't get rid of that 'welcome' table
You need to remove the HTML in the home template.

atease 08-12-2002 02:58 PM

doesn't this remove the welcome message + stats from vbulletin?

NTLDR 08-12-2002 03:12 PM

The home and home_ templates have nothing to do with vBulletin, there all for vBindex so removing that HTML won't effect your forums home page.

atease 08-12-2002 07:01 PM

thanks again.

one more thing (i know: again!):

the news forum is now private. i underdstand that it has to be public to let people post replies, but can i keep people from posting new threads? cause that's not what i want:)


All times are GMT. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02074 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete