GolfGTIforum.co.uk

General => Site news and bright ideas => Topic started by: Ben Lessani on 15 April 2008, 19:13

Title: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 15 April 2008, 19:13
Hi guys and girls, I wanted my project in PDF format so that I could email it to someone, but Firefox kept stuffing up the PDF print preview (infact, all browsers did). So I quickly knocked up some code to download a thread into HTML format (as a single document), images aren't downloaded, only referenced. Then using a PDF printer (Eg. CutePDF) you can print straight to PDF, but this time its much more viewable and clear. Or you can open the file in Internet Explorer / Firefox etc. and save it again - and it will download all the images too.

Its pretty easy to do it, just do the following...

http://vw.sonassi.com/49436/ (http://vw.sonassi.com/49436/)

Replace the topic number in the above URL to that of your own topic. The topic number can be found in your address bar. It is only 5 integers.

Or, if I have posted on a thread - click the link in my signature and it will load the page automatically.

This code is only going to work for GolfGTI.co.uk - its pretty low impact, it only opens as many pages as you have on your thread. The font and background etc. can all be set with CSS once you have downloaded the document. Enjoy!

Eg. bens ... 1986 MKII 1.8 8v K-Jet Golf ... project - http://vw.sonassi.com/49436/ (http://vw.sonassi.com/49436/)
Eg. dan23 - mk2 GTI project - http://vw.sonassi.com/82574/ (http://vw.sonassi.com/82574/)

FAO Administrators etc.
A small log (http://vw.sonassi.com/log/) is being kept of what has been downloaded, so you can see what effect (if any at all) it's having on the server. Also, the server is caching results now, so it will put a minute load on the GolfGTI server - if the cache is out of date, it will auto update on demand.
Title: Re: Download your entire project thread, all cleaned up in HTML...
Post by: jv on 15 April 2008, 20:10
Very nice Ben, cheers :afro:
Title: Re: Download your entire project thread, all cleaned up in HTML...
Post by: Ben Lessani on 16 April 2008, 00:46
My first sticky :D
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Mew on 19 April 2008, 13:02

FAO Administrators etc.
A small log (http://vw.sonassi.com/log/) is being kept of what has been downloaded, so you can see what effect (if any at all) it's having on the server. Also, the server is caching results now, so it will put a minute load on the GolfGTI server - if the cache is out of date, it will auto update on demand.


So it's your fault!!!  :grin:
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 19 April 2008, 18:52
Lol, yeah - so far 0 people have used it - it must be me  :shocked: No, I wrote this after the server started having issues - because of that infact.

I'm amazed more people aren't using it really, you can pretty much save anything - Rubjonny's Tuning guide, Topics about polishing, pretty much anything, and it all suits for off line reading.
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: russ-vdub on 23 April 2008, 19:03
cool, will have a bash when i need to :)
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Teutonic_Tamer on 08 October 2008, 12:56
Just found this and tried it, but am getting "error 404"  :undecided:
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 29 October 2008, 22:27
My mistake mate. We had been porting our clients over from our US server to our UK unit - and I had overlooked this subdomain.

All working now though!
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: mattneck(Beavis) on 07 November 2008, 11:42
it doesnt do all of mine it stops after not very far!
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 14 November 2008, 14:52
http://vw.sonassi.com/46057./

All worky, just give the above a click!
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Jay on 20 April 2010, 13:47
Error 404 - Not Found


Oops...
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 20 April 2010, 14:43
Lol, this has been down a short while as it may have been "omitted" when I installed the new cluster.

I'll have a look around for it for you.
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Jay on 20 April 2010, 15:06
I hope you're using hyper-v...
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 20 April 2010, 15:15
Fixed just for you mate.

And no, I'm not using Hyper V - my company runs some pretty complex Linux clusters that far exceed what virtualisation could provide.
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Gloves88 on 09 July 2010, 17:20
is it possible to use this on another site or can it only be used on golfgti?
Title: Re: How To: Download your entire project thread, in HTML or PDF etc.
Post by: Ben Lessani on 19 August 2010, 21:18
As I wanted to pop my thread on Wordpress ... I wrote a quick script to parse the cached format and output in XML for Wordpress.

Here's the result http://bensgolf.sonassi.com/ (http://bensgolf.sonassi.com/)

I won't make the code public, but if anyone wants to convert their build thread into a Wordpress XML import file - drop me a PM and I'll take care of it.