vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   New Posting Features - {mishakoz} Postbit_Legacy Scroll (https://vborg.vbsupport.ru/showthread.php?t=146963)

sonichero 05-10-2007 10:00 PM

{mishakoz} Postbit_Legacy Scroll
 
This will create a postbit with curved headers on the top and bottom of the user information.

Find:
HTML Code:

<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:
HTML Code:

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

/* ***** 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:
  1. Change URLs in CSS to that of the correct images.
  2. Set bm2 to what you want the background of your postbit to look like. Define an image or a background color.
  3. Change the CSS of tcat2 to whatever your preference. If you have a white forum this may need to be changed
  4. Find "Add Profile Fields Here" in the template and add any profile fields you wish too.
  5. 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.
  6. 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

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.


All times are GMT. The time now is 06:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete