|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
What it does is pull UBB's header and footer into any SSI-enabled page. The header includes the Style Templates Header & Header Insert field, as well as the UBB logo and link line. The footer includes all the copyright stuff and the Style Templates footer field. This allows you to integrate your site pages into your UBB, so if you want to keep the whole site looking the same, you only have to edit one place (the UBB control panel) instead of the cpanel and all your other pages. It was originally created with the use of Compact Headers in mind, which is why it references the $standard_title_table (logo image and link line) variable... but because most people don't use that, the primary version is for just the standard (non-Compact) UBB headers. (Note: the standard version hasn't really been tested very well, because I don't have a UBB that doesn't have Compact Headers on it. So please report any bugs you find.) This is a really simple mod... It's pretty minimalist, and doesn't really use any original code. So I'm sure I'll get chewed out by some of the more experienced hackers. But hey, I figure some people might be able to use it. The hack works perfectly on my site. But that is an admittedly limited resource for testing. So please report back any bugs you find with either the standard or compact version. And be sure to read the readme!!! 7.8.01 - Updated to v0.9b. Non hard-coded Who's Online implementation. And better Perl syntax. Thanks a lot to LK and MasterMind for their help!! Hope you like! Click here to download . Click here for a demo . ---Skorpion [color:#000000" SIZE="1][ July 08, 2001 07:42 PM: Message edited by: Skorpion ][/color]
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
nice skorp.. is this your first "code hack"? congrats 
|
|
|
|
Joined: Jul 2001
Posts: 9
Junior Member
|
Junior Member
Joined: Jul 2001
Posts: 9 |
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Hey, cool! Nice job Skorp!
|
|
|
|
Joined: Jul 2000
Posts: 81
Member
|
Member
Joined: Jul 2000
Posts: 81 |
VERY NICE ,,
but it will be more useful if you can make it required login before viewing the shtml files
|
|
|
|
Joined: Nov 2000
Posts: 652
Member
|
Member
Joined: Nov 2000
Posts: 652 |
Hey, For some reason it is not working on my site.  Here is what I have and I tried the exec one, and it did not work either. Can someone help me out here? http://www.gamerzparadize.com/newlayout.shtml That is the url.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Try /cgi/ultimatebb.cgi?ubb=header
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
Glad everyone likes it.
I updated to v0.9a. See the original topic for details on that.
To upgrade, upload ubb_ssi.cgi to your CGI directory. Then delete ubb_header.cgi and ubb_footer.cgi, as they are no longer needed. Then redo the ultimatebb.cgi hacking with the new version (in the readme). The template files do not need to be changed.
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
Very Nice Skorp! I would have to say this is really kewl!
|
|
|
|
Joined: Aug 2000
Posts: 1,083
Kahuna
|
Kahuna
Joined: Aug 2000
Posts: 1,083 |
VERY cool! Too bad I just finished our new design, or I would have added this in. Oh well, maybe I will for the next design. 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Nice hack & instructions  I'm sure you already know it, but in step 5, I suggest you to use & lt; instead of < and then you don't have to use '*'. Anyway, there are some problems with SHTML in my IIS, I'll probably fix them later...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Who's Online instructions are incorrect.
[ July 07, 2001 05:42 AM: Message edited by: LK ]
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
LK: I knew I *should* have used that code, but I couldn't remember it at the time. So I took the easy way out and threw in asterisks.  I will change it asap. Um, how do I fix the WoL instructions? ---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
if ($ubb eq 'header') { require "$vars_config{CGIPath}/ubb_ssi.cgi"; &header; exit; } #end header if ($ubb eq 'footer') { require "$vars_config{CGIPath}/ubb_whos_online.cgi"; @people = &WriteUserSession(" External Page", $user_number, $invisible_pref); require "$vars_config{CGIPath}/ubb_ssi.cgi"; &footer; exit; } #end footer [ July 07, 2001 11:58 AM: Message edited by: LK ]
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
Aight, fixed now.  I'd forgotten about that backslash originally, so when I tried the hack on my site it caused errors. Fixed it on my site, and then went to add the backslash to the readme, and I guess I got it in the wrong place. Thanks much!  ---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
 BTW, the header is in ubb_ssi.cgi [ July 07, 2001 01:40 PM: Message edited by: LK ]
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
Ack! This is why I stick to plain ol' template hacks usually!  ---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
I used the code lk gave in ultimatebb.cgi but when I call the file I get no who's online support http://www.reeftalk.com/ubb.shtml
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
I'm looking at your Who's Online right now, and it says you're viewing an external page, which is exactly what it's supposed to do.
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
No one is looking at an external page? I saw this at 1050pm a guest is looking at external page but when I click on it it is my ubb? What is this about? I linked the whos online ssi file there till there is a fancier thing I can set up? So right now the who's online does not work on your hack. How would one get who's online to show from External_Page which is typed in ultimatebb.cgi to an actual shtml file? Here is the link to the shtml file http://www.reeftalk.com/ubb.shtml [ July 07, 2001 09:57 PM: Message edited by: omegatron ]
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
Did you read the readme file?
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Oh I read the readme file real good it had a crack that someone with a brain could figure it out how to call it? Do you think instead of making a crack you could have put better code or at least made it so that it would work instead of someone having to figure out something they do not know how to do? It does not work period unless you provide better direction? I put the ssi call in the file to have something
|
|
|
|
Joined: Jun 2001
Posts: 25
Junior Member
|
Junior Member
Joined: Jun 2001
Posts: 25 |
ummm i installed the whos online ver and i could not get it working...  when i changed the code the the non who's on-line mode i had no problems with it but i did not get the u know up in the top window i did not get that @ all. Was that bit part of the hack?? skorp cuz i saw it on your fourm. runnning 6.04 of ubb [ July 07, 2001 10:23 PM: Message edited by: joey d ]
-joey
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Hey Scorpian,
Why not send me and joey a template of your shtml page so that we might understand what you did? Now you have two people who could not get whos online to work? I really like the login box as well and would like that.
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
omegatron: It DOES work, exactly the way I said it would. That's the way it works at my site too, for crying out loud! If you don't want it to link to your main forums page, change the address yourself. That has to be done manually in the ultimatebb.cgi code that you added in. Because at this time, I'm still working on a way for WoL to know the address of the page you're actually viewing. To quote the readme again, "I hope to fix this problem by making the hack integrate into WoL better in a future release." joey: Please provide me with a URL to the page in question, so I can see what you've done. And tell me exactly how the hack didn't work: Did it give you errors? Did it not display anything? You need to be more specific so I can help you troubleshoot. ---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Skorpion, btw, if you don't want anything to be hardcoded, maybe you can do and in ultimatebb.cgi - so in the exec cgi command they decide where to put it.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
that does not work either but thanks
here is what I have.
Now I have tried it both with ubb and ubb.shtml so what should I do now
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Here are the simple start of a shtml file. I added the whos online ssi call since this hack does not provide it? how can I make it fancy like most peoples pages?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Don't really include "/path/to/cgi", make it "/cgi-bin"
[ July 08, 2001 09:43 AM: Message edited by: LK ]
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
this does nothing to add who's online in there?
Whos online is called by the ssi statement. Is there a way to get it to work and how do I make the nice little box with users online etc like I see on some sites.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Like in http://lkubb.dns2go.com/index.shtml ? [ July 08, 2001 11:13 AM: Message edited by: LK ]
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
LK, Great help. I have improvised as I am learning here and have come up with this? very basic so far. http://www.reeftalk.com/ubb.shtml Now one question how do I get it to recognize my usersa cookies so it will sayI am logged in? who's online recognizes me logged in but why not the login code?
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
LK disregard what I posted above. I will email you personally. As a board admin I feel I have gotten this topic off of its point in the process of my learning ssi calls etc. I think i will email you personally so that this thread will go back on the direction it needs to go. Great work scorpian hopefully you can get who's online to work correctly with your hack. LK's fix worked great
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
Updated to version 0.9b. See the original thread for details.  (Immense thanks to LK for all the help/support he's provided so far. I hope this version is a little less problematic. :)) ---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Skorpion, dont mean to be a pest. However whos online does not work. I mean either way you put it. One does not need any who's online support here( it does not work either) The only way found that I can see is to place this code in your shtml file this will make a nice little box
MANY THANKS TO LK [ July 08, 2001 08:41 PM: Message edited by: omegatron ]
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
I'm afraid I don't understand what you're asking. Once again, I'm looking at your site, and WoL looks like it is working to me...
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
Can you do a SSI in a cgi file?
|
|
|
|
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
|
Moderator / Template Diva
Joined: Mar 2000
Posts: 3,594 |
I am pretty sure that you *can*... but most servers only allow SSI from files with .SHTML/.SHTM extensions. Thus, it won't work with .CGI, and you won't be able to just *do* it.
I read somewhere that there's a way to make it work if you use .HTACCESS, but I'm not sure how...
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Skorp, You need to read me entire message I posted above. In there I told you I have who's online called by ssi because your way does not work. LK gave me the code to put in my shtml file to call who's online. I posted it above.I can take out the ssi call and one can readily see your way does not work. It shows the header and footer no problem but that is it. I do have one suggestion as I can always configure who's online separately. Do you think you can include the login/logout and registered members as part of the header?? LK is trying to get it worked out but I thought it might be a nice addition since most people put that as part of their header. Chuck
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|