AvatarOnBoard

Started by Bulakbol, February 18, 2008, 10:39:03 PM

Previous topic - Next topic

Bulakbol

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.  :(
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kimmie

#101
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

Bulakbol

#102
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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kimmie

#103
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. :)

Bulakbol

#104
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>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kimmie

#105
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)


Bulakbol

Cool. Let me know how it went.  :)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kimmie

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

Bulakbol

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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kimmie

#109
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.

Bulakbol

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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kimmie

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.  :)

Bulakbol

Hi Kimmie. Good luck bud. If you need my help, I'll do the best I can.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

klra

Very nice Mod-

Just wanted to say thanks!


Bulakbol

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.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

JungleBunny

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

Bulakbol

#116
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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Bulakbol

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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

klra

Since my installation seems to be woking properly, do I need to make the correction?

Bulakbol

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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: