Log in

View Full Version : Custom Page Beginner


rjones
02-23-2006, 07:47 PM
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:

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:

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!