vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   templates ?? can't see them ?? (https://vborg.vbsupport.ru/showthread.php?t=28080)

Clueless 09-14-2001 01:30 PM

Can Anybody tell me if when you add templates they appear automatically ?? as i've added two but they don't appear on my Board??

I just need to know if you have to activate them in some way ??

BTW i can't post a link to the board because of it's contents.

young readers and all that, you know ;) ;) ;)

Freddie Bingham 09-14-2001 01:44 PM

If you create new templates, you have to add php code to the pages you want them to appear which initializes them. Pull up any of the .php files and search for gettemplate for the syntax that is used to load a template.

Clueless 09-14-2001 06:22 PM

Code:

// Activate only  on "selected" forums(2)
  if ($forumid==2) {
    eval("\$infoform = \"".gettemplate("newthread_infoform")."\";");
  }
  else {
    $infoform='';
  }

^^^^ What do i have to change from above code here read below^^^^^^
ok i found where the templates are but they appear on the wrong forum ??

i have 5 main catergories with 4 subforums on each, i want them to appear on all of the 4 subforums of cartergory 4.

But it only appears on the first subforum of catergory1 ???

JamesUS 09-14-2001 07:38 PM

The easiest way to do what you want to do is with this:

PHP Code:

if ($forumid == OR $forumid == OR $forumid == 4) {
    eval(
"\$infoform = \"".gettemplate("newthread_infoform")."\";");
  }
  else {
    
$infoform='';



Add/remove the OR statements as necessary, replacing the forumid's with your own.

Clueless 09-14-2001 07:53 PM

How can i tell what my FORUMID is ?? as the hack shows 2 but with i go to the modify forums bit the hack is in the subforum of the FIRST FORUM ????
the code appears in

newthread.php
editpost.php
and showthread.php

i've changed the forumid ==2 to forumid ==4 but then it doesn't appear in any of the forums :(


All times are GMT. The time now is 07:36 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.01703 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
  • (1)bbcode_code_printable
  • (1)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