News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Merge Double Posts By Same Member

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

Previous topic - Next topic

ディン1031

#240
Quote from: Vampy on May 12, 2007, 04:34:08 PM
I finally got it working as it should in my theme and can now see the "Doublepost" option in Features and options. :D

Now I have one question - is there a way to set the automatic merge to not merge posts that are 24hrs or more apart?
In the Merge Options ;)
Time between the posts with automatic merge, in seconds.

24h = 60*60*24 *calculating* 3600*24 = 72000 + 4 * 3600 = 72000 + 14400 = 86400 seconds for a day ;).

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

Vampy

Aha I wondered if that was it

Thank you!!!

ディン1031

#242
Version 1.0.8
+ A Option to add a own seperator instead of the Standard Version
* Upgrades for the German and English Version are included
- Spanish Translation is Outdated



Small new Options added, only for people who needed it should update *g*, or for people who like be up to date. (Upgrade included).

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

mforum

I wonder if it would be usefull to have a warning box on merging posts as it is oneway procedure.
I mean for manual merge, not automatic  :)

ディン1031

Quote from: mforum on June 16, 2007, 11:32:30 AM
I wonder if it would be usefull to have a warning box on merging posts as it is oneway procedure.
I mean for manual merge, not automatic  :)
You mean a small alert on clicking on merge post?

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

mforum

exactly ..!!! like when deleting a post ....  :)

FreaKyGuy

Elo,
I've been trying to modify the Display.template.php file manually in the IGOH Dual theme, but it's too complicated for me...
Some lines are much different as in the mod file, for example:
<edit file>
$themedir/Display.template.php
</edit file>

<search for>
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
</search for>

But in the theme file, there is nothing like $split_button = create_button I'm confused at this point ???
If someone would be helpful to insert/modify the missing code in this file... Thank you in advance.  :)
Chris

ディン1031

#247
Hum i thought this stand in the thread XD


<edit file>
$themedir/Display.template.php
</edit file>

<search 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>';
</search for>

<add before>
//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'] . '" border="0" />' : $txt['merge_doublepost']), '</a>';

</add before>


But it's untestet ;). (It's old 1.0.x replacement xD).

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

FreaKyGuy

Quote from: ディン1031 on June 25, 2007, 04:59:15 AM
Hum i thought this stand in the thread XD
Sorry, but... I've read the whole topic almost two times, in order to find a solution. I've tried several things but without any success...
The mod was installed without any problems. Also, I've modified the display.template.php and other files, but the button, didn't show. :(

jkrlvgn

Hm.  This works fine for me...but...I've now got it set to automatically merge from the "Features and Options" part.

I just tested it like...two seconds ago.

Are you looking to manually merge them, or...?  Maybe we're just missing something.

ディン1031

Quote from: FreaKyGuy on June 25, 2007, 05:37:12 AM
Quote from: ディン1031 on June 25, 2007, 04:59:15 AM
Hum i thought this stand in the thread XD
Sorry, but... I've read the whole topic almost two times, in order to find a solution. I've tried several things but without any success...
The mod was installed without any problems. Also, I've modified the display.template.php and other files, but the button, didn't show. :(
The button only appear when...

Quote
How did i define a Double Post
user1 wrtie something
user2 write something
user2 write something again
user1 write something

So now the button appears by user2 who wrote two posts

If you enable automatic, you will not see it an when the use have no rights to edit posts :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

LHW

I'm running this on v1.1.3, and have run into a couple of problems...

I'm not sure if they're from the manual merging, or the automatic ones, but my Error Log suddenly starting filling up with these two errors:

Quote8: Undefined index: search_date_posted
File: /home/essen6/public_html/tcf/Sources/SplitTopics.php
Line: 1184

and

QuoteApply Filter: Only show the errors with the same message
8: Undefined index: merge_doublepost
File: /home/essen6/public_html/tcf/Sources/Subs.php
Line: 3572

This is line 1184 of the SplitTopics.php file:
$date = $txt['search_date_posted'].': '.$msn['0']['Time'];

And this is line 3572 of the Subs.php file:
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');

Any idea as to what may be causing this?


ディン1031

looks like a language thing, did you use a other language?

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

LHW

I'm using the default after I did the upgrade.  It says it's English-utf8.


ディン1031

Ah than it logical, i only change the standard files, not the english-utf8 files... you must insert the language changes for the English file sin the english-utf-8 files than the error should disappear.

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

LHW

#255
Which files would those be?  I tried changing the board to English, and that didn't resolve the problem.

EDIT:  I take that back...the only one I still get is this one...

Quote8: Undefined index: search_date_posted
File: /home/essen6/public_html/tcf/Sources/SplitTopics.php
Line: 1184


ディン1031

hmmm can you look if in the index.english.php is this


$txt['merge_doublepost'] = 'Double Posts';
$txt['merge_error_dbpo'] = 'You are not allowed to do this!';
$txt['merge_error_notf'] = 'Sorry, no Posts found to Merge.';
$txt['merge_error_noid'] = 'No Message ID or Topic found!';
$txt['search_date_posted'] = 'Posted on';
$txt['merge_error_lenth'] = 'The merged post have reached the maximum post length!';


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

LHW



askepott


askepott

Quote from: ディン1031 on May 11, 2007, 01:15:45 AM
Hmmm no one need this until now, and why should user not allowed to merge his own double post ;).

In Features and Options -> Doublepost

There is the Option "Automatic merge new doubleposts"

Bye
DIN1031

Hi DIN1031,
You're mod is wonderful! I already installed it and I saw the "doublepost" option on replies. But, I can't see the option that says "Doublepost" on the features and options.

I know this is only a small issue, and I'm sure you can help me out.

Thanks :)

Advertisement: