1
chefry
Looking to Import Text, anyone???
  • 2006/10/14 12:01

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I'm looking for something that on the surface sounds to be quite easy. I want to import a series of text documents into Xoops. The first line of each text file would be the title of the XOOPS page. Some of the documents may (will) have html code in them for images. And each document would be it's own page in Xoops. Finally, when setting up to import all the files from a specific subdirectory I would be able to specify the category for all of the files (all in the same category).

Does anyone know of a module that could do this?

Alternately, does anyone want to write a module that would do this?

I have a recipe website, in html, and I figure the easiest way to get it all into XOOPS is to set up the XOOPS categories, convert all the pages to text files, with most of the html stripped out, then import the text files in each subdirectory into Xoops, specifying a different category for each subdirectory.

There's just no other feasible way for me to do it.

And there's WAY to many recipe files to do manually one at a time.

Thanks
Frank

2
Lance_
Re: Looking to Import Text, anyone???
  • 2006/10/14 12:26

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


The module you describe doesn't exist. Maybe the wraps module could help you out.

http://www.peak.ne.jp/xoops/md/mydownloads/singlefile.php?lid=75&cid=1
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

3
chefry
Re: Looking to Import Text, anyone???
  • 2006/10/14 16:47

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


Quote:

Lance_ wrote:
The module you describe doesn't exist. Maybe the wraps module could help you out.


It doesn't exist! That's why I posted in the Module request forum. And I'm talking volume imports, not inserting one page at a time.

Thanks anyway, I've already looked at wraps

4
chippyash
Re: Looking to Import Text, anyone???
  • 2006/10/15 6:01

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Your requirement is highly specialised, so you are perhaps unlikely to get anyone to donate their time for free to write this for you (this is open source, not charity. )

However, if you want to dive in yourself and do a bit of PHP coding, it shouldn't be too difficult. First, choose an article or news manager that most closely fits your overall display and article management requirements, (I use XF Section, which you can find on this web site, for my recipes at bbcb.co.uk). Then study it to see how it deals with articles. Some keep them as files, some import them into a database table. All will write the catagorisation details into a data table. Then write a simple import script that copies the files where needed and writes the appropriate data to the module's tables. Finally, publish your import routine to the XOOPS community so others can benefit from it.

Alternatively, for a suitable donation to the upkeep of their websites, there are a number us who can write it for you.

Regards
A

5
chefry
Re: Looking to Import Text, anyone???
  • 2006/10/15 10:10

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I don't know what's so highly specialized about it. It's 3 fields.

Document name
Category
text boox

I don't know php and I wouldn't have a clue how to program it

6
chippyash
Re: Looking to Import Text, anyone???
  • 2006/10/15 14:48

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Quote:

chefry wrote:
I don't know what's so highly specialized about it. It's 3 fields.

Document name
Category
text boox

I don't know php and I wouldn't have a clue how to program it


It may only appear to be three fields to you chefry but depending on what module you decide implement it on, the data could end up in a variety of places. I am suggesting this route as being the most practical because an existing module is likely to have all the additional functionality that you want. Writing a new mod from scratch is different ball game.

Clearly, you are not a programmer (at least in PHP anyway), but what you want is not implemented in any of the modules I know of, so therefore its requirement has not likely occured before for the mod devs. Ergo, it is specialized. That's not to say it's unrealistic, and for you clearly it is something you want.

If it is a real requirement, you are either going to have to a/ wait for someone to do it in their timescales, b/ pay to have it done in your timescales or c/ do it yourself. Of option a/ you might consider approaching the devs for an existing mod that you like, to see if they will put it onto their enhancements wish list.

I'm sorry if this appears a bit hard-nosed, but that is I'm afraid, the reality of the situation. Hopefully some of the things I've suggested to you will help you acheive your objectives.

Login

Who's Online

241 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits