News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Avatars on Board and/or MessageIndex

Started by Pipke, April 05, 2016, 06:27:00 PM

Previous topic - Next topic

Wellwisher

#80
@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"




<?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>


Wellwisher

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.

Raffoz

Tks for the mod! :)

In the board index, i see a bug.
Down the subsection, the mod makes me appear other subsection empty (it doesn't exit).

I attach photo.
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Pipke

Quote from: Raffaele1977 on August 16, 2016, 06:56:06 AM
Tks for the mod! :)

In the board index, i see a bug.
Down the subsection, the mod makes me appear other subsection empty (it doesn't exit).

I attach photo.

Can you post your forum url, so i can take a peek at it, and maybe help you.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Raffoz

Quote from: Pipke on August 16, 2016, 09:19:36 AM
Quote from: Raffaele1977 on August 16, 2016, 06:56:06 AM
Tks for the mod! :)

In the board index, i see a bug.
Down the subsection, the mod makes me appear other subsection empty (it doesn't exit).

I attach photo.

Can you post your forum url, so i can take a peek at it, and maybe help you.

I just sent a PM
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Pipke

mod updated
Version 1.6 - Aug 20, 2016
- Fixed: Mod messed up output template when Board has Child in Child and deeper Child etc.
- Fixed: The 'abm_id={}' text in last column when avatar path is fault or been removed from server
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

JerzyLS

Hey,

How to change last poster info in boards?
I mean delete the "Last post" information, like in IPB:

Original:

<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';


Changed:

<p>', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $board['last_post']['time'],'
</p>';

Kindred

What does that have to do with the Avatar on board mod?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

JerzyLS

When I had a 1.2 version the changed last poster information was working (then the mod wasn't hooked).

Now when I changed it again in BoardIndex.template.php after the update it doesn't working.

Pipke

i have no clue what you want to ask, screenshot or site url does maybe help me to understand you?
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

JerzyLS

I wanted to delete this:
<strong>', $txt['last_post'], '</strong>  ', $txt['by'], '

Nevermind, I just done it in abm_code.php

steve51184

latest version doesn't work with stickied topics correctly with smf 2.0.11

Pipke

Quote from: steve51184 on August 26, 2016, 10:13:05 PM
latest version doesn't work with stickied topics correctly with smf 2.0.11

I can not find that problem on my own forums or test site, can you provide me some more info about 'doesn't work with stickied topics' an example or siteurl or screeny would help the best.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

coltp45


steve51184

Quote from: Pipke on August 27, 2016, 09:09:16 AM
Quote from: steve51184 on August 26, 2016, 10:13:05 PM
latest version doesn't work with stickied topics correctly with smf 2.0.11

I can not find that problem on my own forums or test site, can you provide me some more info about 'doesn't work with stickied topics' an example or siteurl or screeny would help the best.


image of board with 1 stickied post: http://i.imgur.com/u1duGh4.png

closeup of whatever that text is: http://i.imgur.com/SJIFXeT.png

works fine on some thought: http://i.imgur.com/Wbn520x.png

but not all: http://i.imgur.com/9Ji7YX1.png

Pipke

Quote from: steve51184 on August 31, 2016, 09:32:02 PM
Quote from: Pipke on August 27, 2016, 09:09:16 AM
Quote from: steve51184 on August 26, 2016, 10:13:05 PM
latest version doesn't work with stickied topics correctly with smf 2.0.11

I can not find that problem on my own forums or test site, can you provide me some more info about 'doesn't work with stickied topics' an example or siteurl or screeny would help the best.


image of board with 1 stickied post: http://i.imgur.com/u1duGh4.png

closeup of whatever that text is: http://i.imgur.com/SJIFXeT.png

works fine on some thought: http://i.imgur.com/Wbn520x.png

but not all: http://i.imgur.com/9Ji7YX1.png

This has been fixed, mod is now v1.7
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

bolubeyi61

This modification was working well .

But then it caused the error.

as in the picture:



To fix:

abm_code.php
Find:
$avatar = preg_replace($find[9], 'class="lastpost" style="width: '. $modSettings['abm_width_board'] .'%;"', $avatar);

Replace:
$avatar = preg_replace($find[9], 'class="lastpost" ', $avatar);




This way I can find a solution. What is the problem? Why is this happening?



alternative solutions
Database backups have installed also improving making changes encoding.

Pipke

Quote from: bolubeyi61 on September 21, 2016, 08:57:48 PM
This modification was working well .

But then it caused the error.

as in the picture:



This way I can find a solution. What is the problem? Why is this happening?



alternative solutions
Database backups have installed also improving making changes encoding.

That is not an error from the mod, to as i can see you have configurated the mod settings 'increase the last column %' to 49 as on your screeny. Al you had todo was changing that setting back to 1, instead of editting the code on abm_code.php, advice uninstall then install it back?
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

bolubeyi61

modification conflict
Avatars on Board and/or MessageIndex and Aeva Media Gallery


I use it in the following code issues:
[smg id=89]

forum home page gives an error

Delete
[smg id=89]
no problem.

Pipke

@bolubeyi61

I can not trace/make any sence in your post what actually the problem is, can you be more specific about the problem you have? You post codes where i'm not getting something out and what the purpose of it is?
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Advertisement: