vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom Page Beginner (https://vborg.vbsupport.ru/showthread.php?t=108727)

rjones 02-23-2006 07:47 PM

Custom Page Beginner
 
Hello,

I tried to make a very basic page based on the tutorial here:

https://vborg.vbsupport.ru/showthread.php?t=98009

I created the new php page (ztopic.php) and placed it in the root directory of the forum.
Then I added a record to forum_template table with the title of the template (ztopic) and the template field populated with the html used in the tutorial.

In the last line I added the name of my page like so:

PHP Code:

eval('print_output("' fetch_template('ztopic') . '");'); 

However when I go to the page, it just comes up as empty html.... :ermm:

If I change the last line to a known working template like:

PHP Code:

eval('print_output("' fetch_template('newthread') . '");'); 

I get a vb page back....

Can anyone give me a pointer as to where I am going wrong here?

Thanks in advance!

Reeve of shinra 02-24-2006 03:57 AM

Did you add the template via a sql query or did you add this by going into the admincp and create a new template? The latter is how you should be doing it.

rjones 02-24-2006 04:40 AM

Yes I added it manually to the database. Once I added it using the admincp it worked fine. I knew I was doing something wrong...

Thanks for the help!

Reeve of shinra 02-24-2006 04:42 AM

No problem, good luck!


All times are GMT. The time now is 10:34 PM.

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.01001 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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