PDA

View Full Version : New Posting Features - {mishakoz} Postbit_Legacy Scroll


sonichero
05-10-2007, 10:00 PM
This will create a postbit with curved headers on the top and bottom of the user information.

Find:
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>Replace with:
<tr valign="top" align="left">
<td class="alt2" width="175" cellpadding="10">

<table width="180">
<tr>
<td></td>
</tr>
<tr>
<td class="bm2" align="center" width="160"><div class="tcenter">
<div class="tleft">
<div class="tright">
<div class="tcat2">
&nbsp
</div></div></div></div>
<hr>
<div align="center" id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>


</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<hr>

<table align="center" valign="middle" border="0" width="110" height="110">
<tr>
<td>

<if condition="$show['avatar']">
<div class="smallfont" align="center" valign="middle">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</td>
</tr>
</table>
<!--Add Profile Fields Here-->
<table width="95%">
<tr>
<td><div class="smallfont"><if condition="$post['joindate']"><div><b>Joined: </b> $post[joindate]</div></if></td>
</tr>
<tr>
<td>
<if condition="$post['field2']"><div><b>Located: </b>$post[field2]</div></if></td></tr>
<tr>
<td>
<if condition="$post['age']"><div><b>Age: </b>$post[age]</div></if>
<div>
<b>Posts: </b>$post[posts]
</div></td></tr>
<tr>
<td>
<if condition="$show['infraction']"><div><b>Infractions: </b>$post[warnings]/$post[infractions] ($post[ipoints])</div></if></td></tr>
</table>

<!-- / Add Profile Fields Here-->
<div class="fcenter">
<div class="fleft">
<div class="fright">
<div class="tcat2">
&nbsp
</div></div></div></div></td>
</tr>
</table>

Add to custom CSS Definitions:
/* ***** Postbit_Legacy Scroll ***** */
.tleft{background: url(images/gradients/left.gif) top left no-repeat ;}
.tcenter{background: url(images/gradients/center.gif) top left ;}
.tright{background: url(images/gradients/right.gif) top right no-repeat ;}
.fleft{background: url(images/gradients/footleft.gif) top left no-repeat ;}
.fcenter{background: url(images/gradients/footcenter.gif) top left ;}
.fright{background: url(images/gradients/footright.gif) top right no-repeat ;}
.bm2{background: url(images/bm/misc/page_bg.jpg) top right no-repeat ;}
.bm3{background: url(images/bm/misc/top.gif) top right no-repeat ;}
.tcat2
{color: #000000; font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; padding-left: 70px; padding-top: 3px;}
.tcat2 a:link, .tcat2_alink
{color: #000000;text-decoration: none;}
.tcat2 a:visited, .tcat2_avisited
{color: #000000; text-decoration: none;}
.tcat2 a:hover, .tcat2 a:active, .tcat2_ahover
{color: #878787; text-decoration: none;}...and change the url to the locations of your images to be used for the curved head and foot.

Edits:

Change URLs in CSS to that of the correct images.
Set bm2 to what you want the background of your postbit to look like. Define an image or a background color.
Change the CSS of tcat2 to whatever your preference. If you have a white forum this may need to be changed
Find "Add Profile Fields Here" in the template and add any profile fields you wish too.
In the very beginning it say <tr valign...>, define valign as either top, middle or bottom and align as left right or center, wherever you want it in the postbit.
Find <table align="center" valign="middle" border="0" width="110" height="110"> and define height and width to the allowed size of your forum avatars. Delete height and width if you have multiple allowed sizes per usergroup.Picture:
http://img466.imageshack.us/my.php?image=bm3lg5.jpg
http://www.lambdacoremodule.net/forums/signaturepics/bymishakoz.png

QsKGlobal.com
05-11-2007, 06:34 AM
very unique, I will make the changes and post them when I get the chance

*installed*

Dotara
06-16-2007, 10:43 AM
tried to install but didn't find .bm3{background: url(images/bm/misc/top.gif) top right no-repeat ;} image, can you attach in this thread so I can see what kind of image it is.

sonichero
06-21-2007, 04:10 AM
Im sorry, BM3 was edited out of the code during last adjustments and i forgot to take it from the CSS.