vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Making a page part of your forums (https://vborg.vbsupport.ru/showthread.php?t=44624)

anuj 10-14-2002 07:56 PM

Making a page part of your forums
 
I know the title is stated horribly.

Ok, here is the deal. I've written several different (lol, different) shoutboxes before, and now I'm trying to incorporate one into my vB.

My basic questions are:

1) Is there any specific code that defines a page as part of the vbulletin?

2) What is the code necessary in my shoutbox.php to call a specific template?

3) Can I place this shoutbox OUTSIDE of my forums directory? Or would it be better suited to keep it IN the forums directory?

If you've answered these questions before, I'm sorry. I've looked at vbulletin.com, yaxay, vbulletintemplates.com and some others, but I couldn't find any good answers.

Thanks.

DrkFusion 10-14-2002 08:06 PM

Well, when hacks are made, we use these bit of codes to get it to use vbulletin mysql info, functions etc

PHP Code:

require("./global.php"); 

As you know global as all the information that vb uses.

to call a specific template eval code is used
for example
PHP Code:

eval("dooutput(\"".gettemplate('template_name')."\");"); 

and yes you can place it out of the forums directory, but besure to use the chdir(); to tell the script where global.php is located at.

-noX

DrkFusion 10-14-2002 08:11 PM

if you want to call a template through a variable within another template you can use

PHP Code:

eval("\$variable .= \"".gettemplate('template_name')."\";"); 


anuj 10-14-2002 08:13 PM

Thanks a lot. That answers everything.

DrkFusion 10-15-2002 12:42 AM

No prob, this was actually my first question, before I started making hacks.

:)
Good Luck
-Arunan


All times are GMT. The time now is 11:18 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.00960 seconds
  • Memory Usage 1,715KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete