XF 2.1 Will a 'master data rebuild' re-set Reactions settings? (AKA: How can I reset stock reactions to their default setting values?)

Kevin

Well-known member
So let's say that... somebody... was experimenting with Reactions and now has several reactions, a mix of the stock definitions and some new ones, and would like to reset the settings (image, sprite dimensions, etc.) of the stock Reactions without wiping out the additional non-stock entries that were added.

Possible with doing a 'master rebuild data' or is there another easy method? 🤔
 
Unfortunately not. We do kind of expect people will make changes here so we'd either need to prevent people from doing that or have some sort of versioning system. Ultimately it just seems more reasonable to accept changes here.

But for future reference, some default data is defined in the code in our src/XF/Install/Data/MySql.php file under the getData method.
 
This is the exact query:
SQL:
INSERT INTO `xf_reaction` (`reaction_id`, `text_color`, `image_url`, `image_url_2x`, `sprite_mode`, `sprite_params`, `reaction_score`, `display_order`, `active`)
VALUES
   (1, '@xf-linkColor', 'styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png', '', 1, '{\"w\":\"32\",\"h\":\"32\",\"x\":\"0\",\"y\":\"0\",\"bs\":\"100%\"}', 1, 100, 1),
   (2, '#E81C27', 'styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png', '', 1, '{\"w\":\"32\",\"h\":\"32\",\"x\":\"0\",\"y\":\"-32\",\"bs\":\"100%\"}', 1, 200, 1),
   (3, '#FDCA47', 'styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png', '', 1, '{\"w\":\"32\",\"h\":\"32\",\"x\":\"0\",\"y\":\"-64\",\"bs\":\"100%\"}', 1, 300, 1),
   (4, '#FDCA47', 'styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png', '', 1, '{\"w\":\"32\",\"h\":\"32\",\"x\":\"0\",\"y\":\"-96\",\"bs\":\"100%\"}', 0, 400, 1),
   (5, '#FDCA47', 'styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png', '', 1, '{\"w\":\"32\",\"h\":\"32\",\"x\":\"0\",\"y\":\"-128\",\"bs\":\"100%\"}', 0, 500, 1),
   (6, '#FF4D4D', 'styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png', '', 1, '{\"w\":\"32\",\"h\":\"32\",\"x\":\"0\",\"y\":\"-160\",\"bs\":\"100%\"}', 0, 600, 1);
 
Top Bottom