vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Hybrid postbit (https://vborg.vbsupport.ru/showthread.php?t=100958)

stonyarc 11-15-2005 10:00 PM

Hybrid postbit
 
Hybrid postbit

Function

Both the legacy and the classic postbit have their advantages. So why not combine them. The legacy itself sometimes seems to big with smaller posts.

This is how the hybrid postbit might look like.
[See screenshot]

Creativity is key.

Live demo: http://www.xboxusersgroup.com/forums/
Requested by

/

Prereq

Activate the legacy postbit.
You can activate this in the admincp / Style & Language Settings (bottom)

Installation

1. open postbitlegacy template in the style manager (postbit templates)
2. look for

Code:

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

And remove or comment out by putting <!--- CODE --->

3. look for

Code:

       
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>

add below

Code:

<!-- start top info post -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" widht="100%">
<tr>
<td class="alt2" style="font-weight:normal;font-size:10px;width:100%" align="left">
<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>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
</div>
</td>
<td class="alt2" style="font-weight:normal;font-size:10px;width:200px" align="right">
<if condition="$post['rank']"><center><div class="smallfont">$post[rank]</div></center></if>
</td>
</tr>
</table>
<BR>
<!-- End top info post -->

3. save template and done

Variants

- You can add a different functions/phrases/info to different locations.

Live demo
Live demo: http://www.xboxusersgroup.com/forums...ad.php?t=47578

StonyArc

stonyarc 11-16-2005 08:19 PM

Reserved

Dan 11-16-2005 08:23 PM

I like it :D it has a nice mixture of legacy and the new postbit :D

stonyarc 11-16-2005 08:28 PM

Quote:

Originally Posted by Dan
I like it :D it has a nice mixture of legacy and the new postbit :D

Well creativity is key here. As you can see on the live demo.

Omega Prime 11-16-2005 10:08 PM

Great idea!! Installed and working nicely :)

Kran 11-16-2005 10:16 PM

Can I get some screens? I can't seem to load the site :(

stonyarc 11-16-2005 10:17 PM

Quote:

Originally Posted by Kran
Can I get some screens? I can't seem to load the site :(

I attached a screenshot.

They are doing maintenance on the server

Kran 11-16-2005 10:24 PM

Thanks! Looks good.

EDIT: I'll ask my members if they want it. Thanks :)

TyleR 11-16-2005 10:31 PM

installed and lovin it..thanks :)

akanevsky 11-16-2005 10:31 PM

Not a good idea to have username in the middle of the post. I'd suggest you place the avatar or other extra info there instead. Because a user usually looks into top left corner first, the most important info (the username) must be there :)


All times are GMT. The time now is 04:12 PM.

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.01056 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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