Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on February 18, 2008, 10:39:03 PM

Title: AvatarOnBoard
Post by: Bulakbol on February 18, 2008, 10:39:03 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1103)

Author:JohnyB   Mod Name:AvatarOnBoard   Version:1.1   Tested:Freshly installed SMF 1.1.4

AvatarOnBoard 1.1
- This mod will display the avatar of last poster in Board index and Child board index.
- This will also disable or enable the display and hide the childboards.
- The switches on or off of child boards and avatars and the width and the height can be configured in
~ Admin -> Features and options -> Layout and Options. It's in the bottom.
- The default avatar width is 35 pixels and the default height is 35 pixels too.
- Zero (0) in either width or height, the settings in (Admin -> Attachments and Avatars Settings) will be used.
- Added switch on or off for the avatar on Board. To disable the avatar, tick the checkbox.
       
Supported Themes
  - Default Core
  - Babylon
  - Classic
  - Helios_multi
  - DilberMC
  - wowdk_114v1
      
Note:
     If during the installation skipped your theme, there must be something wrong. Do not continue the installation.  Install the mod manually. Use the Package Parser (http://"http://sleepycode.com/PackageParser/index.php).

February 19, 2008
- Expanded to Message index supporting child boards.       
Title: Re: AvatarOnBoard
Post by: Hoochie Coochie Man on February 19, 2008, 04:13:25 AM
Great Mod :)
Title: Re: AvatarOnBoard
Post by: Sabre™ on February 19, 2008, 06:18:42 AM
Another great mod JohnyB.

I was hoping you could help me install this in the "invazion" theme.
I tried to manually install this using the package parser.
But no glory.
Its working fine through the default them.
It installed with no errors.
I am also using TP.
I ask as I've noticed the coding"s different for each of the themes youve enabled this for.
If you need me to send you any files(board.template.php) then just tell me what exactly.
Thank You in advance :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 08:07:41 AM
Thanks Hoochie Coockie Man.

The next version/update will expand to Message index together with switch to turn the avatar on or off.


@Fernside. Attach your BoardIndex.template.php and I'll take a look at it.
Title: Re: AvatarOnBoard
Post by: xrunner on February 19, 2008, 08:18:58 AM
Quote from: JohnyB on February 18, 2008, 10:39:03 PMSupported Themes
  - Babylon
  - Classic
  - Helios_multi
  - DilberMC

So it doesn't support the Core SMF theme - just want to make sure, I'd really like to try this Mod.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 08:31:29 AM
Quote from: xrunner on February 19, 2008, 08:18:58 AM
Quote from: JohnyB on February 18, 2008, 10:39:03 PMSupported Themes
  - Babylon
  - Classic
  - Helios_multi
  - DilberMC

So it doesn't support the Core SMF theme - just want to make sure, I'd really like to try this Mod.

The mod is for the default Core Theme haha.  To avoid future confusion, I will add the core theme to the list. Thanks for pointing out.  ;)
Title: Re: AvatarOnBoard
Post by: xrunner on February 19, 2008, 08:43:11 AM
I just installed it - cool Mod thanks!  :)
Title: Re: AvatarOnBoard
Post by: edi67 on February 19, 2008, 08:53:52 AM
he he lovely mod thx jonnhy
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 09:01:19 AM
Thanks guys.  ;)
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on February 19, 2008, 04:18:20 PM
I'm guessing this is similar to the Avatars@Index (http://custom.simplemachines.org/mods/index.php?mod=530) mod. Do you intend to support similar or the same functionality as that mod (board index + message index + memberlist) or just board & message index? I do like that one, since it displays the full version of avatars on the memberlist (at least has the option to) as well as displaying on the message index.

It's a great mod, JohnyB, though. Keep up the good work. Be careful, though, you have to keep supporting all those mods. :P
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 06:13:40 PM
Thanks Eliana. Help me support my mods.  ;) I want only simple mods so I can support them all.

Topic and memberlist are already covered by Avatar@Index mod so I figured I don't have to include them here.

I updated this mod. It's a good idea from the Customization team so it is now expanded to Mesage index for support of child boards. We can now hide the display of both avatar and list of childboards in the Board index.


Please uninstall the old version (1.0) before installing the update (1.1). Thanks.
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on February 19, 2008, 06:33:27 PM
Quote from: JohnyB on February 19, 2008, 06:13:40 PM
Thanks Eliana. Help me support my mods.  ;) I want only simple mods so I can support them all.

Topic and memberlist are already covered by Avatar@Index mod so I figured I don't have to include them here.

I'll do my best to help.

And it sounds good. I'll test to two out together to make sure nothing conflicts.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 06:45:27 PM
Quote from: Eliana Tamerin on February 19, 2008, 06:33:27 PM
Quote from: JohnyB on February 19, 2008, 06:13:40 PM
Thanks Eliana. Help me support my mods.  ;) I want only simple mods so I can support them all.

Topic and memberlist are already covered by Avatar@Index mod so I figured I don't have to include them here.

I'll do my best to help.

And it sounds good. I'll test to two out together to make sure nothing conflicts.

Thanks Eliana. I don't think there's conflict but not too sure 'cause I didn't check Avatar@Index mod codes.
Title: Re: AvatarOnBoard
Post by: teaser on February 19, 2008, 08:32:15 PM
I get this error when I activate avatar. It happens When I go to home:

Not unique table/alias: 'mav'
File: /home/desi/public_html/forums/Sources/BoardIndex.php
Line: 90
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 08:51:04 PM
Did you install the mod manually? Are there any errors when you installed the mod?
Title: Re: AvatarOnBoard
Post by: teaser on February 19, 2008, 08:51:34 PM
No and no
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on February 19, 2008, 08:55:25 PM
Do you have any other mods? Some of them might conflict with this (although I don't see how on the top of my head).
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 09:02:09 PM
Quote from: teaser on February 19, 2008, 08:51:34 PM
No and no

Attach your Sources/BoardIndex.php and I'll take a look. I can't emulate the error. It looks like there's another field called mav. Or maybe installed twice?

Any other mods inatalled?
Title: Re: AvatarOnBoard
Post by: Sabre™ on February 19, 2008, 11:04:20 PM
Quote from: JohnyB on February 19, 2008, 08:07:41 AM
@Fernside. Attach your BoardIndex.template.php and I'll take a look at it.

Thanks JohnyB :)

Its attached.
Title: Re: AvatarOnBoard
Post by: teaser on February 19, 2008, 11:17:22 PM
Ok Now the problem is that I kind of replaced the old boardindex.php with the new one and i reactivated the plugin but its not showing up.

Title: Re: AvatarOnBoard
Post by: Bulakbol on February 19, 2008, 11:31:29 PM
Quote from: teaser on February 19, 2008, 11:17:22 PM
Ok Now the problem is that I kind of replaced the old boardindex.php with the new one and i reactivated the plugin but its not showing up.



Hi Teaser. Here's your BoardIndex.php. Put it back in your Sources folder. Back up the original one. Make sure this mod was installed before using this file because of the additional fields in the settings table.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 20, 2008, 01:04:05 AM
Quote from: FERNSIDE on February 19, 2008, 11:04:20 PM
Quote from: JohnyB on February 19, 2008, 08:07:41 AM
@Fernside. Attach your BoardIndex.template.php and I'll take a look at it.

Thanks JohnyB :)

Its attached.

Hi Fernside. I took a long shot. I am not using TP so I am not sure if this will work. Try it anyway and if there are little things to fix, we'll try to fix it.  Im keeping my fingers crossed.  :)
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on February 20, 2008, 01:15:17 AM
Uninstall your mod, ignore the warning about the boardindex, then reinstall it. That should restore it to your board. Else, you can go into the file and add in the mod manually.
Title: Re: AvatarOnBoard
Post by: Sabre™ on February 20, 2008, 02:17:42 AM
Quote from: JohnyB on February 20, 2008, 01:04:05 AM
Hi Fernside. I took a long shot. I am not using TP so I am not sure if this will work. Try it anyway and if there are little things to fix, we'll try to fix it.  Im keeping my fingers crossed.  :)

Buddy..  Uncross your fingers mate.
Cause you my friend, are brilliant at what you do :)
Works 100%, and without a hitch.
Respect :)

Thanks again Johny..    And  Bravo mate  ;)   
Title: Re: AvatarOnBoard
Post by: Kimmie on February 20, 2008, 04:46:56 AM
fantastic mod JohnyB. I installed both this one and the avatars@index and they work together perfectly. :)


Thanks for all your hard work!
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 20, 2008, 09:18:26 AM
Thanks Sabre and Kimmie. Thank you too for trying my mod.  ;D
Title: Re: AvatarOnBoard
Post by: teaser on February 20, 2008, 09:31:18 AM
Thanks man it worked.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 20, 2008, 09:38:30 AM
Quote from: teaser on February 20, 2008, 09:31:18 AM
Thanks man it worked.

Cool.  8) I can sleep better now. haha. I thank you too.
Title: Re: AvatarOnBoard
Post by: Kimmie on February 21, 2008, 12:55:13 AM
I wanted to add that I installed it on a forum using TP and a custom theme, that already had the avatar@index installed and even though it didnt list my theme during the installation, it installed perfectly, and they both work together flawlessly. :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 21, 2008, 05:32:58 AM
Quote from: Kimmie on February 21, 2008, 12:55:13 AM
I wanted to add that I installed it on a forum using TP and a custom theme, that already had the avatar@index installed and even though it didnt list my theme during the installation, it installed perfectly, and they both work together flawlessly. :)

That's great. I installed the Avatar@Index and found out that the avatar is for topic starter in the message index. The avatar of this mod is for the last poster. Thanks again.
Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 02:47:11 AM
I think I spoke too soon in my last post...lol (sorry). Im gettin these errors in my log:

8: Undefined variable: mini_avatar
File: /home/patriotg/public_html/Sources/MessageIndex.php
Line: 718

8: Undefined index: avatar
File: /home/patriotg/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 58

The 2nd error only happens when one of my staff (or myself) is posting in one specific child board that is off limits to regular members. The avatar at index shows up but not this one. I have another child board in that same area that they both show up on (weird) - edit.. ok I found another board that this error is happening on - and its a board that all members have access to.  ::) (edit... this error even happens if all we do is view the board index -  i just tried it)

Anything I can do to fix it?

It looks to me what the 1st one is doing (corse I could be wrong..lol) is: With this mod installed there are now "2" entries on the profile page for "noavatar". The error seems to happen everytime a member makes a post - "until" that person selects an avatar or selects the "noavatar" that comes with this mod.

(actually... I wonder if also adding the mod that makes people select an avatar at registration will resolve this without me having to edit the code)


Here is line 718 from my messageindex.php:

'avatar' => $mini_avatar['avatar'] == '' ? ($mini_avatar['ID_ATTACH'] > 0 ? '<img src="' . (empty($mini_avatar['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $mini_avatar['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $mini_avatar['filename']) . '" alt="" height="'.$modSettings['miniAvatarHeight'] .'px" width="'.$modSettings['miniAvatarWidth'] .'px" align="absmiddle" border="0" />' : '') : (stristr($mini_avatar['avatar'], 'http://') ? '<img src="' . $mini_avatar['avatar'] . '" alt="" height="'.$modSettings['miniAvatarHeight'] .'px" width="'.$modSettings['miniAvatarWidth'] .'px" align="absmiddle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($mini_avatar['avatar']) . '" alt="" height="'.$modSettings['miniAvatarHeight'] .'px" width="'.$modSettings['miniAvatarWidth'] .'px" align="absmiddle" border="0" />'),  // Avatars at Index By alperuzi
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 03:07:42 AM
Hello Kimmie. Sorry about that, but looking at the bottom of the codes you posted, it says // Avatars at Index By alperuzi. I didn't use mini_avatar variable so I am sure it's not from my mod. It's from the Avatar@Index mod by Alperuzi. You also have error in line 58, can you post line 58 too so i can see if it's coming from my mod?
Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 03:12:19 AM
okie dokie...hang on..lol

(this is just really weird because one of those errors - on line 58 - is only happening on two child boards - and it just started happening tonight..lol)
Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 03:14:21 AM
LIne 58 from the Themes/default/MessageIndex.template.php  file:

', $board['last_post']['member']['avatar'], '
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 03:16:13 AM
No problem.  :) Check Avatar@Index comments/support thread. He might have the sulution there. You can uninstall my mod to see if it will solve your problem.

<edit>
Ok, that looks like from my mod. Can you post more that one line. About 5 lines?
</edit>
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 03:21:00 AM
Here's part of the code in MessageIndex.template,php. Check your file and see if there's missing code.

</td>';
if (!$modSettings['disable_avatar'])
echo '
<td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center">
', $board['last_post']['member']['avatar'], '
</td>';
echo '
<td class="windowbg2" valign="middle" width="22%"><small>';
Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 03:22:38 AM
k be back in a jiffy with it..hehe


if (!$modSettings['disable_avatar'])
            echo '
            <td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center">
               ', $board['last_post']['member']['avatar'], '
            </td>';
            echo '
            <td class="windowbg2" valign="middle" width="22%"><small>';
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 03:31:09 AM
Fix the Avatar@Index mod error first. Then if you still have problem with line 58, let me know. We will check Sources/MessageIndex.php if the error still appear after you fix the Avatar@Index mod.
Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 03:34:14 AM
Quote from: JohnyB on February 22, 2008, 03:31:09 AM
Fix the Avatar@Index mod error first. Then if you still have problem with line 58, let me know. We will check Sources/MessageIndex.php if the error still appear after you fix the Avatar@Index mod.

ok thanks for the help. What I may do first is uninstall your mod and see if the errors go away. If they do, I might try installing it manually (thats gonna be fun being as I have never done one manually..lol), and see if the errors come back.

*any tips ya wanna throw at me on the manual install please do as I have never done one..lol*
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 03:38:47 AM
Try the package parser. It will help you how to do the manual edit.

http://sleepycode.com/PackageParser/index.php

Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 03:42:19 AM
ok I am on that page...do I select All Edits (default) or Only Theme edits (editing a theme to support a mod? (I am using a custom theme)


(sorry I promise this will be my last question for the night..lol)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 04:06:12 AM
Sorry for the delay. SMF is giving me hard time. Slow loading. Select the default (All Edit) and Install. Don't forget to change the drop down menu from 2.0 to 1.1.4.

Title: Re: AvatarOnBoard
Post by: Kimmie on February 22, 2008, 04:40:28 AM
no problem... I have just one more teensie question ( i know your probably off for the night and thats ok I will wait until I hear from you cuz I dont wanna mess up my forum :(0

Question is: On the parser when it says "Find blah blah blah" and then "add after blah blah blah"...I AM actually adding that code "after" what it told me to search for right"

Call me blonde...lol.. but I though I saw someone where on here that when it says" add after" that actually means "add before" and vice versa.
Title: Re: AvatarOnBoard
Post by: qtime on February 22, 2008, 05:20:09 AM
very nice idea!!! Working like a charm!
Title: Re: AvatarOnBoard
Post by: perro88 on February 22, 2008, 12:32:18 PM
Quote from: Kimmie on February 22, 2008, 04:40:28 AM
no problem... I have just one more teensie question ( i know your probably off for the night and thats ok I will wait until I hear from you cuz I dont wanna mess up my forum :(0

Question is: On the parser when it says "Find blah blah blah" and then "add after blah blah blah"...I AM actually adding that code "after" what it told me to search for right"

Call me blonde...lol.. but I though I saw someone where on here that when it says" add after" that actually means "add before" and vice versa.
well I think it's like this, in the package when it says "search position=after" you place the code before the block of code to find and vice-versa :P.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 01:31:50 PM
Quote from: Kimmie on February 22, 2008, 04:40:28 AM
no problem... I have just one more teensie question ( i know your probably off for the night and thats ok I will wait until I hear from you cuz I dont wanna mess up my forum :(0

Question is: On the parser when it says "Find blah blah blah" and then "add after blah blah blah"...I AM actually adding that code "after" what it told me to search for right"

Call me blonde...lol.. but I though I saw someone where on here that when it says" add after" that actually means "add before" and vice versa.

Sorry, was tired and left last night.

When the parser says "Find" and "add after" you have to add the codes after the codes that you looked for. The parser is actually reversing the install.xml.

When the xml says

<search position="after"><![CDATA[IFNULL(mem.memberName, m.posterName) AS posterName, m.subject, m.ID_TOPIC,]]></search>
         <add><![CDATA[att.ID_ATTACH, att.attachmentType, att.filename, mav.avatar,
         ]]></add>



The parser will say

Find:
IFNULL(mem.memberName, m.posterName) AS posterName, m.subject, m.ID_TOPIC,

Add before:
att.ID_ATTACH, att.attachmentType, att.filename, mav.avatar,


When the parser says "add before", add it at the top of the codes that you looked for.
Confusing isn't it.  :P I hope that helps.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 22, 2008, 01:35:51 PM
Quote from: qtime on February 22, 2008, 05:20:09 AM
very nice idea!!! Working like a charm!

Thanks qtime. Additional decoration to our sites.  ;)
Title: Re: AvatarOnBoard
Post by: humbleworld on February 24, 2008, 09:06:03 AM
Yes, great MOD. I'm using Dilber Theme but I got error in installation. All files were okay except:

10.     Execute Modification     ./Themes/dilbermc/BoardIndex.template.php     Test failed

What to do now?
Title: Re: AvatarOnBoard
Post by: jackregan on February 24, 2008, 09:12:16 AM
May I just say that this mod is excellent.

Well done :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 24, 2008, 11:57:12 AM
Quote from: humbleworld on February 24, 2008, 09:06:03 AM
Yes, great MOD. I'm using Dilber Theme but I got error in installation. All files were okay except:

10.     Execute Modification     ./Themes/dilbermc/BoardIndex.template.php     Test failed

What to do now?

There must be other mod that edited your BoardIndex.template.php. You can edit it manually using the package parser (http://sleepycode.com/PackageParser/index.php) and if you can't figure it out, attach your BoardIndex.template.php and I'll look at it.



Quote from: jackregan on February 24, 2008, 09:12:16 AM
May I just say that this mod is excellent.

Well done

Thanks Jackregan. Thank you too for trying this mod.  :)
Title: Re: AvatarOnBoard
Post by: kaburan on February 24, 2008, 01:16:45 PM
Anyway I can customize this for the CS-DK theme?

Never mind, I did a manual install on my themes boardindex and everything worked fine. Thanks for that Parser link by the way, very helpful!
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 24, 2008, 01:29:46 PM
Quote from: kaburan on February 24, 2008, 01:16:45 PM
Anyway I can customize this for the CS-DK theme?

You have to edit your BoardIndex.template,php. Not much to edit anyway. You can use the package parser (http://sleepycode.com/PackageParser/index.php) if you want.

<EDIT> haha I was late. That's good. It's easy isn't it? </EDIT>
Title: Re: AvatarOnBoard
Post by: kaburan on February 24, 2008, 01:59:54 PM
Hey Johny, The BoardIndex.Template.phhp works great and I can see the avatars on the main forums. The problem is when I go into the sub forums I get syntax errors. This is after I make the appropriate changes on the MessageIndex.php

Could you please take a look at my code?
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 24, 2008, 02:16:21 PM
Ok Kaburan, I'll get back to you.
Title: Re: AvatarOnBoard
Post by: kaburan on February 24, 2008, 02:18:52 PM
Roger, thanks a lot for helping me out.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 24, 2008, 04:42:56 PM
Quote from: kaburan on February 24, 2008, 02:18:52 PM
Roger, thanks a lot for helping me out.

There was an extra line of code at the end of one of the mod's line. Here's the corrected one.

Title: Re: AvatarOnBoard
Post by: kaburan on February 24, 2008, 05:17:55 PM
Ok cool thanks Johny, So I don't get the syntax error anymore, however i don't see the avatars. Is it supposed to be that way, or does it affect the subforums, etc?

You can take a look here http://www.vx9.com/forums/index.php?action=forum

As you can see the avatars show up on the main forum, however not any of the subforums if you click through.
Title: Re: AvatarOnBoard
Post by: kaburan on February 24, 2008, 06:00:40 PM
Ok I may be mistaken, avatars don't show up for topics, but they do for child boards.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 24, 2008, 06:17:51 PM
Quote from: kaburan on February 24, 2008, 06:00:40 PM
Ok I may be mistaken, avatars don't show up for topics, but they do for child boards.

Sorry, the mod does not display avatars in topics. It only display avatar of last poster in Board index and childboard index. There's Avatar@Index mod that will display avatar of topic starter though.

I might include the avatar of last poster in topic index in the next version. But if the Avatar@Index is installed, there will be two avatars per topic.
Title: Re: AvatarOnBoard
Post by: kaburan on February 24, 2008, 07:51:25 PM
Ok its all good, everything looks good. Thanks for your help :)
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on February 24, 2008, 08:14:34 PM
Hey JohnyB, I was wondering if it would be at all possible to resize these with GD? Or maybe that would be too much of a server load, since they'd have to be resized on the fly, right? I don't want to complicate your mod, but instead of having HUGE image sizes to accommodate the larger avatars (which stretches the smaller ones), the mod could resize them with GD and stick them into a cache for later use, reducing the server load.

On that note, however, though unrelated, would it be possible to check if an avatar is under the sizes input in the admin CP and leave it in its natural size? Or resize the avatar proportionally, so that longer/wider avatars don't get squeezed or distorted.
Title: Re: AvatarOnBoard
Post by: humbleworld on February 25, 2008, 12:27:44 AM
Quote from: JohnyB on February 24, 2008, 11:57:12 AM
Quote from: humbleworld on February 24, 2008, 09:06:03 AM
Yes, great MOD. I'm using Dilber Theme but I got error in installation. All files were okay except:

10.     Execute Modification     ./Themes/dilbermc/BoardIndex.template.php     Test failed

What to do now?

There must be other mod that edited your BoardIndex.template.php. You can edit it manually using the package parser (http://sleepycode.com/PackageParser/index.php) and if you can't figure it out, attach your BoardIndex.template.php and I'll look at it.



Quote from: jackregan on February 24, 2008, 09:12:16 AM
May I just say that this mod is excellent.

Well done

Thanks Jackregan. Thank you too for trying this mod.  :)

Hi John,

My board.index.php has shoutbox. Is it causing the problem?
Title: Re: AvatarOnBoard
Post by: humbleworld on February 25, 2008, 12:51:23 AM
Hi Johny,

The MOD works perfectly now. Thanks a lot. Where is your Paypal page?
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 25, 2008, 12:55:00 AM
Quote from: kaburan on February 24, 2008, 07:51:25 PM
Ok its all good, everything looks good. Thanks for your help :)

No worries kaburan. You are welcome.  8)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 25, 2008, 12:56:15 AM
Quote from: humbleworld on February 25, 2008, 12:51:23 AM
Hi Johny,

The MOD works perfectly now. Thanks a lot. Where is your Paypal page?

ahaha save it for the next mod bud.  :D Thanks for trying this mod.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 25, 2008, 01:10:02 AM
Hi Eliana, sorry for the delay.

Quote from: Eliana Tamerin on February 24, 2008, 08:14:34 PM
Hey JohnyB, I was wondering if it would be at all possible to resize these with GD? Or maybe that would be too much of a server load, since they'd have to be resized on the fly, right? I don't want to complicate your mod, but instead of having HUGE image sizes to accommodate the larger avatars (which stretches the smaller ones), the mod could resize them with GD and stick them into a cache for later use, reducing the server load.

Sorry, I don't know anything about GD.  :P

Quote
On that note, however, though unrelated, would it be possible to check if an avatar is under the sizes input in the admin CP and leave it in its natural size? Or resize the avatar proportionally, so that longer/wider avatars don't get squeezed or distorted.

I am thinking about checking the size entered in the admin cp.

if width is zero - use the size set in Admin -> Attachments and avatars -> Avatars Settings : External Avatars max width and height.

if width is not zero but the height is zero, use only the width so it will proportionally adjust the height.

otherwise, use the entered width and height. Will that be okay?

In Sources/BoarIndex.php, look for

if (!$modSettings['board_avatar_width'] || !$modSettings['board_avatar_height'])
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />');
else
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />');


and replace with

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />');
elseif ($modSettings['board_avatar_height'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />');
else
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />');


In admincp, enter zero as the height.
Title: Re: AvatarOnBoard
Post by: humbleworld on February 25, 2008, 01:35:16 AM
Quote from: JohnyB on February 25, 2008, 12:56:15 AM
Quote from: humbleworld on February 25, 2008, 12:51:23 AM
Hi Johny,

The MOD works perfectly now. Thanks a lot. Where is your Paypal page?

ahaha save it for the next mod bud.  :D Thanks for trying this mod.

Johny, I'm excited to see the release of the 2.0 version. Hope all your MODs would have the same power and vibrancy. :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 25, 2008, 02:05:39 AM
Quote from: humbleworld on February 25, 2008, 01:35:16 AM
Quote from: JohnyB on February 25, 2008, 12:56:15 AM
Quote from: humbleworld on February 25, 2008, 12:51:23 AM
Hi Johny,

The MOD works perfectly now. Thanks a lot. Where is your Paypal page?

ahaha save it for the next mod bud.  :D Thanks for trying this mod.

Johny, I'm excited to see the release of the 2.0 version. Hope all your MODs would the same power and vibrancy. :)

I am excited too.  :) This mod might survive but my other mods might be thrown in archive storage because it's built-in in version 2.0.  :(
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 25, 2008, 06:17:40 AM
Apologies. I forgot to update the Message index. The last 10 who downloaded version 1.2, please redownload again. Or edit the file yourself. In Sources/MessageIndex.php, find

if (!$modSettings['board_avatar_width'] || !$modSettings['board_avatar_height'])
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />');
else
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />');




and replace with

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="center" border="0" />');
elseif ($modSettings['board_avatar_height'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="center" border="0" />');
else
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ? '<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="center" border="0" />');


I changed the default setting for the height from 35 to 0 because of the update.
Title: Re: AvatarOnBoard
Post by: Kimmie on February 26, 2008, 04:29:19 AM
ok I havent tried to manually install this yet after our conversation - however I just noticed something...

To give you a small update so you dont have to go back and re-read - I was having some errors come up with using this mod and the avatar@index mod and also a few issues such as the avatars not showing up on a few child boards.

Well what I noticed is since I uninstalled this mod. the latest post (when its in a child board) no longer shows up on the main forum page over on the right. The only latest post it will show is if the post was done in that main topic area.

Since this mod affects child boards, could this mod have left behind some sort of code that is causing this to happen? 
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 26, 2008, 11:09:36 AM
Hi Kimmie. Did you get any errors when you installed/uninstalled this mod? Not sure if this mod is the cause of your problem but I can take a look at your files if you don't have a backup. Attach both BoardIndex.template.php and MessageIndex.template.php and I'll take alook at them.
Title: Re: AvatarOnBoard
Post by: Kimmie on February 26, 2008, 06:15:03 PM
there were no errors in install or uninstall..those errors I got in my log were after it was already installed. The issues I had after it was installed is there were 3-4 boards that the avatar did not show on (on the main page) and it appeared that 1 of the errors was due to it conflicting with the avatar@index mod. The 2nd error in my log happened when someone hadnt chosen an avatar at all yet (I think was due to the fact that with this mod - it installed a "noavatar" - which made two in there bacause there is already one that is an SMF default.

I would really love to use this mod but I am afraid to manually install it as I have never done that before.   :(. I dont want to mess up my forum.

My files are attached.


Thanks for the help. :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 26, 2008, 07:32:35 PM
Understood Kimmie. No problem. Looking at the filename of the files that you attached, they are backups. There's tilde (~) at the end. Can you attach the ones that are giving you problem?

This mod will only display avatar in BoardIndex and Childboard index but not in topic. The Avatar@Index display avatar of topic starter.

<EDIT> I have your files and they are the one that I want to look at. I'll get back to you.</EDIT>

<EDIT2>I can't find anything wrong with your files Kimmie. This mod was perfectly installed. I think you are confused. This mod will not display avatar in topic.  When you say some avatars won't display, it is because you were looking at topics. Show me a screen shot of the missing avatar. <EDIT2>
Title: Re: AvatarOnBoard
Post by: Kimmie on February 27, 2008, 02:35:51 AM
yes I understand about where the icons are supposed to appear with this one.. when the mod was installed and I would be looking at the main forum page, there would be a few boards that the avatar was not showing up at all no matter who posted inside that area.

I dont have it currently installed right now. I will reinstall it and see if I can re- create the problem and get you a ss.

(I would like to make sure I did show you the right files though because there are 2 of most of those when I am in there... they both have the same name - but only one says its a php file which is the one I gave you). Its confusing to know which one that needs edits and all that..lol.
Title: Re: AvatarOnBoard
Post by: diegolyanky on February 27, 2008, 06:05:13 AM
Worked fine on 1.1.4 with Helio_multi theme and with more than 56 MODS installed.

Thanks ;)
Title: Re: AvatarOnBoard
Post by: Shean on February 27, 2008, 06:55:55 AM
Turkish language did you like the assistant :P
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 27, 2008, 05:35:30 PM
Quote from: Kimmie on February 27, 2008, 02:35:51 AM
yes I understand about where the icons are supposed to appear with this one.. when the mod was installed and I would be looking at the main forum page, there would be a few boards that the avatar was not showing up at all no matter who posted inside that area.

I dont have it currently installed right now. I will reinstall it and see if I can re- create the problem and get you a ss.

(I would like to make sure I did show you the right files though because there are 2 of most of those when I am in there... they both have the same name - but only one says its a php file which is the one I gave you). Its confusing to know which one that needs edits and all that..lol.

Hi Kimmie. If you think this mod will screw up your board, leave it uninstalled.

Just to clarify things though on what this mod will do, look at the attached screenshot so you will know what is topic and what is childboards inside the childboard. It might help others too.
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 27, 2008, 05:38:19 PM
Quote from: diegolyanky on February 27, 2008, 06:05:13 AM
Worked fine on 1.1.4 with Helio_multi theme and with more than 56 MODS installed.

Thanks ;)

Thanks diegolyanky.  ;)


Quote from: FrondaL on February 27, 2008, 06:55:55 AM<br />Turkish language did you like the assistant<img src="http://www.simplemachines.org/community/Smileys/simple/tongue.gif" border="0" alt="" title="" onresizestart="return false;" id="smiley_1_tongue.gif" style="padding-left: 6px;" /><br />

Thanks too for the translation FrondaL.   8)
Title: Re: AvatarOnBoard
Post by: ampedm on February 27, 2008, 09:08:09 PM
on a fresh installation of smf 1.1.4 when i try to uninstall it i get:

Database Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings WHERE variable='disable_avatar' LIMIT
File: /homepages/24/d180708773/htdocs/ph/departments/Packages/temp/AvatarOnBoardDB.php
Line: 8

i installed this mod first followed by these then tried to uninstall it and got this.

Top 10 Posters Today And This Week Stats
Add Domaintools to TrackIP
Custom Profile Field Mod
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 27, 2008, 09:23:24 PM
Hi Ampedm. Not sure what causes it. Just ignore it.  Maybe it's not there anymore.
Title: Re: AvatarOnBoard
Post by: ampedm on February 27, 2008, 09:25:59 PM
well i can't uninstall the mod since it come after it does the tests for un-modding the files.

my server has mysql4 maybe that might be the problem, i am very sure its the syntax. :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 27, 2008, 09:46:57 PM
You can uninstall the mod manually or unzip the package and remove the

<code>AvatarOnBoardDB.php</code>

from package-info.xml. Then compress it back and uninstall the mod.
Title: Re: AvatarOnBoard
Post by: ampedm on February 27, 2008, 09:53:34 PM
Worked, thanks.

Might i suggest for a future version that
<code>AvatarOnBoardDB.php</code>


should be placed before the command to remove the noavatar.gif file since mine stopped @ the mysql error after it deleted the image.

Other wise its great :)



EDIT: This conflicts with:    Redirection Boards      2.01
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 27, 2008, 10:24:17 PM
Quote from: ampedm on February 27, 2008, 09:53:34 PM
Worked, thanks.

Might i suggest for a future version that
<code>AvatarOnBoardDB.php</code>


should be placed before the command to remove the noavatar.gif file since mine stopped @ the mysql error after it deleted the image.

Don't know if there's any difference but I'll keep that in mind.

Quote
Other wise its great :)



EDIT: This conflicts with:    Redirection Boards      2.01


ow,  that's the problem I guess. I don't use the Redirection board  mod so I don't know. Thanks for trying this mode BTW.
Title: Re: AvatarOnBoard
Post by: ampedm on February 27, 2008, 10:26:48 PM
i have just been installing a couple of mods, and came to the conclusion that i will keep this mod.

It turns out the redirection mod nulles the intallation of your mod and others like BoardHover Mod      1.1.0 and cbi.

Title: Re: AvatarOnBoard
Post by: Bulakbol on February 28, 2008, 02:57:47 PM
Quote from: ampedm on February 27, 2008, 10:26:48 PM
i have just been installing a couple of mods, and came to the conclusion that i will keep this mod.

It turns out the redirection mod nulles the intallation of your mod and others like BoardHover Mod      1.1.0 and cbi.



ohh, so, the redirection board interfere with other mods. Thanks for the info.


If you need help with this mod, just post it here.
Title: Re: AvatarOnBoard
Post by: Kimmie on February 29, 2008, 11:59:46 PM
its me again...hehehe

I was going to attempt to manually install the mod and see if I got any of the previous errors - but when I tried to use the parser this is all that showed up on the page (this is from your latest version of the mod):


QuoteModifications to SMF files

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 111: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE7 0x65 0x76 0x72 in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$txt['who_enabled'] = 'Who\ 祶rim ici lis in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phpPcGrMC', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472

It didnt have this on the first version you had - it showed all the files that needed to be edited, etc,  but unfortunately I deleted that version when you made the new one
Title: Re: AvatarOnBoard
Post by: Apllicmz on March 01, 2008, 05:38:29 AM
good work
nice Mod
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 01, 2008, 11:33:37 AM
Quote from: Kimmie on February 29, 2008, 11:59:46 PM
its me again...hehehe

I was going to attempt to manually install the mod and see if I got any of the previous errors - but when I tried to use the parser this is all that showed up on the page (this is from your latest version of the mod):

...
It didnt have this on the first version you had - it showed all the files that needed to be edited, etc,  but unfortunately I deleted that version when you made the new one

Hi Kimmie. Those are from the additional laguage translation. The parser needs updating to recognize alternate characters. You will be okay if you use the package manager.  Do you like a copy of the mod that does not have the additional translated language strings?
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 01, 2008, 11:34:38 AM
Quote from: joomlamz on March 01, 2008, 05:38:29 AM
good work
nice Mod

Thanks for the compliment Joomlamz. Thanks for trying this mod.  ;)
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 01, 2008, 03:41:59 PM
I love this mod. I'm using it on several forums, and I'm starting to learn who's posted just by their avatars. It's great to just be able to glance and see if I want to read the post or not. Thank you for your continued innovation and ingenuity, JohnyB.
Title: Re: AvatarOnBoard
Post by: Marcus Forsberg on March 02, 2008, 11:59:23 AM
Thanks for a great mod!
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 02, 2008, 03:36:01 PM
Hi Eliana. I thought I am the only one that look at the avatar instead of the names of last poster. yes, I am used to it now, that's why I updated the mod to support the topic index too. Version 2.0 will now display avatars of last poster in topic index. I will leave version 1.2 for those who don't want the avatars in the topic index.

@MTF5
   Thanks for the comliment.


I thank you all for trying this mod.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 02, 2008, 04:53:13 PM
well i dont really need the additional strings because I only use english on my site so if you have a version that has the update you have mentioned on the mod page but not the additional strings that would be great.

- Version 1.2 - display last poster avatar in Board index and Message index.
- Version 2.0 - same as above plus last poster avatar in topic index.

(and remember - I cant use the package manager to install it because of the previous errors and the fact it doesnt support my theme. I was gonna try to install it to my theme manually and see if that  worked)



Quote from: JohnyB on March 01, 2008, 11:33:37 AM
Quote from: Kimmie on February 29, 2008, 11:59:46 PM
its me again...hehehe

I was going to attempt to manually install the mod and see if I got any of the previous errors - but when I tried to use the parser this is all that showed up on the page (this is from your latest version of the mod):

...
It didnt have this on the first version you had - it showed all the files that needed to be edited, etc,  but unfortunately I deleted that version when you made the new one

Hi Kimmie. Those are from the additional laguage translation. The parser needs updating to recognize alternate characters. You will be okay if you use the package manager.  Do you like a copy of the mod that does not have the additional translated language strings?

Title: Re: AvatarOnBoard
Post by: Bulakbol on March 02, 2008, 05:00:32 PM
@Kimmie. What theme are you using? I might as well add it to the supported theme. That way, it makes you and other's life easier.  :) If it still throw errors on you, then install it manually.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 02, 2008, 10:47:02 PM
Quote from: JohnyB on March 02, 2008, 05:00:32 PM
@Kimmie. What theme are you using? I might as well add it to the supported theme. That way, it makes you and other's life easier.  :) If it still throw errors on you, then install it manually.

hehe thanks.. not sure if you can incorporate the theme I am using though as its a Custom TP Theme but your more than welcome to give it a go.

I am using the BlueAce theme and you can find it here:

http://www.tinyportal.net/index.php?topic=20808.0
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 02, 2008, 11:00:27 PM
Hi again Kimmie. I am not member there so I can't download anything. Just attach the file in question and I'll shoot in the dark while you shoot under the sun. :P Let's see who can hit the target first. haha. I'm sure you will.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 03, 2008, 12:25:36 AM
lol your silly...okie dokie the theme is attached.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 03, 2008, 12:57:10 AM
Quote from: Kimmie on March 03, 2008, 12:25:36 AM
lol your silly...okie dokie the theme is attached.

Haha. Fun keep us young.  :D  Thanks. I'll make the neccessary changes to your Display.template.php. I'll get back to you.


<EDIT>
@Kimmie. The BlueAce theme does not have the files to be edited. Once the mod is installed and no errors, you are all set. Your theme uses the default files except for index.template.php so you are okay.  Let me know how I can help you to install this mod.
</EDIT>
Title: Re: AvatarOnBoard
Post by: Kimmie on March 03, 2008, 02:52:13 AM
Quote from: JohnyB on March 03, 2008, 12:57:10 AM
<EDIT>
@Kimmie. The BlueAce theme does not have the files to be edited. Once the mod is installed and no errors, you are all set. Your theme uses the default files except for index.template.php so you are okay.  Let me know how I can help you to install this mod.
</EDIT>


Well thats what I thought too orignally..hehe. When I initially installed it using the package manager, there were no "test failed" errors of any kind. Everything worked fine for a day or so, then I noticed that on certain boards (looking at the main forum page), if someone posted in a child board, their avatar wouldnt show up on the main page. Also - the avatars that show up on topic view (when using the avatar@index mod), no longer showed up. Then when I got those two errors in my log that I mentioned previously - one of them was due to new members not selecting an avatar before they posted the first time. The "noavatar" that is included with your mod wouldnt show up for them - and I think it was conflicting with the "no pic" that smf uses as a default avatar setting on new members.

What I will do is this: I will reinstall it via the package manager - give it a few days and see what happens..hehe. 


EDIT: ok is reinstalled.. no test failed errors and no errors in the error log. Its also left he avatars@index working like its supposed to. I will give you an update tomorrow and let you know how its working.  :P
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 03, 2008, 05:23:15 AM
No problem Kimmie but if the mod is conflicting with other mods, uninstall it because I don't think I can do anything about it.  :(
Title: Re: AvatarOnBoard
Post by: Kimmie on March 03, 2008, 06:01:39 PM
ok im back.. hehe.. I dont think its conflicting with other mods, I think the issue for the previous errors I had on my log (and the new ones I am about to post), are a problem with the noavatar settings in this mod, and the default (no pic) setting within smf for when a member doesnt choose an avatar.

This error is on a member that was already registered before I install the mod last night. His profile settings were set to (no pic) when I installed it, and still are. He logged onto the site today and made a few posts.

Quote8: Undefined index: avatar
File: /home/patriotg/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 58

I also got that very same error on another member (who was on and posted today), but she has an avatar set. (its an avatar that I uploaded to the server - not a default smf avatar).

I have had 31 people log in total today (most of which have made posts) and those are the only two errors I have gotten. The avatars showingf up on the topic view (from the avatar@index mod), still seem to be working fine.

I have attached 2 different messageindex files files because I dont know which one you need. When I am ftpd in, the first one is called MessageIndex.template.php and is a Broderbund Quick Prints file and the other says its a PHP~File
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 03, 2008, 06:22:55 PM
hehe Kimmie. I need your Sources/MessageIndex.php. I would like to check it if it's missing something. I got your MessageIndex.template.php.  Are there any effect of the error? Try this one to get rid of the error while waiting for your Sources/MessageIndex.php.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 03, 2008, 11:52:48 PM
hehe sorry.. I just upped the file it said the error was in... sawwy...

again upping two files - dont know which one you need..lol (WHY do most of these files have 2 of each...its confusing..lol)


Question about the other..when I downloaded it.. it named it "MessageIndex[1][1].template". Do I need to rename it to MessageIndex.template.php before I upload it?

EDIT: I just realized something....those errors are all happening when members post on one specific board. Gonna look further into that as well, while I patiently await your resply  (thanks for being so helpful)  :D

EDIT #2 - its happening in other boards as well now, and they are all child boards (or child boards of child boards). Its not happening on all of the child boards, just a few. I attached a screenshot showing one where the avatar doesnt show up - the last person to post in that area is one of my staff and has an avatar.  (the image is board view not topic view). However, when on the "main" forum page, the avatar shows up.

I havent uploaded the file you fixed for me yet, as I dont know if I am supposed to rename it back to what it was originally. Once I do hopefully these errors will stop and the avatars will show up like they are supposed to. :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 04, 2008, 04:42:24 PM
Hi Kimmie. The file with tilde (~) at the end of file extension, like MessageIndex.php~  is a backup file. I'll look at your MessageIndex.php again and see what I can find. I'll get back to you.

Regarding the avatar that shows noavatar.gif, is he/she using attached avatar? Or linked avatar? Or uploaded avatar? Try changing his/her avatar.

<EDIT>
  Try this one Kimmie. Edited MessageIndex.php is attached.
</EDIT>
Title: Re: AvatarOnBoard
Post by: Kimmie on March 04, 2008, 10:35:21 PM
THANK YOU for clearing that up for me as to which file is which..hehe.

I will get the new MessageIndex file uploaded and let you know how it goes. :)


EDIT: Here is a breakdown of the avatar issue (before I install the new messageindex file):

Note: These errors are happening on boards #56 & #57 which are child boards of a child boards if that makes sense to you..lol

1 - "new" member that just signed up - same error board #56 - all they did was view (no posts made). No avatar selected (using smf default (no pic) )

2 - Staff member - same board #56 -  shes using an avatar that she supplied the url for

3 - Me - board #57 - Im using an avatar from a group that I uploaded to the server (this is the only board it happens to me on)

4. - Member thats been there for a while Board #56- using an avatar selected from a group I uploaded to the server

(basically its only happening on 2 boards - with only certain members and its drivin me batty..lol)

Title: Re: AvatarOnBoard
Post by: Bulakbol on March 04, 2008, 10:43:43 PM
Cool. Let me know how it went.  :)
Title: Re: AvatarOnBoard
Post by: Kimmie on March 04, 2008, 11:04:29 PM
Nope still gettin them and the avatars are still not showing up  :(

Its weird that its only happening on those two boards and only a few people. I have other boards set up that have child boards and childs of those, but its not happening on those..

I think my forum is haunted..lol
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 04, 2008, 11:09:48 PM
hahaha try changing their avatars. Upload them yourself. If it's from external source, the source might be too slow or something. Ask them to reupload it and see if that will solve the problem.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 04, 2008, 11:12:06 PM
well the weird thing is.. their showing up on the main forum page but not when they are in board view on a child board. In addition - mine is one thats already on the server - avatars that many others are also using as well - but no errors from them

Heck I dunno..lol

Edit.. Ive changed mine to an smf avatar - errors. Changed it to (no pic) - errors, Changed it to (noavatar) - errors. I get them on all of them. :(

There has to be something wrong with those two boards and the way I have them set up. arrrrggg,

I have uninstalled it for the time being. I also reuploaded my original MessageIndex file because when I trired to unstall the mod with the one you updated for me, I had a few "test failed" messages. Once I reuploaded the original one I didnt get those.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 05, 2008, 11:33:42 PM
Well, there might be something wrong somewhere. Good move. Leave it uninstalled until you got rid of the problem. Or find another mod. lol have you tried  running the "Find and repair any errors." ? Admin -> Forum Maintenance.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 06, 2008, 12:49:36 AM
yeah I have done the find and repair errors via the forum, and have also done a repair both via cpanel, AND via myphpadmin..lol.

I have checked, rechecked, and triple checked the board permissions for those two boards and they are set up exactly like all my "Child of Child" boards are set up. The conflict has to be with another mod I have installed that alters some (or all) of the same files thins one does. Just not real sure why its not doing it on all the boards (or on all the boards those same members visit)

I may try and uninstall the avatar@index mod and then reinstall this one. (ive done so much I cant remember if I hav already tried that or not..lol)

thanks for ALL your help in trying to get this sorted out. It is very much appreciated.  :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 06, 2008, 01:48:54 PM
Hi Kimmie. Good luck bud. If you need my help, I'll do the best I can.
Title: Re: AvatarOnBoard
Post by: klra on March 07, 2008, 08:21:28 AM
Very nice Mod-

Just wanted to say thanks!

(http://img120.imageshack.us/img120/3567/aobsnapsh1.jpg) (http://imageshack.us)
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 07, 2008, 03:17:15 PM
Quote from: klra on March 07, 2008, 08:21:28 AM
Very nice Mod-

Just wanted to say thanks!


Aww Thanks a lot for the appreciation and compliment.  ;)
Title: Re: AvatarOnBoard
Post by: JungleBunny on March 13, 2008, 02:10:09 PM
Hi all :),

I have the same problems like Kimmie.
Think it is a prob between the default NO PIC ( when user have choosen no avatar ) and the NOAVATAR from this mod.
When I click from no pic to noavatar in my profile, I get the noavatar.gif and all is OK.
Will shown at the index.

Is it possible to make the no pic from SMF with the noavatar.gif from this mod ?
When someone choose that he do not want a avatar, he gets the noavatar.gif ;D

Some suggestions ?

Thanks
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 14, 2008, 04:47:59 AM
Hi JungleBunny. Thank you for using or trying this mod. This mod is set to use the noavatar.gif if members don't have their avatar set.  A new member does not have avatar. This mod should use the noavatar.gif for them. 

AFAIK,  the only problem here is when member use a link or url that does not exist or no image.   (Can't do anything about that). Or conflicting with other mod? Do you have other mods installed?  I might have time to look at them. There might be a conflict.

BTW, do the following in Admin -> Forum Maintenance. It might fix the problem.
- Optimize all tables to improve performance.
- Find and repair any errors.
- Recount all forum totals and statistics.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 14, 2008, 09:49:08 AM
Sorry guys. I found a very little bug. the f should be l. Kimmie and JungleBunny are right. They found the bug. It is now updated and the bug should be swatted into pieces.  :D

For those who want to fiddle with the codes, in Sources/MessageIndex.php, find
LEFT JOIN {$db_prefix}attachments AS att ON (att.ID_MEMBER = memf.ID_MEMBER)

and replace with
LEFT JOIN {$db_prefix}attachments AS att ON (att.ID_MEMBER = meml.ID_MEMBER)

The difference is the memf.ID_MEMBER. Should be meml.ID_MEMBER.

Those that doesn't want to edit their MessageIndex.php, download the updated one, uninstall the old one and reinstall.

Again, I apologize to everyone.
Title: Re: AvatarOnBoard
Post by: klra on March 14, 2008, 09:51:06 AM
Since my installation seems to be woking properly, do I need to make the correction?
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 14, 2008, 10:00:53 AM
Quote from: klra on March 14, 2008, 09:51:06 AM
Since my installation seems to be woking properly, do I need to make the correction?

You probably have version 1.2. But if you use 2.0, you have to edit your MessageIndex.php to make sure it reads the right avatar. It's only one character though.
Title: Re: AvatarOnBoard
Post by: Kimmie on March 14, 2008, 11:07:13 PM
COOL!! AWESOME! Cant wait to try it out!! Thanks JohnyB.. I will try it out and let you know how it goes... I am SO excited!! (can ya tell..lol)

Edit: Just installed 2.0: No errors on install, no errors in log, and all avatars are now showing up!!  :D I wont be 100% sure until a few posts are made by those members that had the issues, but I will let you know in a day or so. THANKS AGAIN for all your help and hard work! 
==============================================

EDIT: OK I the noavatar issue I think is resolved but I am still getting the error below when someone posts/views two specific areas on my site and I have narrowed down why:

8: Undefined index: avatar
File: /home/patriotg/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 58


OK I just did some checking and what I found out is, I dont think your mod is the problem now that you fixed the noavatar issue..lol. I removed the mod and checked the boards that are 3 levels deep - which is the ones that error is happening on - (Main board > child board > child board inside the 1st childboard). There is an issue on every one of those lowest level childboards where the last post wont show at all. It wont show up on that boards view, and it wont show up on the main page view. With your mod installed, it was also trying to pull the avatar of the last person that posted there and it couldnt because the last post wouldnt pull.

I dont know if that means there is an issue with the smf software and its just not set up to hav child boards inside child boards or if there is something wrong with "my" software...lol. At any rate, thats why its happening.

Now I have NO clue as to even where to start trying to figure out THAT one..lol. I know it has nothing to do with your mod, so I thank you again for all your help and I will now take THIS issue to a new topic and see if someone knows the answer.  :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 15, 2008, 01:20:47 PM
Wow Kimmie. That's heavy.  ;D Thanks for helping me find the bug.  Good luck.
Title: Re: AvatarOnBoard
Post by: amdisuk on March 16, 2008, 06:24:50 AM
I have to say this mod really looks good. Well done.

Al
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 17, 2008, 03:32:53 AM
Quote from: amdisuk on March 16, 2008, 06:24:50 AM
I have to say this mod really looks good. Well done.

Al

Thanks Al. It's one of my favorite mods.  ;D
Title: Re: AvatarOnBoard
Post by: wilsy on March 19, 2008, 03:27:43 AM
Hi guys,

I am getting "The package you tried to upload either is not a valid package or has become corrupted."

Can the author re-upload the files?

Regards,

Wilsy.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 19, 2008, 08:54:22 AM
Hi Wilsy. I tried to download the mod and no problem. However, I reuploaded the mod for you. Thanks for trying this mod.
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 19, 2008, 10:53:55 AM
wilsy, you're using 1.1.4, right?
Title: Re: AvatarOnBoard
Post by: Apllicmz on March 19, 2008, 02:09:50 PM
can explain about that cod
Quote<operation><!-- 77 -->
iam try to translate but she not work   


<!-- default/languages/ModSettings.portuguese.php  -->
<file name="$languagedir/ModSettings.portuguese.php">
<operation><!-- 77 -->
<search position="before"><![CDATA[$txt['who_enabled'] = 'Activar lista quem esta online ';]]></search>
<add><![CDATA[
$txt['disable_avatar'] = 'Ocultar avatar no quadro?';
$txt['board_avatar_width'] = 'Largura do avatar no quadro.';
$txt['board_avatar_height'] = 'Altura do avatar no quadro.';
$txt['display_childboards'] = 'Ocultar os sub-quadro?';]]></add>
</operation>
</file>
Title: Re: AvatarOnBoard
Post by: wilsy on March 19, 2008, 02:36:56 PM
Quote from: Eliana Tamerin on March 19, 2008, 10:53:55 AM
wilsy, you're using 1.1.4, right?

Yes, on 1.1.4

Quote from: JohnyB on March 19, 2008, 08:54:22 AM
Hi Wilsy. I tried to download the mod and no problem. However, I reuploaded the mod for you. Thanks for trying this mod.

Thanks Johny,

Still getting the error though :(

Regards,

Wilsy.
Title: Re: AvatarOnBoard
Post by: ccbtimewiz on March 19, 2008, 02:48:06 PM
Not sure if anyone has done this before, but I made it so the avatar links back to the profile rather then just be a image.

Code (boardindex.template.php or install.xml) Select

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['ID_ATTACH'] > 0 ?
'<a href="'.$scripturl.'?action=profile;u='.$topic['last_post']['member']['id'].'>
<img src="' . (empty($row_board['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row_board['ID_ATTACH'] . ';type=avatar' :
$modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />
</a>' : '


Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 19, 2008, 04:00:55 PM
I was thinking of doing that, but then I thought against it. I'd probably wind up clicking on them far too often.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 19, 2008, 06:02:52 PM
@Joomlamz
The <!-- 77 --> is a line number as a reference when I am testing the mod. It's commented-out so it's not part of the code. Are you going to translate the "Help" too?  I will add your translation later. Thanks.


@Wilsy.
Don't know what is wrong. There were 7 downloads already since I re-uploaded the package so, it might be working and the problem might be at your end. Use another browser and try to download it again.


@ccbtimewiz.
Cool. Thanks. I was thinking about it too but I always forget. :P Thanks for posting the code. It's a very good tip.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 19, 2008, 06:24:15 PM
Quote from: Eliana Tamerin on March 19, 2008, 04:00:55 PM
I was thinking of doing that, but then I thought against it. I'd probably wind up clicking on them far too often.

What about using other info instead of user profile? Something like PM or number of posts.
Title: Re: AvatarOnBoard
Post by: ccbtimewiz on March 19, 2008, 06:33:43 PM
Hm....why not:

- Link to their profile
- Link to their recent posts
- Link to the actual post they made.
Title: Re: AvatarOnBoard
Post by: Apllicmz on March 19, 2008, 09:30:16 PM
translate help

<!-- default/languages/Help.portuguse.php -->
<file name="$languagedir/Help.portuguese.php">
<operation><!-- 330 -->
<search position="before"><![CDATA[$helptxt['who_enabled'] = ' Esta opção permite ligar ou desligar a capacidade para os utilizadores para ver quem está navegando no fórum e aquilo que estão a fazer.';]]></search>
<add><![CDATA[
$helptxt['disable_avatar'] = 'Esta opção permite ligar ou desligar a exibição de avatares em Board index.';
$helptxt['board_avatar_width'] = 'Esta opção permite que você digite a largura do avatar para serem exibidos no quadro  índice. Digite 0 (zero) a utilizar o máximo de largura externa avatar configurações.';
$helptxt['board_avatar_height'] = 'Esta opção permite que você digite a altura do avatar para serem exibidos no quadro índice. Digite 0 (zero) a utilização max altura do avatar externo configurações.';
$helptxt['display_childboards'] = 'Esta opção permite a você ligar ou desligar o monitor da sub-quadro do Board index.';]]></add>
</operation>
</file>
Title: Re: AvatarOnBoard
Post by: wilsy on March 20, 2008, 04:37:51 AM
Quote from: JohnyB on March 19, 2008, 06:02:52 PM


@Wilsy.
Don't know what is wrong. There were 7 downloads already since I re-uploaded the package so, it might be working and the problem might be at your end. Use another browser and try to download it again.


Hi Johny,

I can download the zip from the mod site - I get the error when I try to apply it via the package manager?

Regards,

Wilsy.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 21, 2008, 04:12:30 AM
@Joomlamz. Thanks for the Portuguese language translation. Package updated.


@Wilsy. What was the error that you get? Attach the file in question and I'll edit them for you.


@SMF 2.0 Beta 3 Public users. The mod is now updated to work with the new SMF version. It is called AvatarOnBoard2.0.2.zip

Thanks for using/trying this mod.  ;)
Title: Re: AvatarOnBoard
Post by: LiteSpeed on March 24, 2008, 12:24:56 PM
after i applied this mod im having w3c markup validation errors :

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.myaltis.com%2Fforum%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&group=0


This page is not Valid XHTML 1.0 Transitional!

#  Line 273, column 137: value of attribute "align" cannot be "center"; must be one of "top", "middle", "bottom", "left", "right"

... width="35" height="35" align="center" border="0" />

The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the "selected" attribute must be either minimized as "selected" or spelled out in full as "selected="selected""; a value like "selected="true"" is not allowed.


any coder here on how to fix this ?
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 24, 2008, 01:29:18 PM
Hi LiteSpeed. You must have the first old version. Download the new one and find out if it still give you error. But if you want to fix the old version, then, open the file in Sources folder, BoardIndex.php and MessageIndex.php and change any occurences of "center" to "middle".

Title: Re: AvatarOnBoard
Post by: LiteSpeed on March 24, 2008, 09:12:15 PM
Quote from: JohnyB on March 24, 2008, 01:29:18 PM
Hi LiteSpeed. You must have the first old version. Download the new one and find out if it still give you error. But if you want to fix the old version, then, open the file in Sources folder, BoardIndex.php and MessageIndex.php and change any occurences of "center" to "middle".



thanks it worked perfectly .. thanks for this great mod :D
Title: Re: AvatarOnBoard
Post by: LiteSpeed on March 25, 2008, 09:24:54 AM
Hi JohnyB another question .. i just want the avatar to display in the board index  and not in the topic index .. v1.1 just displays on the board index. How do i make it display like 1.1 ?

Thanks
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 25, 2008, 10:05:36 AM
You haven't tried the settings on the admin panel?
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 25, 2008, 07:06:20 PM
Quote from: LiteSpeed on March 25, 2008, 09:24:54 AM<br />Hi JohnyB another question .. i just want the avatar to display in the board index  and not in the topic index .. v1.1 just displays on the board index. How do i make it display like 1.1 ?<br /><br />Thanks<br />

Hi LiteSpeed. In default/MessageIndex.template.php, find and comment-out these lines.

if (!$modSettings['disable_avatar'])
echo '
<td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center">
', $topic['last_post']['member']['avatar'], '
</td>';

Title: Re: AvatarOnBoard
Post by: ccbtimewiz on March 26, 2008, 03:21:34 PM
Yo JohnyB, I have a question about this modification.

Does it simply resize the avatar using HTML, or does it use PHP/Javascript to resize?

If true for one part, how would I go about changing the method?
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 26, 2008, 03:26:29 PM
HTML, ccbtimewiz.

If you're looking at a php method to resize via GD or something, I'd highly suggest caching those thumbs. Otherwise you're going to be placing a huge load on your server trying to create dynamic thumbnails every page load.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 26, 2008, 11:08:38 PM
Hi ccbtimewiz. Eliana is correct. I don't know about GD and I am slowly learning javascript so I can't help you with your question. Sorry.
Title: Re: AvatarOnBoard
Post by: robbie93 on March 29, 2008, 09:12:24 PM
hi JohnyB :D

is there any chance that this mod will work with Gothic_Rose?

thanks. :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 30, 2008, 02:52:07 AM
Quote from: robbie93 on March 29, 2008, 09:12:24 PM
hi JohnyB :D

is there any chance that this mod will work with Gothic_Rose?

thanks. :D

Hi Robbie. It should work on most theme if installed (manually) properly. Try to use the package parser and if you have problems after, let me know.

Package Parser (http://sleepycode.com/PackageParser/index.php)
Title: Re: AvatarOnBoard
Post by: robbie93 on March 30, 2008, 03:02:53 AM
ok,  i will try the parser Johny

thanks for the reply. :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 30, 2008, 03:06:07 AM
Quote from: robbie93 on March 30, 2008, 03:02:53 AM
ok,  i will try the parser Johny

thanks for the reply. :D

No worries. Post here if you encounter any problem. Let me know if you need assistance. Thanks for trying this mod.
Title: Re: AvatarOnBoard
Post by: robbie93 on March 30, 2008, 03:10:31 AM
hi,  i just tried running the mod through the parser and it wont take it for some reason :'(

great mod btw :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 30, 2008, 03:43:50 AM
Quote from: robbie93 on March 30, 2008, 03:10:31 AM
hi,  i just tried running the mod through the parser and it wont take it for some reason :'(

great mod btw :D

I think it's because of the additional language tanslation. You can edit the package and remove the other languages if you want, then feed it to the parser.

<edit>
What I can do to help you is... attach your BoardIndex.template.php and MessageIndex.php and I'll edit them for you.
</edit>
Title: Re: AvatarOnBoard
Post by: robbie93 on March 30, 2008, 01:48:16 PM
hi,  there is no boardindex.template for gothic_rose

there is a messageindex.php though,  what should i do?
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 30, 2008, 02:40:21 PM
If there is no boardindex.template.php file, then the mod should work perfectly for your main index page. You'll have to manually edit the MessageIndex.template.php file, though.
Title: Re: AvatarOnBoard
Post by: robbie93 on March 30, 2008, 03:48:25 PM
thanks for the reply Eliana,  do i download the messageindex.template.php from my cpanel then

attach it here?
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on March 30, 2008, 04:00:20 PM
Yes, attach it here and JohnyB will be able to edit it for you.
Title: Re: AvatarOnBoard
Post by: robbie93 on March 30, 2008, 05:09:42 PM
thank's again Eliana.

here you go JohnyB i hope i have done it right :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 31, 2008, 01:24:27 AM
Quote from: robbie93 on March 30, 2008, 05:09:42 PM
thank's again Eliana.

here you go JohnyB i hope i have done it right :D

Hi Robbie. I will be back and I'll make sure it done right. lol

<Edit>
I'm back. Here;s your MessageIndex.template.php. Try it and make sure it's working. Post here if there's any error. Thanks for using this mod.
</Edit>
Title: Re: AvatarOnBoard
Post by: robbie93 on March 31, 2008, 01:11:04 PM
hi, JohnyB

it works :D :D :D

thank you so much for all of you're help and for such a great mod, you're the best man ;D

thanks again :D

i really really love this mod thank you  :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 01, 2008, 01:04:03 AM
You are welcome Robbie. if there's any problem, just post here and I'll try my best to help.
Title: Re: AvatarOnBoard
Post by: MissyNL on April 06, 2008, 11:43:33 AM
Hi Johny.. maybe a stupid question, but wich version should i install? I have the 1.1.4 version of SMF.

Thanks!
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 06, 2008, 11:52:18 AM
Quote from: Lafemme on April 06, 2008, 11:43:33 AM
Hi Johny.. maybe a stupid question, but wich version should i install? I have the 1.1.4 version of SMF.

Thanks!

Hi Lafemme. Sorry for the confusion. The version 2.0 is for smf 1.1.4. The 2.0.2 is for SMF 2 beta 3 public. Thanks for trying/using this mod.  ;)
Title: Re: AvatarOnBoard
Post by: MissyNL on April 06, 2008, 12:10:23 PM
Yes offcourse.. I think i almost have installed every mod from you :D  When my forum is online.. i'm writing a article sobthat all the girls on my forum can thank you writers for the mods.. :D 


Title: Re: AvatarOnBoard
Post by: Bulakbol on April 06, 2008, 12:20:52 PM
Quote from: Lafemme on April 06, 2008, 12:10:23 PM
Yes offcourse.. I think i almost have installed every mod from you :D  When my forum is online.. i'm writing a article sobthat all the girls on my forum can thank you writers for the mods.. :D 


awww haha that will be too much Lafemme. A "thank you" from you is good enough for me. I thank you too for using my mods. If you need any help, just yell. lol  ;)
Title: Re: AvatarOnBoard
Post by: MissyNL on April 07, 2008, 02:13:36 PM
Well.. then your welcome :D

And thank you all for writing!! :D   lol
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 07, 2008, 07:05:09 PM
Quote from: Lafemme on April 07, 2008, 02:13:36 PM
Well.. then your welcome :D

And thank you all for writing!! :D   lol

Thanks again for the compliment.  ;) I enjoy writing but sometimes frustrated hehe.
Title: Re: AvatarOnBoard
Post by: MissyNL on April 08, 2008, 09:52:12 AM
Yes.. i can imagine.. also the help you provide to people.. i guess it takes up a lot of your time..
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 08, 2008, 06:20:59 PM
Quote from: Lafemme on April 08, 2008, 09:52:12 AM
Yes.. i can imagine.. also the help you provide to people.. i guess it takes up a lot of your time..

When I asked for help, SMF community rushed and I appreciated their effort. I am returning the favor. I would like to help as much as I can.  ;)


<note to everyone>
I combined the two versions to 1 package earlier but I forgot to include the noavatar.gif to the installation file. There were 15 downloaders.

Please redownload the package, uninstall and reinstall or copy the noavatar.gif from the package to avatars folder your self to save time. I apologize for my mistake.

Title: Re: AvatarOnBoard
Post by: jmil on April 10, 2008, 02:54:09 PM
Worked Great on BLACK45 Theme!!! Add it to your Accomplisments!! :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 10, 2008, 06:00:21 PM
Quote from: jmil on April 10, 2008, 02:54:09 PM
Worked Great on BLACK45 Theme!!! Add it to your Accomplisments!! :D

Thanks jmil. If you need assistance, Im here.  :P I know you installed manually by your self.
Title: Re: AvatarOnBoard
Post by: sorosh1 on April 17, 2008, 04:54:03 PM
Hai JohnyB GREAT MOD

I didnt have any problems with installing and it shows on my default theme (Core SMF theme)
But i use the Dilber MC (multi color) theme and it doesnt show up there.
Can you please help me? Can you tell me what to edit?
I would be really thankfull!

Sorosh
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 18, 2008, 05:53:39 AM
@sorosh1. This mod support the dilbermc but if it didn't show up, then edit your BoardIndex.template.php and the MessageIndex.template.php. Try using the Package parser (http://sleepycode.com/PackageParser/index.php) to edit manually. If you need assistance, let me know.  Thanks for using this mod.


Quote from: jmil on April 10, 2008, 02:54:09 PM
Worked Great on BLACK45 Theme!!! Add it to your Accomplisments!! :D

Thanks for the compliment jmil. And thanks for using this mod.  8)
Title: Re: AvatarOnBoard
Post by: sorosh1 on April 18, 2008, 09:18:21 AM
Thanks for your quick repley JohnyB. Package parser is not working. It get this:

QuoteGeneral Package Information
This is general information about the package, such as the package ID and name.
Package ID: JB:AOB
Package name: AvatarOnBoard
Package version: 2.0
Package type: modification


Installation instructions for SMF versions: 1.1 - 1.1.99
Readme:
Author:JohnyB Mod Name:AvatarOnBoard Version:2.0.2
Tested:Freshly installed SMF 1.1.4 and SMF 2.0 Beta 3 Public

This will install AvatarOnBoard mod version 2.0

AvatarOnBoard 2.0 - SMF 1.1.4
- This mod will display the avatar of last poster in Board index, Child board index and topic index.
- This will also disable or enable the display and hide the childboards.
- The switches on or off of child boards and avatars and the width and the height can be configured in
~ Admin -> Features and options -> Layout and Options. It's in the bottom.
- The default avatar width is 35 pixels and the default height is sero (0) pixels.
- Zero (0) in width, the settings in (Admin -> Attachments and Avatars Settings) will be used.
- Added switch on or off for the avatar on Board. To disable the avatar, tick the checkbox.
- Extended to last poster in topic index.

Supported SMF 1.1.4 Themes
- Aa New Damage
- Babylon
- Classic
- Default Core
- Dilber Multi Color
- Helios_multi
- wowdk_114v1

Supported SMF 2.0 Beta 3 Public Themes
- Babylon
- Classic
- Default Core

Note:
If during the installation skipped your theme, there must be something wrong. Do not continue the installation.
Install the mod manually. Use the Package Parser (http://"http://sleepycode.com/PackageParser/index.php).


--------------------------------------------------------------------------------

PHP script to execute: AvatarOnBoardDB114.php

Files installed
noavatar.gif will be copied to $boarddir/avatars
Modifications to SMF files

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 676: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE7 0xE3 0x6F 0x20 in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$helptxt['who_enabled'] = ' Esta op��o per in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpwf9Lm4', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472
Can you please tell me what to edit in BoardIndex.template.php and the MessageIndex.template.php? Or a other Package Parser?
Anyway thanks for all your help ;)
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 18, 2008, 09:53:15 AM
Hi soroshi1. The parser have problem parsing other language strings. Go here  (http://custom.simplemachines.org/mods/index.php?mod=1103) and under the mod's filename, you can see "Manual Install Instructions for SMF'. Select the version of SMF and click submit button. You can see the details. Let me know if you still have problem. 
Title: Re: AvatarOnBoard
Post by: Alan S on April 20, 2008, 05:10:39 PM
Hey , Bit of a problem

Using the Themis TP theme , I manualy installed it on the board index which works find. , However on the message index either the wrong avatar appears , the blank avatar icon appears , or its just a blank space?

It only happens on the topics within a board , The child board avatars display fine.

Screen: http://xs126.xs.to/xs126/08160/untitled388.jpg ( Sorry for the messyness , i done it quickly )

MessageIndex code ( A few lines of the code below the avatar code and above created )


   if (!empty($board['children']))
                        {
                                $children = array();
                                foreach ($board['children'] as $child)
                                {
                                        $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                        $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                }

                                echo '
                                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                        }

                        echo '
                                </td>';
if (!$modSettings['disable_avatar']) echo ' <td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center"> ', $board['last_post']['member']['avatar'], ' </td>'; echo '


                                <td class="smalltext" valign="middle" width="22%">';

                        if (!empty($board['last_post']['id']))
                                echo '
                                        ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
                                        ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];

                        echo '
                                </td>
                        </tr>';
                }


2nd bit in the messageindex


// Is this topic new? (assuming they are logged in!)
                if ($topic['new'] && $context['user']['is_logged'])
                        echo '
                  <a href="', $topic['new_href'], '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

                echo '
                                                <span class="smalltext">', $topic['pages'], '</span>
                                        </td>
                                        <td class="windowbg2" valign="middle" width="14%">
                                                ', $topic['first_post']['member']['link'], '
                                        </td> ';
                                              if (!$modSettings['disable_avatar']) echo ' <td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center"> ', $board['last_post']['member']['avatar'], ' </td>'; echo '

                                        <td class="windowbg2" valign="middle" width="22%"><span class="small2text">
                                               <a href="', $topic['last_post']['href'], '">
                                               <img alt="go" src="', $settings['images_url'], '/newmark.gif" align="right" hspace="3" border="0" /></a>
                                                ', $topic['last_post']['time'], '<br />
                                                ', $txt[525], ' ', $topic['last_post']['member']['link'], '

                                        </span></td>';

                // Show the quick moderation options?


Title: Re: AvatarOnBoard
Post by: Bulakbol on April 26, 2008, 01:48:06 PM
Hi AlanS. I apologize for the late reply. I lost my ISP for 3 days and used cafe (slow) to login. I got back my ISP and am here again. Please attach your edited BoardIndex.template.php and MessageIndex.template,php. I would like to see them both.

Again, I apologize for the late reply.
Title: Re: AvatarOnBoard
Post by: Alan S on April 26, 2008, 03:34:17 PM
No problem , I know these things can happen! Experienced it myself a few times so no worries!

Board & Message Index attached

The forum is running 1.1.4 , It is a heavly moded forum and there are a few custom edits in both the files i made myself

Theme is Tinyportal_Themis

Thanks
Title: Re: AvatarOnBoard
Post by: Scferg on April 26, 2008, 03:42:10 PM
Well, here's where you told me to post.

I've attached my two files.

Thanks!  ;)
Title: Re: AvatarOnBoard
Post by: Marcus Forsberg on April 26, 2008, 03:55:02 PM
Swedish translation:

ModSettings.swedish.php:
$txt['disable_avatar'] = 'Göm avatarer på tavlan?';
$txt['board_avatar_width'] = 'Bredd på avatar.';
$txt['board_avatar_height'] = 'Höjd på avatar.';
$txt['display_childboards'] = 'Göm deltavlorna?';

Help.swedish.php
$helptxt['disable_avatar'] = 'Denna funktion aktiverar eller avaktiverar avatarer på tavlor';
$helptxt['board_avatar_width'] = 'Här skriver du vilken bredd avatarer ska ha. Skriv 0 för att använda standardbredden.';
$helptxt['board_avatar_height'] = 'Här skriver du vilken höjd avatarer ska ha. Skriv 0 för att använda standardhöjden.';
$helptxt['display_childboards'] = 'Denna funktion gör att avatarerna syns/inte syns på deltavlor.';
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 26, 2008, 04:29:53 PM
@AlanS. I'll check your template files. I'll get back to you of course.  :)

@scferg. I'll attach your template files after I finish editing them.

@MTF95. Thanks for the translation. I'll update the package later.


<EDIT>
@AlanS. Can you check something for me because the first version has a bug.  In Sources/Message.php, look for
att.ID_ATTACH, att.attachmentType, att.filename, meml.avatar,
and make sure that the last field is meml.avatar and not memf.avatar.

@scferg. Your theme use the default/MessageIndex.template.php so you don't have to edit that one. Here's your edited BoardIndex.template.php. Make sure you install the mod before using this template.

@MTF5. Package is updated. Thanks.
</EDIT>
Title: Re: AvatarOnBoard
Post by: Scferg on April 26, 2008, 06:53:01 PM
I uploaded your BoardIndex.template.php, but nothing changes =/

The mod is installed, but the avatars aren't showing up. I've gone into the Admin interface and see if it was turned off, but it's turned on...

<Edit>
If you need to see where my forum is, it's http://thesimsnews.com/forum or http://forums.thesimsnews.com
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 26, 2008, 07:30:24 PM
Hi scferg. Try this one. Maybe I copied the wrong one. Sorry about that.
Title: Re: AvatarOnBoard
Post by: Scferg on April 26, 2008, 08:42:16 PM
Works perfect! Thanks

And is it possible for the image to link to that user's profile? I've tried something like this:

<a href="?action=profile;u=', $topic['last_post']['member']['ID'], '">', $topic['last_post']['member']['avatar'], '</a>

I know the ', $topic['last_post']['member']['ID'], ' part isn't right because i just made the ['ID'] up. So any ideas?

<Edit>
Nevermind, I got. All I had to do was make the ID lowercase ...wow...
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 26, 2008, 09:03:48 PM
Do you want to link the avatar to the last poster's profile?
<a href="?action=profile;u=', $board['last_post']['member']['id'], '">', $board['last_post']['member']['avatar'], '</a>

<edit> ah ok :) </edit>
Title: Re: AvatarOnBoard
Post by: Alan S on April 27, 2008, 07:30:44 AM
Quote from: JohnyB on April 26, 2008, 04:29:53 PM
@AlanS. I'll check your template files. I'll get back to you of course.  :)

@scferg. I'll attach your template files after I finish editing them.

@MTF95. Thanks for the translation. I'll update the package later.


<EDIT>
@AlanS. Can you check something for me because the first version has a bug.  In Sources/Message.php, look for
att.ID_ATTACH, att.attachmentType, att.filename, meml.avatar,
and make sure that the last field is meml.avatar and not memf.avatar.

@scferg. Your theme use the default/MessageIndex.template.php so you don't have to edit that one. Here's your edited BoardIndex.template.php. Make sure you install the mod before using this template.

@MTF5. Package is updated. Thanks.
</EDIT>

I assumed you ment MessageIndex.php , And yes it is meml.avatar in it.
Title: Re: AvatarOnBoard
Post by: Bulakbol on April 27, 2008, 05:34:51 PM
Hi AlanS. Oppsss sorry. Yes, I meant MessageIndex.php. It's ok then.

There's a line of code in both your BoardIndex.template.php and MessageIndex.template.php that isn't part of the mod. It displays blank space instead of the "noavatar.gif" to guests.
', $context['user']['is_guest'] ? '' : $board['last_post']['member']['avatar'], '

Not sure if that's the cause of displaying blank avatar. Try removing it and see if that fix the problem.
Title: Re: AvatarOnBoard
Post by: Irmy on May 02, 2008, 12:19:35 PM
Me aparecern unos textos con letras como chinas al abrir directamente el archivo instal  y aque me aparecen errores ???

http://modparser.dev.dansoftaustralia.net/index.php
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on May 02, 2008, 12:40:30 PM
Please post in English outside of the localized support boards.
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 02, 2008, 01:17:56 PM
@Irmy.
    Sorry, I don't speak your language.  :( If you can, please post in English and I'll try to fix the error.


@Eliana.
    Thanks for the reminder.  ;) And oh, congratz! 
Title: Re: AvatarOnBoard
Post by: Irmy on May 02, 2008, 04:07:56 PM
Thank you, and I install it works very well

(I do not speak English)
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 02, 2008, 04:12:00 PM
Quote from: Irmy on May 02, 2008, 04:07:56 PM
Thank you, and I install it works very well

(I do not speak English)

That's good to know it works.  Well, you just did speak English. :D If you need assistance, let me know. Thanks for using this mod.
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on May 02, 2008, 04:24:54 PM
Quote from: Irmy on May 02, 2008, 04:07:56 PM
Thank you, and I install it works very well

(I do not speak English)

It doesn't matter if you speak English or not. There are online translators to convert your language to English. But you must speak English outside of the localized support boards.

@JohnyB, thanks!
Title: Re: AvatarOnBoard
Post by: ccbtimewiz on May 03, 2008, 10:05:18 PM
Quote from: Eliana Tamerin on May 02, 2008, 04:24:54 PM
Quote from: Irmy on May 02, 2008, 04:07:56 PM
Thank you, and I install it works very well

(I do not speak English)

It doesn't matter if you speak English or not. There are online translators to convert your language to English. But you must speak English outside of the localized support boards.

... she spoke Spanish. One of the most easiest and recognizable languages in the world next to English.

Personally, I find giving support easier when it's given in the user's native language. That's why I help out with most of the Spanish people. :P

Also, online translators suck horribly. I put in "How are you?" to translate into Polish then translated it back and I got back "Why am me?" I wouldn't rely on them. ^^;
Title: Re: AvatarOnBoard
Post by: Eliana Tamerin on May 03, 2008, 11:16:28 PM
Yes, but I don't speak Spanish. And, actually, according to statistics, the most recognizable language in the world (just going by the number of people who speak it) next to English is Hindi. Spanish is just after that, though.

Anyways, there's a reason that there are localized boards for support in people's native languages. It's so the people that don't know someone's language aren't confused or unable to assist.

Oh, and there are some good translators for Spanish online. I forget where, but some people have gone to long lengths to make sure there is a good translation matrix.
Title: Re: AvatarOnBoard
Post by: humbleworld on May 03, 2008, 11:39:30 PM
Hi JohnyB,

Avatar on Board is not a valid XHTML in DilberMC theme. 23 errors for 23 boards with this note from validator.w3.org

Line 261, Column 143: value of attribute "align" cannot be "center"; must be one of "top", "middle", "bottom", "left", "right".

... width="35" height="35" align="center" border="0" />
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 04, 2008, 09:54:56 PM
Hi Humbleworld. You probably have the very first version. Download the new package and try it again. It's been fixed couple of days after its first release. If the problem still exist, please let me know. I thank you for trying/using this mod.  ;)
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 04, 2008, 10:03:42 PM
Quote from: Irmy on May 02, 2008, 12:19:35 PM
Me aparecern unos textos con letras como chinas al abrir directamente el archivo instal  y aque me aparecen errores ???

http://modparser.dev.dansoftaustralia.net/index.php

Let me do the translation heh.

It appear that the first letter is in chinese and won't open directly upon installation and with errors.  :P

Title: Re: AvatarOnBoard
Post by: humbleworld on May 05, 2008, 05:19:54 AM
Quote from: JohnyB on May 04, 2008, 09:54:56 PM
Hi Humbleworld. You probably have the very first version. Download the new package and try it again. It's been fixed couple of days after its first release. If the problem still exist, please let me know. I thank you for trying/using this mod.  ;)

Thank you Johnny. Do I need to delete the previous version before I install the latest one?
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 10, 2008, 02:10:47 AM
Hi humbleworld.  Sorry for the delayed reply. Yes, uininstall the old one and install the new one. Let me know how things goes.
Title: Re: AvatarOnBoard
Post by: yume_kokoro on May 13, 2008, 10:46:52 AM
Awesome mod - I recently installed on SMF 1.1.5 and I've been getting this error in my log:

QuoteUndefined index: avatar
in ... /MessageIndex.template.php
Line: 58

From reading earlier posts, I understand why the error is occurring
... I was just wondering if there's a solution?
Title: Re: AvatarOnBoard
Post by: ccbtimewiz on May 13, 2008, 12:32:04 PM
Could you show us that line on your template?
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 13, 2008, 09:45:59 PM
@ccbtimewhiz
He probably mean this line
', $board['last_post']['member']['avatar'], '


Quote from: yume_kokoro on May 13, 2008, 10:46:52 AM
QuoteUndefined index: avatar
in ... /MessageIndex.template.php
Line: 58

From reading earlier posts, I understand why the error is occurring
... I was just wondering if there's a solution?

To get rid of the error, in MessageIndex.template.php
Code (look for) Select
', $board['last_post']['member']['avatar'], '


Code (replace with) Select
', isset($board['last_post']['member']['avatar']) ? $board['last_post']['member']['avatar'] : '', '
Title: Re: AvatarOnBoard
Post by: yume_kokoro on May 14, 2008, 08:58:01 AM
Apologies for the delayed reply.

Thanks, JohnyB - that seems to have done the trick :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 14, 2008, 04:22:15 PM
Quote from: yume_kokoro on May 14, 2008, 08:58:01 AM
Apologies for the delayed reply.

Thanks, JohnyB - that seems to have done the trick :)

Apology accepted. Wait, you don't have to apologize. You reply faster than I do.  :P
You're welcome BTW. 'Glad to be of help.
Title: Re: AvatarOnBoard
Post by: Marcus Forsberg on May 17, 2008, 02:42:09 AM
Could u help me install this on Kelo-lt?
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 23, 2008, 01:32:32 AM
Do you still need assistance MTF95?
Title: Re: AvatarOnBoard
Post by: tatore on May 29, 2008, 09:20:24 AM
Hi, JohnyB.
I'm not finding a way to customize a VisionMc theme.
When you have  a chance...
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 29, 2008, 03:29:44 PM
Hi Tatore. I'll get back to you.
Title: Re: AvatarOnBoard
Post by: tatore on May 29, 2008, 03:31:54 PM
Quote from: JohnyB on May 29, 2008, 03:29:44 PM
Hi Tatore. I'll get back to you.
You're great.
The mod is already installed. Just troubles to find the right place to put your code  :P
Title: Re: AvatarOnBoard
Post by: Sheila * R on May 29, 2008, 06:18:12 PM
SMF version: 1.1.5

Theme: CS Classic / serv Ramadhan

Default Forum Language: English


After installation of this mod it appears that under "Features and Options - Layout and Options" there is a sixth section added. There are two check boxes and two fill-in boxes (1st has "35" in it and the 2nd has "0"), however, there is no text next any of them to indicate what they are for.

Title: Re: AvatarOnBoard
Post by: Bulakbol on May 30, 2008, 12:32:57 AM
@tatore.
Try the attached BoardIndex.template.php and MessageIndex.template.php. Let me know if they are ok.

@Mother's Luv.
You could be using english-utf8. Go to Admin panel -> Server Settings -> Core Configuration. Check the "Default Forum Language" if it is not english-utf8.
Title: Re: AvatarOnBoard
Post by: tatore on May 30, 2008, 07:54:01 AM
It works great.
I've just changed and/or uncommented an echo'
replacing:

    // Here's where the "Info Center" starts...(modified)
//    echo '
//    <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
echo '<tr>
            <td class="catbg" colspan="2">', $txt[685], '</td>
        </tr>';


with
// Here's where the "Info Center" starts...(modified)
    echo '
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
            <td class="catbg" colspan="2">', $txt[685], '</td>
        </tr>';


That was breaking a bit the layout of the info center-


Great job, really. Thank you a lot for your fast support. ;)
Title: Re: AvatarOnBoard
Post by: Sheila * R on May 30, 2008, 01:58:33 PM
Quote from: JohnyB on May 30, 2008, 12:32:57 AM
@Mother's Luv.
You could be using english-utf8. Go to Admin panel -> Server Settings -> Core Configuration. Check the "Default Forum Language" if it is not english-utf8.

I am on English, not english-utf8
Title: Re: AvatarOnBoard
Post by: ccbtimewiz on May 30, 2008, 02:50:25 PM
Quote from: A Mother's Luv on May 30, 2008, 01:58:33 PM
Quote from: JohnyB on May 30, 2008, 12:32:57 AM
@Mother's Luv.
You could be using english-utf8. Go to Admin panel -> Server Settings -> Core Configuration. Check the "Default Forum Language" if it is not english-utf8.

I am on English, not english-utf8

Are you using a different language other than English for your own account? If not, please attach your modifications.english.php file.
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 30, 2008, 06:13:01 PM
@tatore.
Glad to know you got everything sorted out. :)

@Mother's Luv.
Language strings are missing. If you have access to your SMF files, I'll tell you which files and what strings to add.
Title: Re: AvatarOnBoard
Post by: sorosh1 on June 03, 2008, 06:27:29 PM
can you please help me i have a little problem:

I have installed the mod and edit for Diber MC theme and the mod works but i have the fallowing problem.

There is a large grey line on the right side like you see in the attach image.

Can someone please help me with resolving this?

Thanks, sorosh
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 03, 2008, 07:00:29 PM
Attach your MessageIndex.template.php sorosh1 and I'll see what I can do.
Title: Re: AvatarOnBoard
Post by: sorosh1 on June 03, 2008, 07:30:49 PM
WOW thanks for your quick repley :D

This is my MessageIndex.template.php of my diber mc theme.
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 03, 2008, 07:58:27 PM
@Sorosh1.  There's nothing wrong with your MessageIndex.template.php. Can you post a link to your forum?

EDIT: wait, I'll double check it again.


EDIT@: Try this one sorosh1.
Title: Re: AvatarOnBoard
Post by: sorosh1 on June 03, 2008, 08:20:46 PM
Yes Thanks it works! ;D

Thank you for your time and help!
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 03, 2008, 08:28:19 PM
You are welcome. Thanks too for using this mod.  :)
Title: Re: AvatarOnBoard
Post by: pumpituplive on June 06, 2008, 10:30:53 PM
Good JohnyB

here is my php,

My problem you reply for MP n.n, Thanks JohnyB


this is my files ^o^


Edited and removed the attached files.
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 07, 2008, 06:00:48 AM
Hi pumpituplive. Here are your files. Backup your BoardIndex.template.php and MessageIndex.template.php then install the mod. Upload the two files attached after the installation. Goodl luck!

Thanks for using this mod.
Title: Re: AvatarOnBoard
Post by: pumpituplive on June 07, 2008, 10:42:29 AM
Hi JohnyB

Very Very Thanks JohnyB, my forum is perfect with your MOD

now runs perfectly


Greetings


Attach a view from my forum n.n.
Title: Re: AvatarOnBoard
Post by: JoannaGlass on June 07, 2008, 01:42:44 PM
I was unable to parse the package so I could add it to other themes. I received an error.


Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 676: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE7 0xE3 0x6F 0x20 in /home/sleepy1/public_html/PackageParser/index.php on line 501

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <search position="before"><![CDATA[$helptxt['who_enabled'] = ' Esta op��o per in /home/sleepy1/public_html/PackageParser/index.php on line 501

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 501

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:501 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(501): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(470): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'theme') #2 /home/sleepy1/public_html/PackageParser/index.php(125): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme') #3 /home/sleepy1/public_html/PackageParser/index.php(823): parseArchive('/tmp/phpGzjSae', 'install', 'theme') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 501

Title: Re: AvatarOnBoard
Post by: Bulakbol on June 07, 2008, 04:48:40 PM
@pumpituptolive.
You are welcome. Nice looking forum of yours. You can change the size of the displayed avatar by going to Admin -> Featurers and Options -> Layout and Options.


@JoannaGlass.
Those are the language text strings that the parser cannot properly parse. You can use the in-built parser though. Go to the mod site, select your version and click submit.
Title: Re: AvatarOnBoard
Post by: acaip0 on June 08, 2008, 10:18:17 AM
than you master ;)
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 09, 2008, 02:15:21 AM
Quote from: acaip0 on June 08, 2008, 10:18:17 AM
than you master ;)

:P I am master of none. You're welcome. Thank you too for using this mod.  :)
Title: Re: AvatarOnBoard
Post by: Alan S on June 23, 2008, 05:00:14 PM
Hey , Do you know if this will work on ApolloBB? I didnt have a very good experience with this mod on Themis so i thought i'd ask first before giving myself a few hours of a headache.

Thanks.

- Alan
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 23, 2008, 05:34:31 PM
Hi Alan S. You can attach your apolloBB BoardIndex.template.php and MessageIndex.template.php here.  If I can't make it work for that theme, I'll let you know. :)
Title: Re: AvatarOnBoard
Post by: Alan S on June 24, 2008, 12:06:23 PM
Hey , Thanks. BoardIndex & MessageIndex attached.

There are a few modifications installed manualy on them already.

Title: Re: AvatarOnBoard
Post by: Bulakbol on June 24, 2008, 09:08:11 PM
Got your files Alan S. I'll get back you you.

EDIT:
Whew! Try these files Alan S. Keep a backup of your original ones.
Title: Re: AvatarOnBoard
Post by: Alan S on June 25, 2008, 11:53:40 AM
Those work.

Thanks very much!
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 25, 2008, 07:58:06 PM
Yiu are welcome Alan S. Thanks for using this mod.
Title: Re: AvatarOnBoard
Post by: 7earitup on June 26, 2008, 10:58:44 PM
Hey Johnny - you told me to remind you here about editing my files to include not only the Images on Board code, but also the Avatars on Board code. thanks! =P
Title: Re: AvatarOnBoard
Post by: cleanfiles on July 13, 2008, 10:57:02 PM
Hey guys,
I am using this mod and I think its great, just have a little issue with my BoardIndex.template.php, I compared it to one out of a default smf and it is very different. No matter how I try to add this bit of code it just wont work out for me.

</span></td>'; if (!$modSettings['disable_avatar']) echo ' <td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '','" class="windowbg2" align="center"> ', $board['last_post']['member']['avatar'], ' </td>'; echo '

It messes up the right side of the forum, the MessageIndex.template.php seems to be ok, see shots. I have attached the files for you to look at.

Board Index
(http://cp72.org/hostit/images/ugimf6344z862avclcff.jpg)

Message Index
(http://cp72.org/hostit/images/tzs12mwx4cwaeifayxfl.jpg)

Any help would be appreciated,
Thanks.
Title: Re: AvatarOnBoard
Post by: Bulakbol on July 14, 2008, 02:22:13 PM
@7earitup
  The custom theme you are using is a PITN. lol Messy and hard to read. But anyway, I managed to edit it. Attached. BoardIndex.template.php and MessageIndex.template.php.


@cleanfiles
  I'll see what I can do to your files. Which custom theme are you using?
Title: Re: AvatarOnBoard
Post by: cleanfiles on July 14, 2008, 08:54:49 PM
Quote from: JohnyB on July 14, 2008, 02:22:13 PM
@cleanfiles
  I'll see what I can do to your files. Which custom theme are you using?

I am using Absado by Fakdordes (http://custom.simplemachines.org/themes/index.php?lemma=525) with a few customizations of my own, and a lot of mods. I overwrote all the files and images in the default theme folder with the files from Absado theme. So it's Absado running out of the default theme folder.
You will find the BoardIndex.template.php is very messy, I never did get around to tidying it up.
Thanks for your help with this.
Title: Re: AvatarOnBoard
Post by: cleanfiles on July 17, 2008, 11:45:24 PM
How are we looking JohnyB? What do you think my chances are lol. :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on July 18, 2008, 12:27:42 AM
Sorry. I wasn't  feeling good and I was away for a day. I have your files and I'll see what I can do. I'll get back to you cleanfiles.
Title: Re: AvatarOnBoard
Post by: cleanfiles on July 22, 2008, 12:17:56 AM
Hope your feeling well JohnyB. Hope we can get this mod working, I would hate to have to uninstall it cos i like what it does..
Title: Re: AvatarOnBoard
Post by: Bulakbol on July 22, 2008, 06:13:53 AM
@cleanfiles
  Try the attached files.
Title: Re: AvatarOnBoard
Post by: cleanfiles on July 22, 2008, 10:42:18 PM
Thanks JohnyB, they work perfectly, great job mate. And a great mod. :)
Title: Re: AvatarOnBoard
Post by: justy_ on August 20, 2008, 05:16:16 PM
hello. im getting test failed at :

Quote./Themes/classic/BoardIndex.template.php
when i try to do the manual instructions to classic theme, the "find" string isnt found in there. any idea why?

im using the absado theme as well, but tweaked it with my preference.  here's our site:
http://she-geeks.com/forum   
Title: Re: AvatarOnBoard
Post by: ccbtimewiz on August 20, 2008, 05:43:35 PM
If you're not using the classic theme-- then I'd skip it.
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 21, 2008, 05:04:24 PM
@justy_

ccbtimewiz is right. You can skip that theme if you are not using it. You can go ahead with the installation ignoring the failed test.
Title: Re: AvatarOnBoard
Post by: linette97 on August 25, 2008, 06:53:41 PM
Hi JohnyB! I love your mod!! BUT I'm having trouble.. I just installed SMF 1.5 so I only have 2 members including myself. I installed your mod and it skipped files.. I decided to use Package Parser and this is what I get

QuotePHP script to execute: AvatarOnBoardDB114.php
Files installed

    * noavatar.gif will be copied to $boarddir/avatars

Modifications to SMF files

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 679: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE7 0xE3 0x6F 0x20 in /home/sleepy1/public_html/PackageParser/index.php on line 501

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <search position="before"><![CDATA[$helptxt['who_enabled'] = ' Esta op��o per in /home/sleepy1/public_html/PackageParser/index.php on line 501

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 501

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:501 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(501): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(470): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(125): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(823): parseArchive('/tmp/phpEWDTjK', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 501

Now I've been reading this whole post from beginning to ending trying to see if I can figure it out!
I'm using the Fire Theme so dunno if that's it.
Also I've been noticing that you ask people to attach files. Just in case you ask me to do the same
I have no idea where to get these files. I have no idea how to go and manually change codes in these files if needed!

So you are dealing with a complete newbie! LOL! Any help would be greatly appreciated! I would love to use your mod  & install it w/o a hitch before I open my site..

Thanks!
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 25, 2008, 07:33:43 PM
If you want to manually install it yourself, try the in-built  SMF Parser (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1103;attach=63401;smf_version=1.1.5). What are the files that failed the installation test? 
Title: Re: AvatarOnBoard
Post by: linette97 on August 25, 2008, 07:53:22 PM
Quote from: JohnyB on August 25, 2008, 07:33:43 PM
If you want to manually install it yourself, try the in-built  SMF Parser (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1103;attach=63401;smf_version=1.1.5). What are the files that failed the installation test? 
Thanks for the quick response!

Well it didn't have a "fail error"... Just "Skipping File" this is what it said..

1.  Extract File  ./avatars/noavatar.gif 
2. Execute Code AvatarOnBoardDB114.php
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/MessageIndex.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Help.english.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
10. Execute Modification ./Themes/dilbermc/BoardIndex.template.php Skipping file
11. Execute Modification ./Themes/dilbermc/MessageIndex.template.php Skipping file
12. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
13. Execute Modification ./Themes/babylon/MessageIndex.template.php Test successful
14. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
15. Execute Modification ./Themes/classic/MessageIndex.template.php Test successful
16. Execute Modification ./Themes/helios_multi11/BoardIndex.template.php Skipping file
17. Execute Modification ./Themes/helios_multi11/MessageIndex.template.php Skipping file
18. Execute Modification ./Themes/wowdk_114v1/BoardIndex.template.php Skipping file
19. Execute Modification ./Themes/wowdk_114v1/MessageIndex.template.php Skipping file
20. Execute Modification ./Themes/Aa_New_Damage/BoardIndex.template.php Skipping file
21. Execute Modification ./Themes/Aa_New_Damage/MessageIndex.template.php Skipping file
22. Execute Modification ./Themes/default/languages/ModSettings.portuguese.php Skipping file
23. Execute Modification ./Themes/default/languages/Help.portuguese.php Skipping file
24. Execute Modification ./Themes/default/languages/ModSettings.swedish.php Skipping file
25. Execute Modification ./Themes/default/languages/Help.swedish.php Skipping file
26. Execute Modification ./Themes/default/languages/ModSettings.dutch.php Skipping file
27. Execute Modification ./Themes/default/languages/Help.dutch.php Skipping file


Now I navigated to that link you gave me and I'm like WOW!! Ummmm I figured out how to modify the themes in Admin Cpanel... but the rest like for example from what you sent me

Where do I find these?
./Sources/

also at very end it says CODE
no idea where those are either..
Again thanks!

Oh btw.. I really rather not install myself ONLY if I have to! LOL .. looks crazy! But if I do I will try my best!
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 25, 2008, 08:13:54 PM
You can go ahead with the installation if you want.  Try using the default Theme to see if it is working. Then edit your Themes/Fire/BoardIndex.template.php and MessageIndex.template.php. Use a good text editor like Crimson editor or Notepad++ then find the codes. Do not use word precessor.
Title: Re: AvatarOnBoard
Post by: linette97 on August 25, 2008, 08:30:49 PM
Quote from: JohnyB on August 25, 2008, 08:13:54 PM
You can go ahead with the installation if you want.  Try using the default Theme to see if it is working. Then edit your Themes/Fire/BoardIndex.template.php and MessageIndex.template.php. Use a good text editor like Crimson editor or Notepad++ then find the codes. Do not use word precessor.

Ok I installed it and changed my theme to default, It works with that. so now all I have to do is modify the files you mentioned above right? I will let you know! :)

Oops, should I not use the admin Cpanel to modify it?
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 25, 2008, 08:45:34 PM
You can use the admin panel yes and if you make mistake, just use the default theme.
Title: Re: AvatarOnBoard
Post by: linette97 on August 25, 2008, 09:17:15 PM
Ugh Johny! I have no idea what I'm doing!! Ok this is what I did

I went in to modify ./Themes/fire/BoardIndex.template.php
I used notepad because I had trouble finding the codes... I choose to use "find" in notepad..
Ok so I'm trying to look for all these codes and I was only able to find and modify 1

if (!empty($board['children']))

Replace with
if (!empty($board['children']) && !$modSettings['display_childboards'])

Now for ./Themes/default/MessageIndex.template.php
I found only 2
The same one as above &
<td colspan="8" align="right">
Replace with
<td colspan="9" align="right">

I look and nada has changed! grrrr
I installed using the admin Cpanel, was that not ok? I did not install manually.
Please help me out if you have the time. I'm pretty lost.
Thanks again!

I've attached both files in case you need to look at it! I went ahead and returned it back to how it was...
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 25, 2008, 09:53:08 PM
The files that you attached are not complete files. You should use FTP program to download and upload files to your server.
Title: Re: AvatarOnBoard
Post by: linette97 on August 25, 2008, 10:46:49 PM
Quote from: JohnyB on August 25, 2008, 09:53:08 PM
The files that you attached are not complete files. You should use FTP program to download and upload files to your server.
Oops! I'm such a Noob! LOL! Sorry bout that.. I hope I did it right, I went to my FTP and downloaded the files from there into zip then saved it onto my PC....  here you go!
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 27, 2008, 05:03:23 AM
@linette97
   Try these files. If they won't work, let me know and I'll check them once more. Use them after installing this mod.
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 27, 2008, 05:03:58 AM
@linette97
   Try these files and let me know if they work.
Title: Re: AvatarOnBoard
Post by: bullbreedluverz on August 27, 2008, 07:56:33 AM
ive had a read thru this topic and i cant see a post(s) about changing the size of the avatar displayed on the board.

the displayed size of the avatar on the board is scaled to 35px × 35px but id like it to be scaled at 45px x 45px
as the forum avatar pictures (there not smf avatars, there 1s ive uploaded) become to compressed at the size they are being displayed at now and distort and i would also like the 45px x 45px to match the size of my new/old post icons that are 45px x 45px

can this be done?
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 27, 2008, 08:14:03 AM
Admin -> Features and options -> Layout and Options.
Title: Re: AvatarOnBoard
Post by: bullbreedluverz on August 27, 2008, 08:16:54 AM
cheers JohnyB
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 27, 2008, 08:18:20 AM
Cheers. You are welcome. :)
Title: Re: AvatarOnBoard
Post by: linette97 on August 27, 2008, 07:59:52 PM
Quote from: JohnyB on August 27, 2008, 05:03:58 AM
@linette97
   Try these files and let me know if they work.

Johny!! YOU ARE THE MAN!! it worked!! hahaha! & let me tell you, these past 2 days I've learned a lot on modifying my themes for mods! It's still a bit confusing but I came along way!

Thanks Johny!
Title: Re: AvatarOnBoard
Post by: haiwasnm on August 30, 2008, 01:14:58 PM
@JohnyB

my board like this , forum is smf1.1.5

How can i fiex it bug, thank you!
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 30, 2008, 03:04:58 PM
@linette97
   Cool. Glad you got everything in order.

haiwasnm
   You need an attribute of colspan in one of your td's. Attach your BoardIndex.template.php. I'll edit it for you.
Title: Re: AvatarOnBoard
Post by: haiwasnm on August 30, 2008, 09:25:38 PM
To JohnyB :
I have upload 'BoardIndex.template.php' ,  Thank you very very much !
Title: Re: AvatarOnBoard
Post by: Bulakbol on August 30, 2008, 10:30:40 PM
@haiwasnm
   Try this one. I added the codes that you missed to edit.
Title: Re: AvatarOnBoard
Post by: Contra on September 04, 2008, 12:20:49 PM
i use 1.1.5 Helios multi and it doesnt work at all...it works great with the default theme and such, but can you guys help?
Title: Re: AvatarOnBoard
Post by: Bulakbol on September 04, 2008, 09:32:01 PM
Try installing manually. The instruction is here. Try it.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1103;attach=63401;smf_version=1.1.5
Title: Re: AvatarOnBoard
Post by: David111567 on September 13, 2008, 01:31:46 PM
JohnyB,

Can you please tell me what edits are made in SQL when this mod is installed?  I need to manually remove this mod....and I need to get in with PHPMyAdmin and remove anything it added in Sql.  Can you help me, please?
Title: Re: AvatarOnBoard
Post by: Bulakbol on September 13, 2008, 06:18:05 PM
@David111567
There are four of them added to Settings table.
disable_avatar
board_avatar_width
board_avatar_height
display_childboards

Read the AvatarOnBoardDB114.php file that was included in the package. If you uninstall via package manager, the uninstaller will delete them from your table.
Title: Re: AvatarOnBoard
Post by: ruedigers on September 21, 2008, 08:27:29 AM
I love the mod, and the presentation of where to configure it!  Great idea  --  Good work!
Title: Re: AvatarOnBoard
Post by: Bulakbol on September 23, 2008, 05:39:40 PM
 8) Thanks for the compliment @ruedigers.
Title: Errors : AvatarOnBoard
Post by: tbh on September 26, 2008, 07:21:35 AM

Supported SMF 2.0 Beta 3 Public and Beta 4 Themes ?????LOL Below

- Babylon
- Classic
- Default Core
- ShinyBlue
       
Note:
    If during the installation skipped your theme, there must be something wrong. Do not continue the installation.
Install the mod manually. Use the Package Parser.
       

Install Actions
Installations actions for "AvatarOnBoard":
Installing this package will perform the following actions:
Type   Action   Description
1.   Extract File   ./avatars/noavatar.gif   
2.   Execute Code   AvatarOnBoardDB2B3.php   
3.   Execute Modification   install-2B.xml   Modification parse error
4.   Execute Modification   install-2B.xml   Modification parse error
5.   Execute Modification   install-2B4.xml   Modification parse error
6.   Execute Modification   install-2B4.xml   Modification parse error

Title: Re: AvatarOnBoard
Post by: Bulakbol on September 26, 2008, 11:51:43 AM
I found a double line in the 2.0 beta 3.1 uninstallation but I don't think it does something with Modification errors. Maybe your system does not like my mod. :)
Title: Re: AvatarOnBoard
Post by: tbh on September 26, 2008, 12:22:49 PM
 :( sad cry




Quote from: JohnyB on September 26, 2008, 11:51:43 AM
I found a double line in the 2.0 beta 3.1 uninstallation but I don't think it does something with Modification errors. Maybe your system does not like my mod. :)
Title: Re: Errors : AvatarOnBoard
Post by: Garry1953 on September 28, 2008, 06:03:48 PM
Quote from: tbh on September 26, 2008, 07:21:35 AM

Install Actions
Installations actions for "AvatarOnBoard":
Installing this package will perform the following actions:
Type   Action   Description
1.   Extract File   ./avatars/noavatar.gif   
2.   Execute Code   AvatarOnBoardDB2B3.php   
3.   Execute Modification   install-2B.xml   Modification parse error
4.   Execute Modification   install-2B.xml   Modification parse error
5.   Execute Modification   install-2B4.xml   Modification parse error
6.   Execute Modification   install-2B4.xml   Modification parse error

I get the same error when installing on v2.0 Beta 4
Title: Re: AvatarOnBoard
Post by: Bulakbol on September 28, 2008, 11:49:45 PM
@Garry1953 and tbh
Can you try the new package that I just uploaded? It's called AvatarOnBoard2b4.zip
Title: Re: AvatarOnBoard
Post by: Garry1953 on September 29, 2008, 01:46:26 AM
JohnyB

Installed AvatarOnBoard2b4.zip without errors.
Works fine in Default Theme.

Thanks.
Title: Re: AvatarOnBoard
Post by: tbh on September 29, 2008, 08:39:30 AM
Yep Thats work fine now. Fix is oke nog. Thank you for update ur mod.
Theo


So now i must see how fix the banana rama mods lol.


Quote from: JohnyB on September 28, 2008, 11:49:45 PM
@Garry1953 and tbh
Can you try the new package that I just uploaded? It's called AvatarOnBoard2b4.zip
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 01, 2008, 07:14:54 PM
That's great! Thanks for using/trying this mod.  Just post here if you have any problems/questions  :D
Title: Re: AvatarOnBoard
Post by: allumius on October 08, 2008, 05:28:52 AM
Hello
I use 1.1.6 and Damp theme. I tray to modifie the Boardindextemplate, but the manualmodifications do not work for this topic because I do not find the code to substituting
Can you help me please
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 09, 2008, 10:27:53 PM
@allumius
Attach your BoardIndex.template.php and I'll check it.
Title: Re: AvatarOnBoard
Post by: Sabre™ on October 11, 2008, 01:37:26 AM
Hey there JohnyB.

Could you find time to fix my themes board.index.template?
Ive sort of got it in there, but its looking like this
(http://img135.imageshack.us/img135/3373/fixjv0.png)
right click and select view for larger image

My categories can be selected to view as tabs also, so the code has been added twice in some circumstances to compensate.
You will see what I mean when you view it.
My MessageIndex.template.php is attached also as its structure is fairly different, and I know not nearly enough to add you mod.

Sorry for the extra load JB, Ive tried numerous times to complete this, but have hit a wall with it.

Your assistance is always appreciated.

Cheers :)

EDIT: Could you also add something like
// Johny added this   or something to this effect, to each edit you make?
I have an almost identical theme that I will need to manually add these to aswell.
It will also help me to see what I had missed :)

**removed templates**
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 11, 2008, 02:54:02 AM
Which theme are you using Sabre? I have your files. I'll get back to you.
Title: Re: AvatarOnBoard
Post by: Sabre™ on October 11, 2008, 04:02:55 AM
Cheers Johny
Im using [THIS] (http://www.tinyportal.net/index.php/action,tpmod/dl,item821.html) theme.
You have done these edits for me before, with your first version of this mod.
Unfirtunately I didnt save the files from that site before I took it offline.

Thanks once again mate :)
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 11, 2008, 04:48:45 AM
In your BoardIndex.template.php, line 42, change the "2" to "3"
Quote<td colspan="2">', $txt[20], '</td>

I see you installed ImagesOnBoard as well but your MessageIndex.template.php does not have it, would you like me to add it too?

<edit>
   I removed the ImagesOnBoard code from your BoardIndex.template.php because it's an old version. Reinstall it if you want it.

Here are your edited files. If you want to look for the codes I added, just search/find "JohnyB".
</edit>
Title: Re: AvatarOnBoard
Post by: Sabre™ on October 11, 2008, 05:32:30 AM
lol  You marked the edited places I had already made lol
I already know where they are! lol
So you changed the <td colspan="2">', $txt[20], '</td>  to  <td colspan="3">', $txt[20], '</td>??
Theres one thing I cannot find to fix, how do I realign this

(http://img49.imageshack.us/img49/5567/fixtu4.png)

See how the avy is in the posts column.
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 11, 2008, 06:11:15 AM
Sorry, I didn't notice it. Try this copy of BoardIndex.template.php

Title: Re: AvatarOnBoard
Post by: Sabre™ on October 11, 2008, 06:24:56 AM
Perfect Johny!
Thanks :)

May I ask what you changed, so I can make the edits to the other theme?
It is based off the same theme, just with my own extra additions.

Thank You


Never mind, a quick skim through and I found the edits.
Very nice :)
Thanks once again champ :thumbsup:
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 11, 2008, 06:29:50 AM
Sure. I put back the original colspan and edited another line.
Quote
<table border="0" width="100%" cellspacing="1" cellpadding="5" >
            <tr class="titlebg">
               <td colspan="2">', $txt[20], '</td>
               <td width="6%" align="center">', $txt[21], '</td>
               <td width="6%" align="center">', $txt[330], '</td>
               <td colspan="3" width="22%" align="center">', $txt[22], '</td>
            </tr>';
That's all.
Title: Re: AvatarOnBoard
Post by: Sabre™ on October 11, 2008, 06:32:34 AM
« Last Edit: Today at 09:29:20 PM by Sabre™ »

« Reply #289 on: Today at 09:29:50 PM »

Ooohh soo close! lol
Yeah, thanks mate, brilliant job!!

Cheers
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 14, 2008, 01:16:10 AM
hehe, so close but you didn't try hard.  :P  You're welcome Sabre.
Title: Re: AvatarOnBoard
Post by: Manu.G on October 16, 2008, 04:32:18 PM
Hi,

I'm sorry, but I'm to lazy to read all 15 sites here in the topic but I hope you can help me out. ;)

Since I have installed the Avatar on Board Mod I get these errors:
Quote8: Undefined index:  avatar
File: /../.../.../.../.../.../.../MessageIndex.template.php (main sub template - eval?)
Line: 73

This error has to do with the Avatars in the Childboards. I'm using the OverView Theme and have installed the mod manual. I checked till today several times the MessageIndex.template.php, but I really don't know where the mistake can be.  :-[
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 16, 2008, 07:38:52 PM
@Manu0372
Attach your Sources/MessageIndex.php and I'll take a look. Maybe you missed some codes.
Title: Re: AvatarOnBoard
Post by: Manu.G on October 17, 2008, 03:27:52 AM
Hi JohnyB,

here it is, thanks for your help. :D
Title: Re: AvatarOnBoard
Post by: allumius on October 18, 2008, 07:50:18 AM
Quote from: JohnyB on October 09, 2008, 10:27:53 PM
@allumius
Attach your BoardIndex.template.php and I'll check it.
is attached in this post
http://www.simplemachines.org/community/index.php?topic=223656.msg1742135#msg1742135
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 18, 2008, 11:32:15 PM
@Manu0372
I can't find anything wrong with your MessageIndex.php. Attach your MessageIndex.template.php and I'll look at the "avatar" error. It cound be coming from another mod and missing txt language string.

@allumius
Here's your edited Damp/BoardIndex.template.php. Let me know if there's error.
Title: Re: AvatarOnBoard
Post by: Manu.G on October 19, 2008, 08:03:56 AM
Here are my MessageIndex.template.php
Thanks again for your help JohnyB  :D
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 20, 2008, 12:07:03 AM
@Manu0372
Your files are fine to me. I am baffled. Attach your Sources/BoardIndex.php. That will be the last one to check.
Title: Re: AvatarOnBoard
Post by: nay27uk on October 30, 2008, 08:06:19 AM
hi i have installed this mod and i have to say i like it a lot, However i have noted one thing i would like help with resolving if you could.
ok here goes.
when your on the board index for example index.php?board=1.0 it does not seem to be layed out correct, the avatar and Last post (http://www.uk-giveaway.info/Forum/Themes/default/images/sort_down.gif) (http://www.uk-giveaway.info/Forum/index.php?board=1.0;sort=last_post) section is one, please see picture bellow.
I would like them to be seperat i.e a heading saying avatar with the avatar under it and then the Last post (http://www.uk-giveaway.info/Forum/Themes/default/images/sort_down.gif) (http://www.uk-giveaway.info/Forum/index.php?board=1.0;sort=last_post) section.

(http://www.uk-giveaway.info/screen2.jpg)
Title: Re: AvatarOnBoard
Post by: Bulakbol on October 31, 2008, 11:08:17 PM
To add "Avatar" column, edit your MessageIndex.template.php.
Code (find) Select
<td colspan="', !$modSettings['disable_avatar'] ? '2' : '', '" class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Code (replace) Select
<td class="catbg3 align="center">Avatar</td>
<td  class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Title: Re: AvatarOnBoard
Post by: nay27uk on November 02, 2008, 08:29:54 AM
Quote from: JohnyB on October 31, 2008, 11:08:17 PM
To add "Avatar" column, edit your MessageIndex.template.php.
Code (find) Select
<td colspan="', !$modSettings['disable_avatar'] ? '2' : '', '" class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';
Code (replace) Select
<td class="catbg3 align="center">Avatar</td>

<td  class="catbg3" width="22%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>';


Thanks it worked a treat
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 03, 2008, 09:25:26 PM
You're welcome.  8)
Title: Re: AvatarOnBoard
Post by: sombra on November 08, 2008, 09:37:35 AM
public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)

Undefined index: board_avatar_width

Undefined index: disable_avatar

the mods its working grat but i have this errors on my log is this normal?
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 08, 2008, 06:19:50 PM
I deleted your bump sombra. Do not bump your post within 24 hours.
Maybe the mod was not installed properly. Attach your Sources/BoardIndex.php and I'll take a look.
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 08, 2008, 06:58:06 PM
You attached the wrong file. I need to look at the Sources/BoardIndex.php.
Title: Re: AvatarOnBoard
Post by: sombra on November 08, 2008, 08:45:13 PM
hehe sorry
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 08, 2008, 09:02:47 PM
I assumed you were using SMF 1.1.6 that's why I asked for BoardIndex.php.  You didn't tell me that you are using Beta 4.  You were right the first time attaching Subs-BoardIndex.php.
Title: Re: AvatarOnBoard
Post by: sombra on November 08, 2008, 10:05:50 PM
heres mi file hope you can help me out
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 09, 2008, 11:58:47 PM
@sombra
There's nothing wrong with your file. Check your default/languages/ManageSettings.english.php and make sure the following lines exists.
$txt['disable_avatar'] = 'Hide avatar on Board?';
$txt['board_avatar_width'] = 'Width of avatar on Board.';
$txt['board_avatar_height'] = 'Height of avatar on Board.';
$txt['display_childboards'] = 'Hide the Child boards?';


If you are using language other than english, copy those lines to default/ManageSettings.{your language}.php.
Title: Re: AvatarOnBoard
Post by: sombra on November 10, 2008, 06:16:54 AM
they are there

$txt['disable_avatar'] = 'Hide avatar on Board?';
$txt['board_avatar_width'] = 'Width of avatar on Board.';
$txt['board_avatar_height'] = 'Height of avatar on Board.';
$txt['display_childboards'] = 'Hide the Child boards?';

im using darkbreak theme maybe its that?
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 11, 2008, 07:47:53 PM
Can you post a link to your forum? I'm not sure where the error is coming from. Attach your theme's BoardIndex.template.php too. I'll take a look.
Title: Re: AvatarOnBoard
Post by: sombra on November 11, 2008, 10:29:54 PM
its working freat mi forum its only that i notice that i had som error on my log and was asking if its somthing serius or not dont know hehe

public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)

Undefined index: board_avatar_width

Undefined index: disable_avatar

but ill see if it comes up againt i had deleted the error log and see if its aprears again ill let you know
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 11, 2008, 10:44:02 PM
Attach your BoardIndex.template.php and I'll try to get rid of the error.
Title: Re: AvatarOnBoard
Post by: sombra on November 12, 2008, 04:08:08 PM
i dont have that im the theme im using i need to bring you the one from the default them or?
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 12, 2008, 05:43:34 PM
If the theme you are using does not have its own BoardIndex.template.php, then it is using the default one. Attach that one to your next post.
Title: Re: AvatarOnBoard
Post by: sombra on November 12, 2008, 07:22:33 PM
ok
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 13, 2008, 09:03:11 PM
@sombra
Attach your Sources/ManageSettings.php. There's something wrong with your installation.
Title: Re: AvatarOnBoard
Post by: sombra on November 14, 2008, 04:19:46 PM
ok here it is
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 14, 2008, 09:33:37 PM
@sombra
I am baffled. I can't find anything wrong with your files. Try this BoardIndex.template.php.
Title: Re: AvatarOnBoard
Post by: sombra on November 15, 2008, 03:37:05 AM
well its ok do you thiink this errors can bring me trouble in the feature?
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 15, 2008, 03:22:46 PM
If you are getting lots of those errors then it is annoying. Try the BoardIndex.template.php that I gave you and see if it will get rid of the errors.
Title: Re: AvatarOnBoard
Post by: tyhgdgh on November 23, 2008, 04:54:43 AM
Great mod, but this...
(http://www.vgrecordist.com/forum/MGalleryItem.php?id=33)
can you tell me how to fix it?
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 23, 2008, 10:02:20 PM
@Nfanthr33
In MessageIndex.template.php, find
<td colspan="4" class="catbg">', $txt['parent_boards'], '</td>
and increase the value of colspan by 1. If there's no colspan, add it. If still won't work, attach your MessageIndex.template,php to your next post and I'll try to fix it.
Title: Re: AvatarOnBoard
Post by: tyhgdgh on November 24, 2008, 04:44:25 PM
fine, but how do i get it so it looks like parent boards?
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 25, 2008, 07:54:12 AM
I don't even know how the parent board looks like.
Title: Re: AvatarOnBoard
Post by: tyhgdgh on November 25, 2008, 05:19:11 PM
(http://www.vgrecordist.com/forum/MGalleryItem.php?id=35)
see
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 28, 2008, 04:08:42 AM
@Nfanthr33
The only difference I can see is you put the code in MessageIndex.template.php wrong. If you will attach your MessageIndex.template.php to your next post, I will try to correct the mistake.
Title: Re: AvatarOnBoard
Post by: tyhgdgh on November 28, 2008, 05:48:14 AM
here you go.
Title: Re: AvatarOnBoard
Post by: Bulakbol on November 28, 2008, 06:59:43 AM
Here you go. Try this copy.
Title: Re: AvatarOnBoard
Post by: tyhgdgh on November 28, 2008, 07:52:51 AM
Worked great! Thankyou!
Title: Re: AvatarOnBoard
Post by: Kreator on January 04, 2009, 05:53:39 PM
I am having a lot of trouble with this mod and the number of errors popping up are horrendous !!
I have gone over all my files checking all the manual installs to the ones i have and I can`t for the life of me see what is wrong.

all the edits appear to have been correctly applied> I am using 1.1.7 with default theme,

all I can think of is that the db_tables were not implemented .... how can I check ?
8: Undefined index: disable_avatar
File: /customers/animanon.com/animanon.com/httpd.www/Forum/Themes/default/BoardIndex.template.php
Line: 150

Here is the boardindex file  lines 150 and 119 are throwing up errors.
Title: Re: AvatarOnBoard
Post by: savek on January 08, 2009, 12:12:40 AM
First, thanks for the great mod.

I have some question, I manual modified this mod for work on smf 1.1.2 and juno theme, but in MessageIndex.template.php and BoardIndex.template.php, it's different from default theme.

for example,

(http://img140.imageshack.us/img140/5537/avataronboardmo3.th.jpg) (http://img140.imageshack.us/my.php?image=avataronboardmo3.jpg)

How can I correct it.

Ps.I've attached 2 problem files, if you want to see.

Thanks,
Title: Re: AvatarOnBoard
Post by: Bulakbol on January 08, 2009, 08:56:59 PM
@Kreator
Try this steps first before I modify your file. Go to Admin -> Features and Options -> Layout and Options, then tick the checkbox for "Hide avatar on board?" and then click on save. Then untick it and save again. Let's see if that will get rid of the error.

@savek
What is wrong with the display? I'll get back to you.
Title: Re: AvatarOnBoard
Post by: savek on January 09, 2009, 03:08:04 AM
Bulakbol, Thank for you reply.

When I've edited as attached image, error occur say 'parse error'.

edit: And I cannot see many code which this mod have to modified.

for example,

(http://img123.imageshack.us/img123/679/avataronboard01zq1.th.jpg) (http://img123.imageshack.us/my.php?image=avataronboard01zq1.jpg)


But when I search some keyword 'board['children'] in my MessageIndex.template.php file, it show look like here, that not same with above code.

(http://img123.imageshack.us/img123/7513/avataronboard02rl8.th.jpg) (http://img123.imageshack.us/my.php?image=avataronboard02rl8.jpg)

Title: Re: AvatarOnBoard
Post by: Bulakbol on January 12, 2009, 09:06:10 PM
@savek
Try the two files attached. let me know how it goes. Juno Theme.
Title: Re: AvatarOnBoard
Post by: savek on January 13, 2009, 11:29:07 PM
Thank you very much!, Bulakbol.

In BoardIndex page, It work great.

(http://img235.imageshack.us/img235/8913/brdindexzb5.th.jpg) (http://img235.imageshack.us/my.php?image=brdindexzb5.jpg)

But in MessageIndex page, It not show avatar after username.

(http://img61.imageshack.us/img61/7096/mssindexog8.th.jpg) (http://img61.imageshack.us/my.php?image=mssindexog8.jpg)

Thank again.
Title: Re: AvatarOnBoard
Post by: Bulakbol on January 17, 2009, 03:30:38 PM
@savek
Sorry about that. I think I missed something. Apologies. Try this MessageIndex.template.php attached.
Title: Re: AvatarOnBoard
Post by: savek on January 18, 2009, 09:09:28 PM
Bulakbol, Now It works great!, thank you for offering such a great help.

(http://img155.imageshack.us/img155/726/avataronboard03zk9.th.jpg) (http://img155.imageshack.us/my.php?image=avataronboard03zk9.jpg)
Title: Re: AvatarOnBoard
Post by: Bulakbol on January 19, 2009, 01:41:17 PM
No problem savek. You are welcome.
Title: Re: AvatarOnBoard
Post by: apadong.net on January 21, 2009, 03:57:10 PM
dear all,

why i can't use this mod to my own themes?

i'm using SMF 1.1.7 & if i use the default theme, it's worked.

please help me. thx ;)
Title: Re: AvatarOnBoard
Post by: Bulakbol on January 22, 2009, 09:57:04 PM
@apadong.net
You have to edit your custom Theme's BoardIndex.template.php and the MessageIndex.template.php manually.

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1103;attach=69907;smf_version=1.1.7
Title: Re: AvatarOnBoard
Post by: apadong.net on January 24, 2009, 05:09:49 AM
allright! thx for your help! ;)
Title: Re: AvatarOnBoard
Post by: Bulakbol on January 25, 2009, 08:24:25 PM
@apadong.net
Let me know if you need assistance.
Title: Re: AvatarOnBoard
Post by: manixless on February 06, 2009, 03:43:38 PM
hi johnny

well, my log of errors is huge by the same error:


Quote from: boardindex.php
http://harrypotteralive.com/colegio/index.php

Undefined index: custom_avatar_url
file: /home/harry/public_html/colegio/Sources/BoardIndex.php
Línea: 245

i don't know what could be the problem

thanks


Title: Re: AvatarOnBoard
Post by: Bulakbol on February 09, 2009, 10:55:53 PM
@manfred
Sorry for the delay. Are you still getting the errors? Did you get any errors when you installed this mod?
Title: Re: AvatarOnBoard
Post by: manixless on February 09, 2009, 10:59:16 PM
no problem Bulakbol and thanks for ask

the only error is

Undefined index: custom_avatar_url
file: /home/harry/public_html/colegio/Sources/BoardIndex.php
Línea: 245

the log rise up only for this error

thanks
Title: Re: AvatarOnBoard
Post by: Bulakbol on February 09, 2009, 11:40:59 PM
Not sure why you are getting that error. I would like to see your ManageAttachments.php. Attach to your next post.
Title: Re: AvatarOnBoard
Post by: SoulPleX on March 10, 2009, 04:36:37 PM
I am using DsV1 Theme by DzinerStudio. none of the code matches up for my theme. Can someone look at my file to see how to manually add?
Title: Re: AvatarOnBoard
Post by: abbyh on March 11, 2009, 06:09:18 AM
Quote from: SoulPleX on March 10, 2009, 04:36:37 PM
I am using DsV1 Theme by DzinerStudio. none of the code matches up for my theme. Can someone look at my file to see how to manually add?

The same as my theme Urban from Dziner Studio. Can I request to also help me out for this mod work on my theme? Thanks.
Title: Re: AvatarOnBoard
Post by: Mraza on March 27, 2009, 07:35:34 AM
thanks johnnyB for this great mod, but i can't install it. i am using cargo theme and the files named BoardIndex.template.php and MessageIndex.template.php are not seems to have those kind of coding which you describe in manuall editing, i am attaching both of my files here i hope you can help me to solve it out. thanks for your help johnnyB
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 28, 2009, 12:34:05 PM
@SoulPlex, abbyh and mraza
I could edit your BoardIndex.templatephp but I cannot guarantee that it doesn't break the layout. I have to test the mod to make sure it works to your theme as intended. Meaning, I need a copy of your theme which is I don't think you'll give me one.
Title: Re: AvatarOnBoard
Post by: Mraza on March 28, 2009, 01:02:44 PM
Quote from: Bulakbol on March 28, 2009, 12:34:05 PM
@SoulPlex, abbyh and mraza
Meaning, I need a copy of your theme which is I don't think you'll give me one.

man you are helping a lot so why we will not give you....knowledge is power and we respect of your help...i am sending you pm with the link from where you can download one copy of cargo theme...
Title: Re: AvatarOnBoard
Post by: C4G-TK on March 30, 2009, 08:12:40 PM
I am using RC1 on the default theme.  I did download the correct file from the mod site.  My problem is that I have a few other mods installed and therefore I can't get the edits to work on the BoardIndex.template and the MessageIndex.template files. 

The edits that I can't get for each are:

BI.t = 2nd & 3rd edits
MI.t = 2nd edit.

*I did fool around with the MI.t file and made an edit, but the avatar only showed up on the childboards and not anywhere else inside the message index.  I think this is because I have the Separate Sticky/Normal Posts mod and would need additional edits.

Any help for this incredible mod is greatly appreciated.
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 31, 2009, 05:56:23 PM
@C4G-TK
Here are your edited files. Use them after installing this mod. Keep a backup of the original files first.
Title: Re: AvatarOnBoard
Post by: C4G-TK on March 31, 2009, 09:03:09 PM
Thanks much and I'll be sure to switch my images over from .ico, too!  Just in case! ;D
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 31, 2009, 10:44:17 PM
Let me know if the problem persist.
Title: Re: AvatarOnBoard
Post by: Mraza on March 31, 2009, 11:02:43 PM
Quote from: Bulakbol on March 31, 2009, 10:44:17 PM
Let me know if the problem persist.

JohnyBro i am waiting for any help ....maybe you forget us :-[
Title: Re: AvatarOnBoard
Post by: Bulakbol on March 31, 2009, 11:14:39 PM
@mraza
I am confused. I don't know where to stick the avatars in your cargo theme.
Title: Re: AvatarOnBoard
Post by: C4G-TK on April 01, 2009, 12:51:39 AM
IT WORKED!!

Thank you much!
Title: Re: AvatarOnBoard
Post by: romper on May 26, 2009, 10:33:43 AM
Can you help me put (if possible) avatars on board on BLues Mc.
Here is my board.index
Title: Re: AvatarOnBoard
Post by: Patriot89 on May 27, 2009, 06:35:20 PM
Some instances they do not have an image at all for their avatars, why is this? I know I don't have an avatar but it shows a silhouette image but others don't have any..
Title: Re: AvatarOnBoard
Post by: JBantha on May 28, 2009, 07:31:55 PM
The problem I got is that whit the avatar in board the column names doesn't fit whit the real column fuction

it looks like:




Colum Name as show:Forum NameMessagesTopicsLast Message-No Name-
Colum Actual Function:Shows the forum's NameShow the number of MessagesHere is the problem, Here is where the Avatar Is show Here is show the number of topicsHere's where the last message is show

Here's how it looks like:
(http://i124.photobucket.com/albums/p17/JBantha/ColumnsSS.png)

SO, can you please help me to rename the columns or something like that?
It's nothing tragical, but i just don't like the way it looks.

The Theme Name is Calypso and here's the forum address: http://kakkoii-cr.com/foro/index.php

Thank you! ^^
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 29, 2009, 02:56:24 AM
@romper
I can't find the custom theme you mentioned. A link to the theme will help. I can't do edits for now until I have your theme for testing.

@Patriot89
This mod will not detect if there's problem with your members avatar. It will only use a shadow avatar for those who does not have avatar.

@JBantha
There might be a problem with colspan attribute on one of the td tags.  Attach your BoardIndex.template.php and link to your custom theme so I can install the theme and check your file.
Title: Re: AvatarOnBoard
Post by: romper on May 29, 2009, 11:50:23 AM
Here it is:

http://custom.simplemachines.org/themes/index.php?lemma=750 (http://custom.simplemachines.org/themes/index.php?lemma=750)
Title: Re: AvatarOnBoard
Post by: Bulakbol on May 31, 2009, 03:07:31 AM
I got it. Where do you want the "last poster's avatars" to be displayed?
Title: Re: AvatarOnBoard
Post by: ოկtђ on May 31, 2009, 03:16:21 AM
Great Mod. I've enjoyed
Title: Re: AvatarOnBoard
Post by: romper on June 01, 2009, 01:37:18 AM
Quote from: Bulakbol on May 31, 2009, 03:07:31 AM
I got it. Where do you want the "last poster's avatars" to be displayed?

Whell, here is a look on my forum: www.zboriste.com (http://www.zboriste.com) so I guess right side, like in default theme is the best place.
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 02, 2009, 01:25:01 AM
@Mythcomeback | Burak
Thanks for the compliment.  ;)

@romper
Hmnn it's kind of weird to see avatars on the left side of post count.
Title: Re: AvatarOnBoard
Post by: romper on June 03, 2009, 12:08:49 AM
Yes, I agree. I placed your mod on default theme and Dilber....it looks great there, and users can pick those two themes as well.
Title: Re: AvatarOnBoard
Post by: Manu.G on June 21, 2009, 05:08:17 PM
Hi Bulakbol,

I don't know since when we use your mod, till today it wasn't a problem for me to add your mod to the forum themes we had, but this time I don't get it to work.  :'(
That's why I ask for your help.
We want to use the theme Redx http://custom.simplemachines.org/themes/index.php?lemma=1657 and I really don't know how and where I have to add the codes at the BoardIndex.template.php.  :'(
I will add the BoardIndex.template.php to this post.
Can you please add the codes for me???  :)

Thanks in advance
Manu
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 24, 2009, 03:10:04 AM
@Manu0372
Sorry for the late reply. Here's your edited BoardIndex.template.php. Use this file after installing this mod. Keep a backup file though.
Title: Re: AvatarOnBoard
Post by: Manu.G on June 26, 2009, 04:24:11 AM
Quote from: Bulakbol on June 24, 2009, 03:10:04 AM
@Manu0372
Sorry for the late reply. Here's your edited BoardIndex.template.php. Use this file after installing this mod. Keep a backup file though.

Thanks a lot for your help and don't worry, you weren't late. ;)
Title: Re: AvatarOnBoard
Post by: Tezca on June 27, 2009, 02:20:32 AM
Hi everyone

I used this great mod in my forum and works perfectly!! I translated this one to (latin american) spanish, here are my translations:

./Themes/default/languages/ModSettings.spanish_latin.php


$txt['disable_avatar'] = '&iquest;Ocultar avatar en Foro?';
$txt['board_avatar_width'] = 'Ancho del avatar en Foro.';
$txt['board_avatar_height'] = 'Altura del avatar en Foro.';
$txt['display_childboards'] = '&iquest;Ocultar los subforos?';


./Themes/default/languages/ModSettings.spanish_latin-utf8.php


$txt['disable_avatar'] = '¿Ocultar avatar en Foro?';
$txt['board_avatar_width'] = 'Ancho del avatar en Foro.';
$txt['board_avatar_height'] = 'Altura del avatar en Foro.';
$txt['display_childboards'] = '¿Ocultar los subforos?';


./Themes/default/languages/Help.spanish_latin.php

$helptxt['disable_avatar'] = 'Esta opci&oacute;n te permite activar o desactivar la visualizaci&oacute;n de avatares en el &Iacute;ndice de Foro.';
$helptxt['board_avatar_width'] = 'Esta opci&oacute;n te permite insertar el ancho del avatar a ser visusalizado en el &Iacute;ndice de Foro. Inserta 0 (cero) para usar el ancho m&aacute;ximo de la configuraci&oacute;n de avatares externos.';
$helptxt['board_avatar_height'] = 'Esta opci&oacute;n te permite insertar la altura del avatar a ser visualizado en el &Iacute;ndice de Foro. Inserta 0 (cero) para usar la altura m&aacute;xima de la configuraci&oacute;n de avatares externos.';
$helptxt['display_childboards'] = 'Esta opci&oacute;n te permite activar o desactivar la visualizaci&oacute;n de subforos en el &Iacute;ndice de Foro.';


./Themes/default/languages/Help.spanish_latin-utf8.php


$helptxt['disable_avatar'] = 'Esta opción te permite activar o desactivar la visualización de avatares en el Índice de Foro.';
$helptxt['board_avatar_width'] = 'Esta opción te permite insertar el ancho del avatar a ser visusalizado en el Índice de Foro. Inserta 0 (cero) para usar el ancho máximo de la configuración de avatares externos.';
$helptxt['board_avatar_height'] = 'Esta opción te permite insertar la altura del avatar a ser visualizado en el Índice de Foro. Inserta 0 (cero) para usar la altura máxima de la configuración de avatares externos.';
$helptxt['display_childboards'] = 'Esta opción te permite activar o desactivar la visualización de subforos en el Índice de Foro.';


That's all. Sorry for my awful english :P Greetings!!
Title: Re: AvatarOnBoard
Post by: Bulakbol on June 27, 2009, 01:55:04 PM
@Manu0372
You are welcome.

@Tezca
Thanks for the translation. I'll add them soon.
Title: Re: AvatarOnBoard
Post by: GravuTrad on June 30, 2009, 02:40:18 PM
French translation joined. same thing for utf8:

./Themes/default/languages/ModSettings.french.php
./Themes/default/languages/ModSettings.french-utf8.php

Find:

$txt['who_enabled'] = 'Activer &quot;Qui est en ligne&nbsp;?&quot;';

Add After:

$txt['disable_avatar'] = 'Cacher l'avatar du forum?';
$txt['board_avatar_width'] = 'Largeur de l'avatar du forum.';
$txt['board_avatar_height'] = 'Hauteur de l'avatar du forum.';
$txt['display_childboards'] = 'Cacher les sous-sections?';



./Themes/default/languages/Help.french.php
./Themes/default/languages/Help.french-utf8.php

Find:

$helptxt['who_enabled'] = 'Cette option vous permet d'activer ou non la possibilit&eacute; de voir qui est en ligne sur le forum et ce qu'il y fait.';

Add After:

$helptxt['disable_avatar'] = 'Cette option vous permet d'activer ou de d&eacute;sactiver l'affichage des avatars sur l'index du forum.';
$helptxt['board_avatar_width'] = 'Cette option vous permet d'entrer la taille de l'avatar &agrave; afficher sur l'index du forum. Entrer 0 (z&eacute;ro) pour utiliser la taille maximale des param&egrave;tres des avatars externes.';
$helptxt['board_avatar_height'] = 'Cette option vous permet d'entrer la hauteur de l'avatar &agrave; afficher sur l'index du forum. Entrer 0 (z&eacute;ro) pour utiliser la taille maximale des param&egrave;tres des avatars externes.';
$helptxt['display_childboards'] = 'Cette option vous permet d'activer ou de d&eacute;sactiver l'affichage des sous-sections dans l'index du forum.';
Title: Re: AvatarOnBoard
Post by: Bulakbol on July 04, 2009, 01:23:12 PM
@GravuTrad
Thanks. I appreciated the translation. I will update the package soon.

<edit>
Can't update today. Something came up important.

Title: Re: AvatarOnBoard
Post by: GravuTrad on July 04, 2009, 02:58:04 PM
 ;)
Title: Re: AvatarOnBoard
Post by: meehan09 on September 16, 2009, 12:41:21 PM
Heres the error from admin panel - error log


http://www.exoticforums.co.uk//index.php?yshout&amp;board=15&amp;sort=subject&amp;desc=
Undefined index: avatar
File: /home/reptiles/public_html/Themes/default/MessageIndex.template.php
Line: 266


Thanks in advance, i hope somones able to help me out.


Thanks,
Paul

Title: Re: AvatarOnBoard
Post by: meehan09 on September 17, 2009, 04:31:58 PM
here is line 266

                           echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
                        echo '


And my MessageIndex.template.php attachted below :)
Title: Re: AvatarOnBoard
Post by: shadowcrews on September 25, 2009, 03:56:03 AM
hello please help me to fix this urgently, after i unsintall the mod i have this error when i go to forum,

Not unique table/alias: 'mav'
File: /home/shadowcr/public_html/Sources/Subs-BoardIndex.php
Line: 91

attached is the php
Title: Re: AvatarOnBoard
Post by: Sabre™ on September 25, 2009, 08:19:24 AM
Try the attached file.
You had 3 instances of the code, so you should check you other templates to see if they still have this mods code installed
Title: Re: AvatarOnBoard
Post by: meehan09 on September 29, 2009, 01:26:07 PM
Heres the error from admin panel - error log


http://www.exoticforums.co.uk//index.php?yshout&amp;board=15&amp;sort=subject&amp;desc=
Undefined index: avatar
File: /home/reptiles/public_html/Themes/default/MessageIndex.template.php
Line: 266


here is line 266

                           echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
                        echo '


And my MessageIndex.template.php attachted below :)

I hope somone can help me fix and solve this error, thanks in advance  8)

Title: Re: AvatarOnBoard
Post by: meehan09 on October 06, 2009, 07:01:18 AM
Anyone have a fix for this has still waiting on help and filling error log up quickly :(


Thanks in advance,
Paul
Title: Re: AvatarOnBoard
Post by: humbleworld on October 13, 2009, 01:32:32 AM
Will this MOD work in SMF 1.1.10?
Title: Re: AvatarOnBoard
Post by: Sabre™ on October 13, 2009, 01:48:01 AM
Yes :)
Title: Re: AvatarOnBoard
Post by: humbleworld on October 13, 2009, 02:37:36 AM
Thank you, Sabre, for the info. Highly appreciated.
Title: Re: AvatarOnBoard
Post by: Ch4ng3r on December 01, 2009, 07:27:42 AM
I have a version of SMF 2.0 RC2, and I like this modification, but there is no update for RC2... will be soon? Greetings...

Sorry for my bad english... :D
Title: Re: AvatarOnBoard
Post by: Robbo_ on December 03, 2009, 10:36:31 PM
Any RC2 update coming? If not I can update it for you.
Title: Re: AvatarOnBoard
Post by: Sabre™ on December 04, 2009, 12:40:52 PM
Before JohnyB went away, he asked me if I'd like to take over his mod(dont recall which), but I dont have the time for any mods, so instead, I've just been updating those I use and sharing them, until he returns.
So go for it champ. :)
Title: Re: AvatarOnBoard
Post by: Ch4ng3r on December 07, 2009, 01:56:11 PM
I tried to put it manualy , but there is problem with IE7... it shows avatar in right top... In IE8 is ok... :)
Title: Re: AvatarOnBoard
Post by: linette97 on January 06, 2010, 09:44:49 PM
Quote from: Robbo_ on December 03, 2009, 10:36:31 PM
Any RC2 update coming? If not I can update it for you.

Please do! I love this mod,  now I can't use it :( Thanks
Title: Re: AvatarOnBoard
Post by: Robbo_ on January 07, 2010, 05:41:42 AM
I updated it last night. I haven't tested it fully yet. I will attach the package here later... I'm in relax mode after work atm...
Title: Re: AvatarOnBoard
Post by: Tenshi/Truceco on January 08, 2010, 04:56:53 AM
Quote from: Robbo_ on January 07, 2010, 05:41:42 AM
I updated it last night. I haven't tested it fully yet. I will attach the package here later... I'm in relax mode after work atm...

;) good very very good, RC2.x is needed badly and thank you :)
Title: Re: AvatarOnBoard
Post by: Robbo_ on January 09, 2010, 12:04:31 AM
Attached. Use at your own risk, I am not supporting the attached package. You should use the mod authors version once he updates it!
Title: Re: AvatarOnBoard
Post by: linette97 on January 09, 2010, 01:52:45 AM
Quote from: Robbo_ on January 09, 2010, 12:04:31 AM
Attached. Use at your own risk, I am not supporting the attached package. You should use the mod authors version once he updates it!

OMG you rock! It installed perfectly without any adjustments!! Thanks!!
Title: Re: AvatarOnBoard
Post by: TheListener on January 13, 2010, 02:07:53 AM
Would someone be willing to help me to edit my messageindex.template.php file so I can add this to my forum?

Title: Re: AvatarOnBoard
Post by: C4G-TK on January 13, 2010, 11:46:24 AM
Installed perfectly on my RC2 forum.

The only thing that I had to check was the forum.css file.  On the Prince Of Darkness Theme, it failed because it was already set to 50.  I installed as is and everything is working fine.

Thanks!
Title: Re: AvatarOnBoard
Post by: Sabre™ on January 18, 2010, 02:13:34 AM
Quote from: Brack1 on January 13, 2010, 02:07:53 AM
Would someone be willing to help me to edit my messageindex.template.php file so I can add this to my forum?

Sure old friend ;)
Title: Re: AvatarOnBoard
Post by: sattninja on February 06, 2010, 04:07:07 PM
you rock man i also installed on RC2 and works great even on custom theme

thank you
Title: Re: AvatarOnBoard
Post by: Am' on February 19, 2010, 01:10:09 PM
Quote from: Robbo_ on January 09, 2010, 12:04:31 AM
Attached. Use at your own risk, I am not supporting the attached package. You should use the mod authors version once he updates it!

it's compatible with curve ?
Title: Re: AvatarOnBoard
Post by: Robbo_ on February 19, 2010, 06:39:01 PM
Yes
Title: Re: AvatarOnBoard
Post by: GrassrootsPA on February 28, 2010, 10:01:31 PM
Works great on RC2, Robbo_

You are the best!  :)
Title: Re: AvatarOnBoard
Post by: Am' on March 11, 2010, 06:45:09 AM
Quote from: Robbo_ on February 19, 2010, 06:39:01 PM
Yes

rc3 ?  :-*
Title: Re: AvatarOnBoard
Post by: Robbo_ on March 11, 2010, 11:53:13 AM
Lol, try installing with compatibility mode or whatever it is called (click advanced at package section). Change it to RC2 and see if it installs.

Otherwise you will have to wait until I get to updated this mod which isn't mine to be updating ;p
Title: Re: AvatarOnBoard
Post by: Am' on March 11, 2010, 12:05:36 PM
lol thx

how disable avatars on messageindex ?
Title: Re: AvatarOnBoard
Post by: Paul_Pauline on March 15, 2010, 01:26:47 PM
Hi Guyz.

I have just manually installed this mod (What a bloody job that is  :o)

Anyway, it's working fine and no errors  :)

The only thing is I have the default avatar mod installed, and the default avatar does not show !

If I select an avatar for a member, that shows fine, but if I put them back to default avatar, it goes blankl

Is this a know issue, and is there a fix for it ?

Thanks, Paul.
Title: Re: AvatarOnBoard
Post by: XerraX on April 19, 2010, 03:49:46 PM
man i am trying to manually install this mod on rc3 for 3 hours now  :( no luck so far
Title: Re: AvatarOnBoard
Post by: C4G-TK on May 16, 2010, 01:30:35 PM
I emulated RC2 and it works fine on RC3 w/o any install errors.
I just used the package in reply #394
Title: Re: AvatarOnBoard
Post by: linette97 on June 11, 2010, 04:21:22 PM
Quote from: linette97 on January 09, 2010, 01:52:45 AM
Quote from: Robbo_ on January 09, 2010, 12:04:31 AM
Attached. Use at your own risk, I am not supporting the attached package. You should use the mod authors version once he updates it!

OMG you rock! It installed perfectly without any adjustments!! Thanks!!

Worked great for RC3 Yayyyyy!! Thanks Again
Title: Re: AvatarOnBoard
Post by: Hj Ahmad Rasyid Hj Ismail on June 15, 2010, 04:54:22 AM
It is working with RC3 alright. Btw, how do we separate the column for avatar. I prefer it to be in a different column. It looks a little bit 'untidy' when it is together in one column with the recent post.
Title: Re: AvatarOnBoard
Post by: TheListener on July 26, 2010, 01:42:10 PM
I am using this mod in conjunction with the vbulletin message index mod.

However unfortunately the avatar shows below the text instead of next to it.

Is there a way to correct this?
Title: Re: AvatarOnBoard
Post by: eng_HK on August 11, 2010, 06:03:01 AM
I tried to install with RC3 but it doesn't work...
I'll try the parse..keep you update.

Title: Re: AvatarOnBoard
Post by: Sabre™ on August 11, 2010, 07:12:34 PM
ahrasis, Im guessing you solved your issue?

Brack1, do you still require assistance mate?
I went to your site to have a look, but it's throwing up a server error(500)
Title: Re: AvatarOnBoard
Post by: TheListener on August 11, 2010, 07:19:01 PM
Managed to sort the problem out thankfully.

Was it this one?

www.miltonkeynesaware.co.cc/mkaforum
Title: Re: AvatarOnBoard
Post by: Sabre™ on August 11, 2010, 07:38:46 PM
Yeah that's the one mate, good job on fixing your issue.

OT...
Your right click script caught me off guard lol  I re-wrote a script for that sometime ago, which implemented other functionality aswell.
I'm gonna check my externals to see if it's still in there.
I've noticed the mods here don't use what I added, so may submit another mod to the scripts board.
Title: Re: AvatarOnBoard
Post by: eng_HK on August 12, 2010, 01:52:48 AM
Tried to parse for installing with 2.0Rc3 but it doesn't work.. or better.. maybe I'm really a newbie.

Title: Re: AvatarOnBoard
Post by: Sabre™ on August 12, 2010, 02:50:17 AM
Did you install the outdated one on the modpage, or the updated one provided here in this thread?
Title: Re: AvatarOnBoard
Post by: eng_HK on August 12, 2010, 12:09:30 PM
I downloaded the one on the first page of the topic, the published one.

There's another?
Title: Re: AvatarOnBoard
Post by: Sabre™ on August 12, 2010, 07:00:47 PM
Yes, somewhere within the last 3 pages if I recall correct, it is attached to a post.
Title: Re: AvatarOnBoard
Post by: C4G-TK on December 05, 2010, 06:08:14 PM
Have it working on RC4 by using the package in Reply #394

There were two failed tests (3 & 4) in MessageIndex.template.php, but they were easy to figure out by parsing the package and looking for the edits to do manually.

:)
Title: Re: AvatarOnBoard
Post by: pjn on December 06, 2010, 01:40:35 AM
i can't install it on rc4 :( on default curve theme
Title: Re: AvatarOnBoard
Post by: C4G-TK on December 06, 2010, 10:49:12 AM
Quote from: pjn on December 06, 2010, 01:40:35 AM
i can't install it on rc4 :( on default curve theme

1) Which package did you use?
2) Which edits didn't work?
Title: Re: AvatarOnBoard
Post by: pjn on December 07, 2010, 02:04:14 AM
on the default theme dir

and i try to install to rc4, manually...
Title: Re: AvatarOnBoard
Post by: C4G-TK on December 07, 2010, 10:58:50 AM
If you want, attach the following files to a replay and I will look at it:
(In the meantime, don't add anymore mods that use these files because once you upload them when I'm done, it would break anything you install in the meantime.)

from Sources directory:

ManageSetting.php
MessageIndex.php
Subs-BoardIndex.php


from Themes/default directory:

BoardIndex.template
MessageIndex.template.php


from Themes/default/languages directory:

Help.english,php
ManageSetting.english.php
Title: Re: AvatarOnBoard
Post by: pjn on December 08, 2010, 01:33:55 AM
OK

i will install this again and i give you tomorow the files...

thanx!
Title: Re: AvatarOnBoard
Post by: TheListener on December 08, 2010, 12:37:09 PM
Quote from: C4G-TK on December 05, 2010, 06:08:14 PM
Have it working on RC4 by using the package in Reply #394

There were two failed tests (3 & 4) in MessageIndex.template.php, but they were easy to figure out by parsing the package and looking for the edits to do manually.

:)

Would you care to share the piece of file which required the edit.

Am trying to install this on my test forum as for some reason this and another mod are conflicting.
Title: Re: AvatarOnBoard
Post by: C4G-TK on December 08, 2010, 02:13:09 PM
I can post later tonight when I get back to my home computer.
Title: Re: AvatarOnBoard
Post by: Sabre™ on December 09, 2010, 01:21:09 AM
Is that [THIS] (http://www.miltonkeynesaware.co.cc/bulldozer/) site youre talking about Brack?
Title: Re: AvatarOnBoard
Post by: TheListener on December 09, 2010, 01:35:21 PM
Thats the test forum young Sabre.

( get ya butt in the chats topic bud lol. I'm having a few niggles there too.)

:)

Title: Re: AvatarOnBoard
Post by: Sabre™ on December 09, 2010, 01:50:25 PM
Ajax chat?
Title: Re: AvatarOnBoard
Post by: TheListener on December 09, 2010, 01:52:49 PM
==The ajax chat integration mod=
Title: Re: AvatarOnBoard
Post by: Sabre™ on December 09, 2010, 02:11:30 PM
Ahh... No thanks mate.
That mod is soo flawed it aint worth the headache lol Although I never really had any major issue with it, the amount of people that do is astounding.
Good luck.
Title: Re: AvatarOnBoard
Post by: underscore on February 21, 2011, 03:27:27 PM
Quote from: meehan09 on September 29, 2009, 01:26:07 PM
Heres the error from admin panel - error log


http://www.exoticforums.co.uk//index.php?yshout&amp;board=15&amp;sort=subject&amp;desc=
Undefined index: avatar
File: /home/reptiles/public_html/Themes/default/MessageIndex.template.php
Line: 266


here is line 266

                           echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
                        echo '


And my MessageIndex.template.php attachted below :)

I hope somone can help me fix and solve this error, thanks in advance  8)

I have this error too.

Maybe have someone a fix
Title: Re: AvatarOnBoard
Post by: Kreator on February 23, 2011, 04:23:31 PM
Tried installing this on RC5  ( originally had it on RC2)

I can get avatars on main Boards but If I call the topic index the thing crashes with,

Not unique table/alias: 'mav'
File: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/MessageIndex.php
Line: 439

any fix please?

Title: Re: AvatarOnBoard
Post by: Kreator on February 23, 2011, 05:07:35 PM
Scratch that last post

Got it working on RC5  with package loader set to RC2 and used mod from Robbos thread at
« Reply #394 on: Saturday January, 9 2010, 05:04:31 AM »

Trust me not to go through all the posts but lazily select the first inital mod in the futile assumption that it`ll work lol. :laugh:
Title: Re: AvatarOnBoard
Post by: TheListener on March 17, 2011, 07:13:43 PM
Still waiting for help to add the mod to my RC4 forum.

When installed the main board goes crazy. All other boards the mod installs perfectly on.
Title: Re: AvatarOnBoard
Post by: Tanks on June 15, 2011, 04:55:49 AM
This would be nice for 2.0 Gold :)
Title: Re: AvatarOnBoard
Post by: TheListener on June 15, 2011, 09:39:47 AM
Quote from: Tanks on June 15, 2011, 04:55:49 AM
This would be nice for 2.0 Gold :)

Works on my 2.0 test forum with no problem.
Title: Re: AvatarOnBoard
Post by: pikeman on July 03, 2011, 03:43:10 AM
Hello!

When the expected exit mode for the 2.0 version of the script?
Title: Re: AvatarOnBoard
Post by: agent47 on July 06, 2011, 07:43:33 PM
Quote from: pikeman on July 03, 2011, 03:43:10 AM
Hello!

When the expected exit mode for the 2.0 version of the script?
Read the comment above yours. He just said it worked on his test forum. All you need to do is emulate the package.
Title: Re: AvatarOnBoard
Post by: oldrow on July 18, 2011, 04:55:48 PM
how do you emulate the package?  I want this mod!
Title: Re: AvatarOnBoard
Post by: jaisi on August 24, 2011, 08:11:05 AM
i have tested in 2.0 gold version but it's not working which version do you used ? please let me no i want this mod   
Title: Re: AvatarOnBoard
Post by: AllanD on August 28, 2011, 05:22:20 PM
Anyone planning on updating this mod. Alot are asking for it.
Title: Re: AvatarOnBoard
Post by: Hj Ahmad Rasyid Hj Ismail on August 28, 2011, 07:33:49 PM
Quote from: Brack1 on June 15, 2011, 09:39:47 AM
Works on my 2.0 test forum with no problem.
Title: Re: AvatarOnBoard
Post by: AllanD on August 28, 2011, 07:40:12 PM
hey i think this works on your test forum :P
Title: Re: AvatarOnBoard
Post by: jaisi on August 29, 2011, 05:30:42 AM
there sre three version please mention which version is working in 2.0.
Title: Re: AvatarOnBoard
Post by: jaisi on August 29, 2011, 07:08:40 AM
i'am getting this error please see blow attached pics


my forum version is 2.0
Title: Re: AvatarOnBoard
Post by: TheListener on September 09, 2011, 10:23:41 PM
jaisi

You should know by now that Test Failed means you have some manual edits which are required.

All those whom are wanting this mod please read through the mods posts and you may find the most recent version IS available.
Title: Re: AvatarOnBoard
Post by: drfun on October 02, 2011, 05:08:53 PM
wow i love this mod, will this mod be updated for SMF 2.0.1,
Title: Re: AvatarOnBoard
Post by: TheListener on October 04, 2011, 01:56:09 PM
Quote from: drfun on October 02, 2011, 05:08:53 PM
wow i love this mod, will this mod be updated for SMF 2.0.1,

Read through the pages and you will find it is available.
Title: Re: AvatarOnBoard
Post by: drfun on October 07, 2011, 08:50:04 AM
i have done that and no place where it is stated. also it is not included in the 2.0.1 list of mods,
well i will be glad if you direct me to the link for that.
Title: Re: AvatarOnBoard
Post by: drfun on October 07, 2011, 09:30:22 AM
i think this theme Argentum Enhanced (http://custom.simplemachines.org/themes/index.php?lemma=2234), does it with out this mod,
Title: Re: AvatarOnBoard
Post by: cinema35 on November 20, 2011, 08:36:26 AM
Hello and thanks for this nice mod. I want to setup this mod as manual but the codes not visible in boardindex.template and MessageIndex.template for my theme! May you help me please?
Title: Re: AvatarOnBoard
Post by: anicolac on December 08, 2011, 02:33:51 PM
Google translation:
Hello, I have tried installing each of the 3 php without success.

I've also tried to install it manually and do not display avatars.

Someone has managed to install it manually in 2.x?

Thanks and regards.

-------------
Español
Hola, yo he intentado instalar cada uno de los 3 php sin éxito.

También he probado a instalarlo manualmente y no se muestran los avatares.

Alguien ha conseguido instalarlo manualmente en la 2.x?

Gracias y saludos.
Title: Re: AvatarOnBoard
Post by: T3CHN0 on December 18, 2011, 09:02:47 AM
Quote from: underscore on February 21, 2011, 03:27:27 PM
Quote from: meehan09 on September 29, 2009, 01:26:07 PM
Heres the error from admin panel - error log


http://www.exoticforums.co.uk//index.php?yshout&amp;board=15&amp;sort=subject&amp;desc= (http://www.exoticforums.co.uk//index.php?yshout&amp;board=15&amp;sort=subject&amp;desc=)
Undefined index: avatar
File: /home/reptiles/public_html/Themes/default/MessageIndex.template.php
Line: 266


here is line 266

                           echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
                        echo '


And my MessageIndex.template.php attachted below :)

I hope somone can help me fix and solve this error, thanks in advance  8)

I have this error too.

Maybe have someone a fix
Did you ever get help with this?
I have same error in logs
Title: Re: AvatarOnBoard
Post by: alexx-1 on February 26, 2012, 05:55:10 PM
Quote from: jaisi on August 29, 2011, 07:08:40 AM
i'am getting this error please see blow attached pics


my forum version is 2.0
bump
Title: Re: AvatarOnBoard
Post by: Zuća on February 26, 2012, 06:15:21 PM
Quote from: alexx-1 on February 26, 2012, 05:55:10 PM
Quote from: jaisi on August 29, 2011, 07:08:40 AM
i'am getting this error please see blow attached pics


my forum version is 2.0
bump

download avataronboardRC2 in attachment

http://www.simplemachines.org/community/index.php?topic=223656.msg2445295#msg2445295
Title: Re: AvatarOnBoard
Post by: jaisi on May 02, 2012, 02:50:23 PM
hi team i wannt to install this mod but when i try to install i'am getting this Error plz help me how to slove this problem.



please see below attached pics for error details
Title: Re: AvatarOnBoard
Post by: jaisi on May 08, 2012, 07:36:38 PM
Sorry for dumping but i need this mod please help me.i'am attaching MessageIndex.template.php file.


please modify for me.


Thanks in advce
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on May 09, 2012, 06:31:57 AM
does it work with SMF 2.0.2 ?
Title: Re: AvatarOnBoard
Post by: Gà Mái on June 03, 2012, 05:09:12 AM
Quote from: bestfriendavinash on May 09, 2012, 06:31:57 AM
does it work with SMF 2.0.2 ?
No, and I am waiting Bulakbol fix it Compatible With 2.0.2 :)
Title: Re: AvatarOnBoard
Post by: Adrek on June 03, 2012, 05:58:06 AM
Well Bulakbol was last active in November 2009 :)

I updated this mod for my own use, but as far as I know I cannot post here full package? There is package for RC2 posted by Robbo_ (few pages back) so i guess I could post package for 2.0.2, but I want to be sure :P
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on June 03, 2012, 06:07:50 AM
Quote from: phantomm on June 03, 2012, 05:58:06 AM
Well Bulakbol was last active in November 2009 :)

I updated this mod for my own use, but as far as I know I cannot post here full package? There is package for RC2 posted by Robbo_ (few pages back) so i guess I could post package for 2.0.2, but I want to be sure :P

can you mail me?
Title: Re: AvatarOnBoard
Post by: pixeleyes on June 11, 2012, 08:39:07 AM
@phantomm

I also need this mod for 2.0.1 If you can provide. thanks

Title: Re: AvatarOnBoard
Post by: All Colours Sam on June 11, 2012, 10:11:39 AM
Quote from: phantomm on June 03, 2012, 05:58:06 AM
Well Bulakbol was last active in November 2009 :)

I updated this mod for my own use, but as far as I know I cannot post here full package? There is package for RC2 posted by Robbo_ (few pages back) so i guess I could post package for 2.0.2, but I want to be sure :P

Since this mod wasn't properly licensed before, it falls under a proprietary license and thus, cannot be redistributed in any form :(

Can you point me to this package for RC2 please.
Title: Re: AvatarOnBoard
Post by: Adrek on June 11, 2012, 10:30:32 AM
I guess you want to remove it?
Here it is... http://www.simplemachines.org/community/index.php?topic=223656.msg2445295#msg2445295

Quote from: Suki on June 11, 2012, 10:11:39 AM
Since this mod wasn't properly licensed before it falls under a proprietary license and thus, cannot be redistributed in any form :(

What if i post only manual edits? It is also against policy?
Title: Re: AvatarOnBoard
Post by: All Colours Sam on June 11, 2012, 10:33:21 AM
Yes, I have to remove it.  Thanks.

Yes, if you post manual edits that is perfectly fine.
Title: Re: AvatarOnBoard
Post by: Adrek on June 11, 2012, 11:15:43 AM
So, here are manual edits for SMF 2.0.2:

But before making any changes make backup of this files:



If your custom theme is using own BoardIndex.template.php and MessageIndex.template.php don't forget to make backup of this files :P




In the file $sourcedir/ManageSettings.php
Code (Find) Select

// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Code (Add After) Select

'',
// Avatar on board.
array('check', 'disable_avatar'),
array('int', 'board_avatar_width'),
array('int', 'board_avatar_height'),
array('check', 'display_childboards'),
'',




In the file $sourcedir/Subs-BoardIndex.php
Code (Find) Select

b.id_board, b.name AS board_name, b.description,

Code (Add After) Select

att.id_attach, att.attachment_type, att.filename, mav.avatar,


Code (Find) Select

LEFT JOIN {db_prefix}members AS mods_mem ON (mods_mem.id_member = mods.id_member)

Code (Add After) Select

LEFT JOIN {db_prefix}members AS mav ON (mav.id_member = m.id_member AND m.id_msg = b.id_last_msg)
LEFT JOIN {db_prefix}attachments AS att ON (att.id_member = mav.id_member)


Code (Find) Select

// Prepare the subject, and make sure it's not too long.

Code (Replace With) Select

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['id_attach'] > 0 ? '<img src="' . (empty($row_board['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row_board['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />');
elseif ($modSettings['board_avatar_height'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['id_attach'] > 0 ? '<img src="' . (empty($row_board['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row_board['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />');
else
$board_avatar = $row_board['avatar'] == '' ? ($row_board['id_attach'] > 0 ? '<img src="' . (empty($row_board['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row_board['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />');

// Prepare the subject, and make sure it's not too long.


Code (Find) Select

'name' => $row_board['real_name'],

Code (Add After) Select

'avatar' => $board_avatar,




In the file $sourcedir/MessageIndex.php
Code (Find) Select

ml.poster_name AS last_member_name, ml.id_member AS last_id_member,

Code (Add After) Select

att.id_attach, att.attachment_type, att.filename, mav.avatar,


Code (Find) Select

LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)' . ($user_info['is_guest'] ? '' : '

Code (Replace With) Select

LEFT JOIN {db_prefix}members AS mav ON (mav.id_member = ml.id_member)
LEFT JOIN {db_prefix}attachments AS att ON (att.id_member = mav.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)' . ($user_info['is_guest'] ? '' : '


Code (Find) Select

// We need to check the topic icons exist...

Code (Replace With) Select

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />');
elseif ($modSettings['board_avatar_height'] == 0)
$board_avatar = $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />');
else
$board_avatar = $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />');

// We need to check the topic icons exist...


Code (Find) Select

'name' => $row['last_display_name'],

Code (Add After) Select

'avatar' => $board_avatar,




In the file $themedir/BoardIndex.template.php
Code (Find) Select

<td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>

Code (Replace With) Select

<td class="icon windowbg"', !empty($board['children']) && !$modSettings['display_childboards'] ? ' rowspan="2"' : '', '>


Code (Find) Select

<td class="lastpost">';

Code (Replace With) Select

<td class="lastpost">';

if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 6px;">', !empty($board['last_post']['member']['avatar']) ? $board['last_post']['member']['avatar'] : '<img src="'. $modSettings['avatar_url']. '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width']. '" align="middle" border="0" />', '</div>';


Code (Find) Select

if (!empty($board['children']))

Code (Replace With) Select

if (!empty($board['children']) && !$modSettings['display_childboards'])




In the file $themedir/MessageIndex.template.php
Code (Find) Select

if (!empty($board['children']))

Code (Replace With) Select

if (!empty($board['children']) && !$modSettings['display_childboards'])


Code (Find) Select

<td class="lastpost">';

Code (Add After) Select


if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 6px;">', $board['last_post']['member']['avatar'], '</div>';


Code (Find) Select

<th scope="col" class="lefttext last_th" width="22%">

Code (Replace With) Select

<th scope="col" class="lefttext last_th" width="26%">


Code (Find) Select

<th scope="col" class="lefttext" width="22%">

Code (Replace With) Select

<th scope="col" class="lefttext" width="26%">


Code (Find) Select

<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>

Code (Add After) Select

';
if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
echo '




In the file $languagedir/Modifications.english.php
Code (Find) Select

?>

Code (Replace With) Select

$txt['disable_avatar'] = 'Hide avatar on Board?';
$txt['board_avatar_width'] = 'Width of avatar on Board.';
$txt['board_avatar_height'] = 'Height of avatar on Board.';
$txt['display_childboards'] = 'Hide the Child boards?';

?>




In the file $languagedir/Help.english.php
Code (Find) Select

?>

Code (Replace With) Select

$helptxt['disable_avatar'] = 'This option allows you to turn on or off the display of avatars in Board index.';
$helptxt['board_avatar_width'] = 'This option allows you to enter the width of avatar to be displayed in Board index. Enter 0 (zero) to use the max width of external avatar settings.';
$helptxt['board_avatar_height'] = 'This option allows you to enter the height of avatar to be displayed in Board index. Enter 0 (zero) to use max height of external avatar settings.';
$helptxt['display_childboards'] = 'This option allows you to turn on or off the display of child boards in Board index.';

?>



After that download package from mod site, extract it and find file noavatar.gif and upload it to ./avatars directory. :)

And last step (adding settings into database): http://www.simplemachines.org/community/index.php?topic=223656.msg3387144#msg3387144
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on June 11, 2012, 11:31:00 AM
Quote from: phantomm on June 11, 2012, 11:15:43 AM
So, here are manual edits for SMF 2.0.2:

But before making any changes make backup of this files:


  • ./Sources/ManageSettings.php
  • ./Sources/Subs-BoardIndex.php
  • ./Sources/MessageIndex.php
  • ./Themes/default/BoardIndex.template.php
  • ./Themes/default/MessageIndex.template.php
  • ./Themes/default/languages/Modifications.english.php
  • ./Themes/default/languages/Help.english.php


If your custom theme is using own BoardIndex.template.php and MessageIndex.template.php don't forget to make backup of this files :P




In the file $sourcedir/ManageSettings.php
Code (Find) Select

// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Code (Add After) Select

'',
// Avatar on board.
array('check', 'disable_avatar'),
array('int', 'board_avatar_width'),
array('int', 'board_avatar_height'),
array('check', 'display_childboards'),
'',




In the file $sourcedir/Subs-BoardIndex.php
Code (Find) Select

b.id_board, b.name AS board_name, b.description,

Code (Add After) Select

att.id_attach, att.attachment_type, att.filename, mav.avatar,


Code (Find) Select

LEFT JOIN {db_prefix}members AS mods_mem ON (mods_mem.id_member = mods.id_member)

Code (Add After) Select

LEFT JOIN {db_prefix}members AS mav ON (mav.id_member = m.id_member AND m.id_msg = b.id_last_msg)
LEFT JOIN {db_prefix}attachments AS att ON (att.id_member = mav.id_member)


Code (Find) Select

// Prepare the subject, and make sure it's not too long.

Code (Replace With) Select

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['id_attach'] > 0 ? '<img src="' . (empty($row_board['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row_board['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />');
elseif ($modSettings['board_avatar_height'] == 0)
$board_avatar = $row_board['avatar'] == '' ? ($row_board['id_attach'] > 0 ? '<img src="' . (empty($row_board['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row_board['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />');
else
$board_avatar = $row_board['avatar'] == '' ? ($row_board['id_attach'] > 0 ? '<img src="' . (empty($row_board['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row_board['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row_board['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />') : (stristr($row_board['avatar'], 'http://') ? '<img src="' . $row_board['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row_board['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />');

// Prepare the subject, and make sure it's not too long.


Code (Find) Select

'name' => $row_board['real_name'],

Code (Add After) Select

'avatar' => $board_avatar,




In the file $sourcedir/MessageIndex.php
Code (Find) Select

ml.poster_name AS last_member_name, ml.id_member AS last_id_member,

Code (Add After) Select

att.id_attach, att.attachment_type, att.filename, mav.avatar,


Code (Find) Select

LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)' . ($user_info['is_guest'] ? '' : '

Code (Replace With) Select

LEFT JOIN {db_prefix}members AS mav ON (mav.id_member = ml.id_member)
LEFT JOIN {db_prefix}attachments AS att ON (att.id_member = mav.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)' . ($user_info['is_guest'] ? '' : '


Code (Find) Select

// We need to check the topic icons exist...

Code (Replace With) Select

if ($modSettings['board_avatar_width'] == 0)
$board_avatar = $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />');
elseif ($modSettings['board_avatar_height'] == 0)
$board_avatar = $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" align="middle" border="0" />');
else
$board_avatar = $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['board_avatar_width'].'" height="'. $modSettings['board_avatar_height'].'" align="middle" border="0" />');

// We need to check the topic icons exist...


Code (Find) Select

'name' => $row['last_display_name'],

Code (Add After) Select

'avatar' => $board_avatar,




In the file $themedir/BoardIndex.template.php
Code (Find) Select

<td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>

Code (Replace With) Select

<td class="icon windowbg"', !empty($board['children']) && !$modSettings['display_childboards'] ? ' rowspan="2"' : '', '>


Code (Find) Select

<td class="lastpost">';

Code (Replace With) Select

<td class="lastpost">';

if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 6px;">', !empty($board['last_post']['member']['avatar']) ? $board['last_post']['member']['avatar'] : '<img src="'. $modSettings['avatar_url']. '/noavatar.gif" alt="" width="'. $modSettings['board_avatar_width']. '" align="middle" border="0" />', '</div>';


Code (Find) Select

if (!empty($board['children']))

Code (Replace With) Select

if (!empty($board['children']) && !$modSettings['display_childboards'])




In the file $themedir/MessageIndex.template.php
Code (Find) Select

if (!empty($board['children']))

Code (Replace With) Select

if (!empty($board['children']) && !$modSettings['display_childboards'])


Code (Find) Select

<td class="lastpost">';

Code (Add After) Select


if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 6px;">', $board['last_post']['member']['avatar'], '</div>';


Code (Find) Select

<th scope="col" class="lefttext last_th" width="22%">

Code (Replace With) Select

<th scope="col" class="lefttext last_th" width="26%">


Code (Find) Select

<th scope="col" class="lefttext" width="22%">

Code (Replace With) Select

<th scope="col" class="lefttext" width="26%">


Code (Find) Select

<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>

Code (Add After) Select

';
if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
echo '




In the file $languagedir/Modifications.english.php
Code (Find) Select

?>

Code (Replace With) Select

$txt['disable_avatar'] = 'Hide avatar on Board?';
$txt['board_avatar_width'] = 'Width of avatar on Board.';
$txt['board_avatar_height'] = 'Height of avatar on Board.';
$txt['display_childboards'] = 'Hide the Child boards?';

?>




In the file $languagedir/Help.english.php
Code (Find) Select

?>

Code (Replace With) Select

$helptxt['disable_avatar'] = 'This option allows you to turn on or off the display of avatars in Board index.';
$helptxt['board_avatar_width'] = 'This option allows you to enter the width of avatar to be displayed in Board index. Enter 0 (zero) to use the max width of external avatar settings.';
$helptxt['board_avatar_height'] = 'This option allows you to enter the height of avatar to be displayed in Board index. Enter 0 (zero) to use max height of external avatar settings.';
$helptxt['display_childboards'] = 'This option allows you to turn on or off the display of child boards in Board index.';

?>



After that download package from mod site, extract it and find file noavatar.gif and upload it to ./avatars directory. :)


Please make it an installable mod . . . please
Title: Re: AvatarOnBoard
Post by: Adrek on June 11, 2012, 11:32:08 AM
I can't, read Suki's post. And don't quote whole last message...
Title: Re: AvatarOnBoard
Post by: pixeleyes on June 11, 2012, 01:11:47 PM
thanks @phantomm

I just need some help if possible.

1) How to add border around avatar.

2) In post category I want to change place of avatar. would like to add before subject.
Title: Re: AvatarOnBoard
Post by: Adrek on June 11, 2012, 01:47:14 PM
For border:
Code (Find) Select
<div style="float: left; margin-right: 6px;
Code (Add After) Select
border: 1px solid #ccc;

You can change color, type and size.

Changing place:
In $themedir/MessageIndex.template.php:
reverse change (if you made it from post before)
Code (Find) Select
<td class="subject ', $alternate_class, '">
Code (Replace with) Select
<td class="subject ', $alternate_class, '">';
if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
echo '


but I have no idea if this will work correctly :|
Title: Re: AvatarOnBoard
Post by: pixeleyes on June 12, 2012, 04:34:20 AM
<td class="subject ', $alternate_class, '">';
if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
echo '


Works for me  :)
Can you add Image Width and Height code as well.
Title: Re: AvatarOnBoard
Post by: Adrek on June 12, 2012, 04:39:16 AM
This is in mod settings ;)
Title: Re: AvatarOnBoard
Post by: pixeleyes on June 12, 2012, 04:52:16 AM
Got it  :P

I just noticed these avatars are last poster  :D.

Can we change into topic starter instead of last poster?

<td class="subject ', $alternate_class, '">';
if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
echo '

Title: Re: AvatarOnBoard
Post by: Adrek on June 12, 2012, 05:17:15 AM
I tried this, but doesn't work, don't know why :|

In the file $themedir/MessageIndex.template.php
Code (Find) Select
<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>
Code (Replace with) Select
<div style="float: left; margin-right: 4px;">', $topic['first_post']['member']['avatar'], '</div>

In the file $sourcedir/MessageIndex.php
Code (Find) Select
'name' => $row['first_display_name'],

Code (Replace with) Select
'name' => $row['first_display_name'],
'avatar' => $board_avatar,
Title: Re: AvatarOnBoard
Post by: pixeleyes on June 12, 2012, 05:38:34 AM
Same here! didn't work
Title: Re: AvatarOnBoard
Post by: TheListener on June 30, 2012, 12:27:00 AM
Quote from: phantomm on June 12, 2012, 05:17:15 AM
I tried this, but doesn't work, don't know why :|

In the file $themedir/MessageIndex.template.php
Code (Find) Select
<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>
Code (Replace with) Select
<div style="float: left; margin-right: 4px;">', $topic['first_post']['member']['avatar'], '</div>

In the file $sourcedir/MessageIndex.php
Code (Find) Select
'name' => $row['first_display_name'],

Code (Replace with) Select
'name' => $row['first_display_name'],
'avatar' => $board_avatar,


I ignored those edits and had no errors at all on install.
Title: Re: AvatarOnBoard
Post by: Adrek on June 30, 2012, 02:50:47 AM
This was for showing avatar from topic starter, because by default mod shows avatar from last poster. This edits aren't required.
All you need is in reply #468 :)
Title: Re: AvatarOnBoard
Post by: D.Joe on July 05, 2012, 11:31:43 AM
Quote from: phantomm on June 30, 2012, 02:50:47 AM
This was for showing avatar from topic starter, because by default mod shows avatar from last poster. This edits aren't required.
All you need is in reply #468 :)
Not unique table/alias: 'mav'
File: /home/rasserve/public_html/forum/Sources/Subs-BoardIndex.php
Line: 78

:-\
Title: Re: AvatarOnBoard
Post by: Adrek on July 05, 2012, 11:39:53 AM
can you attach this file?
Title: Re: AvatarOnBoard
Post by: D.Joe on July 05, 2012, 12:43:46 PM
I solved, i got another 2 problems : how do i remove the noavatar on redirects and how do I remove last post in child board's description
Title: Re: AvatarOnBoard
Post by: Adrek on July 05, 2012, 01:41:34 PM
Quote from: D.Joe on July 05, 2012, 12:43:46 PM
I solved
How did you solved it?

Quote from: D.Joe on July 05, 2012, 12:43:46 PM
how do i remove the noavatar on redirects
I don't use this mod anymore, so pure guess...:
In BoardIndex.template:
Code (Find) Select

if (!$modSettings['disable_avatar'])

Code (Replace with) Select

if (!$modSettings['disable_avatar'] && !$board['is_redirect'] && !empty($board['last_post']['id']))
Title: Re: AvatarOnBoard
Post by: D.Joe on July 05, 2012, 01:53:04 PM
Quote from: phantomm on July 05, 2012, 01:41:34 PM
How did you solved it?
There was some duplicates.
And how about removing 'last post' from child boards
Title: Re: AvatarOnBoard
Post by: xeon365 on July 08, 2012, 05:13:52 AM
Would also like to get $topic['last_post']['member']['avatar']

to $topic['first_post']['member']['avatar']

only it has no data for that.

And have the avatar on the left side of the subject title, preferably in a new table cell... I can't understand why this isn't part of SMF, was looking around for ages on how to get this done on SMF, as its so populiarzed by XenForo

Anyway hopefully some more code bits to get it working would be awesome.. better yet a packaged mod.

ps most awful and hard to get right looking captcha I have ever seen smf..
Title: Re: AvatarOnBoard
Post by: xeon365 on July 10, 2012, 10:25:13 AM
seriously no one can fix this mod up ?
Title: Re: AvatarOnBoard
Post by: Adrek on July 10, 2012, 12:52:10 PM
There's nothing to fix. Mod works as author wanted to...
Title: Re: AvatarOnBoard
Post by: xeon365 on July 10, 2012, 11:05:12 PM
Then how about 'improve'

first poster avatar is what some of us actually want..
Title: Re: AvatarOnBoard
Post by: TheListener on July 10, 2012, 11:20:45 PM
Quote from: xeon365 on July 10, 2012, 11:05:12 PM
Then how about 'improve'

first poster avatar is what some of us actually want..

The mods author hasn't been active for a long time so that will not happen soon.
Title: Re: AvatarOnBoard
Post by: Arantor on July 11, 2012, 12:08:37 AM
Quote from: xeon365 on July 10, 2012, 11:05:12 PM
Then how about 'improve'

first poster avatar is what some of us actually want..

People being nice is what some others of us actually want.
Title: Re: AvatarOnBoard
Post by: xeon365 on July 11, 2012, 01:28:15 AM
"The mods author hasn't been active for a long time so that will not happen soon."

That's a shame, I can see why people dump smf.
Title: Re: AvatarOnBoard
Post by: TheListener on July 11, 2012, 01:40:27 AM
Quote
That's a shame, I can see why people dump smf.

Nobody said anything about being dumped.

Title: Re: AvatarOnBoard
Post by: BaghdadGhost on July 11, 2012, 02:52:46 AM
Hi all,

I tried phantomm changes on 2.0.2. its shows avatars and all good except these two errors in error log


http://localhost/smf/index.php?
8: Undefined index: disable_avatar
File: .../Themes/theme/BoardIndex.template.php (main sub template - eval?)
Line: 174

this line

if (!$modSettings['disable_avatar'])



http://localhost/smf/index.php?board=1.0
8: Undefined index: disable_avatar
File: .../Themes/theme/MessageIndex.template.php (main sub template - eval?)
Line: 286

this line


if (!$modSettings['disable_avatar'])

any suggestions?

Title: Re: AvatarOnBoard
Post by: BaghdadGhost on August 09, 2012, 12:36:30 AM
OK I got it. this error is related to a missing steps during manual installation. those steps were not mentioned with the manual edit installation. If you want this mod to work with 2.0.2 without any errors, after you do all edits run these two queries


SHOW COLUMNS FROM {$db_prefix}settings
LIKE 'disable_avatar'




INSERT IGNORE {$db_prefix}settings
VALUES ('disable_avatar', '0'),
('board_avatar_width', '40'),
('board_avatar_height', '0'),
('display_childboards', '0')


make sure to replace {$db_prefix} with your actual database prefix.

-------
Title: Re: AvatarOnBoard
Post by: Adrek on August 09, 2012, 03:15:21 AM
ups.. I forgot about that ::)

Added to my post, thanks ;)
Title: Re: AvatarOnBoard
Post by: BaghdadGhost on August 09, 2012, 10:13:34 PM
Quote from: phantomm on August 09, 2012, 03:15:21 AM
ups.. I forgot about that ::)

Added to my post, thanks ;)

Not a problem.

thank you also for making it possible to work with smf 2
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on August 10, 2012, 11:54:23 AM
When it will be released as mod for smf 2.0.2 as well?
Title: Re: AvatarOnBoard
Post by: TheListener on August 11, 2012, 08:39:17 PM
Quote from: bestfriendavinash on August 10, 2012, 11:54:23 AM
When it will be released as mod for smf 2.0.2 as well?

The mod works on 2.0.2 already.

Please read the mod emulate link in my signature.
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on August 12, 2012, 01:27:11 AM
Quote from: Old Fossil on August 11, 2012, 08:39:17 PM
Quote from: bestfriendavinash on August 10, 2012, 11:54:23 AM
When it will be released as mod for smf 2.0.2 as well?

The mod works on 2.0.2 already.

Please read the mod emulate link in my signature.

didn't worked for me..  :(
Title: Re: AvatarOnBoard
Post by: tMicky on September 17, 2012, 05:37:10 AM
db
Title: Re: AvatarOnBoard
Post by: tMicky on September 17, 2012, 06:19:42 AM
OMG, it worked, thanks to phantomm, baghdadghost and everyone.

I did the complete manual install, instead of the emulation. My first ever. I can't believe it worked.

Can I just copy the edited files from my test forum to the actual forum? and add the 2 queries to the database?
Title: Re: AvatarOnBoard
Post by: Babadinho on September 20, 2012, 06:20:34 AM
cant find Robbo_'s attachment, somebody should attach please
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on September 20, 2012, 10:32:19 AM
It didn't worked for me... can anyone do it for me... please!!
Title: Re: AvatarOnBoard
Post by: TheListener on September 20, 2012, 06:09:22 PM
Please refer to reply 499.
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on September 21, 2012, 03:55:51 AM
Quote from: Old Fossil on September 20, 2012, 06:09:22 PM
Please refer to reply 499.

I've already mentioned that mod emulate didn't worked for me  :-X
Title: Re: AvatarOnBoard
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2012, 04:16:33 AM
I don't think he is referring to emulation. I think he is referring to manually make modifications as per the update made by members here and not original mod package. Correct me if I'm wrong.
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on September 21, 2012, 04:18:37 AM
Reply 499 is made by me...it is as below

Quote from: bestfriendavinash on August 12, 2012, 01:27:11 AM
Quote from: Old Fossil on August 11, 2012, 08:39:17 PM
Quote from: bestfriendavinash on August 10, 2012, 11:54:23 AM
When it will be released as mod for smf 2.0.2 as well?

The mod works on 2.0.2 already.

Please read the mod emulate link in my signature.

didn't worked for me..  :(
Title: Re: AvatarOnBoard
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2012, 04:45:59 AM
I actually think you know what to do as you are the one replying to the manual modifications here in 468 (http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732).

If you need it as a package, you cannot get it from here anymore. SMF seems strict in this matter and do not allow the repackaging and distributing of mod without its author prior permission. You can, however, request someone, to do it manually for your forum.
Title: Re: AvatarOnBoard
Post by: bestfriendavinash on September 21, 2012, 05:00:52 AM
I have installed a SMF on my desktop also with all the mods which has been installed on actual server for experiment purpose. I tried those steps but it completely messed up my desktop SMF...
Title: Re: AvatarOnBoard
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2012, 07:16:52 AM
Better get professional help as mod author has not been active for quite sometimes.
Title: Re: AvatarOnBoard
Post by: Surf3rDud3 on November 05, 2012, 01:36:30 AM
Can someone help me out I've tried installing this manually but most of my code did not match up with the Parser. Any help?
Title: Re: AvatarOnBoard
Post by: Adrek on November 05, 2012, 11:49:19 AM
did you tried this instructions http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732 ?
Title: Re: AvatarOnBoard
Post by: Surf3rDud3 on November 30, 2012, 03:17:31 AM
My BoardIndex.template.php seems different.
Title: Re: AvatarOnBoard
Post by: carlosgq on March 03, 2013, 10:41:29 AM
Quote from: Zuća on February 26, 2012, 06:15:21 PM
Quote from: alexx-1 on February 26, 2012, 05:55:10 PM
Quote from: jaisi on August 29, 2011, 07:08:40 AM
i'am getting this error please see blow attached pics


my forum version is 2.0
bump

download avataronboardRC2 in attachment

http://www.simplemachines.org/community/index.php?topic=223656.msg2445295#msg2445295

I want this mod, but the link above no attachments, please where I can get this mod
Title: Re: AvatarOnBoard
Post by: Shambles on March 03, 2013, 10:46:49 AM
Quote from: carlosgq
I want this mod, but the link above no attachments, please where I can get this mod

http://custom.simplemachines.org/mods/index.php?mod=1103
Title: Re: AvatarOnBoard
Post by: carlosgq on March 03, 2013, 11:04:41 AM
Quote from: Shambles on March 03, 2013, 10:46:49 AM
Quote from: carlosgq
I want this mod, but the link above no attachments, please where I can get this mod

http://custom.simplemachines.org/mods/index.php?mod=1103

this mod version not working for me, my forum version is 2.0.4
Title: Re: AvatarOnBoard
Post by: Shambles on March 03, 2013, 11:30:41 AM
Quote
this mod version not working for me, my forum version is 2.0.4
What do you mean by "not working" ?
Title: Re: AvatarOnBoard
Post by: carlosgq on March 03, 2013, 12:03:30 PM
Quote from: Shambles on March 03, 2013, 11:30:41 AM
Quote
this mod version not working for me, my forum version is 2.0.4
What do you mean by "not working" ?

the mod tells me that there are mistakes and I should not continue with the installation, I did the manual steps to install it I found on page 34 of this post, including modifications to the database, but does not work well, if they are avatars in the board, but it looks the same avatar for all, which you install in the folder that is the avatars and avatars of those who have no avatar
Title: Re: AvatarOnBoard
Post by: tMicky on May 14, 2013, 05:38:16 AM
Can someone please help me figure this error out.

After installing this mod, I can see the avatars, but I keep getting this error


    http://mydomain.com/index.php?http://mydomain.com/Themes/Music_2_0/css/avatar_frame_mod.css
    8: Undefined index: disable_avatar
    File: ../Themes/Music_2_0/BoardIndex.template.php (main sub template - eval?)
    Line: 202
Title: Re: AvatarOnBoard
Post by: Draffi on May 28, 2013, 05:03:13 PM
i have a question about this posting:

http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732
(edits for SMF 2.0.2)

I need to install the Mod first and follow with the installation, including i have errors AND then i will do the edits from this post?
Title: Re: AvatarOnBoard
Post by: Adrek on May 29, 2013, 12:09:16 PM
Quote from: Draffi on May 28, 2013, 05:03:13 PM
I need to install the Mod first and follow with the installation, including i have errors AND then i will do the edits from this post?
Don't install package, just make this edits in files.
Title: Re: AvatarOnBoard
Post by: Biology Forums on August 07, 2013, 01:55:36 AM
Thanks for the great mod... I successfully installed it so that it only works in the message index. Didn't want to call out all those queries if I don't plan on using it for the main board index. ;)
Title: Re: AvatarOnBoard
Post by: Ventic on September 16, 2013, 07:18:40 PM
Working on 2.0.5,according to #468 reply

Thanks
Title: Re: AvatarOnBoard
Post by: MechSpecs on February 23, 2014, 10:44:44 PM
I tested Ventic's post above and received several errors during an installation attempt.

With the author gone for several years I think SimpleMachines should allow people who have it working on 2.0.7 (or maybe even earlier) to repack the mod and allow it to go out for distribution. This is a mod that looks like is pretty popular and is a lot of work for non-coders like myself to get a grasp on. I have looked at the instructions in post #468 and I can pretty much follow along except for the query stuff... How do I do this with MyPHPAdmin?
Title: Re: AvatarOnBoard
Post by: All Colours Sam on February 24, 2014, 11:36:21 AM
We don't have any power to do such thing, the mod author owns his/her own code and all rights associated with it, including (re) distribution.
Title: Re: AvatarOnBoard
Post by: MechSpecs on February 24, 2014, 12:02:25 PM
Guess we will just have to wait for some author to recode it from scratch and make it available for current applications versus outdated ones. :(
Title: Re: AvatarOnBoard
Post by: All Colours Sam on February 24, 2014, 12:06:23 PM
It was on my to-do list, sadly, I have way too many things to take care of right now, I don't even have time to update my own mods :(
Title: Re: AvatarOnBoard
Post by: MechSpecs on February 24, 2014, 12:16:50 PM
Quote from: Suki on February 24, 2014, 12:06:23 PM
It was on my to-do list, sadly, I have way too many things to take care of right now, I don't even have time to update my own mods :(

I'm working on a cloning process! Don't worry, we will get more productivity out of you yet!!!!

For other coders who are reading this, there is a hint that maybe you could step up and take your chance to shine... or something.
Title: Re: AvatarOnBoard
Post by: Padre gremista on March 10, 2014, 11:05:57 PM
The autor of Mod will upgrade for compatible with 2.0.7 version?
Title: Re: AvatarOnBoard
Post by: Mr.Truckman on March 12, 2014, 03:22:41 AM
I modified to the version 2.0.7.

I think if someone wants to use it.

sample: http://www.xn--12cl9beo6cca1dl1hqc2p.com/forum/

Thanks mod creators: http://www.simplemachines.org/community/index.php?topic=223656.msg1432226#msg1432226
Title: Re: AvatarOnBoard
Post by: margarett on March 12, 2014, 04:12:25 AM
I am sorry but I had to remove the file.

The MOD has no license, which means you can't modify and redistribute it.
If you wish to do so, please contact the MOD author and ask him for permission to take over.
Title: Re: AvatarOnBoard
Post by: Steve on March 12, 2014, 09:56:01 AM
In regards to that, what if the author of a mod can't be contacted? Is there a method where a mod can be marked 'abandoned' or something similar and then be allowed to be taken over by someone?
Title: Re: AvatarOnBoard
Post by: Mr.Truckman on March 12, 2014, 10:29:53 AM
Quote from: margarett on March 12, 2014, 04:12:25 AM
I am sorry but I had to remove the file.

The MOD has no license, which means you can't modify and redistribute it.
If you wish to do so, please contact the MOD author and ask him for permission to take over.

:-[ :-[
Title: Re: AvatarOnBoard
Post by: margarett on March 12, 2014, 12:27:09 PM
Quote from: Nuttysman on March 12, 2014, 09:56:01 AM
In regards to that, what if the author of a mod can't be contacted? Is there a method where a mod can be marked 'abandoned' or something similar and then be allowed to be taken over by someone?
Not really, no... If we want to respect copyright, and we do.
Title: Re: AvatarOnBoard
Post by: Padre gremista on March 12, 2014, 01:15:14 PM
Quote from: Mr.Truckman on March 12, 2014, 03:22:41 AM
I modified to the version 2.0.7.

I think if someone wants to use it.

sample: http://www.xn--12cl9beo6cca1dl1hqc2p.com/forum/

Thanks mod creators: http://www.simplemachines.org/community/index.php?topic=223656.msg1432226#msg1432226

You can send for me for MP, the file?

I am needing much this MOD.
Title: Re: AvatarOnBoard
Post by: Sabre™ on March 13, 2014, 01:29:53 AM
Evening Margarett.
Before leaving SMF to pursue other things in life, JohnyB asked me if I'd like to take over any of his mods(can check my pm history), I had no time back then, I do now, and have a few more years knowledge to offer.
My question is, does our conversation hold enough weight to fulfil his wish?

Regards
Title: Re: AvatarOnBoard
Post by: margarett on March 13, 2014, 04:07:26 AM
It does. Check your PMs, and PM a quote of that to "SMF Customization Team" user.

It will be handled internally ;)

PS: great news, methinks ;)
Title: Re: AvatarOnBoard
Post by: Padre gremista on March 13, 2014, 09:34:04 AM
I installed the RCI 1 mod version, but, i am having some problems.

On some boards the image is showing right. But, on others, the avatar image is not showing.

View the erro in anex.
Title: Re: AvatarOnBoard
Post by: MechSpecs on March 13, 2014, 12:13:53 PM
This is great news indeed!! If the original author is allowing someone else to handle it then kudos to them for being about the people and not about the product!

I eagerly look forward to seeing if I can get a 2.0.7 version that will work with a stretched width Citiez theme!
Title: Re: AvatarOnBoard
Post by: Padre gremista on March 16, 2014, 11:58:41 AM
There any way for change the avatar showing of the last reply, for the autor of topic?
Title: Re: AvatarOnBoard
Post by: MechSpecs on April 06, 2014, 07:27:20 PM
Has this been updated after the tete et tete between the author, the poster on the previous page and the admins?
Title: Re: AvatarOnBoard
Post by: IDareKI on May 23, 2014, 10:48:26 AM
If someone has this mod for 2.0.6 or 2.0.7 - please send it for my PM.
Title: Re: AvatarOnBoard
Post by: T3CHN0 on May 23, 2014, 12:07:44 PM
I updated the line at fault only that was no longer looking for the correct php string

Everything else about this mod is still the same, I tested it and works on my 2.0.7 install.

Note: not on all Themes

Title: Re: AvatarOnBoard
Post by: Arantor on May 23, 2014, 12:09:15 PM
And do you have permission from the mod author to update it? If not, it'll have to be removed since no licence appears to be stated :(
Title: Re: AvatarOnBoard
Post by: T3CHN0 on May 23, 2014, 12:24:50 PM
And no I don't have permission, but if the modder is not doing it him self why can't I help out!.
Remove it then, Just trying to help everyone out.

I am not claiming it as mine everything about it 'email's copyright the lot' it is all still the same.

This mod belongs to the creator not me.
if you don't want it don't download it.

All respect the the author of this mod and his hard work creating it.
Title: Re: AvatarOnBoard
Post by: Arantor on May 23, 2014, 02:22:14 PM
Because it's the law, sadly. Without formal permission, you're technically in breach of the author's copyright. That's why the team insists on licences for things these days, specifically to deal with this situation.
Title: Re: AvatarOnBoard
Post by: Padre gremista on June 13, 2014, 12:27:35 AM
How repair this error in annex below?
Title: Re: AvatarOnBoard
Post by: margarett on June 13, 2014, 06:37:16 AM
You probably have duplicate code added in MessageIndex.template.php, that's why the avatar column is shown twice...
Title: Re: AvatarOnBoard
Post by: AllanD on June 21, 2014, 09:27:32 PM
Does anyone have a working version for 2.x.x?
Title: Re: AvatarOnBoard
Post by: lewism on September 21, 2014, 08:55:08 PM
When installing the latest I could find, I get a 'corruption' and/or 'incompatible' message on my smf 2.0.8.
Is this no longer supported with 2.0.8 and if not, is there anything else that will list avatars with post listings?

Thanks.
Title: Re: AvatarOnBoard
Post by: margarett on September 21, 2014, 08:57:44 PM
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
It probably requires emulation ;)
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 14, 2015, 07:13:57 PM
Ok I have a little problem I can not get my head around.

I have been playing with this on my localhost  SMF 2.0.1.0

Now I can not get the avatar image to appear on my Board Index yet it shows the no avatar (avatar image) yet as you can see it appears everywhere else..
Simple but what else can I say!

Any Ideas?



Title: Re: AvatarOnBoard
Post by: br360 on May 14, 2015, 07:24:59 PM
I would suggest checking your Subs-BoardIndex.php and theme/BoardIndex.template.php and make sure you aren't missing any code from the mod in either of those two.

Here are the code edits that have to be manually added in those files-

http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732

Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 14, 2015, 07:32:19 PM
OK thanks will check again to make sure I have not missed anything.
Once again thanks for the quick reply, although with these edits my re reply may take a little longer ;D
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 14, 2015, 08:44:33 PM
I have just double checked these edits and they are as the post you sent me to, so it must be something else! I will re check them for a third time tomorrow morning as it is 2am UK just to make sure!
Title: Re: AvatarOnBoard
Post by: br360 on May 14, 2015, 09:12:58 PM
Is it working properly on the smf curve default theme?
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 15, 2015, 03:40:13 AM
I am using the curve theme although it does not look like it in the pics. I have just removed the search and user info from the header and done some simple css changes to get the colour variations I want.
Title: Re: AvatarOnBoard
Post by: br360 on May 15, 2015, 06:37:22 PM
Ah ok. How did you install the mod? Did you try doing it through your package manager, or did you manually do it by adding the mod edits into the files (from the link I posted above)?
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 16, 2015, 04:34:45 AM
I did the manual edits from post 464 and the db edits from post 494
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 17, 2015, 10:28:11 AM
Ok sotred it thanks!
Title: Re: AvatarOnBoard
Post by: assafk on May 26, 2015, 04:10:11 AM
Hey
I have SMF 2.0.10
When i install this model i get this error message (attached picture)

The error - File not found
Should i create new file in order to make this mod working?

Please advise

Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 26, 2015, 04:18:19 AM
Read message 805
I installed this through the package manager, it did not work. I manually installed it from the parse, it did not work.
I followed the link from the post 805 and it worked!
as for the missing css file are you using a child theme!  I noticed that when I created child themes it did not copy certain files over so I just copied the default theme file over to my child themes.
Title: Re: AvatarOnBoard
Post by: assafk on May 26, 2015, 04:21:04 AM
Hey
What do you mean by "Read message 805"

Can you send me a link?

Thank you very much
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 26, 2015, 04:25:44 AM
Here are the code edits that have to be manually added in those files-

http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732

if you are using a child theme of the default theme then just copy the forum css over to your theme. if you are using another theme then you should chat to the theme designer.
Title: Re: AvatarOnBoard
Post by: assafk on May 26, 2015, 04:28:40 AM
Wow
looks complicated and risky  :(

Any other options to make this mod working?
Title: Re: AvatarOnBoard
Post by: Blue-Suit on May 26, 2015, 04:33:57 AM
download notepad++ then go into your folders where the files are open them and save them to your desktop, do the changes which are simply find replace add after add before arguments etc, they may look complicated but once you get your head around them they are not really... if your theme cocks up just copy the saved files back from the desktop to your theme folders and do an uninstall.

As for any other simple way,, no not really unless you can get someone to modify the files for you.
Title: Re: AvatarOnBoard
Post by: Mayko on February 11, 2016, 04:52:27 PM
Please make it an installable mod . . . please
Title: Re: AvatarOnBoard
Post by: br360 on February 11, 2016, 05:14:00 PM
Unfortunately the mod has no license, so nobody would be able to redistribute this or even package it into an installable mod for your current version.

The only options would really be for someone else to create a brand new mod that does the same thing, or you can try to install it manually with this updated fix- http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732
Title: Re: AvatarOnBoard
Post by: Wiki80 on March 20, 2016, 07:13:23 AM
Wrong code avataronboarddb2.php

<?php
{
if (!
defined('SMF'))
  die(
'Hacking attemp...');

global
$smcFunc, $db_prefix;

$request = $smcFunc['db_query']('', "
  SHOW COLUMNS FROM
{$db_prefix}settings
  LIKE 'disable_avatar'"
,
  array()
  );
$no_upgrade = $smcFunc['db_num_rows']($request) > 0;
if (!
$no_upgrade)
$smcFunc['db_query']('', "
  INSERT IGNORE
{$db_prefix}settings
  VALUES ('disable_avatar', '0'),
     ('board_avatar_width', '40'),
     ('board_avatar_height', '0'),
     ('display_childboards', '0')
  "
,
  array()
  );
$smcFunc['db_free_result']($request);
}

?>


Once installed, it receives:


Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'b.id_board, b.name AS board_name, b.description,
CASE WHEN b.redirect != '' T' at line 3
File: /web/htdocs3/smfportalhu/home/www/teszt/Sources/Subs-BoardIndex.php
Line: 73
Title: Re: AvatarOnBoard
Post by: Pipke on April 08, 2016, 08:12:23 AM
Quote from: br360 on February 11, 2016, 05:14:00 PM
Unfortunately the mod has no license, so nobody would be able to redistribute this or even package it into an installable mod for your current version.

The only options would really be for someone else to create a brand new mod that does the same thing, or you can try to install it manually with this updated fix- http://www.simplemachines.org/community/index.php?topic=223656.msg3350732#msg3350732

there is a new mod available who does the job for you Avatars on Board and/or MessageIndex (http://custom.simplemachines.org/mods/index.php?mod=4107)
Title: Re: AvatarOnBoard
Post by: razzy on August 18, 2017, 01:55:22 PM
so, once again i'm just hoping to be posting in the right spot. I'm not sure if this is even the thread for the mod I installed.

Avatars on Board/MessageIndex Mod?
Anyways. It's installed just fine, and is pretty slick. I love it.

Although once a category has been posted in, it shows 'abm' above the who posted last bit. I could try reading through the code to see if I cant find where that bugger is, but I was hoping someone knew about the issue already and could help.

screenshot following.
Title: Re: AvatarOnBoard
Post by: br360 on August 18, 2017, 02:53:24 PM
It looks like this is the mod you installed- https://www.simplemachines.org/community/index.php?topic=544924.0

You should post this same thing on the support topic for that mod
Title: Re: AvatarOnBoard
Post by: razzy on August 18, 2017, 06:23:34 PM
Thank you, and sorry about the error.
Title: Re: AvatarOnBoard
Post by: Hero2019 on March 07, 2019, 04:30:07 AM
Could someone please update this MOD for RC1?

Thanks in advance.
Title: Re: AvatarOnBoard
Post by: Arantor on March 07, 2019, 04:52:14 AM
Given that the author hasn't been around for years, that seems unlikely.
Title: Re: AvatarOnBoard
Post by: Hero2019 on March 07, 2019, 05:09:57 AM
Yes, I have unfortunately seen. But maybe it could suit someone else.
Title: Re: AvatarOnBoard
Post by: Arantor on March 07, 2019, 07:19:46 AM
It would need to be a from scratch rewrite.