SMF Versatile Post Reactions

Started by Decent_946, August 07, 2020, 11:57:15 PM

Previous topic - Next topic

pulgoki

Quote from: Shades. on May 05, 2022, 11:34:59 AMLooks good to me on my dark theme! (2nd link in my sig)

I really like that. 

I may have to look deeper in to this when I get home from work. :D

pulgoki

Quote from: shadav on May 05, 2022, 11:49:59 AMwhile I do like smfhacks I went with smfpacks instead, just to give you another option
https://www.smfpacks.com/reactionsmod/

Is the install for that pretty easy?  I only ask because I've browsed their forum before and saw that some of the mods require some other edits after installation.  I don't know what that means, but I wouldn't want to get myself in to a situation where I have to pay someone to install a mod for me.  :D 

Thanks for the suggestion.  I'll look in to that one too.

shadav

Quote from: pulgoki on May 05, 2022, 04:15:42 PM
Quote from: shadav on May 05, 2022, 11:49:59 AMwhile I do like smfhacks I went with smfpacks instead, just to give you another option
https://www.smfpacks.com/reactionsmod/

Is the install for that pretty easy?  I only ask because I've browsed their forum before and saw that some of the mods require some other edits after installation.  I don't know what that means, but I wouldn't want to get myself in to a situation where I have to pay someone to install a mod for me.  :D 

Thanks for the suggestion.  I'll look in to that one too.
I've had no issues, but then I haven't tried the 2.1.x version (yet)
yeah a lot of their mods were older so you had to update them after installing to get them to work but for smf 2.1.x shouldn't have that issue

pulgoki

Quote from: FrizzleFried on May 05, 2022, 08:48:55 AMWould be happy to provide my CSS if you like what you see...

I may take you up on that offer. I've been pretty busy so haven't had a chance to try everything I would like to.

I did give the other mod a shot and it throws some errors. I don't think that it uses the stock smf alerts, or if it does, I can't figure out how to get them to work.

I may give this on a shot next and see if it's a better fit. I like the way that you boxed the reactions in. 

FrizzleFried


Volker S

Can you also send me your css file?

Marina3

Error:
Trying to access array offset on value of type null
in /Sources/subs-manageReactions.php (Строка 171).
SMF 2.1.3 and php 8.1.

Mightymax44

Quote from: Marina3 on February 08, 2023, 10:10:29 AMError:
Trying to access array offset on value of type null
in /Sources/subs-manageReactions.php (Строка 171).
SMF 2.1.3 and php 8.1.

Edit files /Sources/subs-manageReactions.php

find in line 171
$who_reacts = explode(",", $row['members_id']);
Replace with

$who_reacts = explode(",", $row['members_id'] ??'');
 ;)
La connaissance, c'est partager le savoir qui nous fait grandir.

Marina3

#68
'data' => array(
                    'function' => create_function('$row',
                        'global $settings;
                        return (\'<img width="26px" height="26px" src="\'. $settings[\'default_images_url\']. \'/reactions/\'. $row[\'emoji_name\']. \'.gif" alt="\'. $row[\'emoji_title\']. \'" title="\'. $row[\'emoji_title\']. \'" />\');'
                    ),

create_function not work on php 8.2.


Please use code tags when posting code. ~ Steve

Mightymax44

Hi
replace in sources/manageReactions.php line 321:
'data' => array(
                    'function' => create_function('$row',
                        'global $settings;
                        return (\'<img width="26px" height="26px" src="\'. $settings[\'default_images_url\']. \'/reactions/\'. $row[\'emoji_name\']. \'.gif" alt="\'. $row[\'emoji_title\']. \'" title="\'. $row[\'emoji_title\']. \'" />\');'
                    ),
                    'class' => 'centertext',
                ),
            ),
to
'data' => array(
                   
                    'function' => function($row){
                       
                        global $settings;
                        return ('<img width="26px" height="26px" src="'. $settings['default_images_url']. '/reactions/'. $row['emoji_name']. '.gif" alt="'. $row['emoji_title']. '" title="'. $row['emoji_title']. '" />');
                                   
                        },
                        'class' => "centertext"),
                       
                       
            ),
La connaissance, c'est partager le savoir qui nous fait grandir.

KittyGalore

When i go to edit the reactions in the settings i get this error. SMF Version 2.1.4

Installed Mods
SMF Staff Page
Stop Forum Spam
Top Stats
Registered Links
Simple Audio Video Embedder
Users Online Today
Hide Content
Quick Spoiler
Enhanced Quick Reply
Remove "Last Edit"
Konusal Board Icons
SMF Curve 2.0x

Arantor

The mod needs updating for PHP 8.0.
Holder of controversial views, all of which my own.

Advertisement: