● Mentions Mod Update, v1.0.1

Tue Aug 29, 2023 12:34 pm
Clan Leader
Top Dog
Nuke Dev / Coder
3009 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 66.6hrs.
Total Played: 2,257hrs.


  
Must be a looser...
Reputation: 7308.7
votes: 7
Today, I have released an update to the mentions mod. This update fixes one bug but also adds the mini profile when you mouse hover a mentioned user. I have been running it on my site for months now and forgot I was working on that.

You can see an example of the mini profile here: coRpSE  Lonestar

Updating only takes a few min, and installation on a fresh site is easy. You can download it here:
Please login to see this link
Get registered or Log in


Be sure, if you are updating, use the update README.



**UPDATE**
Found a small bug, very simple fix. For those of you that already updated your site with this mod, then you will need to do this simple fix. Should take no more than 1 min.

Open:  public_html/includes/functions_evo_custom.php

Find:

PHP:  [ Select all ]

if ($uavatar) { 


Replace with:

PHP:  [ Select all ]

if ($uavatar && $uavatar_type != 0) { 

 
Save & Close

Now, clear your site cache and you should be all set.

That's it.
What this does is if someone did not change their avatar, then this will force them to use the default. I left out type 0 for the avatar and didn't have a check for this.


Expand
Thu Aug 31, 2023 6:36 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3009 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 66.6hrs.
Total Played: 2,257hrs.


  
Must be a looser...
Reputation: 7308.7
votes: 7
I just updated the original post with a fix for those that have already installed this onto their sites.


 
Fri Sep 01, 2023 3:54 am
Blabbing Noob
53 Posts
Reputation: 724.3
After changing mine manually, I've noticed that I no longer see the mini profile when I hover over the @ link on a message.

EDIT: Scratch that, It now seems to be working fine. No Idea why it wasn't doing it for me  hrm
Fri Sep 01, 2023 7:41 am
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3009 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 66.6hrs.
Total Played: 2,257hrs.


  
Must be a looser...
Reputation: 7308.7
votes: 7
I don't know why that would happen, considering that all this fix does is checks to see if the user avatar type is not 0, ( $uavatar_type != 0 ). Maybe a cache problem, but I don't think that would be the problem. Weird. Glad to know it's working now.


 
Forums ©