Advertisement:

Author Topic: Avatars on Board and/or MessageIndex (Now Fully Hook)  (Read 8349 times)

Offline Wellwisher

  • Jr. Member
  • **
  • Posts: 311
  • Gender: Male
Re: Avatars on Board and/or MessageIndex (Now Fully Hook)
« Reply #80 on: July 16, 2016, 09:27:39 AM »
@Pipke fixed the "abm" text issue in index and on child boards.

I've Attached file abm_code.php with new amendments.



Also you could make the mod more compatible on other themes by using $themedir/images in mod file "package-info.xml"


Code: [Select]

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>Pipke:Avatars_on_Board_MessageIndex</id>
<name>Avatars on Board/MessageIndex</name>
<version>1.5</version>
<type>modification</type>
<install for="2.0 - 2.0.99">
<readme parsebbc="true">readme.txt</readme>
<code>abm_add_remove.php</code>
<require-dir name="Themes" destination="$boarddir">Theme and Language files</require-dir>
<require-dir name="Sources" destination="$boarddir">Source files</require-dir>
<require-file name="abm_avatar.gif" destination="$themedir/images" />
<redirect url="?action=admin;area=modsettings;sa=abm">redirect.txt</redirect>
</install>
<uninstall for="2.0 - 2.0.99">
<code>abm_add_remove.php</code>
<remove-file name="$sourcedir/abm_code.php" />
<remove-file name="$themedir/languages/abm.english.php" />
<remove-file name="$themedir/languages/abm.english-utf8.php" />
<remove-file name="$themedir/languages/abm.spanish_latin.php" />
<remove-file name="$themedir/languages/abm.spanish_latin-utf8.php" />
<remove-file name="$themedir/images/abm_avatar.gif" />
<redirect url="$scripturl?action=admin;area=packages" timeout="5000"></redirect>
</uninstall>

</package-info>
« Last Edit: July 16, 2016, 10:32:18 AM by Wellwisher »

Offline Wellwisher

  • Jr. Member
  • **
  • Posts: 311
  • Gender: Male
Re: Avatars on Board and/or MessageIndex (Now Fully Hook)
« Reply #81 on: July 16, 2016, 11:05:14 AM »
Now the only bug i see is when members use avatars from broken image links/ urls, then you get the same "abm_id=3709" error.