UBB.Dev
Posted By: Felix 10 CGI page - 12/09/2003 6:29 AM
I would like to make a CGI page, just to show the header, the link line and the footer links and Infopop link. Just imagine The forum Summary without any tables.

Am I on a good start?
Code
#!/usr/bin/perl 

&LoadTemplate("public_common");
%vars_style = &LoadStyleTemplate("summary_page");
&set_page_elements;

@ubber = cookie("ubber$vars_config{Cookie_Number}");
if ($ubber[0] ne '') { $username = $ubber[0]; }
if ($ubber[1] ne '') { $password = $ubber[1]; }
if ($ubber[2] ne '') { $pubname = $ubber[2]; }
if ($ubber[3] ne '') { $user_topic_view = $ubber[3]; }
if ($ubber[4] ne '') { $user_number = $ubber[4]; }

if (@ubber) {
@checkTheProfile = &verify_id_num_2($username, $password, $user_number);
unless ($checkTheProfile[4] =~ /Write/) {
print header(
-charset => "$masterCharset",
-type => "text/html"
);
&StandardHTML("User not approved");
}
} elsif ($opt{members_only}) {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=login" target="_blank">$vars_wordlets{login_now}</a> $vars_wordlets{or} <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=agree" target="_blank">$vars_wordlets{register_title}</a>!);
}

if ($@) {
print ("Content-type: text/htmlnn");
print "Error including required files: $@n";
print "Make sure these files exist, permissions are set properly, and paths are set correctly.";
exit;
}

$show_logout = qq~
<script language="Javascript" type="text/javascript">
<!--
var user_cookie = getCookie('ubber$vars_config{Cookie_Number}');
if(('' == user_cookie) &#0124;&#0124; (null == user_cookie)) {
document.writeln('$vars_wordlets{not_logged_in}' , ' <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</a> $vars_wordlets{or} <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=agree">$vars_wordlets{register_link}</a>')
} else {
var user_array=user_cookie.split("&");
user_array[2] = unescape(user_array[2]);
document.writeln('$vars_wordlets{hello} ', user_array[2]);
document.writeln('[ <a title="$vars_wordlets{logout_acronym}" href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=logoff">$vars_wordlets{logout}</a> ]');
} // end else
//-->
</script>
~;

If not can someone point me the right way?

Thank you,
Felix
Posted By: RandyM Re: CGI page - 12/10/2003 3:16 AM
I've wondered about this myself. Hope you get an answer soon.
Posted By: PrimeTime Re: CGI page - 12/10/2003 4:47 AM
For a basic .cgi file all you need are a few lines inside such as:

Code
&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:
Code
# all ubb options:
$ubb = "" unless $ubb;
Add after:

Code
# 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:
Code
	my %types = (
Add after:
Code
		'file_name' => q^|file_name|^,
And find:
Code
	foreach my $type (qw(
Add (with space after):
Code
file_name 
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. smile
Posted By: PrimeTime Re: CGI page - 12/10/2003 5:16 AM
With this you can now create your own .cgi Homepage (portal). wink The only thing that I (and Brett laugh ) were stuck on was the inclusion of UBBNews without the use of javascript...We both were targetting a Perl method. We had almost everything else needed in a homepage. I think Bobbitt came up with a code that could do it.

There was a time when many UBB users were heavily interested in a portal. Anyone knows the status (succeeded, ongoing, dead)? *The .cgi version laugh *
Posted By: AllenAyres Re: CGI page - 12/10/2003 9:00 AM
creating an index.cgi would be fairly simple after all the hassle I've been through with the various scripts the last few months (games, links, etc). tipsy

ubbnews would be the toughy, unless mike's script can be included like a content island smile
Posted By: Felix 10 Re: CGI page - 12/11/2003 11:12 PM
Allen, I was going to ask you pesonally anyways. The template I was trying to develop into a page I took from your games.cgi because it is the simples ever of all and it is a stand alone.

My question to was was:
what shoud I delete from the games.cgi script so I dont get the games table, just an empty page so I can insert my own codes into it ?

Thank you,
Felix
Posted By: Felix 10 Re: CGI page - 12/11/2003 11:20 PM
Prime, the code you gave me up above. Is this how you start the page? Isnt there anything to call the forum template into the new page? Or ultimatebb.cgi would do that?

Why cant this page stand alone like Allen's Games.cgi or Mike's album.pl without being necessary to call it through ultimatebb ?

Thank you,
Felix
Posted By: AllenAyres Re: CGI page - 12/12/2003 8:49 AM
Quote
quote:
Originally posted by Felix 10:

My question to was was:
what shoud I delete from the games.cgi script so I dont get the games table, just an empty page so I can insert my own codes into it ?

Thank you,
Felix
Change showmain to showindex and call the file index.cgi...

that's probably too simple... once you've included the ubb files like at the top of the page, you need showindex to do the startpage and endpage, with the other stuff tossed in between tipsy

You can add content islands for most content, a ubbnews script for some other content, etc etc etc.

I can look at it at some point, I really wanna get the links script further down the road smile
Posted By: PrimeTime Re: CGI page - 12/13/2003 12:19 PM
Quote
quote:
Originally posted by Felix 10:
Prime, the code you gave me up above. Is this how you start the page? Isnt there anything to call the forum template into the new page? Or ultimatebb.cgi would do that?

Why cant this page stand alone like Allen's Games.cgi or Mike's album.pl without being necessary to call it through ultimatebb ?

Thank you,
Felix
I haven't checked the Games.cgi or album.pl but the code I posted is probably the easiest method to having a fully (UBB) intergrated .cgi page. From login to PM to Wordlets to Recent Visitors to Search and more...It's all possible through this one page. The "ultimatebb.cgi" is the heart of UBB so you want all of your UBB pages to go through it..."ubb_lib.cgi" is also a criticial file. While a separate CSS can be used, because this .cgi page is another UBB page, it uses the routines in "public_common.pl" (e.g., templates ($TBT and $TBB), header, footer, etc.).

The code I posted is the skeleton of what the Homepage was(is) to be, but you can use it for anything really. It doesn't matter whether it's .cgi or .pl...I just preferred .cgi. A standalone won't cut it in my opinion...Not for a Homepage...Not for a UBB page.
Posted By: PrimeTime Re: CGI page - 12/13/2003 12:23 PM
Felix - Please explain further so we know what you're trying to do.
Posted By: Felix 10 Re: CGI page - 12/14/2003 3:08 AM
Prime, I read and I read ..and the more I read the dumber I get.....LOL.

Okay, I want to make a page, just a page not the Homepage, in which to integrate an other one,
this: http://romanianational.com/cgi-bin/album.pl so it looks like is part of the UBB board (header, footer, links line). Pretty much same thing Allen did with the Games: http://romanianational.com/cgi-bin/games.cgi

Do you understand? Dont take it wrong Prime, I dont doubt you understand, I very much doubt I explain properly smile

Thank you,
Felix
Posted By: RandyM Re: CGI page - 12/14/2003 5:33 AM
Quote
quote:
Originally posted by PrimeTime:
With this you can now create your own .cgi Homepage (portal). wink The only thing that I (and Brett laugh ) were stuck on was the inclusion of UBBNews without the use of javascript...We both were targetting a Perl method. We had almost everything else needed in a homepage. I think Bobbitt came up with a code that could do it.

There was a time when many UBB users were heavily interested in a portal. Anyone knows the status (succeeded, ongoing, dead)? *The .cgi version laugh *
I think that a *semi-supported* UBB Portal would drastically increase the traffic and member participation here. I think that would be a VERY good thing for UBBDev.
Posted By: AllenAyres Re: CGI page - 12/14/2003 10:24 PM
Quote
quote:
Originally posted by PrimeTime:
I haven't checked the Games.cgi or album.pl but the code I posted is probably the easiest method to having a fully (UBB) intergrated .cgi page. From login to PM to Wordlets to Recent Visitors to Search and more...It's all possible through this one page. The "ultimatebb.cgi" is the heart of UBB so you want all of your UBB pages to go through it..."ubb_lib.cgi" is also a criticial file. While a separate CSS can be used, because this .cgi page is another UBB page, it uses the routines in "public_common.pl" (e.g., templates ($TBT and $TBB), header, footer, etc.).

The code I posted is the skeleton of what the Homepage was(is) to be, but you can use it for anything really. It doesn't matter whether it's .cgi or .pl...I just preferred .cgi. A standalone won't cut it in my opinion...Not for a Homepage...Not for a UBB page.
standalone requires a few less files... not many, but a few smile could help with server load, especially if all you're doing is reading a cookie, and requiring a few subs... it's different if they're actually needing to post to the front page or something.
Posted By: AllenAyres Re: CGI page - 12/15/2003 9:51 AM
argh.. looked at this again tonight... getting the header/footer for some generic page is simple - deciding what content to include for an index page is difficult at best - it assumes everyone wants the same layout, wants the same content, etc... should there be 1, 2, or 3 or even 4 columns?

I'll write a blank one and give a big ol' PUT YOUR CONTENT HERE pointer until someone has time to write something more substantial.
Posted By: PrimeTime Re: CGI page - 12/15/2003 10:55 AM
I already posted the code above (3rd post)...It shouldn't be any easier than that. smile I didn't include additional content but it won't be difficult to include (with exception to the UBBNews) because it's already written from previous hacks and codes...It's just a matter of cut and paste. (Allen seen the quick-make page a while back.) Custom templates is as difficult as the complexity of the designs.

UBBNews and CP intergration are the only two things will make it complete. For what Felix wants to do, however, everything is already there to make the page (Header/Footer). smile Unless you're thinking something different than I am. laugh
Posted By: Felix 10 Re: CGI page - 12/17/2003 8:43 AM
Prime, it is not working. A few problems:

1. I get a page but with a error message:

" Undefined subroutine &main::album called at ultimatebb.cgi line 557."
[Linked Image]

Note: my editor starts with 00001 not 00000.

2. I have a "Content-type: text/html " in the left top corner

3. the style template is not the one I am curently using.


This is the page:

Code
 
&set_page_elements;

$ThisHTML = $Header;
$ThisHTML .= qq~



TESTING THE NEW .CGI PAGE

TESTINGGGGGGGGGGGGGGG



TESTING THE NEW .CGI PAGE



TESTING THE NEW .CGI PAGE




$Footer
~;
Thank you
Posted By: AllenAyres Re: CGI page - 12/19/2003 9:46 AM
https://www.ubbdev.com/ubbcgi/index.cgi

tipsy

next step will be to get it working at:

https://ubbdev.com/index.cgi

tipsy
Posted By: PrimeTime Re: CGI page - 12/19/2003 10:33 AM
LOL Allen. OK...I see now.

As for Felix, the code does work. Sometime tomorrow or the weekend I'll have the page + code (instead of just codes).
Posted By: Felix 10 Re: CGI page - 12/19/2003 11:16 PM
Allen, how do I get the script for that? without the sidepanels?

Prime, ok, I will wait for it.

Thank you very much

Felix
Posted By: AllenAyres Re: CGI page - 12/20/2003 12:29 AM
I'll post it shortly - going out of town tho, so if it's not today, will be done Sunday.

It uses whatever header/footer you use on your forum summary, so if you have sidepanels it uses them, if not, not smile
Posted By: Felix 10 Re: CGI page - 12/20/2003 2:53 AM
I understand, I will wait.
thank you
Posted By: Felix 10 Re: CGI page - 12/29/2003 4:30 AM
any news Allen? forgot about me smile
Posted By: AllenAyres Re: CGI page - 12/31/2003 10:58 PM
haven't forgotten, I've been working on it still smile
Posted By: RandyM Re: CGI page - 12/31/2003 11:05 PM
Quote
Originally posted by PrimeTime:

LOL Allen. OK...I see now.

As for Felix, the code does work. Sometime tomorrow or the weekend I'll have the page + code (instead of just codes).
*waits*
Posted By: Felix 10 Re: CGI page - 01/02/2004 6:36 AM
Thanks Randy wink
Posted By: RandyM Re: CGI page - 01/02/2004 6:47 AM
No problem, PT is at Netwerkin a lot so I figured he just needed a little *reminder*.
Posted By: AllenAyres Re: CGI page - 01/02/2004 7:09 PM
There's a problem with current implementations and the mainbuttons line, it's still being looked at.

If you want a php version, check the 2 mods I posted in the last couple of days in the mod forum... works real swell and should be a lot easier on the server as it doesn't use any ubb files directly.
Posted By: Felix 10 Re: CGI page - 01/03/2004 4:33 AM
Allen, I cant use that. I am running 6.3.1.1 and I dont have this:
Code
if($ubb eq "qmq") {
# Quick Member Queue
I think I know the problem with the main link line. In your Games pages I lost IM link when I installed games.cgi, but it didnt bother me much. BTW do you have a fix for that?

Cant you just strip the games for the games.cgi and lend me the script? or it is not that easy.

Thank you,
felix
Posted By: AllenAyres Re: CGI page - 01/03/2004 9:20 AM
it's not that easy.. everything I've been working on will probably not work on any ubb prior to 6.6 or 6.5, Idda know. I've been testing everything on 6.7.

There's too many older versions for me to install and test on each - just not enough hours in the day, sorry. Maybe PT's script wil work for you.
Posted By: AllenAyres Re: CGI page - 01/06/2004 6:33 AM
https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/136.html

I believe it'll only work properly on 6.7+
Posted By: Felix 10 Re: CGI page - 01/24/2004 7:20 AM
Quote
quote:
LOL Allen. OK...I see now.

As for Felix, the code does work. Sometime tomorrow or the weekend I'll have the page + code (instead of just codes).

Prime Time, still around?

smile
Posted By: RandyM Re: CGI page - 01/25/2004 12:26 AM
He's at Netwerkin just about everyday. I'll try to remember to remind him this evening.
Posted By: Felix 10 Re: CGI page - 01/30/2004 7:34 AM
did you get him Randy?
I signed in there too...nice site, love those tables and strips....good info as well smile
Posted By: RandyM Re: CGI page - 02/01/2004 3:51 AM
He should see this .
Posted By: PrimeTime Re: CGI page - 02/01/2004 5:25 AM
ACK...I apologize Felix for my absence. Hmm...OK. Now that I understand what Allen was referring to I need to take a step back. His .cgi page is a standalone (index) which you can see from the URL. With the version I have, you will have "ultimatebb.cgi" in front of the addy. Both are intergrated with UBB.

The question I guess really depends on what you wish to do with your .cgi page. Again, I apologize for your wait. smile
Posted By: PrimeTime Re: CGI page - 02/01/2004 5:28 AM
Ahh...I see.
Posted By: Felix 10 Re: CGI page - 02/01/2004 5:30 AM
wow..that was little harsh...I hope he didnt mind, I dont want to be a s_ _ _t disturber. Christmas is way behind but I can wait.

thank you for your help.
smile
Posted By: Felix 10 Re: CGI page - 02/03/2004 8:29 AM
Ops, we were writing posts in the same time, you were little faster though. smile

I just need an empty page with the header and the footer where I can stick the another page (just like Allen did with the Games page) - a Photo Album, so it will integrate in the style and look like is part of the board, that's all.

I know Allen's is a stand alone, and it was so easy to add, this is what I was trying to do, I thought it would be simple. But if that creates problems and takes too much time from your part I will give up, I dont want to be a trouble maker.

Thanks again and there is no need to apologize, I understand

smile
Posted By: Felix 10 Re: CGI page - 02/16/2004 3:33 AM
Prime, any luck?
Posted By: PrimeTime Re: CGI page - 02/17/2004 5:11 AM
Creating an index page like Allen's I'm afraid not. With his page you should be able to do what you want to do. Creating a (blank) extension UBB page, in which you can add your own content, I can do. The difference is that with my page it's not standalone (it's a part of UBB)...The URL will look similar to:

http://www.blah-blah.com/ubb/ultimatebb.cgi?blank_extension_page

With Allen's the URL will look like:

https://www.ubbdev.com/ubbcgi/index.cgi
Posted By: Felix 10 Re: CGI page - 02/20/2004 6:33 AM
Ok, I will take yours. mean time maybe Allen will make my wish come true smile

Thanks Prime
Posted By: AllenAyres Re: CGI page - 02/20/2004 8:09 PM
Which dream is that? tipsy I've been slowly updating it and CC gave me the fix so it could be outside the ubb directory and still find the modules.. the trick will be if your server allows cgi in the root smile

I've been thinking of another possible solution, but I'm not sure if I could pull it off yet tipsy
Posted By: Felix 10 Re: CGI page - 02/21/2004 1:47 AM
it doesnt...I mean I know I can load it in the root but I cant call it. it has to be inside the public_html directory in order to access it with the browser frown
Posted By: AllenAyres Re: CGI page - 02/21/2004 2:15 AM
well yeah, tipsy I meant the public web root, or any other public folder for that matter tipsy If you can't access it it's not gonna do you m,uch good wink
Posted By: Felix 10 Re: CGI page - 02/21/2004 3:26 AM
as long is in the public_html (sub root) it will work.

thanks Allen
Posted By: PrimeTime Re: CGI page - 02/22/2004 8:03 AM
You can give this a go and see if this is something you can work with. Again, sorry for the delay Felix. tipsy

=============

UBB {Basic) Blank .cgi Page revised 2/21/04 (a work in progress...)

Description: A (basic) Blank UBB .cgi page.

Demo: Demo click here

Download: Download click here


=============

Good luck! smile
Posted By: Felix 10 Re: CGI page - 02/28/2004 2:34 AM
doesnt work Prime.

It creates the page alright but no header no footer. I checked yours and it looks okay, but look at mine:

http://www.romanianational.com/cgi-bin/ultimatebb.cgi?ubb=ubbtest_blank
Posted By: PrimeTime Re: CGI page - 02/29/2004 3:30 AM
Hmm...Try this:

Click Here

Just replace the original file with the revised version, save and clear cache. See if that works.
Posted By: Felix 10 Re: CGI page - 03/03/2004 2:56 AM
Dead link wont work Prime ?
Posted By: Gizmo Re: CGI page - 03/03/2004 3:14 AM
Yeh it appears that all of bac-clan.com is down smirk...
Posted By: PrimeTime Re: CGI page - 03/03/2004 4:46 AM
I apologize about that. The site's been down for nearly two days now...Seen that it's not due to maintanence I'll check with Ghost to find out what's going on. smash I'll post back soon. smile
Posted By: Ian Spence Re: CGI page - 03/03/2004 5:03 AM
Quote
Originally posted by PrimeTime:

I apologize about that. The site's been down for nearly two days now...Seen that it's not due to maintanence I'll check with Ghost to find out what's going on. smash I'll post back soon. smile

*sees evil chance to create hysteria*

I heard it's cause they're upgrading to 6.7 smile
Posted By: Gizmo Re: CGI page - 03/03/2004 5:32 AM
Yeh the dreaded 6.7 bug!
Posted By: PrimeTime Re: CGI page - 03/03/2004 6:13 AM
Hehe...I wish, but it was more of a:

"Domain registry lost our DNS server entries"

We think that the company upgraded their software/database but left out our clan domains. mad I said clan domains because the other domains (non-clan related) are up. :rolleyes:

It's now a waiting game...
Posted By: Gizmo Re: CGI page - 03/03/2004 6:22 AM
Hahaha, in that case, 72 hours :x...
Posted By: PrimeTime Re: CGI page - 03/03/2004 6:42 AM
I'm hoping it will be within 24 - 48 hours...But you know how things can be. With 72 hours it will just push us back for a week. We'll certainly have some explaining to do. LOL.
Posted By: Gizmo Re: CGI page - 03/03/2004 6:54 AM
wink it's been down for a while as is lol... I went lookin for a mod and saw it was down a few days ago ;x..
Posted By: PrimeTime Re: CGI page - 03/03/2004 10:24 AM
Two days so far...If it's 72 hours then it will be 5 days down time total. It will be a first for us.
Posted By: Felix 10 Re: CGI page - 03/04/2004 5:17 AM
Prime, if you have it handy you could zip it to me?

thanks
Posted By: PrimeTime Re: CGI page - 03/04/2004 5:43 AM
Although .net and .org is still down the .com is back up...The link below should work now. smile

Click Here

Just replace the original file with the revised version, save and clear cache. See if that works.
Posted By: Felix 10 Re: CGI page - 03/07/2004 8:57 AM
nope, same thing Prime, no difference what so ever.

smile
Posted By: PrimeTime Re: CGI page - 03/08/2004 2:30 AM
You're running 6.3.1.1 so...

Open ubb_ubbtest_blank.cgi (revised) and find:

Code
	$ThisHTML = $Header;
$ThisHTML .= qq~
And REPLACE it with:

Code
        print qq~
$Header
Find:

Code
$Footer
~;
And REPLACE it with:

Code
~;
print "$Footer";
Find and DELETE:

Code
	print "$ThisHTML";
Save, upload and clear cache. See if this works. smile
Posted By: Felix 10 Re: CGI page - 03/08/2004 6:15 PM
no Prime, same thing.

smile
Posted By: Ian Spence Re: CGI page - 03/08/2004 9:14 PM
Felix, try adding

Code
$standard_title_table
after

Code
print qq~
$Header
Posted By: PrimeTime Re: CGI page - 03/09/2004 8:14 AM
Felix...What is the link to your blank.cgi?

Odd...Even with the least amount of code the Header and Footer should display (as tested on 6.3.1.1 and 6.4). It's all tagged from the public_common.pl file. I'll go back again and start from scratch.
Posted By: Felix 10 Re: CGI page - 03/11/2004 12:52 AM
Hey ! gettong something.

I added Ian's line and I get the Forum Title and the links line.

here Prime:

http://romanianational.com/cgi-bin/ultimatebb.cgi?ubb=ubbtest_blank

and to compare:

http://romanianational.com/cgi-bin/ultimatebb.cgi

now, where is the rest?

smile
thank you
Posted By: PrimeTime Re: CGI page - 03/11/2004 5:01 AM
I didn't know you wanted the Title and button lines. As for the Header and Footer, that's what I'm trying to figure out...Why yours isn't working. I'm not giving up so don't worry. tipsy
Posted By: Felix 10 Re: CGI page - 03/12/2004 3:57 AM
Prime, yes I do want it that.
This is the main reason I stared asking Allen, because his game.cgi page is so clean and shows a full page. http://romanianational.com/cgi-bin/games.cgi
I didnt know this will raise so many issues and now I feel bad for creating you problems. I am sorry. (but still want that page! )

thank you,
Felix
Posted By: Ian Spence Re: CGI page - 03/12/2004 4:04 AM
Code
sub StartPage{
&LoadTemplate("public_common");
&InitImportantStuff;
$MainButtonsLine = &MainButtonOptions;
&init_public_common;
&set_page_elements;

print ("Content-type: text/htmlnn");
print <<HEAD;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
$Header
<center>

$standard_title_table
</center>


HEAD

} #end

#############################################################################

sub EndPage{
print qq($Footer);
} #end
Posted By: PrimeTime Re: CGI page - 03/12/2004 5:15 AM
I thought about loading the public_common.pl too but it's not necessary since ultimate_bb.cgi has it. Even with the least amount of code the Header and Footer should display.
Posted By: Felix 10 Re: CGI page - 03/12/2004 6:53 AM
getting there but there is an error:

Undefined subroutine &main::ubbtest_blank called at ultimatebb.cgi line 557.
and no footer

smile
Posted By: PrimeTime Re: CGI page - 03/12/2004 10:25 AM
Both sub routines need to be changed and defined. Such with:

Code
sub StartPage {
and

Code
sub EndPage {
do not exist. Right now UBB only recognizes:

Code
sub ubbtest_blank {
which is the ubb_ubbtest_blank.cgi file. As for the Header Ian added:

Code
print <<HEAD;
which some .cgi files have. I haven't checked but maybe you can add:

Code
print <<FOOTER;
before:

Code
	print "$Footer";
I still haven't gone it over from scratch but I'll do it sometime Friday or this weekend. smile
Posted By: PrimeTime Re: CGI page - 03/12/2004 10:31 AM
Then again maybe you can add:

Code
	exit(0);
after:

Code
	print "$Footer";
Posted By: Felix 10 Re: CGI page - 03/13/2004 8:05 AM
Prime, it doesnt work, neither the header or footer. the problem is somewhere else, read the error message.
It doesnt matter what I add, I get the same thing, I think fixind that routine should be the first step and then the footer and header.

right now I only kept this:

sub StartPage{
&LoadTemplate("public_common");
&InitImportantStuff;
$MainButtonsLine = &MainButtonOptions;
&init_public_common;
&set_page_elements;}

and I get the same message as above.

dont give up! smile

have a great weekend.
Posted By: PrimeTime Re: CGI page - 03/13/2004 10:45 AM
As I posted in my other reply the subroutines that Ian posted won't work, because it has not been defined in the ubb_ubbtest_blank.cgi & ultimatebb.cgi files. The routine that I made does not need to be fixed at all...I just need to figure out why yours isn't working.

If worse comes to worse the last resort would be to manually include the Header and Footer codes in the ubb_ubbtest_blank.cgi file.
Posted By: PrimeTime Re: CGI page - 03/13/2004 12:34 PM
OK Felix...Try this smile :

Click Here

Since you've already added the code in ultimatebb.cgi and ubb_lib.cgi just replace the ubb_ubbtest_blank.cgi file and clear cache.
Posted By: Felix 10 Re: CGI page - 03/14/2004 9:34 AM
Problems with your server again Prime? Every weekend now? smile


"code=DNS_TIMEOUT] A DNS lookup error occurred because..."
Posted By: PrimeTime Re: CGI page - 03/14/2004 10:20 AM
I don't think the DNS registry has been completely resolved yet. This isn't a server problem...It's actually running perfectly. Anyway, the link is up.
Posted By: Felix 10 Re: CGI page - 03/23/2004 1:20 AM
Hi Prime, sorry I was busy for the last past days.
Anyway, the page...still the same, I get the links line but thats about it, no header, no footer no Registered Members Line, no Login or PM Inbox etc...see link:
http://romanianational.com/cgi-bin/ultimatebb.cgi?ubb=ubbtest_blank

smile
Posted By: PrimeTime Re: CGI page - 03/23/2004 10:36 AM
Registered Members Line, Login and PM Inbox are different set of codes...I didn't know you wanted those added??? As for the Header and Footer...Something is not right. I verified the codes with 6.3.1.1 and 6.4 and it should work, as it did with all of my tests. smash

I'm assuming that you've entered the codes in ultimatebb.cgi and ubb_lib.cgi? Hmm...

If possible can I see your public_common.pl file? Either I'm going crazy or...
Posted By: PrimeTime Re: CGI page - 03/23/2004 10:40 AM
I need to know exactly where you've entered the Header and Footer codes. Was in manually added in the public_common.pl OR did you enter the codes via Control Panel?
Posted By: Felix 10 Re: CGI page - 03/23/2004 11:29 PM
in the CP Prime, they all are in the Styles Templates in the CP.
yes, I added those lines in the ubb_lib as well
smile
Posted By: Felix 10 Re: CGI page - 04/14/2004 5:30 AM
Anybody knows where prime is?
Posted By: Gizmo Re: CGI page - 04/14/2004 8:41 AM
Hiding from you? wink ...
© UBB.Developers