Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 09:32 pm EST
Geeklog Forums
Quick way to integrate .htm files?
Anonymous
Anonymous
I am currently playing around with porting my company's intranet over to geeklog. A good number of the documents are pretty solid but in html format. I can figure out a way to link to them from within Geeklog using a menu system but the site header will always dissapear. I realize I can convert these over to static pages but that is way too much work for 100+ documents. Is there a way to easily get the site header to be included with each of these documents?
Thanks!
12
16
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
You could use the external plugin. But you would still need to modify the files to have the same headers. You didn't by chance use includes for your header?
11
13
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
Method 1: If you want these pages wrapped in GL and included in search and stats, you could use the external plugin like DTrumbower pointed out. This requires adding about 12 lines of code to each file and changing the extension to php or adding html as a recognizable php extension in your .htaccess file. Since you have so many files though, it may slow down search times quite a bit.
Method 2: If search and stats are not a concern, you could make each file look this:
<?php
require_once('lib-common.php');
echo(COM_siteHeader());
?>
<<<put your html content here>>>
<?php echo(COM_siteFooter(true)); ?>
To not display left blocks use COM_siteHeader('none') instead. To not display right blocks use COM_siteFooter() instead. Again, you would have to either change the file extension to php or add html as a recognizable php extension in your .htaccess file.
Method 3: If search and stats are not a concern, you could build an empty Geeklog page and use an include or iframe to display the html files. Since you have so many files, you might want to pass the filename to it. If this is done, you'll need to add some logic to make sure the file is located only on your server or check the names against an acceptable list otherwise you'll create a huge security hole.
Method 4: If you only have one theme, you could copy the header and footer in plain html into files and then use includes in the other files.
Method 5: You could contact phpsocialclub and see if any of his hacks meets your needs.
Method 2: If search and stats are not a concern, you could make each file look this:
Text Formatted Code
<?php
require_once('lib-common.php');
echo(COM_siteHeader());
?>
<<<put your html content here>>>
<?php echo(COM_siteFooter(true)); ?>
Method 3: If search and stats are not a concern, you could build an empty Geeklog page and use an include or iframe to display the html files. Since you have so many files, you might want to pass the filename to it. If this is done, you'll need to add some logic to make sure the file is located only on your server or check the names against an acceptable list otherwise you'll create a huge security hole.
Method 4: If you only have one theme, you could copy the header and footer in plain html into files and then use includes in the other files.
Method 5: You could contact phpsocialclub and see if any of his hacks meets your needs.
11
10
Quote
All times are EST. The time is now 09:32 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content