We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Forum | Forum

Michel
Michel Jan 30 '14
Hello,

i want to give my moderator's some logo on the forum down their pic how can i do that?
dave Leader
dave Jan 30 '14

i think the best you can do is something like mine and give them a role name, do you know how to do that?

The Forum post is edited by dave Jan 30 '14
Michel
Michel Jan 31 '14
ye i know how to do that but i want to give them a logo :P
dave Leader
dave Jan 31 '14

How big is the logo? And you would want to put it on the bottom of their large profile pic only? 


 It would just look like a tiny dot on the smaller avatar so that would not be good, you would only be able to use it on their large avatar. 

Michel
Michel Feb 2 '14
no i meant this check picture

Only for my moderators
The Forum post is edited by Michel Feb 2 '14
dave Leader
dave Feb 2 '14
oh ok thanks for the image.   my forum is not set up like that so i will have to look and try to find where to add that, it would be a special mod.
Michel
Michel Feb 2 '14
okii thanks!
dave Leader
dave Feb 2 '14
try this, untested as i am working on something else.. 


in ow_plugins/forum/views/controllers/topic_index.html  


look for this section  and try to put your image right after the avatar which i have marked with a comment line for you 


{foreach from=$postList item=post name=postList}

{capture assign='tpl'}{capture name='info_string'}

<a href="{$avatars[$post.userId].url}">{$avatars[$post.userId].title}

</a> <span class="ow_tiny ow_ipc_date ow_remark">{$post.createStamp}</span>

{/capture}


<!-- try putting your image here and see where it shows, dont forget to clear your cache, if that does not work then move this inside the capture above with a <br /> and then your image. -->


{capture name='content'}<div class="post_content"> 

The Forum post is edited by dave Feb 2 '14
dave Leader
dave Feb 2 '14
also i would not make it any wider than the avatar or it would mess up your page.  Looks like the avatar is 45x45 so no bigger than that 
Michel
Michel Feb 2 '14
okii dave ill try that! :-) thank you
Michel
Michel Feb 2 '14
/ow_plugins/forum/views/controllers/topic_index.html
Controllers says topic_index.html not components :P
dave Leader
dave Feb 2 '14
controllers sorry i was multi tasking i will fix my prev post sorry 
Michel
Michel Feb 2 '14
np dave ill try it now :-)
Michel
Michel Feb 2 '14
do i need to do something in my config?

i did it this way <!-- <img src="http://www.tibiaevents.com/teamlogo.png" /> -->
The Forum post is edited by Michel Feb 2 '14
dave Leader
dave Feb 2 '14
like this  <img src="http://www.tibiaevents.com/teamlogo.png" /> 


the <!-- is the open comment  and the --> is the close comment everything in the middle is html comment only 

i you happen to see that link sorry about the inclusion of the post link  before i was saving what i was working on lol  i have removed the link lol 

The Forum post is edited by dave Feb 2 '14
dave Leader
dave Feb 2 '14
and yes if you dont have the cache plugin then clear you cashe using the config process
Michel
Michel Feb 2 '14
<div class="ow_forum_topic_posts">

{foreach from=$postList item=post name=postList}
{capture assign='tpl'}
    {capture name='info_string'}
        <a href="{$avatars[$post.userId].url}">{$avatars[$post.userId].title}</a>
        <span class="ow_tiny ow_ipc_date ow_remark">{$post.createStamp}</span>
    {/capture}

<img src="http://www.tibiaevents.com/teamlogo.png" />
    {capture name='content'}

so this is correct?
Michel
Michel Feb 2 '14
okii that went good now i want it under my pic instead of above

and it gives my users the same image :P
The Forum post is edited by Michel Feb 2 '14
dave Leader
dave Feb 2 '14
looks good, you might want to toss in border="0" and alt is required by w3c even if its blank and i dont see height and width but as long as its not over 45x45 you should be ok ,  


so do 

<img src="http://www.tibiaevents.com/teamlogo.png" border="0" alt="" /> 
fire it up and let me know thanks  

dave Leader
dave Feb 2 '14
right lets work on the placement first and then we will do it for only moderators 


Pages: 1 2 3 4 5 6 »