Firefox PHP

Module: User Avatar

Posted by Maurice Makaay 
Re: unable to see Avatar
August 04, 2009 02:05AM
The question should have posted elsewhere indeed. The modules forum is only for posting new modules and for discussing existing modules in their respective thread. I merged your question with the user avatar thread, so now it's in the right spot.

The user avatars are working fine on this forum, so it's strange that you cannot see it. Did you select the avatar that you want to display in the avatar control center panel?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: unable to see Avatar
August 04, 2009 10:59PM
Maurice,
I've seen both you messages thanks for getting me back on track.
with regards to giving you a login and pass code to check online while that you be ideal I like to test things before I push them to our production server (the idea being if it works on the test platform it should work on the main server) to that end... I've been testing "mod_user_avatar" with FC8 and with a mac book pro server. The Mac platform is useless...

I can see the avatar if I click on a poster's name however working through all the template ".tpl's" i.e. read.tpl, read_hybrid.tpl, read_thread.tpl and Profile.tpl

they don't show up. I've running Phorum5v 5.2.12A with mod ver. 3.0.4 "user_avatar"

in the "README" file it shows basic format(and since I am a newbie) I cut and pasted the code into the file. But I'm not sure if I've pasted the code in the right places...
HELP!
Sheldon
Re: unable to see Avatar
August 04, 2009 11:05PM
I don't know either if you did it right and not being able to see it certainly doesn't make it easier to guess what's going on. But the template changes aren't rocket science so I guess that you have done them correctly.

The question is if you did update the correct template files. Asuming you did everything like it was meant to be, you have copied templates/emerald to templates/yourtemplate before starting to edit the template. If you did this, then you'd have to edit templates/yourtemplate/read.tpl for adding the template to the read page. If you didn't create your own template dir (not recommended, because upgrading is harder) then you'd have to edit templates/emerald/read.tpl.

A quick check to see if you're editing the correct template, is to add some obvious code to the start of it. E.g. add something like

<h1>YES, THIS IS THE FILE!!!!</h1>

to the start of the read.tpl that you are editing. Then reload the read page. If you see the heading appear (should be quite obvious when done like this), then you are editing the correct file. If it doesn't appear, then it'd make sense that the avatar changes wouldn't show up either.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: unable to see Avatar
August 04, 2009 11:28PM
let me give that a try
Re: unable to see Avatar
August 05, 2009 12:01AM
I dropped your "<h1>YES, THIS IS THE FILE!!!!</h1>" in the top of the read.tpl, inside the "LOOP MESSAGES" and at the bottom of the page and it does not show up anywhere
Re: unable to see Avatar
August 05, 2009 12:05AM
Then the conclusion is that you are not editing the template for the page that you are looking at.

So did you create your own template besides emerald? If yes, then go into the settings for the forum that you are looking at and see if you selected your custom template as the template for that forum.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: unable to see Avatar
August 05, 2009 12:28AM
No I have not created my own template I am using emerald (by the way whoever chose that color is my hero) you comment"see if you selected your custom template as the template for that forum" reading that line force me to look at:"Allowed Files (eg: gif;jpg;png, empty for any)" and I added "gif, jpg, png" and updated I then went to"Custom Profiles" to make sure the field "mod_user_avatar" was listed... then I refreshed the page and got what I've sent as an attached file


Re: unable to see Avatar
August 05, 2009 12:45AM
Allow files doesn't have anything to do with this. The avatar modules handle its own file permission management.

But somehow, your avatar now appeared it seems. I don't know why really, but good to see that it's in there now.

It does appear twice, which could indicate that you added the template code in two places.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: unable to see Avatar
August 05, 2009 01:06AM
I saw that also, I was hopping you noticed... I had:
"{IF MESSAGES->user_avatar}
<img src="{MESSAGES->user_avatar}" alt="avatar" />
{/IF}" added above the code "{IF NOT MESSAGES-> parent_id 0}"

then again below "{MESSAGE->datestamp}"

although now I'm wondering why my avatar is lined up on the right and has not replaced the little "ICON BUDDY" to the left of my name like it is here in your forum?


Re: unable to see Avatar
August 05, 2009 01:19AM
See other messages in this thread:

[www.phorum.org]
[www.phorum.org]


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login