Page 1 of 3

Print All Posts in Topic

Posted: Sun Sep 28, 2008 5:55 pm
by Extensions Robot
Modification name: Print All Posts in Topic
Author: RMcGirr83
Modification description: This modification will allow a user to print all posts with in a topic. Currently when clicking on the print icon in prosilver, the current posts being displayed on the screen are sent to the printable html file. With this mod, by clicking on the print all posts link, all of the posts within the topic will be sent to the html file for printing/storage.

Custom support is given at this forum
Modification version: 1.0.0.a
Tested on phpBB version: 3.0.2

Download file: print_all_posts.zip
File size: 54.35 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Print All Posts in Topic

Posted: Sun Sep 28, 2008 5:55 pm
by Paul
Modification validated/released

Notes:

Print All Posts in Topic

Posted: Sun Sep 28, 2008 5:55 pm
by RMcGirr83
Thank you MOD Validation Team! :)

I really need to work on a new icon for prosilver. If any graphic god-like soul would like to present one, it would be appreciated cuz my graphic skillz are not up to par.

Re: Print All Posts in Topic

Posted: Fri Oct 03, 2008 8:28 am
by evilepsilon
Well, at least in my opinion it doesn't have to be more complicated than this:
icon_print_all.png
icon_print_all.png (741 Bytes) Viewed 12267 times
If you have something specific in mind tell me and I'll try to make it.

Can you please add what lines need to be changed in order to make this (or any other graphic for that matter) replace the current icon? thanks.

Re: Print All Posts in Topic

Posted: Fri Oct 03, 2008 10:24 am
by RMcGirr83
I have uploaded a new file into the MODDB just awaiting validation, anyway maybe this will help.

Code: Select all

		<open src="styles/prosilver/template/overall_header.html">
    		<edit>
                <find><![CDATA[L_PRINT_TOPIC}</a></li>]]></find>
                 <inline-edit>
	                <inline-find><![CDATA[</li>]]></inline-find>
                	<inline-action type="after-add"><![CDATA[<li class="rightside"><a href="{U_PRINT_ALL_POSTS}" title="{L_PRINT_ALL_POSTS}" accesskey="p" class="printall">{L_PRINT_ALL_POSTS}</a></li>]]></inline-action>
                </inline-edit>
			</edit>
		</open>
		<open src="styles/prosilver/theme/buttons.css">
    		<edit>
                <find><![CDATA[a.print, a.sendemail, a.fontsize]]></find>
                 <inline-edit>
	                <inline-find><![CDATA[a.fontsize]]></inline-find>
                	<inline-action type="after-add"><![CDATA[, a.printall]]></inline-action>
                </inline-edit>
			</edit>
    		<edit>
                <find><![CDATA[a.print]]></find>
                 <inline-edit>
	                <inline-find><![CDATA[a.print]]></inline-find>
                	<inline-action type="after-add"><![CDATA[, a.printall]]></inline-action>
                </inline-edit>
			</edit>
		</open>
		<open src="styles/prosilver/theme/colours.css">
    		<edit>
                <find><![CDATA[a.print {
	background-image: url("{T_THEME_PATH}/images/icon_print.gif");
}]]></find>
				<action type="after-add"><![CDATA[a.printall {
	background-image: url("{T_THEME_PATH}/images/icon_printall.gif");
}]]></action>
            </edit>
		</open>
		<open src="styles/prosilver/theme/bidi.css">
    		<edit>
                <find><![CDATA[.rtl a.print, .rtl a.sendemail, .rtl a.fontsize]]></find>
                 <inline-edit>
	                <inline-find><![CDATA[a.fontsize]]></inline-find>
                	<inline-action type="after-add"><![CDATA[, .rtl a.printall]]></inline-action>
                </inline-edit>
			</edit>
		</open>
		<diy-instructions lang="en">Refresh the prosilver style to get the new icon to show and purge the cache after installing the mod to regenerate the template files</diy-instructions>
Just rename this part

Code: Select all

		<open src="styles/prosilver/theme/colours.css">
    		<edit>
                <find><![CDATA[a.print {
	background-image: url("{T_THEME_PATH}/images/icon_print.gif");
}]]></find>
				<action type="after-add"><![CDATA[a.printall {
	background-image: url("{T_THEME_PATH}/images/icon_printall.gif");
}]]></action>
            </edit>
		</open>
to be this for your graphic

Code: Select all

		<open src="styles/prosilver/theme/colours.css">
    		<edit>
                <find><![CDATA[a.print {
	background-image: url("{T_THEME_PATH}/images/icon_print.gif");
}]]></find>
				<action type="after-add"><![CDATA[a.printall {
	background-image: url("{T_THEME_PATH}/images/icon_print_all.png");
}]]></action>
            </edit>
		</open>
then copy your image into

Code: Select all

root/styles/prosilver/theme/images/icon_print_all.png
..and yeah, it doesn't have to be anymore complicated than that graphic, but what's easy for you may not be easy for me. I never learned photoshop or GIMP and have no desire to at this point in time.

Thanks for the graphic though. :)

Re: Print All Posts in Topic

Posted: Fri Oct 03, 2008 11:38 am
by evilepsilon
RMcGirr83 wrote:
..and yeah, it doesn't have to be anymore complicated than that graphic, but what's easy for you may not be easy for me. I never learned photoshop or GIMP and have no desire to at this point in time.

Thanks for the graphic though. :)
I think I was misunderstood - the word "simple" was to state that I don't want to make something bombastic but rather a slight change to the original picture. I had no intention in mocking you or your graphic skills.
You helped us all with this wonderful mod, the least I could do is help in the ways I can.

Thanks for the mod, I waited long time for something like that :)

I have one question though - I didn't understand what I have to edit, can you be more specific for php/xml/etc retard like myself? :)

Re: Print All Posts in Topic

Posted: Fri Oct 03, 2008 12:02 pm
by RMcGirr83
No problem, my graphic skillz just are weak :)

Try this

Code: Select all

open

styles/prosilver/template/overall_header.html

find

L_PRINT_TOPIC}</a></li>

inline_find
</li>

inline after-add

<li class="rightside"><a href="{U_PRINT_ALL_POSTS}" title="{L_PRINT_ALL_POSTS}" accesskey="p" class="printall">{L_PRINT_ALL_POSTS}</a></li>

open

styles/prosilver/theme/buttons.css

find

a.print, a.sendemail, a.fontsize

inline-find

a.fontsize

inline after-add

, a.printall

find

a.print

inline-find

a.print

inline after-add

, a.printall

open

styles/prosilver/theme/colours.css

find

a.print {
       background-image: url("{T_THEME_PATH}/images/icon_print.gif");
    }

after-add

a.printall {
       background-image: url("{T_THEME_PATH}/images/icon_print_all.png");
    }
    
    
open

styles/prosilver/theme/bidi.css

find

.rtl a.print, .rtl a.sendemail, .rtl a.fontsize

inline-find

a.fontsize

inline after-add

, .rtl a.printall

Refresh the prosilver style to get the new icon to show and purge the cache after installing the mod to regenerate the template files
upload the graphic into styles/prosilver/images/*.* refresh the template in the ACP and you should be set.

Re: Print All Posts in Topic

Posted: Fri Oct 03, 2008 3:33 pm
by evilepsilon
Works perfect, thanks! :)

Print All Posts in Topic

Posted: Thu Oct 23, 2008 1:19 pm
by Paul
MOD Updated to version 1.0.0.a
See first post for Download Link

Re: Print All Posts in Topic

Posted: Thu Oct 23, 2008 2:22 pm
by RMcGirr83
Thank you Validation Team :D

Re: Print All Posts in Topic

Posted: Thu Oct 23, 2008 8:46 pm
by A_O_C
bookmarked. just got around to seeing this one...

Re: Print All Posts in Topic

Posted: Fri Oct 24, 2008 12:23 am
by MKULTRA
I doubled checked and am fairly certain I installed this correctly, now when I go into print view for both this MOD and the default single page method, the view I see is the HTML dumped out onto the page. Am I the only one that has had this issue?

Re: Print All Posts in Topic

Posted: Fri Oct 24, 2008 1:21 am
by A_O_C
MKULTRA wrote:I doubled checked and am fairly certain I installed this correctly, now when I go into print view for both this MOD and the default single page method, the view I see is the HTML dumped out onto the page. Am I the only one that has had this issue?
i think this is intended (i havent tested)...
MOD Robot wrote:Modification description: ...all of the posts within the topic will be sent to the html file for printing/storage...

Re: Print All Posts in Topic

Posted: Fri Oct 24, 2008 1:40 am
by RMcGirr83
A_O_C FTW!! :)

Re: Print All Posts in Topic

Posted: Fri Oct 24, 2008 2:42 am
by MKULTRA
Oh really, that sort of defeats the purpose of printing a thread. Saving it into a file as an additional option is one thing, but it should still permit outright black and white printing of a simple format page, as is the default. This is including everything, even the header information. I think this MOD needs to be updated, in its current state it is not very practical.