UBB.Dev
Posted By: Jamin Compact Headers Light - version 1.5 Final - 03/19/2001 2:43 AM
This is a hack for your templates. I call it simply the "Compact Header". It makes the top of your UBB pages smaller with a modified table and it removes the logo image (for example, if you already have a logo image taken care of in your Header field in the Style Settings).

This one is the "Light" version of the hack. It only changes the three main views of the forum (front page, forum page, and thread page). I am still developing the hack that changes all of the forum views. But I figured I needed to "christen" this new Templates forum or something, so here this is. laugh

Version 1.5 has been released. Light version fixes a little bug in forum_summary.
Unless there is some major bug that pops up, this is probably the final version of this hack.

ROCK!!! Thanks to a recent decision by Infopop, I am now allowed to distribute the actual template files. So at the link below, you can download a complete set of pre-hacked public template files, that come complete with both Compact Headers 1.5, and Compact Footers 1.2. Just unzip, upload, clear cache, and you're done!!! Here's the link for the complete distribution: http://www.se7enet.com/ubbdev/compact_templates.zip
If you like to hack things yourself, you can also download the instructions below.

Previous versions can be downloaded, but support for them is limited.

INSTRUCTIONS (v1.5 - for 6.03+):
http://www.se7enet.com/ubbdev/ch_light_15.zip

DEMO:
http://www.se7enet.com/site/cgi/ultimatebb.cgi

---Skorpion

[ June 08, 2001 12:05 AM: Message edited by: Skorpion ]
Very nice work Skorpion.

[ March 18, 2001: Message edited by: MasterMind ]
Yeah.. that is nice work...
nice work!
Posted By: J.o.h Re: Compact Headers Light - version 1.5 Final - 03/19/2001 3:08 PM
Yes, I love it to!
laugh
cu
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/19/2001 3:21 PM
Thanks all. Glad you like it! smile

---Skorpion
LMAO @
""It would be funny if the computer that writes boy band songs got mixed up with the computer that writes trashy romance novels."
" laugh
Nice.. but i got a question! will you still be able to see how many registered members you have on your main page?
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/20/2001 4:30 AM
Mr. Clean, yes, you can. That is taken care of through a variable called $RegisteredMemberLine or something, which controls both the member count and newest member welcome thing. If you turn it on in the CP, it will be visible.

Jigga, glad you like! laugh Hehe!

---Skorpion

[ March 19, 2001: Message edited by: Skorpion ]
YOU ARE A GOD! heheh GOOD WORK! eek laugh cool tipsy smile laugh eek
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/20/2001 11:28 PM
Heh, thanks! (I've been trying to convince people of my deity status for so long now... you're the first person to agree! ;))


---Skorpion
it werks great! i like it mucho
i edited a few things in it to fit my design tho..
Posted By: Mr.Clean Re: Compact Headers Light - version 1.5 Final - 03/25/2001 11:11 AM
are you working on a compact header for other sections?
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/25/2001 5:37 PM
Mr Clean, yes, I am trying to finish it off so it works on all public pages. It's going pretty slow though, because I'm having to change a whole bunch of stuff around in public_common.pl and I keep screwing it up. smile

Hopefully sometime soon I'll be able to release the whole thing.

---Skorpion
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/26/2001 4:38 AM
Everyone, version 1.1 has been released, to be compatible with UBB 6.01. Check the original topic for the links. smile

---Skorpion
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 03/26/2001 8:29 PM
Very Nice!! I used the lite version. I'll get to the rest later, hmm, or wait till the release the next version of UBB with spell check.

Nice work this is exactlly what I wanted.
http://www.teamd86.com/cgi-bin/ultimatebb.cgi
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/26/2001 8:39 PM
MrBill, I like what you've done! I like how you've done the forum title, too. laugh I already have found a bug or two that need fixed in an upcoming release - so I was wondering, can I use your forum title idea in the next release of the hack? Credit goes to you for the idea, of course. smile

---Skorpion
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 03/27/2001 11:23 AM
Sorry it took so long to get back to you Skorp, but I work nights.

All I did was add a table above everything you did.

public_forum_summary.pl

Quote
quote:
And in public_forum_page.pl added this so the forum name would show up.

Quote
quote:
Please feel free to use this. And thank you very much for the compliment.

I do have a couple more ideas that I was going to try to work in if you don’t mind. But it has been a long day, and it’s sleepy time. laugh

Ok, couldn't help myself ahd to stay up a little longer.

This will show the tittle of the topic on the public_topic_page.pl


Quote
quote:
Now I'm really going to bed. laugh
Example http://www.teamd86.com/cgi-bin/ultimatebb.cgi

[ March 27, 2001: Message edited by: MrBill ]
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 03/27/2001 12:09 PM
If you were talking about the double (little bug) 'This topic is comprised of pages: '

I edited it to look like this. http://www.teamd86.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=5&t=000003
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 03/27/2001 8:40 PM
Hey Skorp. I added the $topicviewline back into the publi_forum_page.pl. But no matter what I do I can't get it to center (valign) in the cell. It always leaves a space at the bottom of the cell. I do believe it's in the design of the $topicviewline. Do you happen to know where I can find this so I can take a look and maybe edit its design?
http://www.teamd86.com/cgi-bin/ultimatebb.cgi?ubb=forum&f=1

[ March 27, 2001: Message edited by: MrBill ]
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/29/2001 3:41 AM
1.2 has been released... check the original topic for details. smile

MrBill, I don't quite remember what $topicnviewline does. I looked in the major Library files and forum templates and can't find it in them. I dunno where else to look. What does it do, exactly, and maybe I can get some clues about where it is from that?

---Skorpion
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 03/29/2001 10:00 AM
$topicviewline gives the user the chance to view topics from last 10 days, up to view all topics in a forum. It's the drop down list. The format on that has always been a little hard to work with. It always pushes the cell its in to a wider width.
Posted By: ToTaLFxP Re: Compact Headers Light - version 1.5 Final - 03/30/2001 12:26 AM
Man i'am having a hard time with the smillie legend they never seem too work
and i don't no much about cgi i'am trying too learn as i got but i want to make i table like you say but i tried to follow your intruction & i mess up the board about 9 times lol not funny hhehe
Can someone help me out with my board please
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 03/30/2001 1:43 AM
You'll have to be more specific than that, ToTaLFxP.

What exactly is the problem that you're having? I need to know that so I can troubleshoot it. smile Also, what is the URL to your board?

---Skorpion
I'm having troubles with the hack. I'm using vesrion 6.02 and it gives me this error message:

======
Error including required files: Make sure these files exist, permissions are set properly, and paths are set correctly.
======

The error seems to appear after I upload public_common.pl
Any ideas how to fix this?
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/03/2001 5:24 AM
I've been meaning to post this problem. Yes, there seems to be a conflict with 6.02. I'm not sure what the deal is, but I'm working on it. The fix for now is to just reupload a clean public_common.pl file. You'll want to reupload clean copies of your templates if you've got the hack partially installed, for now, otherwise stuff might look a little funny.

I will post here when I figure out what the problem is.

---Skorpion
OK. I'm waiting...
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/04/2001 3:21 PM
I've finally found the problem now. Apparently it was a missing "}" in a couple places in the file. But it looks as if 6.03 will be released soon, so I will be updating this mod to v1.3 when UBB 6.03 gets released.

---Skorpion
I'm not planning to update to 6.03 as I have so much hacks installed. Could you just give me instructions how to fix the errors?
Oops! I just noticed that this topic is for LIGHT and i'm using the FULL version. The link in the datebase leads to wrong place..
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/04/2001 5:25 PM
As soon as I get home, I'll send you the current instruction sheet, which *should* fully work with 6.02 now that I fixed the problem - I didn't have time to run it through my test board, tho, so there might be a problem or two left.

Thanks for letting me know about the database link. I'll go fix that or have one of the admins fix it asap. smile

---Skorpion
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 04/05/2001 8:05 PM
Hey Skorp. I finally have an example of the $topic_view_line. This function allows people to pull up past topics, all the way back to view all topics in a fourm if they choose. I just thought it was an important function of the UBB.

public_forum_page.pl

Find this:
$TBB






$this_forum[16]





Replace with this:

$TBB









$topic_view_line



$this_forum[16]





Example - http://www.teamd86.com/cgi-bin/ultimatebb.cgi?ubb=forum&f=3
UBB 6.01

[ April 05, 2001: Message edited by: MrBill ]
Posted By: sirox Re: Compact Headers Light - version 1.5 Final - 04/06/2001 5:22 AM
Hey, how in the world did you get those awesome tables on your page? With all that java-script... I would love to see a documentation on how to accomplish that sort of thing, or if you could help me privately wink
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/06/2001 5:32 AM
MrBill, thanks for that. I'll include it in the next release (v1.3, when UBB 6.03 comes out).

Sirox, who are you talking to? Me? or MrBill? I'd be glad to help you if you're talking to me about my site, but which tables are you talking about? smile

---Skorpion
Mr. Skorpion, I haven't recieved any reply to my e-mail but had you modified any other files or is it only the public_common.pl with the bugs? I wouldn't want to edit them all again...
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/07/2001 3:56 AM
FusionMafia, I emailed you back... not sure why it didn't go through.

Anyway, there are about nine files you'll have to edit, plus public_common.pl. I had a list, but I can't find it, and I can't remember exactly which ones they are. Any of them that don't reference the $Standard_Title_Table variable are the ones you'll have to edit, because they're the ones that got their own (incorrect) code chunk. They are the ones that start out with more code up at the top. Hope this helps.

---Skorpion
Ookee... I'll start editing. Thanks cool
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/08/2001 11:52 PM
1.3 has been released. You know what to do. smile

---Skorpion
Posted By: MrBill Re: Compact Headers Light - version 1.5 Final - 04/09/2001 7:30 AM
Great Skorp! I was waiting for you to release this before I upgaded to 6.03. laugh laugh laugh
Posted By: sirox Re: Compact Headers Light - version 1.5 Final - 04/10/2001 7:52 PM
Skorpion, I would like to know how to add those navigational tables to the right of my forum, just like you did on yours. I know you use javascript, but documentation would be great.
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/10/2001 8:53 PM
Add this into the cell:

onmouse*over="this.style.background='#XXXXXX'" onmouse*out="this.style.background='#YYYYYY'"

where XXXXXX is the new rollover color, and YYYYYY is the original color.

Remove the asterisks, too. Had to put those in there to make it UBB-legal.

That is for the rollovers. The rest of the nav bar stuff can be found in Allen's tutorials (look in the database). smile

---Skorpion

[ April 10, 2001: Message edited by: Skorpion ]
Posted By: sirox Re: Compact Headers Light - version 1.5 Final - 04/10/2001 11:08 PM
Mind posting a link? It is really confusing, since the Database is really messed up. But you know what I want, the nav tables at the left smile
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/11/2001 12:06 AM
https://www.ubbdev.com/db/cgi/ultimatebb.cgi?ubb=get_topic&f=15&t=000001

---Skorpion
Posted By: sirox Re: Compact Headers Light - version 1.5 Final - 04/12/2001 12:08 AM
Thanks, but does this mean I have to add links to my forums manually?
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 04/12/2001 1:25 AM
Um... not sure what you mean. Are you talking about direct links to specific forums, on your left nav bar? Yeah, you'll have to add those in manually. Right-click on the link and click Copy Shortcut, it makes it really easy.

If that's not it, I'm not sure what you're referring to, sorry.

---Skorpion
Posted By: sirox Re: Compact Headers Light - version 1.5 Final - 04/12/2001 10:24 PM
Yup, thats it! Thanks a bunch!
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 05/04/2001 3:35 AM
Version 1.4 Final has been released. As always, see the original topic... smile

---Skorpion
Posted By: Jamin Re: Compact Headers Light - version 1.5 Final - 06/08/2001 7:07 AM
Version 1.5 has been released.

Because I can now distribute the entire set of template files, I'm going to close this thread since most of you won't have the problem of not having enough time to do the full hack anymore.

If you have questions, use the Full Version topic.

---Skorpion
© UBB.Developers