PDA

View Full Version : Miscellaneous Hacks - Postbit Legacy - Usergroup Backgrounds


Fastbird
01 Feb 2009, 19:53
Hello! This is my first submission. I run LTXTech.com, I go by phantomzer0 over there, and I wanted this hack for a long time. I decided to write it on my own and the outcome was perfect. I know enough to get the job done, so if there is a more efficient way to produce this, by all means post it up!

Here is what this hack will do for you:

Demo Link:

http://ltxtech.com/forums/showthread.php?t=2865

Now, you can make any usergroups use these backgrounds. You will have to design your own, of course, but you can assign them however you would like. In the case of my forum, we have them set-up for administrators. You could make a separate image for staff members, reg users, banned users, whatever you need. You can also duplicate it and assign different images for different colored styles. I'll show you how below.

Here's how to do it:
-- Navigate to your Admin CP. Once there go to Styles and Templates, then to Style Manager, and then click the "Go" button once you have decided which template you would like to install this on.

-- Scroll all the way to the bottom and look for the "Additional CSS Definitions" Box. I like to use the second box for all of my custom CSS, but you can surely use either one. Copy this and paste it into the box.

.postbit {
background: #101010 url(this is the url to your image for the background);
background-repeat: no-repeat;
border-left: solid 1px #3c3c3c;
border-right: solid 1px #3c3c3c;
}

Now, the border colors will need to be the same as the colors on your forum. These are the borders I'm talking about:

http://ltxtech.com/borders.jpg

You will need to figure out the color code of your borders and assign the same color to the CSS code. You can adjust the size of the border by increasing or decreasing the "1px" numbers. 3px would obviously increase the size of the border to 3 pixels. You can also rename the CSS ".postbit" to something else, but if you do make sure you take note of that.

-- Now we will assign the background to the actual postbit. To do so, you need to navigate to Styles and Templates, then click on the "<< >>" button on the style you want to edit.

-- Scroll down the list and find "Postbit Templates"

http://ltxtech.com/postbit1.jpg

-- Double click on "Postbit Legacy", as seen in the picture above.

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

Replace With:
<if condition="is_member_of($post, #)">
<td class="postbit" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>

The red # symbol is for you to put a usergroup id # in. In my case, the admin group on my forum is 6, so instead of a # sign, there is a 6 there. You can assign multiple usergroups to use the same image, if you want. You can use the same code above for different forum styles, you just need to change the "td class="postbit"" to whatever the CSS is for the different style.

Example, my forum has a light and dark skin. The dark skin's CSS is "postbit" and the CSS for the light skin is "postbit2". On the Dark skin, I use the code above and for the light skin it's the exact same, only I have changed the td class to postbit2.

The only thing left to do is design a background image. Once you have that, you can upload it and point your CSS url to the image on your server.I'm fairly sure I have included all the steps to accomplish this, if I missed one, please point it out! Good luck and thanks for looking!

Update:
If you would like to assign multiple background images to multiple usergroups, see this post. User down.low explains very well how to achieve this result! Thanks DL!

http://www.vbulletin.org/forum/showpost.php?p=1792068&postcount=52

adhmwagde
01 Feb 2009, 20:21
thanks .. but in Postbit Legacy i have problem to replace

The following error occurred when attempting to evaluate this template:

Parse error: parse error in c:\appserv\www\vb\includes\adminfunctions_template.php(3929) : eval()'d code on line 28

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Fastbird
01 Feb 2009, 20:25
What version of vbulletin are you running? I installed this first on 3.7.2 and it's been working fine since. Make sure you get the </if> tag on the end of the statement too.

Forum Lover
01 Feb 2009, 20:30
Is it possible to change the posting+signature area too? How? Looks great so far. Tagged.

Fastbird
01 Feb 2009, 20:40
Yeah, I would imagine so. You would have to find the sections in the postbit legacy template, but the hack would be the same idea. You would just style the CSS differently for the main body of the post, at least that's what I would imagine.

Forum Lover
01 Feb 2009, 20:44
Please give us a try for us, non-coder is here. :p

Fastbird
01 Feb 2009, 20:47
Please give us a try for us, non-coder is here. :p

I won't be able to get to it tonight, but I can give it a shot tomorrow for you. Shouldn't be too hard. ;)

Fastbird
02 Feb 2009, 22:26
So after 7 installs I guess everything is working ok for you guys? Sweet! Post some links so I can see what you guys have done with it!

relaxiha
04 Feb 2009, 16:37
Parse error: syntax error, unexpected '<' in /home/********/public_html/forum/includes/adminfunctions_template.php(3938) : eval()'d code on line 28

Fastbird
05 Feb 2009, 00:56
Parse error: syntax error, unexpected '<' in /home/********/public_html/forum/includes/adminfunctions_template.php(3938) : eval()'d code on line 28

Post up line 28 and I can help you. Seems this is the second time this error has occured. My postbit template was already modified previously, so if you can post up your postbit_legacy code in a text file or just post up a few lines around 28, I can try to figure out the problem.

emsplanet
07 Feb 2009, 18:56
u talking about which bg?
https://www.vbulletin.org/forum/external/2010/07/10.png<--- This one?

Saint Dean
09 Feb 2009, 17:55
Hey fastbird did you knock up one for the signature area.

I thought of finding something like this for donators. Because we dont use postbit legacy this wont work. I was thinking of adding something similiar to the signature area.

Think you could help me with this?

eTiKeT™
10 Feb 2009, 18:45
Thanks İnstalled :)

Armageddonz
10 Feb 2009, 19:54
I don't quite get it though.
Do you mean backgrounds for the various usergroups?

Theater
10 Feb 2009, 20:17
Worked perfect first try on 3.8.1. Thank you.

http://img525.imageshack.us/img525/3310/worksog4.jpg

Although I'm not really a graphics guru. I much rather have a background image similar to yours, but with film instead lining the borders as if there was an explosion in the back and that part of the reel leaked in. ;)

I don't quite get it though.
Do you mean backgrounds for the various usergroups?

Yes, this allows you to specify one or more usergroup IDs that will share a postbit background that perhaps other usergroups (such as registered) don't have. I set mine up for usergroup IDs 5 and 6 for the film reel background you see above.

Vaupell
12 Feb 2009, 11:06
nice tx..

kidthanh86
16 Feb 2009, 01:25
hi sir. i try to find

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

but i don't see it.

This is my postbit_legacy

$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
<!-- 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>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<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]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175">

<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>
$template_hook[postbit_userinfo_left]

<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>
$template_hook[postbit_userinfo_right_after_posts]
<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>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

$template_hook[postbit_signature_end]

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt2">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</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]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['spam']">
<img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<if condition="$show['managepost']">
<a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
<else />
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->

please help me make this mod .
thanks sir

itsheinz
18 Feb 2009, 05:56
Same as mine it didnt work for me..
i cant find this code as well:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

but still i edited my templates and here is the outcome.Can you please check..
$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<if condition="is_member_of($post, 6)">
<td class="postbit" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" $post[scrolltothis]>
<!-- 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>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<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]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt1" width="175">
<div style="text-align: center;">
<div id="postmenu_$post[postid]">
<table cellpadding="4" cellspacing="0" border="0" width="175" align="center">
<tr>
<td class="pb_name">
<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>
</td></tr>
</table>
</div>
<br />
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]

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

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div class="userinfo"><b>$vbphrase[join_date]:</b> $post[joindate]</div></if>
<if condition="$post['field2']"><div class="userinfo"><b>$vbphrase[location_perm]:</b> $post[field2]</div></if>
<if condition="$post['age']"><div class="userinfo"><b>$vbphrase[age]:</b> $post[age]</div></if>
<div class="userinfo"><b>
$vbphrase[posts]:</b> $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div class="userinfo"><b>$vbphrase[infractions]:</b> $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']"><div class="userinfo"><b>$vbphrase[reppower]:</b> <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </div></if><span id="repdisplay_$post[postid]_$post[userid]"><div class="userinfo">$post[reputationdisplay]</div></span></div></if>
<br />
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<br /><br />
<if condition="$post['field5']">
$post[field5]
</if>
<br /><br />
<if condition="$post['field6']">
Gender: $post[field6]
</if>
<br />
<if condition="$post['field7']">
Friendster Profile: $post[field7]

</if>
<br /><br />
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt2" width="100%" id="td_post_$post[postid]">
</if>
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]


<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

$template_hook[postbit_signature_end]

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt1">
$post[onlinestatus]
<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]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt2" align="$stylevar[right]">
</if>
<!-- controls -->
<a href="#top" onclick="scroll(0,0); return false;">
<img src="images/misc/top.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['spam']">
<img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<if condition="$show['managepost']">
<a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
<else />
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->

can you chack my template if i put it correctly? I already added the css code in my additional css box (2nd) .A little for me..Thank you so much..

Fastbird
28 Feb 2009, 02:42
hi sir. i try to find

please help me make this mod .
thanks sir

Same as mine it didnt work for me..
i cant find this code as well:

can you chack my template if i put it correctly? I already added the css code in my additional css box (2nd) .A little for me..Thank you so much..
You guys both have similar code and seem to be missing the line of code that defines how the posbit appears. I'd have to really spend some time with your postbit's I'm not that good at troubleshooting just by looking at it.
Worked perfect first try on 3.8.1. Thank you.


Thanks, I'm so glad it worked for you!

alqloob alsahya
28 Feb 2009, 03:30
thank"s nice Fastbird :up:

itsheinz
28 Feb 2009, 06:36
can you help us fastbird.

Fastbird
06 Mar 2009, 00:39
can you help us fastbird.

You have some custom postbit and I'm not really sure where to insert that code. I'd literally have to install your code on my site and tweak it. I literally don't even have enough time to wipe my ass let alone do all that work. I really want to help you I just can't sit down and figure it out right now.

Either someone else will have to step in or you'll have to wait for the weekend where I can try to give it a shot.

itsheinz
06 Mar 2009, 22:09
You have some custom postbit and I'm not really sure where to insert that code. I'd literally have to install your code on my site and tweak it. I literally don't even have enough time to wipe my ass let alone do all that work. I really want to help you I just can't sit down and figure it out right now.

Either someone else will have to step in or you'll have to wait for the weekend where I can try to give it a shot.
Its ok fastbird im done with it.I used the default Postbit legacy.lol

Ekshi
08 Mar 2009, 03:37
Add your code: rowspan="2"


<if condition="is_member_of($post, #)">
<td class="postbit" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>

legion!
08 Mar 2009, 13:43
Works perfect for me!

legion!
15 Mar 2009, 04:26
How can i make it so different usergroups have different backgrounds??

Bigj85
15 Mar 2009, 04:43
How can i make it so different usergroups have different backgrounds??

you have to make a different css for every group,then just repeat the template code adding every groupid and css

<if condition="is_member_of($post, 6)">
<td class="postbitadmin" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<if condition="is_member_of($post, 7)">
<td class="postbitmod" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />

and so on for every group....

Works great btw

legion!
16 Mar 2009, 03:52
yea figured it out it runs perfect for me thank yu :)

GrendelKhan{TSU
23 Mar 2009, 20:02
awesome

<< bookmarked for next update :)

Fastbird
23 Mar 2009, 22:38
Glad it's working for you guys! :)

wickedstangs
25 Mar 2009, 05:08
Fastbird how did you put the FQuick on your site?

Fastbird
26 Mar 2009, 02:34
My brother, SoulReaver made the graphics, but you can get a generic version from FQuick. You have to look under affiliations or something, I believe, and there is a zip file with the product for you to import.

shervin_dvb
28 Mar 2009, 06:20
hi dear
Thanks İnstalled
how to change quote box like this :

how to get to this form
https://www.vbulletin.org/forum/external/2009/08/98.jpg

i mean it's:

quote: Orginially posted By Fastbird
I Like It

Bigj85
28 Mar 2009, 07:17
hi dear
Thanks İnstalled
how to change quote box link this :

how to get to this form
https://www.vbulletin.org/forum/external/2009/08/98.jpg

i mean it's:

quote: Orginially posted By Fastbird
I Like It

I'm wondering the same thing,how do I make my quotes look like that

Fastbird
28 Mar 2009, 16:59
http://www.vbulletin.org/forum/showthread.php?t=120073&highlight=bbcode+manager

This is the hack I used. It's the simple quote box. I installed this a long time ago and it seems to still work OK. Good luck!

shervin_dvb
29 Mar 2009, 11:32
thanks for answer to me

Bigj85
02 Apr 2009, 07:58
thanks Fastbird,it worked fine

deLi_kurT
02 Apr 2009, 08:15
Thanks

MORTAL 7
04 Apr 2009, 17:54
Worked fine first time,,vb3.8.2 the error some got was because they had'nt put usergroup id no. in place of # .. thx buddy nice mod

chick
06 Apr 2009, 19:59
Hello FB... this looks really nice. Before I install how did you get the upper part ........... the avatar and right underneath it, centered? I'd like to center mine too.

Very nice and thank you.

update: Figured out the centering, this is really sweet....... again thanks!

merk_aus
09 Apr 2009, 05:09
Was wondering I don't want to do this with usergroups I have a custom profile field where they select from a drop down their favorite sport team (as my site is a sports website) and would like to try and get something like this set up where when they select their fav. team it puts a background for their team in the postbit - just something small I have created that would repeat itself.

Any help you could provide on doing this it would be greatfully appreciated.

^SuiCyde^
10 Apr 2009, 10:06
yeah that type of integration rather than by usergroup would be amazing as far as different ways you could use it

down.low
12 Apr 2009, 21:38
Hello FB... this looks really nice. Before I install how did you get the upper part ........... the avatar and right underneath it, centered? I'd like to center mine too.

Very nice and thank you.

update: Figured out the centering, this is really sweet....... again thanks!I would like to know how to center all of this as well, does anyone know how to do so?

Fastbird
13 Apr 2009, 20:16
I would like to know how to center all of this as well, does anyone know how to do so?

The border around the images is custom CSS and the avatar being centered is just a simple <align="center"></align> around the code that posts the user avatar. I then rearranged the postbit legacy code to display what you see in the demo images. There's a bit of work done there.

Jees, I should just release my template! Glad you guys like it though :)

down.low
14 Apr 2009, 01:41
The border around the images is custom CSS and the avatar being centered is just a simple <align="center"></align> around the code that posts the user avatar. I then rearranged the postbit legacy code to display what you see in the demo images. There's a bit of work done there.

Jees, I should just release my template! Glad you guys like it though :)I'm guessing you would mean in the postbit_legacy, probably the following code:

<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>

I've tried putting the align in the in various places with no result. I'de also like to center the rest of the text as you have- or have it have you have it in the demo- could you help me out a little or point me in a direction to go from here? thanks in advance for any help you can lend- thanks for the hack, works great by the way- especially selling the template usage in an experience points shop.


WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free DictionaryJoin exampleWordNetGoogleUrban DictionaryAnswers.comrhymezone.comMerriam-Webster<>0

wvcidfjoguarm

Fastbird
14 Apr 2009, 03:50
I'm guessing you would mean in the postbit_legacy, probably the following code:

<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>

I've tried putting the align in the in various places with no result. I'de also like to center the rest of the text as you have- or have it have you have it in the demo- could you help me out a little or point me in a direction to go from here? thanks in advance for any help you can lend- thanks for the hack, works great by the way- especially selling the template usage in an experience points shop.


WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free DictionaryJoin exampleWordNetGoogleUrban DictionaryAnswers.comrhymezone.comMerriam-Webster<>0

wvcidfjoguarm

Ok, here's how to center everything:

Find:
<div id="postmenu_$post[postid]">

Replace:
<div id="postmenu_$post[postid]" align="center">

Find:
<div class="smallfont">

Replace:
<div class="smallfont" align="center">

therogueforums
15 Apr 2009, 12:24
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.

Fastbird
15 Apr 2009, 15:35
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.

Try this post:
http://www.vbulletin.org/forum/showpost.php?p=1768416&postcount=27

See if that helps your issue. IF it does not, I coded mine slightly different for my forum. I have admins with a background and regular users with a background. IF this is the same idea you are going for, I can dig up my code and help you with it.

I'm not sure I quite understand what you mean by curved boxes? I'm not familiar with that mod, link me?

Fastbird
15 Apr 2009, 15:42
Here's mine. Like I said before, it's setup for everyone to have the basic background and then for administrators to have the custom one.

You will need to assign a separate CSS too.

<if condition="is_member_of($post, 6)">
<td class="postbit" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="postbit3" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if> <if condition="$show['avatar']">

therogueforums
15 Apr 2009, 21:06
TY :) Sadly, it didn't work for me. The first solution is the one I tried last night. The last one, above, yeilds the same results ("you're missing a </if> tag! oh n0es!") and the avatar, etc gets shoved out to the right.

Fastbird
15 Apr 2009, 23:43
TY :) Sadly, it didn't work for me. The first solution is the one I tried last night. The last one, above, yeilds the same results ("you're missing a </if> tag! oh n0es!") and the avatar, etc gets shoved out to the right.

That really shouldn't be happening. Are you sure you have two CSS conditions setup for the script? Try copying the code I gave you verbatim, missing tag and all and see what it does, just change the css triggers over to whatever you use.

Can you post up your postbit so I can look it over?

down.low
16 Apr 2009, 01:45
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.

|
|

I had this problem when adding more then one group. What you are doing wrong is adding the following code to many times- there should only be 1 instance of this code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">|
|

Here is a code for 1 background/group(after changing the red):


In your postbit_legacy.

<if condition="is_member_of($post, groupid)">
<td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>

And this code (after changing the red) would have to be in your additional css.


.css name1 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}
|
|
Two backgrounds/groups would look like this:

In your postbit_legacy.


<if condition="is_member_of($post, groupid2)">
<td class="css name2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<if condition="is_member_of($post, groupid1)">
<td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if></if>


Notice: I had to add the additional </if> to the very end!!

|
|
And this code (after changing the red) would have to be in your additional css:
.css name1 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}
.css name2 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}
|
|
Three backgrounds/groups would look like this:

In your postbit_legacy.



<if condition="is_member_of($post, groupid3)">
<td class="css name3" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<if condition="is_member_of($post, groupid2)">
<td class="css name2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<if condition="is_member_of($post, groupid1)">
<td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if></if></if>


Notice: I had to add the additional </if> to the very end (AGAIN)!!
|
|

And this code (after changing the red) would have to be in your additional css:


.css name1 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}
.css name2 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}
.css name3 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}

Fastbird
16 Apr 2009, 01:46
Yeah, thanks for clearing that up. I tried to explain that, that you need independent CSS for each statement, but the if tags I didn't know about. I'll update the initial install info. Thanks!

down.low
16 Apr 2009, 01:52
Ok, here's how to center everything:

Find:
<div id="postmenu_$post[postid]">

Replace:
<div id="postmenu_$post[postid]" align="center">

Find:
<div class="smallfont">

Replace:
<div class="smallfont" align="center">Thanks for helping buddy, That did center my name and the title under my name- could you point me in the direction to center the rest of the stuff under- like my avatar and such?

down.low
16 Apr 2009, 01:55
Yeah, thanks for clearing that up. I tried to explain that, that you need independent CSS for each statement, but the if tags I didn't know about. I'll update the initial install info. Thanks!Well the post post someone else posted sort of left that out and their code had the extra bit in it and didn't mention to only have it once. Took my a while to figure it out myself but I enjoy learning.

down.low
16 Apr 2009, 01:57
Thanks for helping buddy, That did center my name and the title under my name- could you point me in the direction to center the rest of the stuff under- like my avatar and such?
cancel the avatar- I got it centered.

down.low
16 Apr 2009, 02:23
cancel the avatar- I got it centered.allright I got everything centered, thanks for helping out.

Fastbird
16 Apr 2009, 14:12
:) Thanks for helping out!

therogueforums
19 Apr 2009, 23:13
...


Thank you, so much! Worked like a charm!

mikey1991
20 Apr 2009, 04:59
great mod, saw it a awhile ago, tagged it.

Bowromir
21 Apr 2009, 11:30
down.low thanks for the additional info! good stuff

plazzman
25 Apr 2009, 10:38
I managed to make everything appear, but I have one problem. About every other post, the post bit is either dropped all the way down, or fixed. What do I do?

Fastbird
25 Apr 2009, 15:42
We need to see your postbit code. Copy it into notepad and then attach that file here so I can look at it.

plazzman
26 Apr 2009, 01:12
Sure, here you go.

Edit: Ok I just realized exactly what it's doing, it's putting the avy and user info directly in the middle of the posbit. So if the post is really long, the avy/postbit are really far down. However I don't know how to fix it

down.low
26 Apr 2009, 07:01
Thank you, so much! Worked like a charm!No problem man.

plazzman
26 Apr 2009, 11:58
Ok, scratch my previous post, I figured it out. This is an awesome mod!

Fastbird
27 Apr 2009, 14:04
Ok, scratch my previous post, I figured it out. This is an awesome mod!

Sweet! Now click install'd for me!

tommyturnage
10 May 2009, 06:22
can u get me the background in the 2nd pic

Fastbird
12 May 2009, 14:49
It's posted in the thread somewhere. I don't currently use it anymore.

Bulldog Stang
12 May 2009, 21:03
How do you get the Postbit to display on the side like that ??

Fastbird
12 May 2009, 23:42
That would be the postbit legacy mode. You can enable which way you would like it in your User CP options. ;)

3xigames
16 May 2009, 04:18
This just did absolutely nothing on my Bulletin :(
I REALLY want this.. it looks amazing.

"That would be the postbit legacy mode. You can enable which way you would like it in your User CP options"

How would I make my forum look to the left like yours as a default?

Fastbird
16 May 2009, 21:42
Log into the control panel. In the User CP, go to "vbulletin options". Once you are there, look for the "Style and Language Settings" section. Scroll down and look for "Use Legacy (Vertical) Postbit Template" and select YES. This will default your forum to the postbit_legacy mode.

Fastbird
16 May 2009, 21:42
I'm going to work on making this a product, then it will be much easier to work with. Only problem is I have no idea where to start, lol.

tommyturnage
16 May 2009, 22:48
It's posted in the thread somewhere. I don't currently use it anymore.

its not in this thread

Fastbird
17 May 2009, 16:40
Hmm, you're right. It was posted at one point, I guess the dude removed it. I can search around on my server and see if I still have that image uploaded. Give me a little bit. If not, I can have my brother redo the image.

Rideharder
22 May 2009, 11:50
Fastbird would you care to share how you did your header on your website I love how it keeps rotating pictures of cars.... anyway can you fill me in on how that's done?

Fastbird
22 May 2009, 19:39
The rotation is the winner of the picture of the month. We have a poll and let our members decide who's car/picture should be put up in the banner.

It's just a javascript for a banner rotation. I'll have to post up the code I used later tonight, as I'm at work right now and can't really get to it.

Thanks for the comments guys, nice to know the work you put in pays off!

Rideharder
23 May 2009, 04:02
Your template looks hot I will post a banner from our site to your site for cars that's the least I can do that's if you would like me to.. My site is related around sport bikes.. Your layout is one of the cleanest looking layouts I've ever seen.. a big pat on the back..



I have as ZX14 with nitrous pushing over 210 hp.. your site brings me back to when I built my cars ahead 1970 fire bird 350 4 bolt main 194 closed chamber heads with the tunnel ram with two 400 carburetors mounted to the top of that beast... I found out 600 carburetors flooded out on the street..LOL .. a solid crank and the biggest 12 disc three speed transmission that GM made and also It was boarded 30 over with LCD flat top pistons ..

And this is where the hairs stand up on the back your neck picture this a flat black 1970 tub in the back with a scoop sticking a least 2 foot high and when the hood was closed it buckled the scoop a little bit... that thing looked hotter than the Mad Max car..


I used to have cops just to stop me just to ask me where I was going...LOL

Fastbird
23 May 2009, 05:19
Your template looks hot I will post a banner from our site to your site for cars that's the least I can do that's if you would like me to.. My site is related around sport bikes.. Your layout is one of the cleanest looking layouts I've ever seen.. a big pat on the back..



I have as ZX14 with nitrous pushing over 210 hp.. your site brings me back to when I built my cars ahead 1970 fire bird 350 4 bolt main 194 closed chamber heads with the tunnel ram with two 400 carburetors mounted to the top of that beast... I found out 600 carburetors flooded out on the street..LOL .. a solid crank and the biggest 12 disc three speed transmission that GM made and also It was boarded 30 over with LCD flat top pistons ..

And this is where the hairs stand up on the back your neck picture this a flat black 1970 tub in the back with a scoop sticking a least 2 foot high and when the hood was closed it buckled the scoop a little bit... that thing looked hotter than the Mad Max car..


I used to have cops just to stop me just to ask me where I was going...LOL
Haha awesome! Glad you like the design too! If you want to stick a banner up that would be cool! I wish I had a first gen firebird, that's actually one of my 'dream' cars. Something about that classic look!

I'll get you that code ASAP, promise!

Fastbird
23 May 2009, 17:01
Here's my complete header, you will have to find a similar javascript, but you can see how I have set it up. You will need to upload separate javascript files that the code can look to. The banner is setup specifically to make this work. There is a main background image that is just the gradient, no logos or anything. Then we have the left logo, which is clickable and links to the forum home. Then, the javascript rotates the right image based on which image files are in the specific folder. It has to be setup this way because our forum resizes to 95% of the screen on any resolution, if you use one big image, it will stretch past the forum table. Take a look:

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="144" style="padding-top:0px" background="http://www.ltxtech.com/forums/mid.jpg"><a href="http://ltxtech.com/forums"><img src="http://www.ltxtech.com/leftblog.jpg" width="475" height="145" border="0" /></a></td>
<td align="right" style="padding-top:0px" background="http://www.ltxtech.com/forums/mid.jpg"><a href="http://ltxtech.com/forums/forumdisplay.php?f=86"> <script language="JavaScript">
<!--
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="http://ltxtech.com/forums/right.jpg"
myimages[2]="http://ltxtech.com/forums/rightdecember.jpg"
myimages[3]="http://ltxtech.com/forums/springsoul.jpg"
myimages[4]="http://ltxtech.com/forums/ryder2.jpg"
myimages[5]="http://ltxtech.com/forums/larry4.jpg"
myimages[6]="http://ltxtech.com/forums/blownd.jpg"
myimages[7]="http://ltxtech.com/forums/larry4.jpg"
myimages[8]="http://ltxtech.com/forums/pipes.jpg"
myimages[9]="http://ltxtech.com/forums/tbird3.jpg"
myimages[10]="http://ltxtech.com/forums/tbird3.jpg"
myimages[11]="http://ltxtech.com/forums/tbird3.jpg"
myimages[12]="http://ltxtech.com/forums/larry4.jpg"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0>')
}
random_imglink()
//-->
</script>
</td>
</tr>
</table>
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0"

cellspacing="0" align="center">
<if condition="$ad_location['ad_header_logo']">$ad_location
</if>
</table>


<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->
<div align="center">$vbam_location[ltx]</div>

By throwing the current winner in the rotation list 3 times, we increase the chance that his car will be seen more frequently throughout the month. If you need any help setting it up or finding the correct javascript, feel free to send me a PM. I'd be glad to help as best I can. Also note that I have an advertisement mod loaded on my forum and there are a few parameters that show up in the head code. Don't worry about that!

hiphabs
23 May 2009, 18:51
Great mod but something about the centering, how do i move my avatar up? because this is what i have now:

https://www.vbulletin.org/forum/external/2009/05/51.jpg

Yea so how can i move it up?


Would i have to move my name and description that says admin below the avatar so it shifts up?

edit:

Yea i had to move the names.


Installed.

Fastbird
25 May 2009, 03:52
I'm glad you got everything to work, but please, all I ask is that you don't use our image. Although i posted this mod, we still try to keep our forum unique. I don't think it would be much to ask in return to not use our images. It was not provided in the hack for a reason.

:) Thanks!

stapler2025
31 May 2009, 08:07
Any way to get something like this working on postbit rather than legacy? That'd be awesome!

archonus
31 May 2009, 21:54
how can i apply this to the group post too ?

Shadawg
31 May 2009, 23:18
stapler im sure it will be basically the same, just a few coding edits here and there.....

Might install this if i can come up with a decent enough background image :)

MAD-DOG
31 May 2009, 23:23
Love the mod thanks!

Installed.

Shadawg
01 Jun 2009, 00:11
Okay got an image, gunna mark installed, great little mod man (y)

Shadawg
01 Jun 2009, 03:39
http://www.revolutionofgaming.com/home/showthread.php?t=2355

Go take alook people, i got it looking good finally, thanks again for the great mod, i will be looking into doing this for the posting area also......

archonus
01 Jun 2009, 15:17
how to do it for the posting area?

Fastbird
01 Jun 2009, 19:32
Not sure, and to be fair, you guys can use the image if you ask. It might seem lame but it took some time to make it and it's just a little courtesy. If you would like to use the image to install the mod, that's fine just shoot me a PM and let me know.

Fastbird
01 Jun 2009, 19:34
You can install the code onto the regular postbit template and it should work the same, you would need to change the shape of the image and perhaps a few minor things in the CSS, but it should work the same.

Looks great archonus!


EDIT: I need to take some new screenshots. Our server got hacked and a bunch of images got deleted. *sigh*

Shadawg
01 Jun 2009, 20:08
how to do it for the posting area?

I have not began any work on it yet, when i have sum free time, will be looking into it if its possible at my level of coding.....

Fastbird
01 Jun 2009, 20:58
There's already a hack out there for that, but I can whip something up tonight.

archonus
01 Jun 2009, 23:36
There's already a hack out there for that, but I can whip something up tonight.

that will be great !
thanks

archonus
05 Jun 2009, 19:33
any news Fastbird ? :) i tried the post background plugin but its not usefull, will be awesome if u give us a give to do the same as postbit but on the post ^^

DeanLag
15 Jul 2009, 10:05
Nice. I would LOVE to use this MOD. However, I want it to be on particular users and not usergroups cause only a couple of my forum members will be allowed to use it. I could do it the long way (Add people in seperate usergroups) but I rather do it the "proper" way. I'm guessing you only need to change the condition "<if condition="is_member_of($post, #)">" to a condition that looks along this: "<if condition="is_member($post, #)">, but I'm not sure about the syntax :(

morever, I would love to a separate background for the posts, which, I think, ressembles the one people just posted above. I know postbit is the left-sided panel of a post, but how do you call the right-side? (Legacy postbit)

Thanks and again, awesome Mod :)

tommyturnage
04 Aug 2009, 22:08
hi dear
Thanks İnstalled
how to change quote box like this :

how to get to this form
https://www.vbulletin.org/forum/external/2009/08/98.jpg

i mean it's:

quote: Orginially posted By Fastbird
I Like It

Where can I get that background?

HayleyP
17 Aug 2009, 00:50
Nevermind :)

Great mod.

kellyandmark04
19 Aug 2009, 09:17
Looks great awaiting more screenshots.

KeyHunterz
29 Aug 2009, 03:41
I finally got it to work, had to tweak the code a little to match up with my current skin.

Demo (http://gamerztrust.com/community-news/730-issue-spam-please-read.html)

Great hack!

Mobo
15 Sep 2009, 19:55
I am trying to use a PNG image and have my forums background texture show through. I've tried adding the "transparent" property to the code, but that did not seem to work. Is there a way to make it where the part of the postbit that does not have an image applied via this mod not to be filled with a color, leaving it transparent?

Fastbird
24 Sep 2009, 00:31
I am trying to use a PNG image and have my forums background texture show through. I've tried adding the "transparent" property to the code, but that did not seem to work. Is there a way to make it where the part of the postbit that does not have an image applied via this mod not to be filled with a color, leaving it transparent?

You need to use a program like Gimp or Photoshop and 'erase the background' so that you see a tile checkboard under the image. Just use the eraser and erase eveything you don't want to show up.

Mobo
24 Sep 2009, 08:47
Sorry, guess I did not explain that very well. I already have the transparent png image. My problem is, when I use the png image, the part that is transparent shows up black and not as the normal color for my site.

Fastbird
26 Sep 2009, 01:32
That's because your image is not transparent.

Mobo
28 Sep 2009, 14:35
The image up there now is not transparent, as it does not display it correctly and cause that area to show as black. So, I replaced it with some thing that does work... a JPG.

Malceski09
07 Oct 2009, 10:10
would this work on 3.7?

ChopSuey
07 Oct 2009, 10:23
would this work on 3.7?

Since its just some edits, im pretty sure it would work;)

Malceski09
07 Oct 2009, 10:26
cheers mate ill give it a go :)

JeansJoe
05 Nov 2009, 08:58
I could use some help here.
I am using this one: http://www.vbulletin.org/forum/showthread.php?t=207742
and I want to have a special background for girls on my forums. So it is not based on a usergroup but on a field.

My coding skills are just too low for that - can someone tell me how to state the if statement for this one?

Mobo
05 Nov 2009, 16:56
My coding skills are crap, but you could create a usergroup for only the girls and then use either the search for user function based on the gender field (if it is a profile field I think) and then manually move all the girls over to the new usergroup. There is also a query you can run to return all users that have filled out a certain field. I can look that up and post it if it will help you. Good luck getting it automated though.

JeansJoe
05 Nov 2009, 19:51
My coding skills are crap, but you could create a usergroup for only the girls and then use either the search for user function based on the gender field (if it is a profile field I think) and then manually move all the girls over to the new usergroup. There is also a query you can run to return all users that have filled out a certain field. I can look that up and post it if it will help you. Good luck getting it automated though.

I think there must be already a query running as in the postbit there is an image displayed for the gender. my users have to fill out this field btw - so they are either man or woman (sorry for disrespecting transvestites :D ). and if not there would still be the else case.

I could of course move all women to a usergroup - then again this is exactly what I am trying to avoid - would take insanely long and require constant work on it.
I think the postbit query is supposed to already query that profile field - just like the usergroup for the user. So I think there must be a variable for that.

that post might still help me - if you could look it up that'd be great!

Mobo
05 Nov 2009, 21:23
It seems like you might be able to edit the code from the other mod to just call and post the CSS class from this mod... some deep searching around the net might yield you enough info to hack it yourself. If all else fells, you could hire someone to do it for you via the Rent A Coder site (http://www.rentacoder.com/RentACoder/DotNet/Default.aspx). I've personally had good luck there and the site really protects the buyer from getting ripped off from a coder.

Anyway, here is the link to the query (http://www.vbulletin.com/forum/showthread.php?318583-Query-to-find-users-that-update-field-X) I was talking about... not a lot there, but maybe some help.

JeansJoe
06 Nov 2009, 11:57
I managed it!!!

check out this post: http://www.vbulletin.org/forum/showpost.php?p=1792068&postcount=52
Don't forget the additional /if to close each group!

This one:
<if condition="is_member_of($post, 1)">

has to be:
<if condition="$post[field5] == 'Girl'">

Whereas field 5 is the number of the profile field and the string Girl is the Value of that Field!
If you use boolean stuff like true false you should do it different. you can also use != for is not.

btw this mod is marked as not working for 3.8.4 - it totally works on 3.8.4!!!

Mobo
06 Nov 2009, 12:54
Glad you got it worked out, thinking about this more, it might actually help me automate my setup. Thanks for posting your findings.

Mobo
06 Nov 2009, 13:08
In order to get this to work with my setup, I need two profile fields filled in. Is it possible to string two if conditions together with some thing like "AND"

Mobo
06 Nov 2009, 13:28
Found it! If you need it to check the condition of two fields, here is what you need...

<if condition="$post[field#] == 'Option'">
<elseif condition="$post[field#] == 'Option'">
<td class="postbitbg7" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />


You need to change the red # to the field number you want to use as well as the red Option, which is the text for that feld.

sisterhood
22 Jan 2010, 19:46
Plz how make it in VB 4.01 ?

a9eel
22 Jan 2010, 20:21
thn

Fastbird
23 Jan 2010, 00:49
Plz how make it in VB 4.01 ?

Go look in the correct mod forum and you will see I've already ported it.

niadene
30 Jan 2010, 21:47
https://www.vbulletin.org/forum/external/2010/01/2.gif

this kind of image is allowed?

it's blinking..i try it and result is that image is on the right side of avatar then gets wider

Fastbird
02 Feb 2010, 01:52
I have no idea, I only used it as I wrote it. It seems like you need to change the cell width to match your image width. Beyond thta I don't use vb3 anymore, so I can't provide much help.

DIBBLE
24 Jul 2010, 23:24
[QUOTE=emsplanet;1737161]u talking about which bg?
https://www.vbulletin.org/forum/external/2010/07/10.png<---


where did you get this image from??

actros
30 Sep 2010, 15:51
Works this with all of the Post too???

Here an Picture of that, what i mean.

Eduardo Leon
30 Sep 2010, 21:35
haha

nice work man .

thnx for share this ..

Yixless
17 Oct 2010, 14:45
When I do this it works, but my text gets jumbled and the avatar moves in the middle... And the Thanked X amount of times seems to shoot out left out of the postbit box. How can I fix this?

Fluke667
29 Aug 2011, 07:49
Its not work for me...

silvermerc
28 Sep 2011, 02:01
Couldn't get this to work, Kept getting line 28 error!
Developers no where to be seen.

Fluke667
09 Oct 2011, 16:33
no1 can get it to work??

blind-eddie
10 Oct 2011, 06:30
works fine for me.