UBB.Dev
Posted By: RandyM Home.cgi? - 01/11/2003 11:14 PM
Okay, I hope this isn't a stupid question. I want to make a home page for Netwerkin that has the login, content islands etc. etc. on it. I'd like to include the small calendar from LK's hack as well. What is involved in making a new page that will be part of the board including the ability to have the proper styles, the login etc? It seems that a portal is going to be slow in coming so I'm thinking that this type of page would be a lot easier to do.

I'm going to look into the pages that some of the hack authors do to see if I can figure some of it out on my own but I'm not a programmer, I just hack things up till they either brak or do what I think I want them to.
Posted By: AllenAyres Re: Home.cgi? - 01/12/2003 12:47 AM
smile

This shouldn't be very difficult, as reading the cookie should be the same as any other mod made to work with the ubb (calendar, etc.) smile

Hmmm... check the ubb.db mod for a jumpstart in reading permissions, cookies, etc. smile
Posted By: RandyM Re: Home.cgi? - 01/12/2003 2:56 AM
Thanks Allen!
Posted By: Jasper Re: Home.cgi? - 01/12/2003 4:59 AM
Good luck dude.
Posted By: RandyM Re: Home.cgi? - 01/12/2003 5:07 AM
Quote
quote:
Originally posted by Jasper:
Good luck dude.
Interesting first post since you registered before I did...
Posted By: LK Re: Home.cgi? - 01/12/2003 7:05 AM
Also you can look at ubb_checkmsg.cgi - it requires vars_config, gets the cookie number, does @ubber = cookie("ubber$vars_config{Cookie_Number}"), then $ubber[0] is username, 1 is password, 2 is public name, 3 is dayview, 4 is member #. ("Hello $ubber[2] [ logout ]"). Content Islands - it's JavaScript/SSI calls, so it's pretty easy tipsy (in your cgi file, you can just open the SSI file as string and then print it). Proper styles - use &LoadStyleTemplate("summary") (of course, require vars_template_matach.cgi), then use AltColumnColor, TextColor, etc and not HEX numbers...

Quote
quote:
Originally posted by TheX:
Interesting first post since you registered before I did...
hmm, so? tipsy
Posted By: RandyM Re: Home.cgi? - 01/12/2003 8:50 AM
Just odd that a person registers over a year and a half ago and his first post is in a thread that he/she didn't start or seem to have any interest in. I guess I'm overly paranoid. wink
Posted By: LK Re: Home.cgi? - 01/12/2003 1:35 PM
Some people registered but didn't post when they wanted to post but their problem got fixed, they wanted to see features of UBBDev (Time Zone, Style Changer, etc), they want to access Database or maybe they want to post in shoutbox (and afterwards he removed his shout)...
Posted By: Dave2 Re: Home.cgi? - 01/12/2003 5:23 PM
Quote
quote:
Originally posted by LK:
or maybe they want to post in shoutbox (and afterwards he removed his shout)...
Now that is a bit far-fetched wink .
Posted By: PrimeTime Re: Home.cgi? - 01/13/2003 12:05 PM
It's funny that you mentioned a homepage .cgi X. I'm glad this subject is out. A few months ago I was testing out whether I could make a homepage (out of the UBB .cgi) files and while ultimatebb.cgi did recognize it I still have to add the remaining variables to make it work. I too was looking at several hacks and UBB files which kept the cookies and permissions. I guess LK figured it out within seconds.

Ahh you coders. LOL. tipsy
Posted By: AllenAyres Re: Home.cgi? - 01/13/2003 6:11 PM
smile Yeah, I shoulda remembered the shoutbox probably is a better example of what you are wanting laugh

Do you plan to javascript some of the CI into it?
Posted By: PrimeTime Re: Home.cgi? - 01/14/2003 12:11 AM
Umm...I'm a bit lost what Allen just said regarding the Shoutbox but because we're finally seeing Portal results who cares. laugh

I don't know you guys personally but I vote LK to be the Portal guru since by default he is a coder. Hehe. Let me know how it goes over at your end X. BTW...Doesn't the ultimatebb.cgi file need to be coded so that it reads the homepage.cgi like (if ($ubb eq)?
Posted By: AllenAyres Re: Home.cgi? - 01/14/2003 1:38 AM
you probably wouldn't want to do that, as it would increase the load quite a bit smile I'd make it as lean as possible...
Posted By: PrimeTime Re: Home.cgi? - 01/14/2003 2:12 AM
Hmm...Good point. UBB does take a lot of CPU however so one page (depending on the content it stores) may not make that much of a difference. For now let's get this party started and make this dream a reality, it's about time...

But first I would like to get Sub Zero and Paulus' intergrated login code working on my site first then I'll continue with this Portal alternative. laugh
Posted By: PrimeTime Re: Home.cgi? - 03/09/2003 1:31 AM
Update:

I've created a .pl file that could possibly be for a homepage or other. The header, footer and UBB logins are accepted, like any other .pl file. All is left is to add content...Which I'm having a bit of a problem.

My understanding is that SSI will not work in Perl pages. I think javascript can and maybe &RequireCode? What are the codes I need to invoke UBBNews into my .pl file?

LK, Charles, Bookie...?
Posted By: Ron M Re: Home.cgi? - 03/13/2003 8:53 PM
Why not just do Includes of Content Islands?
Posted By: PrimeTime Re: Home.cgi? - 03/14/2003 6:56 AM
I did for Latest Posts/Threads. laugh There are some things I would like to do without the use of Javascript, but we'll see how it goes. smile

Ohh...I've managed to create a .cgi file (finally) so I'm using that instead of the .pl for now. tipsy
© UBB.Developers