Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> PhpBB2 General Support
NeuralDream

Custom profile fields with image as content stopped working

Hi, for the last few weeks the custom profile fields that used to show images now only show the name of the file of the image and not the image. I haven't changed anything and at the time I was the only admin.

The forum is http://aaminis.myfastforum.org

The way I have it, which was working until recently, is:

custom field name: OlympicMedals1
and display as image field: /templates/myfs_aaminis1/images/{OlympicMedals1}

The images are still there. For example this one http://aaminis.myfastforum.org/templates/myfs_aaminis1/images/was1.png
is but it doesn't appear in the relevant profile field, while it used to appear.

See for example the original poster here: http://aaminis.myfastforum.org/about429.html His profile fields include a was1.png, while it should show the relevant image.

The same for the flags. I can't see the flags any more.
admin (no pm's please)

it used to be the case that if an image was defined for FRED then both {FRED} and {FRED_IMG} would be set to the image html, this in effect was a bug and you have been getting away with code that should not have been working

replace :

{OlympicMedals1}

with:

{OlympicMedals1_IMG}
NeuralDream

admin (no pm's please) wrote:
it used to be the case that if an image was defined for FRED then both {FRED} and {FRED_IMG} would be set to the image html, this in effect was a bug and you have been getting away with code that should not have been working

replace :

{OlympicMedals1}

with:

{OlympicMedals1_IMG}

I'm afraid it still doesn't work and I'm not sure I understood why this was a bug. It seems reasonable that {OlympicMedals1} is enough to show the image since the content of the field is was1.png, which is the name of the image. The type of the custom field is text. I hadn't seen this _IMG anywhere in the tutorials before.

Maybe I should point out that In the case of the flags for example I have:

Display as image:  /flags/{FLAGS}.gif  with the custom field being drop-down menu and the options being "none,afghanistan,albania, ..."

which I got from one of the howtodoit tutorials and always worked but now doesn't. I tried FLAGS_IMG too, of course, but it didn't work either.

Thank you for your kind help. I know you're too busy with more important issues.
admin (no pm's please)

I'm looking into this now.
admin (no pm's please)

I am very confused about this

I have altered the code and your first example now works.

It seems odd to me that this ever would have worked, as the code revisions never show a point where I think it was okay.
NeuralDream

admin (no pm's please) wrote:
I am very confused about this

I have altered the code and your first example now works.

It seems odd to me that this ever would have worked, as the code revisions never show a point where I think it was okay.

By first example you mean the {OlympicMedals1}  without _IMG? It doesn't work for me.
admin (no pm's please)

I can see an image here!

http://aaminis.myfastforum.org/profile.php?mode=viewprofile&u=115

looks like it is working to me.
NeuralDream

admin (no pm's please) wrote:
I can see an image here!

http://aaminis.myfastforum.org/profile.php?mode=viewprofile&u=115

looks like it is working to me.

lol, now this is even more weird than I thought it was. When the images thing was working, it never worked in the profiles. Only in the forum posts. The posters would have their medals under their avatar, but in their profile page it would read "was1.png" or whatever the filename was. Now, it's the opposite happening. The posters don't have their medals under their avatar but text reading the filename, while their profile page shows it nicely as you pointed out.

See for example this post: http://aaminis.myfastforum.org/about503.html of the same member. It reads was1.png instead of showing the image.

I'm more interested in their medals showing under their avatars in their posts rather than in their profile fields. That and the flags of course. They both disappeared suddenly about a month ago. Was there any major change at that time?
admin (no pm's please)

Working now.
NeuralDream

admin (no pm's please) wrote:
Working now.

Indeed, thank you very much!
admin (no pm's please)

but i expect that is in your court.
NeuralDream

admin (no pm's please) wrote:
but i expect that is in your court.

Ok, thanks. I'll try to solve it.

       myfreeforum.org Forum Index -> PhpBB2 General Support
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum