Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hybrid postbit Details »»
Hybrid postbit
Version: 1.0.0, by stonyarc stonyarc is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 11-15-2005 Last Update: Never Installs: 38
Template Edits
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-21-2006, 01:32 PM
tei727's Avatar
tei727 tei727 is offline
 
Join Date: Feb 2006
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WolfsongNevan
Does anyone have vbPlaza installed and is running Hybrid Postbit as well? Our TechSupport went to install this today, but said he was concerned because it's editing/modifying/deleting stuff from vbPlaza ....
I have it and saw what he was talking about. Works fine for me.
Reply With Quote
  #43  
Old 04-22-2006, 02:44 AM
Coast to Coast Coast to Coast is offline
 
Join Date: Apr 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting idea, I'll click on install and may come back with results - after installing it.
Reply With Quote
  #44  
Old 05-26-2006, 04:10 PM
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So who has a screenshot of his/her hybrid postbit.
Reply With Quote
  #45  
Old 05-26-2006, 08:45 PM
Kroby Kroby is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, work nice, thank you
Reply With Quote
  #46  
Old 05-26-2006, 09:38 PM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mysite/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 274

After making the edits in the postbit legacy template, the system stopped me during the save with this. Seeing the eval code in there, I'm assuming it's because I'm using php5.

Any thoughts?
Reply With Quote
  #47  
Old 05-28-2006, 02:47 PM
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tulsa
Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mysite/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 274

After making the edits in the postbit legacy template, the system stopped me during the save with this. Seeing the eval code in there, I'm assuming it's because I'm using php5.

Any thoughts?
This most of the time means a typo eg forgotten ; or " or something like that.
Reply With Quote
  #48  
Old 05-29-2006, 02:22 AM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm thinking now it's got to be another hack interfering with it. I upgraded to 3.5.4 and went back to php4 and still I have the same issue. I can't see where in the code or why though??

Damned confusing...
Reply With Quote
  #49  
Old 05-29-2006, 03:20 PM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this site. It's so educational for the coding challenged. Of course I feel like an idiot but I'll get over that soon enough..

I found my issue. I read in another thread somewhere on here where one person was telling another they needed to make their hack xhtml complaint and since they had <br> instead of <br /> it wasn't compliant and that meant you couldn't have open ended <tr> and such.

Knowing that I have put some <br> in my sig section to space the sig away from the text a bit I went and changed those to <br /> and it worked like a charm.

By the way in the instructions above in the last section you have:

widht="100%"

I'm assuming that should be width and it's a typo but for people copying and pasting without looking at it, it might make a difference.


I could use a little help if you don't mind. I was moving the vbplaza gifts icons to the right table and they are showing fine but they are showing vertical instead of horizontal. It's kind of freaky looking. Any thoughts on how I can get to those to show in a nice straight line?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:18 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.04591 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete