Autor avatar of topic title

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Autor avatar of topic title

Post by VOLKERMORD » Thu Mar 07, 2013 5:29 pm

I want to have avatar for autor topic (see in the pic!), thanks in advance for any information.

Image

Sory for my bad English.
Last edited by VOLKERMORD on Fri Mar 08, 2013 4:32 pm, edited 1 time in total.
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Lumpy Burgertushie
Registered User
Posts: 66334
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Autor avatar of topic

Post by Lumpy Burgertushie » Thu Mar 07, 2013 11:23 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic

Post by VOLKERMORD » Fri Mar 08, 2013 10:41 am

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
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Lumpy Burgertushie
Registered User
Posts: 66334
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Autor avatar of topic

Post by Lumpy Burgertushie » Fri Mar 08, 2013 3:27 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic

Post by VOLKERMORD » Fri Mar 08, 2013 4:28 pm

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>
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Lumpy Burgertushie
Registered User
Posts: 66334
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Autor avatar of topic

Post by Lumpy Burgertushie » Fri Mar 08, 2013 4:32 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic

Post by VOLKERMORD » Fri Mar 08, 2013 4:42 pm

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
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic

Post by VOLKERMORD » Fri Mar 08, 2013 5:34 pm

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
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Lumpy Burgertushie
Registered User
Posts: 66334
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Autor avatar of topic title

Post by Lumpy Burgertushie » Fri Mar 08, 2013 5:47 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51726
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Autor avatar of topic title

Post by Brf » Fri Mar 08, 2013 5:59 pm

Where exactly are you trying to put this code?
{postrow.POSTER_AVATAR} will only work inside the postrow loop of the viewtopic.

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic title

Post by VOLKERMORD » Fri Mar 08, 2013 6:29 pm

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.
Last edited by VOLKERMORD on Fri Mar 08, 2013 6:32 pm, edited 1 time in total.
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51726
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Autor avatar of topic title

Post by Brf » Fri Mar 08, 2013 6:31 pm

What page are you trying to put this on? Viewtopic or viewforum?

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic title

Post by VOLKERMORD » Fri Mar 08, 2013 6:33 pm

Brf wrote:What page are you trying to put this on? Viewtopic or viewforum?
viewtopic_body.html
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51726
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Autor avatar of topic title

Post by Brf » Fri Mar 08, 2013 6:40 pm

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.

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Autor avatar of topic title

Post by VOLKERMORD » Fri Mar 08, 2013 7:08 pm

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 ;)
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

Locked

Return to “[3.0.x] Styles Support & Discussion”