Author Topic: User avatar for Reply to this Answer  (Read 252 times)

Offline azsxsaz13

  • Hero Member
  • *****
  • Posts: 44
  • Karma: +0/-0
User avatar for Reply to this Answer
« on: January 27, 2014, 10:41:17 AM »
Hi, Alexа
I think it's nice to have аvatar(25x25) for Reply to this Answer(article.php), but I can not handle. will be glad if you can help

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 470
  • Karma: +7/-1
Re: User avatar for Reply to this Answer
« Reply #1 on: January 28, 2014, 07:02:29 AM »
Hello, can you provide image to see example

Offline azsxsaz13

  • Hero Member
  • *****
  • Posts: 44
  • Karma: +0/-0
Re: User avatar for Reply to this Answer
« Reply #2 on: January 28, 2014, 11:25:31 AM »
ok. Here's what I mean

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 470
  • Karma: +7/-1
Re: User avatar for Reply to this Answer
« Reply #3 on: January 28, 2014, 11:30:20 PM »
article.php

after this code:

Code: [Select]
{foreach from=$reviews item=secsub}
{if $secsub.idrev eq true && $secsub.idrev eq $firstsub.revid}
<div>

put this code:

Code: [Select]
{if $secsub.comimage neq '0'}
<img class="thumb" style="float:left;margin-right:4px;margin-top:5px;" src="minthumb/{$secsub.comimage}" alt="{$secsub.comenter}" width="24px" height="24px" border="0px" />
{else}
<img class="thumb" style="float:left;margin-right:4px;margin-top:5px;" src="themes/{$themes}/styles/images/noavatar25.png" alt="{$secsub.comenter}" width="24px" height="24px" border="0px" />
{/if}

 :)

Offline azsxsaz13

  • Hero Member
  • *****
  • Posts: 44
  • Karma: +0/-0
Re: User avatar for Reply to this Answer
« Reply #4 on: January 29, 2014, 05:58:14 AM »
Hi, Alexa
thanks for the nth time.
another question about article.php
how to modify this code to change subcategory> category>home to  home> category> subcategory

Code: [Select]
{foreach from=$subs item=menu}
{if $menu.catid == $inccat}
{if $rewritemod == 2}
<a href="categories.php?id={$menu.catid|stripslashes}" title="{$menu.name|stripslashes}">{$menu.name|stripslashes} [{$menu.ccount}]</a>
{/if}
{if $rewritemod == 1}
<a href="{$menu.catid}.htm" title="{$menu.name|stripslashes}">{$menu.name|stripslashes} [{$menu.ccount}]</a>
{/if}
{foreach from=$categori item=mainc}
{if $menu.parent eq $mainc.catid}
{if $rewritemod == 2}
&#187;&nbsp;<a href="categories.php?id={$mainc.catid|stripslashes}" title="{$mainc.name|stripslashes}">{$mainc.name|stripslashes} [{$mainc.ccount}]</a>
{/if}
{if $rewritemod == 1}
&#187;&nbsp;<a href="{$mainc.catid}.htm" title="{$mainc.name|stripslashes}">{$mainc.name|stripslashes} [{$mainc.ccount}]</a>
{/if}
{/if}
{/foreach}
{/if}
{/foreach}
{assign var="cname" value=$inccat}
{if isset($categori)}
{foreach from=$categori item=inclink}
{if $inclink.catid eq $cname}
{if $rewritemod == 2}
<a href="categories.php?id={$inclink.catid|stripslashes}" title="{$inclink.name|stripslashes}">{$inclink.name|stripslashes} [{$inclink.ccount}]</a>
{/if}
{if $rewritemod == 1}
<a href="{$inclink.catid}.htm" title="{$inclink.name|stripslashes}">{$inclink.name|stripslashes} [{$inclink.ccount}]</a>
{/if}
{/if}
{/foreach}
{/if}
&#187;&nbsp;<a href="{$sitepath}" title="{$sitetitle}">{#home#}</a>

I changed places but something is not working  :-[

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 470
  • Karma: +7/-1
Re: User avatar for Reply to this Answer
« Reply #5 on: January 29, 2014, 09:55:39 AM »
Code: [Select]
<div id="master">
&#187;&nbsp;<a href="{$sitepath}" title="{$sitetitle}">{#home#}</a>&nbsp;&#187;
{foreach from=$subs item=menu}
{if $menu.catid == $inccat}
{foreach from=$categori item=mainc}
{if $menu.parent eq $mainc.catid}
{if $rewritemod == 2}
<a href="categories.php?id={$mainc.catid|stripslashes}" title="{$mainc.name|stripslashes}">{$mainc.name|stripslashes} [{$mainc.ccount}]</a>
{/if}
{if $rewritemod == 1}
<a href="{$mainc.catid}.htm" title="{$mainc.name|stripslashes}">{$mainc.name|stripslashes} [{$mainc.ccount}]</a>
{/if}
{/if}
{/foreach}
{/if}
{if $menu.catid == $inccat}
{if $rewritemod == 2}
&#187;&nbsp;<a href="categories.php?id={$menu.catid|stripslashes}" title="{$menu.name|stripslashes}">{$menu.name|stripslashes} [{$menu.ccount}]</a>
{/if}
{if $rewritemod == 1}
&#187;&nbsp;<a href="{$menu.catid}.htm" title="{$menu.name|stripslashes}">{$menu.name|stripslashes} [{$menu.ccount}]</a>
{/if}
{/if}
{/foreach}
{assign var="cname" value=$inccat}
{if isset($categori)}
{foreach from=$categori item=inclink}
{if $inclink.catid eq $cname}
{if $rewritemod == 2}
<a href="categories.php?id={$inclink.catid|stripslashes}" title="{$inclink.name|stripslashes}">{$inclink.name|stripslashes} [{$inclink.ccount}]</a>
{/if}
{if $rewritemod == 1}
<a href="{$inclink.catid}.htm" title="{$inclink.name|stripslashes}">{$inclink.name|stripslashes} [{$inclink.ccount}]</a>
{/if}
{/if}
{/foreach}
{/if}
</div>

 :)