Preserve Post Spaces

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Galilei
Registered User
Posts: 14
Joined: Sun Jun 21, 2009 2:24 am
Location: Spain (Marbella)

Re: Preserve Post Spaces

Post by Galilei »

Hello,

Thanks for the MOD.

Also works with personal messages? :cry:
Last edited by Galilei on Thu Oct 08, 2009 10:54 am, edited 1 time in total.
Ciencias Galilei - ver phpBB: 3.0.11 - Styles: X-Static
fayax
Registered User
Posts: 31
Joined: Fri Oct 02, 2009 5:12 pm
Contact:

Re: Preserve Post Spaces

Post by fayax »

Didnt know where else to post this but this is an excellent MOD just in time for me to be able to post guitar chords on top of lines with proper spaces between them.

Work like a charm and went back and retroactively changed the posts that previously were crunched up together but were copied over from msword doc with had spaces appropriately done.

Thanks.
Fayax
Shadow of Nobody
Registered User
Posts: 45
Joined: Sun Nov 23, 2008 5:51 pm

Re: Preserve Post Spaces

Post by Shadow of Nobody »

Does this work with tab spaces?
User avatar
Galilei
Registered User
Posts: 14
Joined: Sun Jun 21, 2009 2:24 am
Location: Spain (Marbella)

Re: Preserve Post Spaces

Post by Galilei »

Hi,

I noticed that when printing a message does not maintain the spaces. To do so I tried this (I work):

To keep the spaces when printing text:

Open print_post.php:

Search:

Code: Select all

    $message = censor_text($row['post_text']);
Add after:

Code: Select all

	// Preserve spaces MOD
	$message = str_replace("\t", '        ', $message);
	$message = str_replace('  ', '  ', $message);
	// end MOD

I do not know how to do what private messages :cry:
Ciencias Galilei - ver phpBB: 3.0.11 - Styles: X-Static
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26937
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Preserve Post Spaces

Post by Paul »

MOD Updated to version 2.0.0
See first post for Download Link
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
Locked

Return to “[3.0.x] MOD Database Releases”