The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to add Website(s) name in postbit like WJ
I was doing this for couple of days ,but I just dont get it right.
I wanna add Website(s) name in postbit like wjunction Did some of my own ,and the results are terrible Is any of you guys know how to do it right ? Below is what I did so far. Added to CSS: Code:
.tinyfont { font-size: 10px; } .tinyfont .webs { margin-bottom: 4px; } .tinyfont .webs div { -moz-border-bottom-colors: none; -moz-border-image: none; -moz-border-left-colors: none; -moz-border-right-colors: none; -moz-border-top-colors: none; background-color: #F9FAFA; border-color: #E5E5E5 #E5E5E5 #E0E0E0; border-radius: 2px 2px 2px 2px; border-style: solid; border-width: 1px; margin-top: 2px; overflow: hidden; padding: 2px 3px 3px; white-space: pre; width: 130px; } .tinyfont .webs div:hover { border: 1px solid #CCCCCC; } .tinyfont .webs div a { display: block; } Code:
<div class="tinyfont"><div class="webs"> <if condition="$post['field5']">$post[field5]</if> </div></div><br /><br /> What I'm missing? Can someone help me? :-) Thank you! |
#2
|
|||
|
|||
can you give me a link to your site?
|
#3
|
|||
|
|||
Jeff Ledger, PM sent
|
#4
|
|||
|
|||
Css goes here
Code:
.sitelinks { background: none repeat scroll 0 0 #F9FAFA; border: 1px solid #EAEAEA; margin-bottom: 4px; padding: 2px 5px; overflow: hidden; /*important */ width: 130px; /* set it to your postbit side width */ } Code:
<div class="sitelinks"> <if condition="$post['field5']">$post[field5]</if> </div> <p>link 1</p> <p>link 2</p> .... |
#5
|
|||
|
|||
Thank you mate! It works
Btw, why is not my code worked? I had everything in there... And the other website dont have the .sitelinks css. I think that don't need to make the <p>link 1</p> thing, because layout is now fine with your code like you can see in the image above Is difficult to make the website links clickable? :P |
#6
|
|||
|
|||
about the <p> tags. It something likes, table works but pure css is better.
I write my own css based on these site you linked and removed some unneeded line. Just it. You don't need 2 classes to display a simple background with border in your old code. your current stage maybe like this: link.com link1.com link2.com change it to st like <a href="link">link.com</a> <a href="link1">link1.com</a> Then you get it clickable |
#7
|
|||
|
|||
Quote:
Is not possible? Too much work? Sorry to boring you mate and thank you for helping me. |
#8
|
|||
|
|||
possible only in case you will add multi-type fields
like this <div class="sitelinks"> <if condition="$post['field5']"><a href="$post[field5]">$post[field5]</a></if> <if condition="$post['field6']"><a href="$post[field6]">$post[field6]</a></if> <if condition="$post['field7']"><a href="$post[field7]">$post[field7]</a></if> <if condition="$post['field8']"><a href="$post[field8]">$post[field8]</a></if> </div> Then in every field they just put one link, and it will be clickable |
#9
|
|||
|
|||
Ohhh damn... is not possible in other way?
|
#10
|
|||
|
|||
You will need to hire someone to creat you a custom mods.
Not anything can be done using custom template. or your users must fill out st like <a href="link">link.com</a> <a href="link1">link1.com</a> in the field 5. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|