MyBB Community Forums

Full Version: editing the merge seperator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

MikeInToshx

Hi guys,

I like to change the merge seperator. By default it uses a hr right.
I would like to have some text in it and a light grey color like so:

---------- Message added at 12:22 ---------- Previous message was 12:18 ----------

How do I do that?

Thankies.

MikeInToshx

Where do I put that code in?

$settings['postmergesep'] = "----- Added on ".my_date(); // or whatever you like
Quote:AdminCP -> Configuration -> Posting -> Merge Separator
or in inc/settings.php file

MikeInToshx

that didnt work. When I changed it in settings my whole website went down :X

Adding it trough admin cp doesnt work either, it just copies the code.
^ if that is not working then we have to modify \inc\datahandlers\post.php file.
find below code around line 807 (post.php in MyBB 1.6.10)
$post['message'] = $double_post['message'] .= "\n".$mybb->settings['postmergesep']."\n".$post['message'];
insert your code before above line as frostschutz had said here
$settings['postmergesep'] = "----- Added on ".my_date(); // or whatever you like 
@Mike, if you want to go down the editing core files route then I suggest you install these two plugins

http://mods.mybb.com/view/pluginlibrary
http://mods.mybb.com/view/patches

Then you can add a patch to the core code which will make it easier for upgrades.

MikeInToshx

I get the following error when adding that line:
[attachment=29274]

(2013-05-11, 02:21 PM)Leefish Wrote: [ -> ]@Mike, if you want to go down the editing core files route then I suggest you install these two plugins

http://mods.mybb.com/view/pluginlibrary
http://mods.mybb.com/view/patches

Then you can add a patch to the core code which will make it easier for upgrades.

Okay, I already had the pluginlibrary ( was required for the google seo I think )

I now installed the plugin patches. What do I do now to change my merge seperator?