TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,992
  • Total Topics: 21,323
  • Online today: 690
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 462
  • Total: 462

copyright error on a custom page

Started by Harro, September 07, 2006, 03:47:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Harro

Am trying to make a custom page which uses the same layout as SMF/TP.
But I get a copyright error for TP when I view that page.

This is all I have in that page:
<?php require("/home/*/public_html/SSI.php");

template_init();
template_main_above();

template_main_below();

?>

And this is the error: Fatal error: Call to undefined function tportal_version() in /home/f5186for/public_html/Sources/Load.php(1607) : eval()'d code on line 409

But on the pages of my forum/TP the copyright is working fine.
Any idea what I should do to fix it?



IchBin

Many things are loaded when using theme templates. TP is called in Load.php also if I remember right. I don't know it well enough to know everything that you would have to include, but I do know that you can't  just add a page with the functions you have there. Take a look at the custom page mod and you might be able to figure it out. Sorry I can't provide more info.

Harro

Thanks for the reply.
Wanted to do this without installing that mod.
Can also just make a basic design myself.
That page will only be accessible for admins anyway.
So design is not the most important :)

On a side note: it's not needed that TP show up on that page.

This website is proudly hosted on Crocweb Cloud Website Hosting.