News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Merge Double Posts By Same Member

Started by ディン1031, June 11, 2005, 04:54:02 PM

Previous topic - Next topic

Elmacik

Does this mod merge the different posts of the users?
I mean bumping messages.
If not, I think it shoul. And it should mark that topic "new"
Home of Elmacik

ディン1031

#61
Quote from: fratellino on November 23, 2005, 05:29:04 AM
I have installed this mod, All was marked as Done, but...

1. I cant' se the "DoublePost" Icon

Please Help

SMF 1.0.5, YaBB Classic Theme

Thanks.
The Theme Changes in the Display.template.php of the classic theme are not made :).

Search in the classic/Display.template.php for

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/modify.gif" alt="' . $txt[66] . '" border="0" />' : $txt[17]), '</a>';


and add before this

//Doublepost for Merge?
if ($message['can_modify'] && $message['doublepost']['postok'] && !empty($message['doublepost']['lastpostid']))
echo '
<a href="', $scripturl, '?action=mergeposts;pid=', $message['id'], ';msnid=', $message['doublepost']['lastpostid'], ';topic=', $context['current_topic'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mergeposts.gif" alt="'.$txt['merge_doublepost'].'" title="'.$txt['merge_doublepost'].'" border="0" />' : $txt['merge_doublepost'] ), '</a>';



Quote from: Elmacik on November 23, 2005, 05:45:05 AM
Does this mod merge the different posts of the users?
I mean bumping messages.
If not, I think it shoul. And it should mark that topic "new"
Diffrent Post from same posters. (Only after you klick on the icon).

If the last Post Merged thie topic would be bumped to the top, because its like a edit or new post who made the same thing :).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Elmacik

Thanks for the answer,
I meant to make the mod merge the bumping topics automatically.
Home of Elmacik

Prasad007

can this mod not be automated
such that a double post automatically merges with the above one
without the need of a mod having to do it manually...

ディン1031

#64
Quote from: Prasad007 on December 01, 2005, 03:50:23 AM
can this mod not be automated
such that a double post automatically merges with the above one
without the need of a mod having to do it manually...

Could be madeable but... there a lot of things to do so that it work :x.

hmmm... *think*... hmmm.... XD i've a simple idea but i must test it ;).



Version 1.01

Some new Option added

- Automatic Merge on new post (with some option).
- Some extra Settings for merged text :)

And for this i must split the mod for version 1.05 and 1.1rc1...

DoublePostMerge101.tar.gz for SMF Version 1.0X and DoublePostMerge101.rc1.tar.gz for SMF Version 1.1RC1.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Meow Doom

Do you think theres any chance you'd be able to modify the mod to disable double posting for regular members all together?  :-\

ディン1031

How do you mean this?

in the current Version you can switch on a option who merge it automatic with the post before (if someone exist).

Or did you mean the member can not merge posts together... or what did you mean... can you explain it a liittle bit more?.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Meow Doom

I was told to ask here after someone posted a link here when I posted asking if double posting can be restricted to just forum staff members period. Merging two posts is great if you have members who don't double post often, but if it becomes an issue, and you just have to keep merging those posts - even when a member doesn't mean to do it and its not worthy of some sort of discipline - is there a way to just shut off double posting all together for folks other then forum staff?

ディン1031

Quote from: Meow Doom on December 23, 2005, 08:15:07 AM
I was told to ask here after someone posted a link here when I posted asking if double posting can be restricted to just forum staff members period. Merging two posts is great if you have members who don't double post often, but if it becomes an issue, and you just have to keep merging those posts - even when a member doesn't mean to do it and its not worthy of some sort of discipline - is there a way to just shut off double posting all together for folks other then forum staff?
hmmm yes it madeable, you mean a option for this in the premissions?
Did i do this, than there could be problems with the automatic merge... difficult... i think about it... did i found a solution for this than i add it to the mod... (need some good thinking...). Okay currently only user who allowed to edit his own post or all posts are allowed to use or see the button XD. But i think about it :).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ディン1031

Version 1.02 released... only a small bugfix... << (This bug exists since Version 0.99)

To fix it here is the code:

<edit file>
$sourcedir/Display.php
</edit file>

<search for>
if ($start != 0 && $modSettings['defaultMaxMessages'] != -1) {
$postbefore = $start - 1;
</search for>

<replace>
if ($_REQUEST['start'] != 0 && $modSettings['defaultMaxMessages'] != -1) {
$postbefore = $_REQUEST['start'] - 1;
</replace>


Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

HecKel

Hi!

When I merge 2 posts the count post of one user realy decrease..., but the total posts mantain the same..., how I can resolve this?

tnks, HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

ディン1031

Quote from: HecKel on January 01, 2006, 09:03:30 PM
Hi!

When I merge 2 posts the count post of one user realy decrease..., but the total posts mantain the same..., how I can resolve this?

tnks, HecKel
???

Which version of SMF you use?
Hmmm i think i add all things also the decrase of the posts in the thread hmmm okay i test it later after work. But normaly it should decrase the threadcount and boardcount, too :x The user posts decrease only on counted boards :).

Bye
DIN1031

Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Meow Doom

Any chance we can get this mod updated for 1.1 rc2?  ;D

Prasad007

Quote from: Meow Doom on January 02, 2006, 09:03:59 AM
Any chance we can get this mod updated for 1.1 rc2?  ;D
yeah
and maybe this time the mod should be automated
so no staff member would have to click "doublepost"
it would simply merge with the above post
when a user posts twice
can we have something like that?

Meow Doom

Quote from: Prasad007 on January 02, 2006, 09:16:40 AM
Quote from: Meow Doom on January 02, 2006, 09:03:59 AM
Any chance we can get this mod updated for 1.1 rc2?  ;D
yeah
and maybe this time the mod should be automated
so no staff member would have to click "doublepost"
it would simply merge with the above post
when a user posts twice
can we have something like that?


Ooo! I like that idea myself! :)

HecKel

Quote from: din1031 on January 02, 2006, 04:37:49 AM
Quote from: HecKel on January 01, 2006, 09:03:30 PM
Hi!

When I merge 2 posts the count post of one user realy decrease..., but the total posts mantain the same..., how I can resolve this?

tnks, HecKel
???

Which version of SMF you use?
Hmmm i think i add all things also the decrase of the posts in the thread hmmm okay i test it later after work. But normaly it should decrase the threadcount and boardcount, too :x The user posts decrease only on counted boards :).

Bye
DIN1031


1.05

the threadcount and the boardcount i didn't see, but the forumcount (total posts) is the same, only decrase after sometime, i think when forum recount their posts.

By the way, how i can define "who" can use this feature? on special boards and something like that :)

tnks, HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

ディン1031

Quote from: HecKel on January 02, 2006, 02:31:56 PM
Quote from: din1031 on January 02, 2006, 04:37:49 AM
Quote from: HecKel on January 01, 2006, 09:03:30 PM
Hi!

When I merge 2 posts the count post of one user realy decrease..., but the total posts mantain the same..., how I can resolve this?

tnks, HecKel
???

Which version of SMF you use?
Hmmm i think i add all things also the decrase of the posts in the thread hmmm okay i test it later after work. But normaly it should decrase the threadcount and boardcount, too :x The user posts decrease only on counted boards :).

Bye
DIN1031


1.05

the threadcount and the boardcount i didn't see, but the forumcount (total posts) is the same, only decrase after sometime, i think when forum recount their posts.

By the way, how i can define "who" can use this feature? on special boards and something like that :)

tnks, HecKel
So i look at my code and i do correct this values. For the memberdata update i use a forum function for the other things i don't find any function who made this but i look for it. Hmmm i think this values are cached so it's not viewable instantly.
I could try to find the function who used by the forum to correct this values... but i know that it corrected in the script :x.

Nowhere... currently if the user allowed to "edit own post" in the board premission the merge appear (and work), if he not allowed to do that the user can't merge the post ;). The "edit any post" premission can merge all posts from same usern.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

pcigre

Will you make it to work with RC2? Thanks in advance.

ディン1031

#78
At the evening i test all my scripts in rc2...



Hmmm the new Version have a lot of changes in modsettings :x, i think the new Version is only avaible for rc2 :x



Version 1.03 (Only for 1.1RC2)

Work know in 1.1RC2 :). (I Love the new Default theme :x)

For older SMF Versions use 1.02... (no more updates for old versions).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ディン1031

Quote from: Meow Doom on January 02, 2006, 10:20:08 AM
Quote from: Prasad007 on January 02, 2006, 09:16:40 AM
Quote from: Meow Doom on January 02, 2006, 09:03:59 AM
Any chance we can get this mod updated for 1.1 rc2?  ;D
yeah
and maybe this time the mod should be automated
so no staff member would have to click "doublepost"
it would simply merge with the above post
when a user posts twice
can we have something like that?


Ooo! I like that idea myself! :)
The since Version 1.01 the merger is automated <<. You must put on the option on in the Forumsettings ;).

(Forget to answer this post :X).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Advertisement: