Log in

View Full Version : Hybrid postbit


stonyarc
11-15-2005, 10:00 PM
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


<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


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

add below


<!-- 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/showthread.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
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
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 :)

donBLACK
11-17-2005, 02:12 AM
I like it...Vision, maybe u can mod it to look diff so it does what u say?

Living in music
11-17-2005, 03:19 AM
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 :)

i have opinion too

stonyarc
11-17-2005, 06:37 AM
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 :)

Well it's up to people to use whatever phrase/function they like there.

You can create 100's of variations, add css classes, etc

this is just a framework to play with.

lordofgun
11-17-2005, 06:20 PM
I like the idea. I tweaked mine a bit.

michaelbenson
11-17-2005, 07:35 PM
Thanks, this looks a really ingenuitive modification.
Of course some tweaking looks neccessary though. Installed.

stonyarc
11-17-2005, 08:07 PM
Thanks, this looks a really ingenuitive modification.
Of course some tweaking looks neccessary though. Installed.

You're right if you look at the live demo, it's also different. It's just the idea.

With small posts the legacy looks off a bit and the basic one isn't that cool so why not meet in the middle.

If people need help with tweaks just let me know

Drop in a screenshot or a link to a live demo of your final result !!!!!!!!!!

LIVE DEMO
http://www.xboxusersgroup.com/forums/showthread.php?t=47578

Gizmo5h1t3
11-17-2005, 08:31 PM
I like the idea. I tweaked mine a bit.


like the display odf that postbit mate...u got the code mods for that plz??

Snake
11-17-2005, 08:58 PM
Not bad... :)

lordofgun
11-18-2005, 01:01 AM
like the display odf that postbit mate...u got the code mods for that plz??

I'll PM you.

TyleR
11-18-2005, 01:35 AM
I'll PM you.
Well now..your's doesnt look to bad either..hmm..mind PM'ing me yours aswell, lordofgun? :)

dan35
11-18-2005, 02:47 AM
Pls pm me too or post it here ;)

Thx!

G-Force 199
11-18-2005, 03:19 AM
Nice hack & Click Install.
Can u give people a txt or zip ?

BiReL41r
11-27-2005, 11:15 PM
Great hack, finally I have it on the left, rather than at the top.

MustangLisa
01-17-2006, 04:22 PM
Thanks!!

Raymondlee714
01-26-2006, 04:43 AM
Hi, this is a nice, but some howi can install, please help thanks

devilrulez
02-04-2006, 01:57 PM
i tried this but didnt worked on my forum....

i hv vb 3.5.3 on my forum...

how to Activate the legacy postbit?

devilrulez
02-04-2006, 02:20 PM
i tried this but didnt worked on my forum....

i hv vb 3.5.3 on my forum...

how to Activate the legacy postbit?


:D


I worked that out.... nice one there

o0Hubba0o
02-20-2006, 03:10 AM
Curious if anyone can tell what I need to do to keep my vertical part of the postbit from squishing up, what I need to adjust or add to keep it set at the width it's supposed to be.

It's too narrow now and making the text in the info below wrap and the whole thing stretch down, which defeats the purpose of me adding the hybrid mode; to reduce the vertical length of the side heh. For example; the age and gender used to be on the same line.

http://img.photobucket.com/albums/v496/HubbasBedroom/Graphics%20Anon/psl.gif

eNforce
02-20-2006, 07:46 AM
Installed, this is quite nice.

Here's my board:
http://www.seriosgaming.com/showthread.php?t=2662
You can use it in your first post as a live demo if you want.

Oddjob
03-07-2006, 07:24 PM
I'll PM you.

Can you PM me with that code as well??????????

The Chief
03-22-2006, 01:02 AM
Just installed (basically for the idea) very ingenious idea :)

here is what I did with mine, tried to use every little part of the post and make it look good:

here is demo (http://www.myetalk.com/forums/showthread.php?t=2571)

3z3k3l
03-30-2006, 12:30 PM
i tried this but didnt worked on my forum....

i hv vb 3.5.3 on my forum...

how to Activate the legacy postbit?

I found it, Go to VBOptions>Style and Language Settings>Enable legacy.

Can someone post up the template mods for LordofGuns Template modifications? It looks great too!

PabloAM
03-31-2006, 01:03 PM
Just installed (basically for the idea) very ingenious idea :)

here is what I did with mine, tried to use every little part of the post and make it look good:

here is demo (http://www.myetalk.com/forums/showthread.php?t=2571)

PLEASE THE Chief,, I like you template :surprised: and I have this horribilus template http://img139.imageshack.us/img139/9894/11og.th.jpg (http://img139.imageshack.us/my.php?image=11og.jpg)

Who you created???
Please help me! :confused:

Roms
04-02-2006, 05:35 AM
!!!!!!

You need to be a member of your site to view the demo???? Why did you even bother to post a link then? Honestly, do you think I'm going to take the time to register? I'm older and more willing and even I won't do it, you think someone in thier 20's will?

Allan
04-09-2006, 12:07 AM
Nice, and thanks :)

Click Install ;)

o0Hubba0o
04-09-2006, 12:48 AM
!!!!!!

You need to be a member of your site to view the demo???? Why did you even bother to post a link then? Honestly, do you think I'm going to take the time to register? I'm older and more willing and even I won't do it, you think someone in thier 20's will?
I'm the same way, don't like registering at a site I might not ever go to just to see something, but dude, he posted an attachment too. lol chill out. ;)

stonyarc
04-16-2006, 11:45 AM
I'm the same way, don't like registering at a site I might not ever go to just to see something, but dude, he posted an attachment too. lol chill out. ;)


On http://www.xboxusersgroup.com/forums/ just go to whatever post.

You don't need to register to see posts or most of the forums.

GrendelKhan{TSU
04-17-2006, 01:45 PM
Just installed (basically for the idea) very ingenious idea :)

here is what I did with mine, tried to use every little part of the post and make it look good:

here is demo (http://www.myetalk.com/forums/showthread.php?t=2571)

wow! that looks awesome!
man...don't know if that is inspiring or depressing. lol ;)

I have yet to get mine look the way I want it. :(

<< color me jealous.

GrendelKhan{TSU
04-17-2006, 01:50 PM
Curious if anyone can tell what I need to do to keep my vertical part of the postbit from squishing up, what I need to adjust or add to keep it set at the width it's supposed to be.

It's too narrow now and making the text in the info below wrap and the whole thing stretch down, which defeats the purpose of me adding the hybrid mode; to reduce the vertical length of the side heh. For example; the age and gender used to be on the same line.



first.... great job! looks awesome! (but yah...too high)
second.... I think it got smushed cause your horital postbit has images that are too wide and forcing your legacy to smush. its being constrained by your whole thread wide (forumdisplay?).

ie: try reducing size of the purple and pink rank images.

WolfsongNevan
04-18-2006, 10:03 PM
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 ....

tei727
04-21-2006, 01:32 PM
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.

Coast to Coast
04-22-2006, 02:44 AM
Interesting idea, I'll click on install and may come back with results - after installing it.

stonyarc
05-26-2006, 04:10 PM
So who has a screenshot of his/her hybrid postbit.

Kroby
05-26-2006, 08:45 PM
Installed, work nice, thank you :)

Tulsa
05-26-2006, 09:38 PM
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?

stonyarc
05-28-2006, 02:47 PM
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.

Tulsa
05-29-2006, 02:22 AM
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...

Tulsa
05-29-2006, 03:20 PM
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?