phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

converting forum content to html


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
old_forum
Board Member



Joined: 07 Feb 2013

Posts: 5



PostPosted: Thu Feb 07, 2013 11:00 am 
Post subject: converting forum content to html

hi,
PHPBB2 has been awesome but it's time to move on. Are there any mods or ways to convert the forum content into html pages? We're going to end the forums but want to keep all the content as archived html.

Thanks
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Thu Feb 07, 2013 12:43 pm 
Post subject: Re: converting forum content to html

Why not simply switch the board to read-only and keep it as it is?
_________________
phpBB2 will never die, I hope!
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 653
Location: Texas


flag
PostPosted: Thu Feb 07, 2013 9:03 pm 
Post subject: Re: converting forum content to html

Keeping it read-only would certainly be the easiest solution, but it requires the database remain online and functional as well. An HTML archive would be portable. I did a quick google and found this page from about five years back. No idea if any of the links still work.

If you do find something that works, please post your experiences back here! Thanks.

_________________
phpBBDoctor Blog
Back to top
old_forum
Board Member



Joined: 07 Feb 2013

Posts: 5



PostPosted: Thu Feb 07, 2013 9:37 pm 
Post subject: Re: converting forum content to html

We're moving to a non php server, that's why we require static html files. Thanks for your replies.
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 414
Location: Québec


flag
PostPosted: Thu Feb 07, 2013 10:22 pm 
Post subject: Re: converting forum content to html

The problem I see with drathbun's links is that they're meant as single post converters where you copy-paste a BBCode message to get the HTML equivalent. I'm not sure it's a viable method to convert an entire forum. I think what I would do is write up a variation of viewtopic.php that would put all of a thread's posts on a single page and either put it in a loop to go through every thread in the database and save the output on the server (but that would probably time out?), or go through each manually and save them locally through the browser. Then do the same with viewforum.php and make sure to export the index as well.

That's the basics but there would be several other considerations like what to do with images, attachments (if any), links to profiles, PMs and such, etc. Links to other threads (if your members have posted any) would be broken as well so you'd have to convert them if you want them to remain functional. You'd probably want to tweak the template as well to get rid of the obsolete content, and perhaps strip signatures, avatars, ranks and such to save some space.

How large is your forum?
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Thu Feb 07, 2013 10:58 pm 
Post subject: Re: converting forum content to html

I once received the attached "MOD", a phpBB2 archiver that was written up by someone I met over at phpBB dot com in this topic.

I don´t know if this "MOD" can be of any help.

You will make your life a lot easier if you don´t switch to a non php server. What's the reason for moving away from something as basic as PHP?



phpBBArchiver2.zip
 Description:

Download
 Filename:  phpBBArchiver2.zip
 Filesize:  17.89 KB
 Downloaded:  480 Time(s)


_________________
phpBB2 will never die, I hope!
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 214


flag
PostPosted: Sat Feb 09, 2013 1:29 am 
Post subject: Re: converting forum content to html

I haven't used this in years but it worked perfectly the last time I did:

http://www.httrack.com/

However, php is such a basic part of a web server these days that you would have to search for one that did not support it.

another option would be to install something like Wamp on your computer and just install your board on your computer.

robert
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 83
Location: Stolpen, Saxony, Germany


flag
PostPosted: Sat Feb 09, 2013 10:38 am 
Post subject: Re: converting forum content to html

You can try the "Download Topic or Post" MOD, which is probably the same as selecting and copying the posts text into the clipboard and pasting it into a text file. All formatting is lost using this MOD to save the posts, because BBCode (and HTML, when enabled) is stripped away.
Back to top
Holger
Board Member



Joined: 19 Jan 2009

Posts: 509
Location: Hanover


flag
PostPosted: Mon Feb 11, 2013 7:42 am 
Post subject: Re: converting forum content to html

Hi!

You wrote:
old_forum wrote:
PHPBB2 has been awesome but it's time to move on.

and now you are moving to non-PHP?
That is a wide step backwards!

Do you have many topics/posts in the forum?

_________________
Love your data! Back it up!
Back to top
old_forum
Board Member



Joined: 07 Feb 2013

Posts: 5



PostPosted: Mon Feb 18, 2013 2:56 am 
Post subject: Re: converting forum content to html

The new platform is Ruby on Rails so the goal is to pull the phpbb forum data into RoR so that they can be searched in a site search.
The forum has 25000 posts.
Thanks for these replies, I will look in to the suggestions.
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 214


flag
PostPosted: Mon Feb 18, 2013 4:11 pm 
Post subject: Re: converting forum content to html

can you not also run php on this new platform?

most hosts these days offer both.


robert
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0211 seconds using 17 queries. (SQL 0.0027 Parse 0.0025 Other 0.0160)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo