Page 1 of 1

Autor avatar of topic title

Posted: Thu Mar 07, 2013 5:29 pm
by VOLKERMORD
I want to have avatar for autor topic (see in the pic!), thanks in advance for any information.

Image

Sory for my bad English.

Re: Autor avatar of topic

Posted: Thu Mar 07, 2013 11:23 pm
by Lumpy Burgertushie
that is not part of standard phpbb. it looks like a "welcome on index" type of MOD.

you would need to ask about it wherever you downloaded the MOD.



robert

Re: Autor avatar of topic

Posted: Fri Mar 08, 2013 10:41 am
by VOLKERMORD
Lumpy Burgertushie wrote:that is not part of standard phpbb. it looks like a "welcome on index" type of MOD.

you would need to ask about it wherever you downloaded the MOD.



robert
No is not a mod just a div and default avatar and the title in a new div
my question was how to extract avatar from the autor of the topic

Re: Autor avatar of topic

Posted: Fri Mar 08, 2013 3:27 pm
by Lumpy Burgertushie
not exactly sure what you are doing with this but here is the avatar code from the viewtopic_body.html file:

Code: Select all

<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
use some or all of that to get what you want.


robert

Re: Autor avatar of topic

Posted: Fri Mar 08, 2013 4:28 pm
by VOLKERMORD
Thanks so much for your help but is not working
Here is the code:

Open: styles/prosilver/template/viewtopic_body
find:

Code: Select all

<h2><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
replace with:

Code: Select all

<div class="forabg" style="margin:4px auto;width:60%;">
         <div class="inner"><span class="corners-top"><span></span></span>
         <ul class="topiclist">
            <li class="header">
               <dl class="icon">
                  <dt><b style="color:#000000; font-size:8px;">Title:</b>&nbsp;&nbsp;&nbsp;<b><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></b></dt>
                  
			   </dl>
            </li>
         </ul>
         <ul class="topiclist forums">
         <li>
            <dl>
               <dd style="padding:2px; text-align: center; border:none;">
                 <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a>
                <!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" width="50px" height="50px" alt="" /><!-- ENDIF --><!-- ENDIF -->
			   
               </dd>
               <dd class="lastpost" style="padding:5px; width:40%;">
               <strong>Topic description:</strong>&nbsp;&nbsp;&nbsp;<i><!-- IF TOPIC_DESC -->{TOPIC_DESC}<!-- ELSE -->No topic description<!-- ENDIF --></i>
               
               </dd>
               
            </dl>
         </li>
         </ul>
<span class="corners-bottom"><span></span></span></div></div>

Re: Autor avatar of topic

Posted: Fri Mar 08, 2013 4:32 pm
by Lumpy Burgertushie
try just using this:
{postrow.POSTER_AVATAR}

edit:

get this:
viewtopic.php?f=69&t=2101603&hilit=welcome
either use it or just use the part that tells you how to put the avatar on the index page.



robert

Re: Autor avatar of topic

Posted: Fri Mar 08, 2013 4:42 pm
by VOLKERMORD
Lumpy Burgertushie wrote:try just using this:
{postrow.POSTER_AVATAR}

edit:

get this:
viewtopic.php?f=69&t=2101603&hilit=welcome
either use it or just use the part that tells you how to put the avatar on the index page.



robert
Stoker 4.0 mode is not what i want to do cos Stoker 4.0 mod will display your on avatar not the avatar who start the topic.
----------------------------------------------------------------
in this way?

Code: Select all

 <!-- IF postrow.POSTER_AVATAR --><img src="{postrow.POSTER_AVATAR}" width="50px" height="50px" alt="" />
                <!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" width="50px" height="50px" alt="" /><!-- ENDIF -->
but is not working, only default avatar is working

Re: Autor avatar of topic

Posted: Fri Mar 08, 2013 5:34 pm
by VOLKERMORD
Lumpy Burgertushie wrote:not exactly sure what you are doing with this but here is the avatar code from the viewtopic_body.html file:

Code: Select all

<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
use some or all of that to get what you want.


robert
but this is code from viewtopic_body.html from post forum by default you just copy paste here and that not help me

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 5:47 pm
by Lumpy Burgertushie
I was trying to show you where the code is that does what you want. you will have to figure out what part of it to use for your situation. as I said before, I have no idea what exactly you are trying to do with this or where exactly you are trying to put this avatar etc.


robert

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 5:59 pm
by Brf
Where exactly are you trying to put this code?
{postrow.POSTER_AVATAR} will only work inside the postrow loop of the viewtopic.

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 6:29 pm
by VOLKERMORD
Lumpy Burgertushie wrote:I have no idea what exactly you are trying to do with this or where exactly you are trying to put this avatar etc.


robert
ok sory ,what im try to do : if somone will start a topic will have a Title and close to title i need the avatar of the user who start the topic but only the user who start the topic.

Brf wrote:Where exactly are you trying to put this code?
{postrow.POSTER_AVATAR} will only work inside the postrow loop of the viewtopic.
That is the problem cos this code: {postrow.POSTER_AVATAR} not help me.

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 6:31 pm
by Brf
What page are you trying to put this on? Viewtopic or viewforum?

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 6:33 pm
by VOLKERMORD
Brf wrote:What page are you trying to put this on? Viewtopic or viewforum?
viewtopic_body.html

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 6:40 pm
by Brf
There is no template variable for the topic author's avatar.
You would need to edit viewtopic.php and pull the topic author's info and put the avatar into a template variable.

Re: Autor avatar of topic title

Posted: Fri Mar 08, 2013 7:08 pm
by VOLKERMORD
Brf wrote:There is no template variable for the topic author's avatar.
You would need to edit viewtopic.php and pull the topic author's info and put the avatar into a template variable.
Ok thx for your help ;)