Converting HTML pages into Mambo
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Converting HTML pages into Mambo
Hi;
I have a website with thousands of HTML pages created with Blogger.
I have now installed Mambo and I need to convert these pages, and I have no knowlege of SQL
Can someone please help
I have a website with thousands of HTML pages created with Blogger.
I have now installed Mambo and I need to convert these pages, and I have no knowlege of SQL
Can someone please help
- chette
- Joomla! Explorer
- Posts: 484
- Joined: Wed Aug 17, 2005 11:20 pm
- Location: Pasig City, Philippines
- Contact:
Re: Converting HTML pages into Mambo
I also converted from Blogger. From my knowledge of Blogger, it does not allow you to export your entries (well at least way back then). I had to copy and paste all my articles one by one.Big-K wrote: I have a website with thousands of HTML pages created with Blogger.
I have now installed Mambo and I need to convert these pages, and I have no knowlege of SQL
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
i'm afraid this will come down to copy/pasting.
unless you're capable of writing an php script that will read through all files and parse the content into a database.
Are all files structured in the same way or are there lots of differences between all of those articles?
unless you're capable of writing an php script that will read through all files and parse the content into a database.
Are all files structured in the same way or are there lots of differences between all of those articles?
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Re: Converting HTML pages into Mambo
Thanks for the feedback. All the files are structured the same way with the same template. Here is a typical example. Is there any silver lining?Websmurf wrote: i'm afraid this will come down to copy/pasting.
unless you're capable of writing an php script that will read through all files and parse the content into a database.
Are all files structured in the same way or are there lots of differences between all of those articles?
The thought of copying and pasting is giving me nightmares.
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
son of a ...
talk about ugly HTML
i think it will be possible though. what directory structure are you using on your site? are all files in the same directory or more than one?
talk about ugly HTML
i think it will be possible though. what directory structure are you using on your site? are all files in the same directory or more than one?
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Re: Converting HTML pages into Mambo
Websmurf
I know! Those pages look ugly hence the decision to move to mambo
Most of the files are in the same directory. I will have no problems moving thise in other directories to this same directory.
Thanks for your feedbacks so far
I know! Those pages look ugly hence the decision to move to mambo
Most of the files are in the same directory. I will have no problems moving thise in other directories to this same directory.
Thanks for your feedbacks so far
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
will have a look at a script tommorrow..
what catogories are you using, or are you using none at the moment?
what catogories are you using, or are you using none at the moment?
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Re: Converting HTML pages into Mambo
I'm not using a category yet.
I cant wait to get the script.
Thanks, man!!
I cant wait to get the script.
Thanks, man!!
- Chris
- Joomla! Guru
- Posts: 812
- Joined: Sat Aug 20, 2005 3:58 am
- Location: Australia
- Contact:
Re: Converting HTML pages into Mambo
I don't know much about all that but putting 1000 or more pages within a database seems to be reaaly an overkill.
Why not leave it in a folder as a 'flat file'?
There are ways and means to access these files with a script that processes the links to these files.
When making that script you can use for instance ereg_replace to get rid of all tags and what is between tags that are not needed.
Just is really only a suggestion.
However, I did have the same problem with over 9000 html files from my 'before CMS' setup.
It is and was used to displayClick on my Family Tree in the menu.
The only thing I did afterwards was to make a table in my database to be able to search certain occurences within these fiiles as stored in the 'flat file'
Also, I made a script for the Click on Religious pages and then Synaxarium ( to be used by a Coptic Church ).
The information is all stored within 'flat files'.
The only thing I did there was to delete all the header and footer 'thingo's' like the , , etc. by using a HTML editor liike AceHtml.
So, think about it, with PHP (M$mbo is really only HTML and PHP) one can almost do anything.
Why not leave it in a folder as a 'flat file'?
There are ways and means to access these files with a script that processes the links to these files.
When making that script you can use for instance ereg_replace to get rid of all tags and what is between tags that are not needed.
Just is really only a suggestion.
However, I did have the same problem with over 9000 html files from my 'before CMS' setup.
It is and was used to displayClick on my Family Tree in the menu.
The only thing I did afterwards was to make a table in my database to be able to search certain occurences within these fiiles as stored in the 'flat file'
Also, I made a script for the Click on Religious pages and then Synaxarium ( to be used by a Coptic Church ).
The information is all stored within 'flat files'.
The only thing I did there was to delete all the header and footer 'thingo's' like the , , etc. by using a HTML editor liike AceHtml.
So, think about it, with PHP (M$mbo is really only HTML and PHP) one can almost do anything.
Last edited by Chris on Wed Feb 15, 2006 3:32 am, edited 1 time in total.
There is no failure until you give up.
Chris
Chris
Re: Converting HTML pages into Mambo
Chris, I think the idea of importing the files is to be able to manage the content more easily. That's the idea of using a CMS, IMHO... Yeah, it can be a pain in the proverbial behind to import, but in the end, I think it's the only solution if you want to manage content somewhat consistently and relatively easily.
Just my 2 cents.
I ended up having to convert several huge static sites to Mambo, and they had been created (not by me) with a really funky structure. 'Twas tough, but worth it
Just my 2 cents.
I ended up having to convert several huge static sites to Mambo, and they had been created (not by me) with a really funky structure. 'Twas tough, but worth it
- Chris
- Joomla! Guru
- Posts: 812
- Joined: Sat Aug 20, 2005 3:58 am
- Location: Australia
- Contact:
Re: Converting HTML pages into Mambo
Sorry if I was not quite clear.vavroom wrote: Chris, I think the idea of importing the files is to be able to manage the content more easily. That's the idea of using a CMS, IMHO... Yeah, it can be a pain in the proverbial behind to import, but in the end, I think it's the only solution if you want to manage content somewhat consistently and relatively easily.
Just my 2 cents.
I ended up having to convert several huge static sites to Mambo, and they had been created (not by me) with a really funky structure. 'Twas tough, but worth it
If one has over a 1000 html pages, I would think they are 'static', they rarely, if ever change.
If these pages are to be updated at a regular interval, no matter what system one uses, it will be a mammoth task.
Now that I wrote that, "mammoth", good name for the new $mambo?
Pity thst mammoth.com is already taken. Mmaybe mammothcms?
Last edited by Chris on Tue Aug 23, 2005 9:08 am, edited 1 time in total.
There is no failure until you give up.
Chris
Chris
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Re: Converting HTML pages into Mambo
So Vavroom,vavroom wrote: Chris, I think the idea of importing the files is to be able to manage the content more easily. That's the idea of using a CMS, IMHO... Yeah, it can be a pain in the proverbial behind to import, but in the end, I think it's the only solution if you want to manage content somewhat consistently and relatively easily.
Just my 2 cents.
I ended up having to convert several huge static sites to Mambo, and they had been created (not by me) with a really funky structure. 'Twas tough, but worth it
How did you convert those files to Mambo?
Re: Converting HTML pages into Mambo
Manually............. Long and tedious process, but at the same time, I took the time to clean up old and deprecated and *ugly* html. I thought it important to aim for up to date code rather than import older code that would not validate.Big-K wrote: So Vavroom,
How did you convert those files to Mambo?
I did this locally though, leaving the old system in place, building up content through MSAS. So the old site was still up and running while I was doing this, and when the content was ready, I was able to upload to my "live" server.
- Elpie
- Joomla! Guru
- Posts: 903
- Joined: Wed Aug 17, 2005 11:26 pm
- Contact:
Re: Converting HTML pages into Mambo
I converted a site with over 1,000 pages and went through the same agonies of trying to find an easier way to do it than cut n paste.
In the end, I couldn't.
What I did was to take each page and using Dreamweaver stripped out all unwanted code. Left in the basic paragraphing and not much else.
It sounds a real pain, but there were advantages in cleaning out the unneccessary code and in the cut n paste. It gave me time to think about structure (categories, sections, etc). The site concerned is an information-only site (though it has things like forums and events too - which it didn't have when it was html) so logical and useable structure was very important.
It took me a couple of days of stripping down, cutting and pasting into the CMS, but oh boy! What a difference a cms makes!
I couldn't believe how much disk space was saved (yep, it was my first Mambo site). In html the site had got too large to manage efficiently and although the content is not updated or added to frequently changing to a db site saved me a lot of time. I also like to change the look and feel of the site periodically, and this is a breeze with the CMS.
I guess what I am saying is, I've been there, done that, and consider it was very worthwhile. After a while I found I got into auto-pilot with cut n paste and it didn't take anywhere near as long as I expected.
I do recommend you strip your code down first.
In the end, I couldn't.
What I did was to take each page and using Dreamweaver stripped out all unwanted code. Left in the basic paragraphing and not much else.
It sounds a real pain, but there were advantages in cleaning out the unneccessary code and in the cut n paste. It gave me time to think about structure (categories, sections, etc). The site concerned is an information-only site (though it has things like forums and events too - which it didn't have when it was html) so logical and useable structure was very important.
It took me a couple of days of stripping down, cutting and pasting into the CMS, but oh boy! What a difference a cms makes!
I couldn't believe how much disk space was saved (yep, it was my first Mambo site). In html the site had got too large to manage efficiently and although the content is not updated or added to frequently changing to a db site saved me a lot of time. I also like to change the look and feel of the site periodically, and this is a breeze with the CMS.
I guess what I am saying is, I've been there, done that, and consider it was very worthwhile. After a while I found I got into auto-pilot with cut n paste and it didn't take anywhere near as long as I expected.
I do recommend you strip your code down first.
For Mambo assistance: http://forum.mambo-foundation.org
Open Source Research & Best Practice: http://osprojects.info
Open Source Research & Best Practice: http://osprojects.info
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
I'm quite on the road at the moment.
Test out this script:
It should work mostly, make sure all files are in the same directory and enter the path on line four. then execute the script.
The script will generate SQL code you can use in phpmyadmin or any other database management tool.
note: I'm not giving any guarantee for anything!
Test out this script:
Code: Select all
<?php
/**
* Textonly convert to mambo
* @author Adam van Dongen
**/
$dir = "D:/Mijn_documenten/TIM/mambo/free/article_import/articles"; //directory that contains the files
$title_start = '<h3 class="post-title">';
$title_end = '</h3>';
$content_start = '<div class="post-body">';
$content_end = '<!-- Begin \#comments -->';
$date_start = '<h2 class="date-header">';
$date_end = '<!-- Begin .post -->';
$cat_id = 1; //categories in which all these articles will be inserted
$sectionid = 1; //section in which this categorie is.
$prefix = "mos_";
$files = readFilesFromDir($dir);
for($i=0,$n=count($files);$i<$n;$i++){
//echo '-----------------------------------------------------------------<br /><br />';
$file = file_get_contents($dir . "/" . $files[$i]);
$title = preg_match('#' . $title_start . '(.*)' . $title_end . '#is', $file, $matches);
$titel = strip_tags($matches[1]);
//echo $titel . '<br />';
$matches = null;
$content = preg_match('#' . $content_start . '(.*)' . $content_end . '#is', $file, $matches);
$content = addslashes(strip_tags($matches[1], '<b><br><br /><strong><em><table><td><tr><img>'));
//echo $content . '<br />';
$matches = null;
$date = preg_match('#' . $date_start . '(.*)' . $date_end . '#is', $file, $matches);
$date = strip_tags($matches[1]);
//echo $date . '<br />';
$date = explode(', ', $date);
//print_r($date);
$month = explode(" ", $date[1]);
$day = $month[1];
$month = convertToMonth($month[0]);
$year = trim($date[2]);
$date = $year . "-" . $month . "-" . $day;
//echo $date . '<br />';
//continue;
$query = "INSERT INTO " . $prefix . "content (title, introtext, state, sectionid, catid, created) VALUES ('$titel', '$content', 1, $sectionid, $cat_id, '$date');\n";
echo htmlentities($query, ENT_COMPAT, 'UTF-8') . '<br />';
}
function readFilesFromDir($dir){
$array = array();
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$array[] = $file;
}
}
closedir($handle);
}
return $array;
}
function convertToMonth($m){
switch($m){
case 'January':
return "01";
break;
case 'February':
return "02";
break;
case 'March':
return "03";
break;
case 'April':
return "04";
break;
case 'May':
return "05";
break;
case 'June':
return "06";
break;
case 'July':
return "07";
break;
case 'August':
return "08";
break;
case 'September':
return "09";
break;
case 'October':
return "10";
break;
case 'November':
return "11";
break;
case 'December':
return "12";
break;
}
}
?>
The script will generate SQL code you can use in phpmyadmin or any other database management tool.
note: I'm not giving any guarantee for anything!
Last edited by Websmurf on Wed Aug 31, 2005 7:42 am, edited 1 time in total.
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Re: Converting HTML pages into Mambo
Websmurf:
Thanks for this tremendous flicker of hope.
I will test out the script over the weekend and let you know how it goes
Thanks for this tremendous flicker of hope.
I will test out the script over the weekend and let you know how it goes
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
Good luck
don't forget to backup!
don't forget to backup!
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
btw, it will only work for articles in the same template as the one you've posted.
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
-
- Joomla! Intern
- Posts: 79
- Joined: Sun Aug 21, 2005 2:13 am
Re: Converting HTML pages into Mambo
Websmurf
Good news. The script worked. The only tweak we had to make was change full text to `full text` as that was causing a few errors.
Problems left are that the Authors' names were not ported over, some paragraphs were jumbled, and we lost all images and tables.
Overall though, I say THANKS!!
Good news. The script worked. The only tweak we had to make was change full text to `full text` as that was causing a few errors.
Problems left are that the Authors' names were not ported over, some paragraphs were jumbled, and we lost all images and tables.
Overall though, I say THANKS!!
Last edited by Big-K on Sun Aug 28, 2005 1:39 pm, edited 1 time in total.
Re: Converting HTML pages into Mambo
Hey Websmurf!
This is looking very nifty, will sure give it a go. Will this stay as a tool/script, or will you build an add-on out of it? Some kind of imort tool for mambo?
This is looking very nifty, will sure give it a go. Will this stay as a tool/script, or will you build an add-on out of it? Some kind of imort tool for mambo?
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
You'll see this line of code in the script:Big-K wrote: Problems left are that the Authors' names were not ported over, some paragraphs were jumbled, and we lost all images and tables.
Code: Select all
$content = addslashes(strip_tags($matches[1], '<b><br><br /><strong><em>'));
Will be hard te make an all-purpose converter. Each site is different so it will be really to much work to make a default script to match all.RobInk wrote: Hey Websmurf!
This is looking very nifty, will sure give it a go. Will this stay as a tool/script, or will you build an add-on out of it? Some kind of imort tool for mambo?
The current script however is certainly fit to be used by others. That's why i've posted it
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- ilox
- Joomla! Explorer
- Posts: 444
- Joined: Thu Aug 25, 2005 3:29 pm
- Location: Adelaide, South Australia
- Contact:
Re: Converting HTML pages into Mambo
Chris, I am thinking of taking my much smaller family tree site and converting it into *ambo. For me it seems to be better to just Cut-N-Paste the content across into the *ambo pages. There really isn't much HTML there once I strip out the redundant menu table .Chris wrote: I did have the same problem with over 9000 html files from my 'before CMS' setup. It is and was used to displaymy Family Tree.
My problem comes when I want to show the actual trees of the two main families. At present my pages (hidden from the site while I rebuild them) were generated on the fly from my Tree program, Personal Ancestral File PAF (nothing to do wiith religion, only because it is/was free). I quite like look of the pages that PAF has generated though the underlying code is some of the worst I have seen.
I know you use PHPGedit. You have integrated it into your site through a wrapper page. Is there a web tree program that has similar features and would integrate properly into *ambo?
Cheers, Ian
"Always remember. Love is the purest feeling, the wisest thought and the strongest reason. Always!"
by Sea-Life
"Always remember. Love is the purest feeling, the wisest thought and the strongest reason. Always!"
by Sea-Life
- Chris
- Joomla! Guru
- Posts: 812
- Joined: Sat Aug 20, 2005 3:58 am
- Location: Australia
- Contact:
Re: Converting HTML pages into Mambo
I did not use PHPGedit.ilox wrote:I know you use PHPGedit. You have integrated it into your site through a wrapper page. Is there a web tree program that has similar features and would integrate properly into *ambo?Chris wrote: I did have the same problem with over 9000 html files from my 'before CMS' setup. It is and was used to displaymy Family Tree.
All what one can see is made possible by having used my old time Clipper and dBaseIV programs that I used many years ago.
I then wrote a short script, also using Cliipper, to generate the flat files plus some tables for my database to make the searching of the database easier.
What I will try one day is to try using the script as posted by websmurf and see if I can tranform the flat files into tables for my database.
There is no failure until you give up.
Chris
Chris
- ilox
- Joomla! Explorer
- Posts: 444
- Joined: Thu Aug 25, 2005 3:29 pm
- Location: Adelaide, South Australia
- Contact:
Re: Converting HTML pages into Mambo
My apologies. I was mistaken about the Mambo sites that I viewed late the other night. Sorry for the confusion.Chris wrote:I did not use PHPGedit.
Cheers, Ian
"Always remember. Love is the purest feeling, the wisest thought and the strongest reason. Always!"
by Sea-Life
"Always remember. Love is the purest feeling, the wisest thought and the strongest reason. Always!"
by Sea-Life
- php4ever
- Joomla! Explorer
- Posts: 290
- Joined: Tue Aug 30, 2005 3:40 pm
- Location: United States of America
- Contact:
Re: Converting HTML pages into Mambo
Clever code nice work. I was just going to suggest that you use a script the first time I saw this thread. I know how time consuming it can be. I'm doing the same thing for a school district which has all their html's in an old format.
Cool code
Jared.
Cool code
Jared.
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
No problem.php4ever wrote: Clever code nice work. I was just going to suggest that you use a script the first time I saw this thread. I know how time consuming it can be. I'm doing the same thing for a school district which has all their html's in an old format.
Cool code
Jared.
I made with in the back of my mind that others might use it
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- guilliam
- Joomla! Virtuoso
- Posts: 4181
- Joined: Thu Aug 18, 2005 10:27 am
- Location: Sunny City Cebu, Philippines!
- Contact:
Re: Converting HTML pages into Mambo
great work adam!
hope to see more threads like this.
was looking for a quickstart on how to convert an asp db to Joomla mySQL db. i know that every asp db has its structure(from access?) what i mean "quickstart" is a sample convertion script. (",)
hope to see more threads like this.
was looking for a quickstart on how to convert an asp db to Joomla mySQL db. i know that every asp db has its structure(from access?) what i mean "quickstart" is a sample convertion script. (",)
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
http://www.joomlaconsultancy.net
http://www.joomlaconsultancy.net
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 01, 2006 8:49 am
Re: Converting HTML pages into Mambo
I don't think I did anything wrong. I am however using this off of my webserver. I changed the dir, and I get this back.
INSERT INTO jos_content (title, introtext, state, sectionid, catid, created) VALUES ('', '', 1, 1, 1, '--');
INSERT INTO jos_content (title, introtext, state, sectionid, catid, created) VALUES ('', '', 1, 1, 1, '--');
INSERT INTO jos_content (title, introtext, state, sectionid, catid, created) VALUES ('', '', 1, 1, 1, '--');
for each file I try to do. It see thes files, and the list grows if I add more files, but it's not taking anything out of the files. Nothing is being parsed I think. No clue. I even added a blank htm doc with and some random text in the body. Doesn't see that eithor.
INSERT INTO jos_content (title, introtext, state, sectionid, catid, created) VALUES ('', '', 1, 1, 1, '--');
INSERT INTO jos_content (title, introtext, state, sectionid, catid, created) VALUES ('', '', 1, 1, 1, '--');
INSERT INTO jos_content (title, introtext, state, sectionid, catid, created) VALUES ('', '', 1, 1, 1, '--');
for each file I try to do. It see thes files, and the list grows if I add more files, but it's not taking anything out of the files. Nothing is being parsed I think. No clue. I even added a blank htm doc with and some random text in the body. Doesn't see that eithor.
- Websmurf
- Joomla! Hero
- Posts: 2230
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: Converting HTML pages into Mambo
You will have to make some modifications to the code for it to pick up your specific content. Did you do that?
What does the page look like, when looking at the code?
What does the page look like, when looking at the code?
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 01, 2006 8:49 am
Re: Converting HTML pages into Mambo
I looked at ALL the tags in the HTML I wanted to get, and I placed all of the tags I found (even the ones I didn't want) in the list
I get same result with the orginal code,
$content = addslashes(strip_tags($matches[1], ''));
This is the page I'm trying to take
Allergen
A
to
Z of Health
Dedicated to Making You
Healthier
Allergen
Alternative names
allergy-causing; irritant
Information
Definition:
A substance that can cause an allergic reaction. Allergens are
substances that, in some people, the immune system recognizes as
"foreign" or "dangerous" but cause no response for
most people.
Common allergens include certain contactants (such as chemicals,
plants), drugs (such as antibiotics, serums), foods (such as milk,
chocolate, strawberries, wheat), infectious agents (such as bacteria,
viruses, animal parasites), inhalants (such as dust, pollen, perfumes,
smoke), and physical agents (such as heat, light, friction, radiation).
See also:
allergies
allergic reaction
food allergy
allergy to drugs
antigen
antibody
All information
contained within this website is meant for educational purposes only.
All medical treatments">
All information
contained within this website is meant for educational purposes only.
All medical treatments, or uses of vitamins, herbs or any other substances
should be discussed with your doctor first. If you decide to use any of
the information for personal use, you do so of your own accord and with no
responsibility to the the authors of this web site.
This site was develop and maintained by
Dr. nobodyi and
Dr. nobody. Please
email us for any comments on the page or desired information you would like to
see on the site.
Hope that helps.
I get same result with the orginal code,
$content = addslashes(strip_tags($matches[1], ''));
This is the page I'm trying to take
Allergen
A
to
Z of Health
Dedicated to Making You
Healthier
Allergen
Alternative names
allergy-causing; irritant
Information
Definition:
A substance that can cause an allergic reaction. Allergens are
substances that, in some people, the immune system recognizes as
"foreign" or "dangerous" but cause no response for
most people.
Common allergens include certain contactants (such as chemicals,
plants), drugs (such as antibiotics, serums), foods (such as milk,
chocolate, strawberries, wheat), infectious agents (such as bacteria,
viruses, animal parasites), inhalants (such as dust, pollen, perfumes,
smoke), and physical agents (such as heat, light, friction, radiation).
See also:
allergies
allergic reaction
food allergy
allergy to drugs
antigen
antibody
All information
contained within this website is meant for educational purposes only.
All medical treatments">
All information
contained within this website is meant for educational purposes only.
All medical treatments, or uses of vitamins, herbs or any other substances
should be discussed with your doctor first. If you decide to use any of
the information for personal use, you do so of your own accord and with no
responsibility to the the authors of this web site.
This site was develop and maintained by
Dr. nobodyi and
Dr. nobody. Please
email us for any comments on the page or desired information you would like to
see on the site.
Hope that helps.