Likes Sometimes Displaying the URL to See Who Liked vs a Clickable Link

Started by privateforum, October 18, 2023, 02:46:57 PM

Previous topic - Next topic

privateforum

Hi,

I am running a private smf forum for about 10 years now. We had it running on an old version (I think 2.0.17) with a likes mod added on that worked great.
A few days ago I finally got around to upgrading and we are on 2.1.4 which has integrated likes.
For some reason, when a post is liked, half the time instead of having the text that X amount of users liked it where you can click and see the pop up of posters, instead we get the actual url of the popup showing. This never happens if you yourself like, only in cases where other people liked it.

See attached to reference what I am trying to describe.

I actually installed the Thanks mod since it was based off this code to see any differentiation, and there is absolutely none where I have looked (Display.template.php, index.css -- all in default theme, we have no others). I also copied the Thanks mod to incorporate a Hug mod for our purposes, you can ignore that.
The Thanks and Hug work beautifully, as intended. The like? Not so much.

I have erased the css, Display template, Likes.php and taken it all from the GitHub files from scratch to no avail.

View-source clearly outputs the mistake:
<li class="like_count smalltext">
https://www.our.url/forum/index.php?action=likes;sa=view;ltype=msg;like=438810;b76c35a87=e7f9bfecf2c7b74844298440c1250077 Likes
</li>

Whereas a correct one is:
<li class="like_count smalltext">You and <a href="https://www.our.url/forum/index.php?action=likes;sa=view;ltype=msg;like=438834;b76c35a87=e7f9bfecf2c7b74844298440c1250077">2 other people</a> like this.
</li>

1 Like seems to show up with the correct text and not clickable, multiple likes usually shows up as the string as shown in the screenshot, and You and XX posters like this renders properly.

Any ideas what can be messing this up and I can fix?

privateforum

Wow, never mind. I spent so much time on this (2 days!) and after posting, I realized there was 1 file still stuck from uninstalling the old likes mod that was interfering. It's in languages, called Modifications.english.php
I removed that code, and this works like a charm.

Sorry about that but hopefully anyone else with a similar issue can benefit :)

Advertisement: