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)
-   -   Extra page driven by forum templates (https://vborg.vbsupport.ru/showthread.php?t=36600)

TheMusicMan 04-11-2004 05:35 PM

Can anyone assist please... I get an error reported when I try to load the new page which is:

Fatal error: Call to undefined function: gettemplate() in ......../forums/privacy.php on line 7

... and line 7 is highlighted in red below

Code:

<?php
error_reporting(7);

require('./global.php');


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

?>

I have created the forumprivacy which appears in the custom templates section in Styles Management>Edit Templates

Can anyone advice please... thanks

Mythlander 04-11-2004 05:51 PM

"Undefined function" looks like it can't find global.php.

Is this file (privacy.php) in the same directory as global.php? It needs to be.

Also, make sure your forumprivacy template is part of the default template style. I also copied it to all of my other template styles.

TheMusicMan 04-11-2004 06:00 PM

Hi Mythlander,

Thanks for the reply so promptly... much appreciated...

Quote:

Originally Posted by Mythlander
"Undefined function" looks like it can't find global.php.

Is this file (privacy.php) in the same directory as global.php? It needs to be.

Yup, nave checked using ftp prog and global.php and privacy.php are in both the forum directoty


Quote:

Originally Posted by Mythlander
Also, make sure your forumprivacy template is part of the default template style. I also copied it to all of my other template styles.

I ensured that I was in the default template when I created the template. I have checked the names to make sure I have created them correctly.

Can you suggest something else for me to try please...? is it to do with vB3 Gold perhaps...?

Mythlander 04-11-2004 06:03 PM

Well this is a vB2 hack. I'm not sure if it works with vB3. Heck, I couldn't tell you if vB3 even has a gettemplate() function! :D

[Edit] I just checked. It looks like gettemplate() no longer exists in vB3. It's now fetch_template(). Also, I found a thread on doing this for vB3 here.

Mythlander 04-11-2004 06:10 PM

Yup, this hack won't work on vB3. :) Use the link I provided in my previous message for the same (apparent) functionality.

TheMusicMan 04-11-2004 06:26 PM

Quote:

Originally Posted by Mythlander
Yup, this hack won't work on vB3. :) Use the link I provided in my previous message for the same (apparent) functionality.

Excellent Mythlander, thanks for your help... :)


All times are GMT. The time now is 09:17 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.01170 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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