For a basic .cgi file all you need are a few lines inside such as:
&set_page_elements;
$ThisHTML = $Header;
$ThisHTML .= qq~
$Footer
~;
Anything in between "qq~" and "$footer" is your HTML codes. Now you have your .cgi file. You will now need ultimatebb.cgi to recognize this file when called. To do so add:
In ultimatebb.cgi find:
# all ubb options:
$ubb = "" unless $ubb;
Add after:
# whatever_title_here
if ($ubb eq 'file_name') {
&set_page_elements;
&RequireCode("$vars_config{CGIPath}/cgi_file_here.cgi");
&file_name;
exit(0);
} #end whatever_title_here
And in ubb_lib.cgi find:
Add after:
'file_name' => q^|file_name|^,
And find:
Add (with space after):
This will give you the basic .cgi file. Of course you can add other stuff later like:
login info
Recent Vistors recognition
Wordlets
Calendar
Stats
And whatever you want...
Hope this helps.