vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Nice Postbit Sidebar (https://vborg.vbsupport.ru/showthread.php?t=241813)

Trasion 05-03-2010 10:00 PM

Nice Postbit Sidebar
 
1 Attachment(s)
This tutorial will teach you how to add a nice sidebar in the first post of every thread (unless you change it not to).

Just follow the simple steps below. :)

Open up your postbit template, and find:

Code:

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

Change that to:

Code:

<div class="content">
                <div id="post_message_$post[postid]">
                        $post[message]
                </div>

</div>


<if condition="$post[postcount] == 1">
<div class="sidebar">

<table class="sidebaritem">
<tr>
<td width="20px"><img src="images/postbit/user.png"></td>
<td><a href="member.php?$session[sessionurl]u=$post[userid]">Authors Profile</a></td>
</tr>
</table>
<div style="height:4px;"></div>
<table class="sidebaritem">
<tr>
<td width="20px"><img src="images/postbit/heart.png"></td>
<td><a href="reputation.php?p=$post[postid]">Add to Reputation</a></td>
</tr>
</table>
<div style="height:24px;"></div>
<table class="sidebaritem">
<tr>
<td width="20px"><img src="images/postbit/add.png"></td>
<td><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$post[postid]" rel="nofollow">Reply to Thread</a></td>
</tr>
</table>
<div style="height:4px;"></div>
<table class="sidebaritem">
<tr>
<td width="20px"><img src="images/postbit/printer.png"></td>
<td><a href="printthread.php?t=$post[threadid]">Print Thread</a></td>
</tr>
</table>
<div style="height:4px;"></div>
<table class="sidebaritem">
<tr>
<td width="20px"><img src="images/postbit/email.png"></td>
<td><a href="sendmessage.php?do=sendtofriend&t=$post[threadid]">Share Thread</a></td>
</tr>
</table>
<div style="height:4px;"></div>
<table class="sidebaritem">
<tr>
<td width="20px"><img src="images/postbit/flag_red.png"></td>
<td><a href="report.php?p=$post[postid]">Report Thread</a></td>
</tr>
</table>
</div>
</if>
<div class="clear"></div>

Now in the same template, find:

Code:

$post[signature]
Replace it with this:

Code:

<if condition="$post[postcount] !== 1"><div style="width:910px;background:#D1D1E1;height:1px;margin-left:auto;margin-right:auto;"></div><br /><div style="width:90%;margin-left:auto;margin-right:auto;">$post[signature]</div></if>
Close that template, and go into All Style Options, and find the Additional CSS Definitions box. In the second box down, add this:

Code:

.content {
        width:700px;
        margin:10px;
        float:left;
}

.sidebar {
        width:200px;
        margin:10px;
        float:right;
padding: 5px;
}


.sidebaritem {
        border: 1px solid #D1D1E1;
border-left: 2px solid #D1D1E1;
        width:200px;
background: #fbfbfb url(images/misc/alts.gif) repeat-x;
padding: 5px;
}


.clear {
        clear:both;
}

Then upload the attached file to your /images/ folder.

Now go to vBulletin Options, find Use Legacy (Vertical) Postbit Template, and make sure it's checked to "No".

You should have a working sidebar. In CSS, you will need to edit widths, and colors to suit your forum.

If you want more icons, please go to FamFamFam.com and find the silk icons.

iask 05-04-2010 01:43 PM

Demo ?

Trasion 05-04-2010 06:27 PM

Demo at http://trasion.com/showthread.php?t=217

Can someone please take a screenshot of it, and upload it here before I change my style in a few days? I can't do it myself right now, but I don't want it to disappear.

Aaron873 05-04-2010 09:09 PM

Wow thanks so much.
I needed this for my forum.

ForumsMods 05-05-2010 11:13 PM

Not XHTML Valid.

Trip 05-07-2010 10:52 AM

1 Attachment(s)
Here is your screenshot...

kmohamed 05-08-2010 02:56 AM

vb4 ?!

valdet 05-14-2010 07:31 AM

Very nice. I might modify that to include a skyscrapper sized advertisement on the right side of postbit_legacy

ChopSuey 06-04-2010 01:06 PM

1 Attachment(s)
Your site is listed as an attack site! Look at attached image. Avast doesn't lie.

danyz81 06-08-2010 05:23 AM

Quote:

Originally Posted by ChopSuey (Post 2048207)
Your site is listed as an attack site! Look at attached image. Avast doesn't lie.

same for me! The site is blocked from my antivirus!


All times are GMT. The time now is 01:30 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01310 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete