Log in

View Full Version : How to add one image beside all avatar?


thang28101993
04-11-2013, 10:40 PM
As the topic, I want to add one image with link (link to another site or topic) to all left of avatar in forum. But I don't know how to do!

https://vborg.vbsupport.ru/external/2013/04/30.jpg

Demo: http://www.lamchame.com/forum

Please tell me how to do!

Thanks so much!

thang28101993
04-13-2013, 02:13 AM
Any one can help me?
Please! Thanks!

Lynne
04-13-2013, 02:45 PM
Just add the image to the template, no?

<img src="image.png" alt="Something" height="xx" width="yy" />

thang28101993
04-13-2013, 03:52 PM
Just add the image to the template, no?

<img src="image.png" alt="Something" height="xx" width="yy" />

Thanks for your answer!

Yeah, I know that code, but we should add to where?

I tried with postbit.css and postbit_lagacy but it wasn't success!

So, How I should do?

P.s: Excuse me for my Vbb level! I'm a newbie with it! I use Vbb v4.2.0 Pl3
As your signature: "If I post some CSS and don't say where it goes, put it in the additional.css template", but I don't know where should add to? Before or after which line comment?

Please tell me more!

Thank You in Advance!

Lynne
04-13-2013, 04:50 PM
It looks like you are using the postbit template, not the postbit_legacy template (is the userinfo on the top?).

thang28101993
04-13-2013, 05:33 PM
It looks like you are using the postbit template, not the postbit_legacy template (is the userinfo on the top?).

Yeah, I added to both of that template, but not any thing change!

I have just seen the source code of the demo site http://www.lamchame.com in this thread: http://www.lamchame.com/forum/showthread.php/75332-l%C3%A0m-quen-v%E1%BB%9Bi-c%C3%A1c-m%E1%BA%B9-hay-th%E1%BB%A9c-khuya-nh%C6%B0-t%E1%BB%9B!?p=18959023#post18959023


and I catched these code, which the webmaster are using to show the image beside the avatar:


<!--Avatar banner .swf -->
<!--
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=6,0,40,0"
width="150" height="180"
id="avantar_banner">
<param name="movie"
value="http://ads.lamchame.com/fix/avatar.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://ads.lamchame.com/fix/avatar.swf" quality="high" bgcolor="#ffffff"
width="150" height="180"
name="mymoviename" align="" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
-->
<a href="http://www.vietteltelecom.vn/di-dong/dich-vu-bankplus/gioi-thieu-dich-vu-81.html" target="_blank"><img src="http://ads.lamchame.com/fix/avatar.jpg"></a>
<!--Avatar banner -->



But, as I said, I don't know where to put these code? Please help me check and tell me!

Thanks so much!

Lynne
04-13-2013, 07:48 PM
I see an image on your showthread page so I'm guessing you figured out the issue.

thang28101993
04-13-2013, 11:49 PM
I see an image on your showthread page so I'm guessing you figured out the issue.

Excuse me, I really don't know how to add them to where? Moreover, I'm not an IT technician. I make forum Vbb by myself, If anything don't know or don't know how to do, I use google to search to see how to do.

So, in this issue, I still don't know how should do!

Please help me and tell me the way to do!

Thanks in Advanced!

Lynne
04-14-2013, 01:22 AM
Did you find the avatar code in the template? Did you try copy/pasting the code just before it? You need to post *exactly* what you have done and give us a link to see what you have done if you want us to help.

thang28101993
04-14-2013, 02:31 AM
Did you find the avatar code in the template? Did you try copy/pasting the code just before it? You need to post *exactly* what you have done and give us a link to see what you have done if you want us to help.

Yes, I found, but I don't know it was true or false?

My forum is still in my local host. Would you mind if you can connect to my computer by TeamViewer to help me?

My Team Viewer ID: 586 262 311
Pass: d4r9i7

I'm online now!

Thanks in Advanced.

Lynne
04-14-2013, 01:40 PM
Wy don't you post an image of the result and the exact code you used (with five lines of the unaltered template above and below the code you added).

thang28101993
04-14-2013, 03:21 PM
Wy don't you post an image of the result and the exact code you used (with five lines of the unaltered template above and below the code you added).

Thanks so much for your help!
As, I said, I only add some code, example:


<a href=" http://www.domain.com" target="_blank"><img title="AD text " alt=" " src="http://imagelink.jpg" height=xxx width=xxx ></a>



to begin of postbit.css or postbit_lagacy's code

and it was not appear any thing.

I think you know how to do, so please show for me the way to add code and add to where?

Thanks again!

Lynne
04-14-2013, 03:29 PM
If you want the code near the avatar, then you need to put it in your postbit template right before or after the avatar code (shown below):

<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
</vb:if>
</a>
</vb:if>

thang28101993
04-14-2013, 04:00 PM
If you want the code near the avatar, then you need to put it in your postbit template right before or after the avatar code (shown below):

<vb:if condition="$show['avatar']">
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="$post.avatarurl">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
</vb:if>
</a>
</vb:if>


Excuse me, I did as you guided: add code to before or after Postbit template > postbit_lagacy, but no thing appear for me!

Would you mind if you connect to my computer and help me check why?

Thanks!

P.s:
ID TeamViwer: 586 262 311
Pass: tjx189