Elsie 09-08-2006, 02:31 PM I know I need to edit the postbit for this, but I can't find where, and don't know what to change it to!! lol
How do I move the staff rank from it's current position (see attached) so that it's aligned to the right (so, above "2004" rather than "Join Date"). Or perhaps even better, so that it is centred above that text.....
Thanks in advance!! :)
Elsie 09-09-2006, 11:39 AM anyone able to help me with this? :)
OK I'll take a shot...put <center> </center> around the rank code. I don't know if it works or not because my rank badges are directly under the usernames on my board.
Noppid 09-09-2006, 07:02 PM No No No, no <center> tags in vB!
The post bit there is a table. Move the badge out of the existing <td> and leave the balnk <td> behind and move the badge code into a <td> on the left.
I have found the table for the new postbit to be a royal pain in the...Well, you get it. I hope.
Noppid 09-09-2006, 07:15 PM See, I tried. :p
hehe, <center> tags will work. But, we should strive to be 100% XHTML compatable.
However, in this case, a centering of the bagde won't pull it over far enough because the table just don't go that far over for it to work.
I honestly don't use the vB 3.x postbit because it gets all top heavy (too tall) adding elements properly.
Elsie 09-11-2006, 01:30 PM thanks Noppid, but i'm hoping i can get it to be moved to the RIGHT, not left, as shown below.
perhaps an alignment within the same <td> is needed?
Noppid 09-11-2006, 02:50 PM OH, well that's different. :p
Can you post the code for that block?
Elsie 09-12-2006, 12:48 AM basically i'm hoping to get the right edge of the staff logo to be above the "4" of the joining date year.
i think this covers it (if not i'll post the whole postbit template!! lol).....
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border:1px solid black;">
<tr>
<td class="thead" $post[scrolltothis]>
<div class="normal" style="float:$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> </if>
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> </if>
$post[iplogged]
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</div>
<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table bgcolor="#F7F7F7" cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']"><td class="alt2"><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></td></if>
<td valign=top nowrap="nowrap">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" <if condition="$post[userid]=='518'">style="font-family:Papyrus; font-weight: bold;"</if> href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<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>
<br />
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<div class="smallfont">
$vbphrase[posts]: $post[posts]
</div>
</td>
<td width="100%"> </td>
<td halign="right" valign="top" nowrap="nowrap">
<div class="smallfont">
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
</td>
</tr>
</table>
<!-- / user info -->
Hell³ 09-12-2006, 02:27 AM I would put this
<if condition="$post['isstaffrank']">
<div class="smallfont">
As this
<if condition="$post['isstaffrank']">
<div class="smallfont" align="right">
Noppid 09-12-2006, 05:07 AM Not tested...
<div class="smallfont" align="right">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
I dunno what $post[staffrank_opentag] outputs, so my edit may not work if it's yet another <div> tag and has it's own alignment settings.
I suggest you do a view source of the page in your browser and look at that piece of code and see what is being output for that block of code.
Elsie 09-13-2006, 12:52 AM thanks both...... will tinker with it later :)
Elsie 09-13-2006, 01:27 PM well, i opted to try Hell's plan first, and it worked a treat :)
for the record, i also tried align="center" which worked to make it centred above the join date.
thanks again!
|
|