News:

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

Main Menu

Best Answer

Started by SychO, November 02, 2020, 03:03:16 PM

Previous topic - Next topic

SychO

Link to the mod

✓ Best Answer


SMF2.1 mod to mark a reply as best answer.

Requires PHP7.3+



Installation
Download the latest release package and upload in the package manager of your forum.

Updating
Delete the mod and install a new release package.

License
The MIT License.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Arantor

Suggestion: put a PHP version test inside database.php and don't allow it to install if PHP 7.2 or lower is present.

SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Bigguy

Very nice lookin mod. Would be good on SMFH.

pocttopus

Very nice mod but I have issues. I don't have the button to mark best answer and also I have these errors in admin panel which suddenly have raised for 2000 in a couple of minutes on 2.1RC3:

FIRST ERROR:
Type of error: Undefined
8: Undefined index: id_best_msg

/home/XXXX/public_html/Sources/BestAnswer/Actions.php (Line 43)

SECOND ERROR:
Type of error: Undefined
8: Undefined index: id_board

/home/XXXX/public_html/Sources/BestAnswer/Policy.php (Line 36)

SychO

Have you made any custom modifications to the source code ?
What mods do you have installed ?
What's your php version ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

pocttopus

No, I have only changed the css, using the main theme but with different colors changed by myself.
This is the php ver.


SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

pocttopus

Sorry, here is the list:

Optimus    2.9 [04.06.20]
Scrolling Buttons    0.6
Login Menu Button    1.0
BBC Message Boxes    1.0
Light Portal    1.2
Social Login    4.0.0
Login Security    1.0.4
SMF Post Prefix    3.2.1
FA Board Icons    1.3
Avatars Display Integration    1.2
Quick Spoiler    1.2.6
Welcome Topic Mod
Simple Audio Video Embedder    5.1.4
Forum Width Setting    1.2
Personalized BBC    1.94.1
Auto Twitter Embed    2.0

SychO

Thank you, I am assuming one of those mods is perhaps overwriting a certain array given to a hook instead of mutating it, resulting in the errors mentioned. I will have to take a look in each and everyone of them, so for now just uninstall this mod.

Or maybe it has nothing to do with other mods and it's just a specific scenario where this mod fails. Either way I'll have to investigate it.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

SychO

@pocttopus please try the 0.1.3 package, I think the issue was with the mod not properly appending to the array, conflicting with other mods.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

pocttopus

It Works!
Thanks @Sycho.
This is awesome.  ;)

pocttopus

Now it's updated to 0.1.5?
What's new @SychO?  O:)

SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Bigguy

I guess I will re-install it, lol. I just finished doing that like 5 minutes ago. :)

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Bigguy

Getting an error:

Trying to access array offset on value of type null

SychO

what line of what file ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Bigguy

Line 28 of BestAnswer.template.php

SychO

Should be fixed in the new 0.1.6 package, please test :)
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Advertisement: