e107help.org Q&A
0 like 0 dislike
Not sure if this should go under core, theme, or plugin, but I chose themes.

Anyway, I know how to set up rank images, but I can't seem to get them to display under the user avatar in the forum post message display screen. Thise seems to be related to bootstrap, but I can't seem to find a way to over ride this. Any bootstrap theme simply ignores my uploaded rank images and uses some css image witha white text on colored background followed by a black fontawesome star.

On older themes that are not bootstrap, the user rank image shows up fine, which is why I believe this is being caused by bootstrap, yet I can't seem to find how/were to edit things to stop this behavior. I don't want the bootstrap rank image, I want the one I uploaded.

Any suggestions or ideas?
e107 version 2.1.9
closed
in Themes by (69 points) 2 7
edited by
Please take a moment to read this if it might be similar (special : last answer from SymSinc)  https://github.com/e107inc/e107/issues/3285

Not sure if this is the same, but it might be. Similar to the posters in that topic, I have the rank image in the admin profile, but not in the forum.

 

Is this the same as that? Should I perhaps just reply to that thread instead then?

I looked again, and see nothing in that thread that fixes my problem. The "fix" that Cameron put in is already in version 2.1.9. I have the same issue as others in that thread following that fix in that the rank image displays in the user profile but not on the forum posts as shown in my screenshots. It is likely being overridden still by bootstrap coding....

I reply first, to find out there might be an issue here.
Yes you normally (from recalling v1) should have an image. That rankage works is to be seen as (this case) the single star = level 1 png (located in ....images/ranks/ )

Now there a dirty test to rename and replace that icon with an image with same name and attribute (png).
It might be show correct, or little 'cut'due to icon sized. (would be ok).

Now trying to find the cause (i do not use nor had) used ranking so looking at some files: 
handlers/e_ranks_class.php  line 23 .

imageFolder = is_dir(THEME.'images/ranks') ? THEME_ABS.'images/ranks/' : e_IMAGE_ABS.'ranks/'
 

This makes me wonder if the path call is correct, again please do some testing (as you have working system),
create a folder in your theme > images/ranks  and put one there.. If it works than we have an issue, and can be posted on org.. ( read code ? please take a look at code of ranks_cl from line 274
could you take the time to look into this? I hope it helps.

Not sure where ranks_cl is located. Could you give me a path? Looked in handlers, system, and plugins/forum for it.

As for images/ranks, I copied it to the theme folder (e107_themes/BS_Gaming_01/images), and no dice. Still not displaying rank images. I suppose I could post to the github page.
I seem unable to use github. I sign in, then go into issues to make a topic, it wants me to sign in again and gives me the something wrong happened message... So unfortunately I can't post an issue regarding this. Sigh...

Its this one i refereed to (maybe shoundn't have stripped it ) wink handlers/e_ranks_class.php

Well have to take/make some time to setup forum and ranks to see what it does.. please hold on ( i can not guarantee a time point ; have to earn a living too)

Yes, the handlers/e_ranks_class looks as you have posted it above. I was confused by your ranks_cl statement. My appologies.

And no worries, I'm patient. I too have a day job :).

1 Answer

1 like 0 dislike
Best answer

I hope this answer your question:

https://www.e107.sk/knowledge_base/how-to-use-display-rank-images-in-forum/?content.90

You need to custom your template. Those shortcodes works with bootstrap too.

by (1.7k points) 12 37 50
selected by

You need to customize forum view template, if you want any different output.


What if the theme doesn't have a forum view template? Being a bootstrap theme, I'm guessing I can change another template that exists?

https://e107.org/developer-manual#overriding-core-templates

Overriding Core Templates

  • All templates that are used in e107 can be overridden by copying them into specific folders within your current theme folder. 
  • ....
  • Plugin templates should be copied into e107_themes/YOURTHEME/templates/PLUGIN-FOLDER
    Note: Older plugins may look for templates in the root folder of your theme. ie. e107_theme/YOURTHEME/  
Thank you so much! That solves it!
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
858 questions
1,254 answers
2,177 comments
5,895 users