Modification - Merge Double Or Last Posts By The Same User »  Show posts from    to     

Icy Phoenix


Old Customizations - Modification - Merge Double Or Last Posts By The Same User



Lopalong [ Fri 23 Oct, 2009 07:20 ]
Post subject: Modification - Merge Double Or Last Posts By The Same User
Here's a handy little MOD that's a lot more friendly than the bump restrictions currently used by Icy Phoenix.




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:
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




Download: Merge Double Posts

acp_1256275044_278213

post


Informpro [ Fri 23 Oct, 2009 09:06 ]
Post subject: 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 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Thank's man!!!


Yros [ Fri 23 Oct, 2009 14:45 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Great work yet again!


Mighty Gorgon [ Mon 26 Oct, 2009 16:29 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Lopalong wrote: [View Post]
Here's a handy little MOD that's a lot more friendly than the bump restrictions currently used by Icy Phoenix.

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 ) which doesn't like my point of view about BUMPING restrictions.


Danielc [ Mon 26 Oct, 2009 23:14 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Mighty Gorgon wrote: [View Post]
Lopalong wrote: [View Post]
Here's a handy little MOD that's a lot more friendly than the bump restrictions currently used by Icy Phoenix.

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 ) which doesn't like my point of view about BUMPING restrictions.


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 ]
Post subject: 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.


Lopalong [ Tue 27 Oct, 2009 05:26 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Mighty Gorgon wrote: [View Post]
I think Lopa already coded it to be an extra addon with only two small edits in core files.


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.

OT:

@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.

And don't give me any MG_VIEWTOPIC stuff as viewtopic.' . PHP_EXT works just fine!


Danielc [ Tue 27 Oct, 2009 23:07 ]
Post subject: 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 ]
Post subject: 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) :-

double

however I think it might have something to do with my 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 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Try this.

In the script:

Find:

$separator = ' \n\nAdded after';

BACKSPACE OUT: \n\n and then hit ENTER twice.

Find:

$separator .= ':
\n\n ';
And do the same thing.




You should be able to see what I mean with this.

$separator = '

Added after';

BACKSPACE OUT:

and then hit ENTER twice.

Find:

$separator .= ':


';


Informpro [ Sat 31 Oct, 2009 10:14 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Hum, lopa, it's not
Code: [Hide]
  1. '\n' 
but
Code: [Hide]
  1. "\n" 
lol


Lopalong [ Sat 31 Oct, 2009 10:58 ]
Post subject: 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!




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 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Lopalong wrote: [View Post]
Try this.

In the script:

Find:

$separator = ' \n\nAdded after';

BACKSPACE OUT: \n\n and then hit ENTER twice.

Find:

$separator .= ':
\n\n ';
And do the same thing.




You should be able to see what I mean with this.

$separator = '

Added after';

BACKSPACE OUT:

and then hit ENTER twice.

Find:

$separator .= ':


';



Thanks that seems to have solved it

double2


Lopalong [ Sat 31 Oct, 2009 11:50 ]
Post subject: 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: [Hide] [Select]
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);
}


And see if it strips the slashes without you having to modify it.


n1cks21 [ Sat 31 Oct, 2009 14:08 ]
Post subject: 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 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Lopalong wrote: [View Post]
And:

Is Not:

'L_CLOSE_WINDOW' => $lang['Close_window'],[...]
When you think you're right, and something say that not, please check manual/doc/... !

'{$v}' will output
Quote:
{$v}

"{$v}" will output value of $v

'\n' will output
Quote:
\n

"\n" will output a new line


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.



(Please, stop taking things as if you were always right, because you are wrong ...)


Lopalong [ Sat 31 Oct, 2009 21:50 ]
Post subject: 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 ]
Post subject: 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



Lopalong [ Mon 11 Jan, 2010 11:22 ]
Post subject: Re: Modification - Merge Double Or Last Posts By The Same User
Download Link has been changed.


Aerosmith [ Fri 01 Jul, 2011 18:55 ]
Post subject: 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.




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.




Powered by Icy Phoenix