https://www.icyphoenix.com/viewtopic.php?f=28&t=6604
-----------------------------------
Lopalong
Fri 23 Oct, 2009 07:20

Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Here's a handy little MOD that's a lot more [b][i]friendly[/i][/b] than the bump restrictions currently used by Icy Phoenix. :P

[hr]

	Package Icy Phoenix Modifications
	File $Id: double_post_merge-en.txt
	Version for Icy Phoenix: 1.3.0.*
	Author: Mercuree ( Igor )
	Copyright (c) Mercuree 
	Email: mercuree@moldova.cc
	License http://opensource.org/licenses/gpl-license.php GNU Public License

	Extra credits for this MOD:
		Extensively Modified for Icy Phoenix by Lopalong. 28th September 2009

	Title:
	Double post merge

	Description:
	This mod merges post text on posting to the last message in topic instead of adding a new one, only if the poster of the last message and the poster of current text is the same person (double post becomes one post)

	Configuration location: ACP > Menu > Modifications > Merge Double Posts

[hr]

[b]Download:[/b] [url=http://icyphoenix.com/viewtopic.php?p=46376#p46376]Merge Double Posts

[img]http://www.icyphoenix.com/files/images/3531/acp_1256275044_278213.png[/img]

[img]http://www.icyphoenix.com/files/images/3531/post.png[/img]


-----------------------------------
Informpro
Fri 23 Oct, 2009 09:06

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Great Lopa', thanks !

I prefers this as the service actually installed.


-----------------------------------
HaoAsakura
Fri 23 Oct, 2009 10:01

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Thank's man!!!  :mrviolet:


-----------------------------------
Yros
Fri 23 Oct, 2009 14:45

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Heeee Lopalong you are releasing many USEFUL mods ^^
Thanks a lot for this one too ;)


-----------------------------------
Danielc
Sat 24 Oct, 2009 03:27

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
What a very useful MOD!!!!!!
Thanks... Installing..


-----------------------------------
Chaotic
Sat 24 Oct, 2009 07:34

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Great work yet again!


-----------------------------------
Mighty Gorgon
Mon 26 Oct, 2009 16:29

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
[quote user="Lopalong" post="45279"]Here's a handy little MOD that's a lot more [b][i]friendly[/i][/b] than the bump restrictions currently used by Icy Phoenix. :P [/quote]
Yes it is more friendly than the current one... but has BUMP restriction to be friendly?

I prefer blocking bumps at the source instead of adding extra charge on admins to adjust, merge, fix, move... topics and posts later.

Anyway, this is a good addon for all those people (and I guess are a lot :mri: ) which doesn't like my point of view about BUMPING restrictions.


-----------------------------------
Danielc
Mon 26 Oct, 2009 23:14

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
[quote user="Mighty Gorgon" post="45366"][quote user="Lopalong" post="45279"]Here's a handy little MOD that's a lot more [b][i]friendly[/i][/b] than the bump restrictions currently used by Icy Phoenix. :P [/quote]
Yes it is more friendly than the current one... but has BUMP restriction to be friendly?

I prefer blocking bumps at the source instead of adding extra charge on admins to adjust, merge, fix, move... topics and posts later.

Anyway, this is a good addon for all those people (and I guess are a lot :mri: ) which doesn't like my point of view about BUMPING restrictions.[/quote]

I think this mod could be included in the default package, with a special option to those who wants/doesn't want to enable this.


-----------------------------------
Mighty Gorgon
Tue 27 Oct, 2009 00:13

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
I think Lopa already coded it to be an extra addon with only two small edits in core files. :wink:


-----------------------------------
Lopalong
Tue 27 Oct, 2009 05:26

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
[quote user="Mighty Gorgon" post="45415"]I think Lopa already coded it to be an extra addon with only two small edits in core files. :wink:[/quote]

I agree MG,

There comes a time when one has to really evaluate what should be added every time a user suggests something should be. ;)

@Daniel,

No offence - But if everything was added that every user would like to see as a default application - Icy Phoenix would need two men and a boy just to lift it.  :mrviolet: 

[b]OT:[/b]

@MG,

I've got another one for you too that I'm about to post. Maybe you would like to run an eye over the code before it's "Officially" released.  :lol: 

And don't give me any MG_VIEWTOPIC stuff as viewtopic.' . PHP_EXT works just fine!  :P


-----------------------------------
Danielc
Tue 27 Oct, 2009 23:07

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Yes, i understand you Lopalong and MG..
But i was thinking on it because MG said that will remove some unused features in IP, so, i think this is a good and small mod..
Anyway, there is no problem, i frequently visit this page and i can install the mod if i want (in next releases)..


-----------------------------------
n1cks21
Fri 30 Oct, 2009 17:54

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Hi
    I have a problem with this mod as you can see from the image below (not sure where the nn has come from) :-

 [img]http://www.icyphoenix.com/files/images/4458/double.jpg[/img]

however I think it might have something to do with my [url=http://www.icyphoenix.com/viewtopic.php?f=2&t=6591]Slash Problem what do you think ??? have I done the mod wrong or am I right and this is a knock on effect of the my slash problem ???

cheers

Nick


-----------------------------------
Lopalong
Fri 30 Oct, 2009 23:14

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Try this.

In the script:

Find:

$separator = ' \n\n[size=9][color=#999999]Added after';

BACKSPACE OUT:  \n\n and then hit ENTER twice.

Find:

						$separator .= ':[/color][/size]\n\n ';
And do the same thing.

[hr]

You should be able to see what I mean with this.

$separator = ' 

[size=9][color=#999999]Added after';

BACKSPACE OUT:

and then hit ENTER twice.

Find:

						$separator .= ':[/color][/size]

 ';


-----------------------------------
Informpro
Sat 31 Oct, 2009 10:14

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Hum, lopa, it's not [code]'\n'[/code]but[code]"\n"[/code] lol


-----------------------------------
Lopalong
Sat 31 Oct, 2009 10:58

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
And:

Is Not:

	'L_CLOSE_WINDOW'		=> $lang['Close_window'],


Is:

	"L_CLOSE_WINDOW"		=> $lang['Close_window'],

What Rubbish!

[hr]

So long as the encapsulation is the same on both ends, quotes and semi-quotes mean the same thing.

And did you take the time to read the other posts where people have installed it and don't have this problem?

Did you also note that it appears only n1cks21 has problems with slashes (For whatever reason) and this is hopefully a fix for that particular problem.

Possibly not! :(


-----------------------------------
n1cks21
Sat 31 Oct, 2009 11:35

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
[quote user="Lopalong" post="45517"]Try this.

In the script:

Find:

$separator = ' \n\n[size=9][color=#999999]Added after';

BACKSPACE OUT:  \n\n and then hit ENTER twice.

Find:

						$separator .= ':[/color][/size]\n\n ';
And do the same thing.

[hr]

You should be able to see what I mean with this.

$separator = ' 

[size=9][color=#999999]Added after';

BACKSPACE OUT:

and then hit ENTER twice.

Find:

						$separator .= ':[/color][/size]

 ';[/quote]


Thanks that seems to have solved it

 [img]http://www.icyphoenix.com/files/images/4458/double2.jpg[/img]


-----------------------------------
Lopalong
Sat 31 Oct, 2009 11:50

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
You're welcome,

Why the hell you appear to be having problems with slashes is still a mystery, because no doubt you would be aware that \n is a carriage return in php and should not have created this problem. :(

Who cares - So long as it patched your problem. ;)

Edit:

Now that we know of a specific problem, would you try this.

Put back the code you changed to the original.

Open:

includes/page_header.php

Find:

?>

Before add:

[code linenumbers=false]
if (get_magic_quotes_gpc()) {
        $in = array(&$_GET, &$_POST, &$_COOKIE);
        while (list($k,$v) = each($in)) {
                foreach ($v as $key => $val) {
                        if (!is_array($val)) {
                                $in[$k][$key] = stripslashes($val);
                                continue;
                        }
                        $in[] =& $in[$k][$key];
                }
        }
        unset($in);
}
[/code]

And see if it strips the slashes without you having to modify it.


-----------------------------------
n1cks21
Sat 31 Oct, 2009 14:08

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
thanks for looking but it was the same result as the first image I posted with "nn"


-----------------------------------
Informpro
Sat 31 Oct, 2009 15:55

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
[quote user="Lopalong" post="45533"]And:

Is Not:

	'L_CLOSE_WINDOW'		=> $lang['Close_window'],[...][/quote]	When you think you're right, and something say that not, please check manual/doc/... !

'{$v}' will output[quote]{$v}[/quote]
"{$v}" will output value of $v

'\n' will output[quote]\n[/quote]
"\n" will output a new line


[url=http://www.jonlee.ca/php-tidbit-single-quotes-vs-double-quotes/]see here
[quote]Certain special characters are only recognized inside double quotes. The best examples are probably the new line characters \n and \r. Only inside double quotes are they actually new line characters (useful for formatting HTML outputted from PHP). In single quotes, they are merely a backslash followed by a letter.[/quote]


(Please, stop taking things as if you were always right, because you are wrong ...)


-----------------------------------
Lopalong
Sat 31 Oct, 2009 21:50

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
I didn't suggest that I was or am always right, and I've said many times here that I'm no expert.

And you seem to never take the time to explain yourself but to prefer posting cryptics that you hope other people will understand.

Much like a lot of the users do. :(

Anyway - I've had enough of support forums, so I'll leave it all up to you my friend.


-----------------------------------
DWho
Sun 01 Nov, 2009 18:32

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Thanks David.. great addition i will add this to some of my sites...

I like it a lot

 :mrgreen:  :mrgreen:


-----------------------------------
Lopalong
Mon 11 Jan, 2010 11:22

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Download Link has been changed.  :wink:


-----------------------------------
Aerosmith
Fri 01 Jul, 2011 18:55

Re: Modification - Merge Double Or Last  Posts By The Same User
-----------------------------------
Gran Mod.

Descargando.

Pero, tengo una duda.

¿Es posible aplicar este Mod, a cada foro de forma independiente?

Tengo un foro de Reunión, en el cual no me conviene tenerlo activo por el tema de las fotos.

Gracias por sus respuestas.

[hr]

Great Mod

Downloading.

But I have a question.

Is it possible to apply this mod, each forum independently?

I have a forum meeting in which I should have it active in the subject of the photos.

Thanks for your responses.


