anhbeu Publish time 28-4-2010 01:04

Avatar in Feed like Facebook

Hi
Sorry for my bad english
i See UCH Space Feed not have Avatar
and i try to add
It's so easy



If you not using default template:
Open file : space_feed_li.htm
Step 1: Find in line 1.        <li class="s_clear $value"Paste Above:        <table border="0" width="98%">
        <tr>
                <td valign="top" width="50px" align="left"><div class="avatar48"><a href="space.php?uid=$value"><!--{avatar($value,small)}--></a></div></td>
                        <td valign="top">Step 2: At the very end of the file paste
</td>
        </tr>
</table>Done.

------------------------------------------------
If you using default template
Just copy and paste hheee<table border="0" width="98%">
        <tr>
                <td valign="top" width="50px" align="left"><div class="avatar48"><a href="space.php?uid=$value"><!--{avatar($value,small)}--></a></div></td>
                        <td valign="top">
<li class="s_clear $value" id="feed_{$value}_li" onmouseover="feed_menu($value,1);" onmouseout="feed_menu($value,0);">
        <div style="width:100%;overflow:hidden;" {$value}>
                <!--{if $value && empty($_TPL)}-->
                <a href="cp.php?ac=feed&op=menu&feedid=$value" class="float_more" id="a_feed_menu_$value"  onmouseover="feed_menu($value,1);" onmouseout="feed_menu($value,0);" onclick="ajaxmenu(event, this.id)" title="More options" style="display:none;">Menu</a>
                <!--{/if}-->
                <a class="type" href="space.php?uid=$_GET&do=feed&view=$_GET&appid=$value&icon=$value" title="Only such Feed"><img src="$value" /></a>
                $value
               
                <!--{if empty($_TPL)}-->
                <span class="gray"><!--{date('m-d H:i',$value,1)}--></span>
                <!--{/if}-->
               
                <!--{if empty($_TPL)}-->
                <!--{if $value['idtype']=='doid'}-->
                (<a href="javascript:;" onclick="docomment_get('docomment_$value', 1);" id="do_a_op_$value">Reply</a>)
                <!--{elseif in_array($value['idtype'], array('blogid','picid','sid','pid','eventid'))}-->
                (<a href="javascript:;" onclick="feedcomment_get($value);" id="feedcomment_a_op_$value">Comment</a>)
                <!--{/if}-->
                <!--{/if}-->
               
                <div class="feed_content">
               
                        <!--{if empty($_TPL) && $value}-->
                        <div class="hotspot"><a href="cp.php?ac=feed&feedid=$value">$value</a></div>
                        <!--{/if}-->       
               
                        <!--{if $value['image_1']}-->
                        <a href="$value"{$value}><img src="$value" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $value['image_2']}-->
                        <a href="$value"{$value}><img src="$value" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $value['image_3']}-->
                        <a href="$value"{$value}><img src="$value" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $value['image_4']}-->
                        <a href="$value"{$value}><img src="$value" class="summaryimg" /></a>
                        <!--{/if}-->
                       
                        <!--{if $value['body_template']}-->
                        <div class="detail"<!--{if $value['image_3']}--> style="clear: both;"<!--{/if}-->>
                                $value
                        </div>
                        <!--{/if}-->
                       
                        <!--{if $value['thisapp'] && !empty($value['body_data']['flashvar'])}-->
                        <div class="media">
                                <img src="image/vd.gif" alt="Click to play" onclick="javascript:showFlash('{$value['body_data']['host']}', '{$value['body_data']['flashvar']}', this, '{$value['feedid']}');" style="cursor:pointer;" />
                        </div>
                        <!--{elseif $value['thisapp'] && !empty($value['body_data']['musicvar'])}-->
                        <div class="media">
                                <img src="image/music.gif" alt="Click to play" onclick="javascript:showFlash('music', '{$value['body_data']['musicvar']}', this, '{$value['feedid']}');" style="cursor:pointer;" />
                        </div>
                        <!--{elseif $value['thisapp'] && !empty($value['body_data']['flashaddr'])}-->
                        <div class="media">
                                <img src="image/flash.gif" alt="Click to play" onclick="javascript:showFlash('flash', '{$value['body_data']['flashaddr']}', this, '{$value['feedid']}');" style="cursor:pointer;" />
                        </div>
                        <!--{/if}-->

                        <!--{if $value['body_general']}-->
                        <div class="quote"><span class="q">$value</span></div>
                        <!--{/if}-->
                </div>
        </div>
       
        <!--{if $value['idtype']=='doid'}-->
        <div id="docomment_$value" style="display:none;"></div>
        <!--{elseif $value['idtype']}-->
        <div id="feedcomment_$value" style="display:none;"></div>
        <!--{/if}-->
       
        <!--{if !empty($hiddenfeed_num[$value])}-->
        <div id="appfeed_open_$value"><a href="javascript:;" id="feed_a_more_$value" onclick="feed_more_show('$value');">&raquo;  More Feed ({$hiddenfeed_num[$value]})</a></div>
        <div id="feed_more_$value" style="display:none;">
                <ol>
                <!--{loop $hiddenfeed_list[$value] $appvalue}-->
                <!--{eval $appvalue = mkfeed($appvalue);}-->
                <li>
                $appvalue
                <div class="feed_content" style="width:100%;overflow:hidden;">
                        <!--{if $appvalue['image_1']}-->
                        <a href="$appvalue"{$appvalue}><img src="$appvalue" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $appvalue['image_2']}-->
                        <a href="$appvalue"{$appvalue}><img src="$appvalue" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $appvalue['image_3']}-->
                        <a href="$appvalue"{$appvalue}><img src="$appvalue" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $appvalue['image_4']}-->
                        <a href="$appvalue"{$appvalue}><img src="$appvalue" class="summaryimg" /></a>
                        <!--{/if}-->
                        <!--{if $appvalue['body_template']}-->
                        <div class="detail"<!--{if $appvalue['image_3']}--> style="clear: both;"<!--{/if}-->>
                                $appvalue
                        </div>
                        <!--{/if}-->
                        <!--{if $appvalue['body_general']}-->
                        <div class="quote"><span class="q">$appvalue</span></div>
                        <!--{/if}-->
                </div>
                </li>
                <!--{/loop}-->
                </ol>
        </div>
        <!--{/if}-->
</li>
</td>
        </tr>
</table>

n0de Publish time 29-4-2010 05:23

if i use default temp, in wich file i ll copy ??

Coldcut Publish time 29-4-2010 11:24

Looks good!
I'll test it at the weekend!

hidayet Publish time 29-4-2010 14:51

Thank you .............

anhbeu Publish time 2-5-2010 00:13

if i use default temp, in wich file i ll copy ??
n0de Posted at 29-4-2010 05:23 http://msg2me.com/images/common/back.gif

/template/default/
you should overwrite the attach file to your file
then go to admincp--> update cache

werner Publish time 2-5-2010 05:21

if i use default temp, in wich file i ll copy ??
n0de Posted at 28-4-2010 22:23 http://www.msg2me.com/images/common/back.gif


    Open file : space_feed_li.htm

werner Publish time 3-5-2010 02:05

It works.. i tell you again...

open the file "space_feed_li.htm" in Template/default.
Paste the code in the first line...        <table border="0" width="98%">
        <tr>
                <td valign="top" width="50px" align="left"><div class="avatar48"><a href="space.php?uid=$value"><!--{avatar($value,small)}--></a></div></td>
                        <td valign="top">Go to the last line, paste next code and thats done...</td>
        </tr>
</table>

Saokim999 Publish time 5-5-2010 12:24

anh beyu been yeublog phai ko nhi.
thx

iamnan Publish time 8-5-2010 23:47

</table>
Copy to Clipboard

dappye Publish time 22-6-2010 05:40

after using this im not able to delete any feeds , because the delete circle has moved and it no more can be used..
Pages: [1] 2
View full version: Avatar in Feed like Facebook