vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Postbit Legacy - Usergroup Backgrounds (https://vborg.vbsupport.ru/showthread.php?t=203850)

merk_aus 04-09-2009 03:09 AM

Was wondering I don't want to do this with usergroups I have a custom profile field where they select from a drop down their favorite sport team (as my site is a sports website) and would like to try and get something like this set up where when they select their fav. team it puts a background for their team in the postbit - just something small I have created that would repeat itself.

Any help you could provide on doing this it would be greatfully appreciated.

^SuiCyde^ 04-10-2009 08:06 AM

yeah that type of integration rather than by usergroup would be amazing as far as different ways you could use it

down.low 04-12-2009 07:38 PM

Quote:

Originally Posted by chick (Post 1785207)
Hello FB... this looks really nice. Before I install how did you get the upper part ........... the avatar and right underneath it, centered? I'd like to center mine too.

Very nice and thank you.

update: Figured out the centering, this is really sweet....... again thanks!

I would like to know how to center all of this as well, does anyone know how to do so?

Fastbird 04-13-2009 06:16 PM

Quote:

Originally Posted by down.low (Post 1789755)
I would like to know how to center all of this as well, does anyone know how to do so?

The border around the images is custom CSS and the avatar being centered is just a simple <align="center"></align> around the code that posts the user avatar. I then rearranged the postbit legacy code to display what you see in the demo images. There's a bit of work done there.

Jees, I should just release my template! Glad you guys like it though :)

down.low 04-13-2009 11:41 PM

Quote:

Originally Posted by Fastbird (Post 1790421)
The border around the images is custom CSS and the avatar being centered is just a simple <align="center"></align> around the code that posts the user avatar. I then rearranged the postbit legacy code to display what you see in the demo images. There's a bit of work done there.

Jees, I should just release my template! Glad you guys like it though :)

I'm guessing you would mean in the postbit_legacy, probably the following code:

Code:

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

I've tried putting the align in the in various places with no result. I'de also like to center the rest of the text as you have- or have it have you have it in the demo- could you help me out a little or point me in a direction to go from here? thanks in advance for any help you can lend- thanks for the hack, works great by the way- especially selling the template usage in an experience points shop.


WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free DictionaryJoin exampleWordNetGoogleUrban DictionaryAnswers.comrhymezone.comMerriam-Webster<>0

wvcidfjoguarm

Fastbird 04-14-2009 01:50 AM

Quote:

Originally Posted by down.low (Post 1790644)
I'm guessing you would mean in the postbit_legacy, probably the following code:

Code:

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

I've tried putting the align in the in various places with no result. I'de also like to center the rest of the text as you have- or have it have you have it in the demo- could you help me out a little or point me in a direction to go from here? thanks in advance for any help you can lend- thanks for the hack, works great by the way- especially selling the template usage in an experience points shop.


WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free DictionaryJoin exampleWordNetGoogleUrban DictionaryAnswers.comrhymezone.comMerriam-Webster<>0

wvcidfjoguarm

Ok, here's how to center everything:

Find:

<div id="postmenu_$post[postid]">

Replace:

<div id="postmenu_$post[postid]" align="center">

Find:
<div class="smallfont">

Replace:
<div class="smallfont" align="center">

therogueforums 04-15-2009 10:24 AM

1 Attachment(s)
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.

Fastbird 04-15-2009 01:35 PM

Quote:

Originally Posted by therogueforums (Post 1791616)
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.

Try this post:
https://vborg.vbsupport.ru/showpost....6&postcount=27

See if that helps your issue. IF it does not, I coded mine slightly different for my forum. I have admins with a background and regular users with a background. IF this is the same idea you are going for, I can dig up my code and help you with it.

I'm not sure I quite understand what you mean by curved boxes? I'm not familiar with that mod, link me?

Fastbird 04-15-2009 01:42 PM

Here's mine. Like I said before, it's setup for everyone to have the basic background and then for administrators to have the custom one.

You will need to assign a separate CSS too.

Code:

<if condition="is_member_of($post, 6)">
<td class="postbit" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="postbit3" width="175" style="border: $stylevar[cellspacing]px solid              $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>                    <if condition="$show['avatar']">


therogueforums 04-15-2009 07:06 PM

TY :) Sadly, it didn't work for me. The first solution is the one I tried last night. The last one, above, yeilds the same results ("you're missing a </if> tag! oh n0es!") and the avatar, etc gets shoved out to the right.

Fastbird 04-15-2009 09:43 PM

Quote:

Originally Posted by therogueforums (Post 1791908)
TY :) Sadly, it didn't work for me. The first solution is the one I tried last night. The last one, above, yeilds the same results ("you're missing a </if> tag! oh n0es!") and the avatar, etc gets shoved out to the right.

That really shouldn't be happening. Are you sure you have two CSS conditions setup for the script? Try copying the code I gave you verbatim, missing tag and all and see what it does, just change the css triggers over to whatever you use.

Can you post up your postbit so I can look it over?

down.low 04-15-2009 11:45 PM

Quote:

Originally Posted by therogueforums (Post 1791616)
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.

|
|

I had this problem when adding more then one group. What you are doing wrong is adding the following code to many times- there should only be 1 instance of this code:
Code:

<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
|
|

Here is a code for 1 background/group(after changing the red):
Quote:

Code:


In your postbit_legacy.

        <if condition="is_member_of($post, groupid)">
        <td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>

Code:


And this code (after changing the red) would have to be in your additional css.


.css name1 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}


|
|
Two backgrounds/groups would look like this:
Quote:

Code:

In your postbit_legacy.


        <if condition="is_member_of($post, groupid2)">
        <td class="css name2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <if condition="is_member_of($post, groupid1)">
        <td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if></if>



Notice: I had to add the additional </if> to the very end!!


|
|
Code:

And this code (after changing the red) would have to be in your additional css:
.css name1 {
 background: #000000 url(image path);
 background-repeat: repeat;
 border-left: solid 0px #border color;
 border-right: solid 1px #border color;
 }
.css name2 {
  background: #000000 url(image path);
  background-repeat: repeat;
  border-left: solid 0px #border color;
  border-right: solid 1px #border color;
  }


|
|
Three backgrounds/groups would look like this:
Quote:

Code:

In your postbit_legacy.


       
        <if condition="is_member_of($post, groupid3)">
        <td class="css name3" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <if condition="is_member_of($post, groupid2)">
        <td class="css name2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <if condition="is_member_of($post, groupid1)">
        <td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if></if></if>



Notice: I had to add the additional </if> to the very end (AGAIN)!!

|
|

Code:

And this code (after changing the red) would have to be in your additional css:


.css name1 {
 background: #000000 url(image path);
 background-repeat: repeat;
 border-left: solid 0px #border color;
 border-right: solid 1px #border color;
 }
.css name2 {
  background: #000000 url(image path);
  background-repeat: repeat;
  border-left: solid 0px #border color;
  border-right: solid 1px #border color;
  }
.css name3 {
  background: #000000 url(image path);
  background-repeat: repeat;
  border-left: solid 0px #border color;
  border-right: solid 1px #border color;
  }



Fastbird 04-15-2009 11:46 PM

Yeah, thanks for clearing that up. I tried to explain that, that you need independent CSS for each statement, but the if tags I didn't know about. I'll update the initial install info. Thanks!

down.low 04-15-2009 11:52 PM

Quote:

Originally Posted by Fastbird (Post 1790706)
Ok, here's how to center everything:

Find:

<div id="postmenu_$post[postid]">

Replace:

<div id="postmenu_$post[postid]" align="center">

Find:
<div class="smallfont">

Replace:
<div class="smallfont" align="center">

Thanks for helping buddy, That did center my name and the title under my name- could you point me in the direction to center the rest of the stuff under- like my avatar and such?

down.low 04-15-2009 11:55 PM

Quote:

Originally Posted by Fastbird (Post 1792069)
Yeah, thanks for clearing that up. I tried to explain that, that you need independent CSS for each statement, but the if tags I didn't know about. I'll update the initial install info. Thanks!

Well the post post someone else posted sort of left that out and their code had the extra bit in it and didn't mention to only have it once. Took my a while to figure it out myself but I enjoy learning.

down.low 04-15-2009 11:57 PM

Quote:

Originally Posted by down.low (Post 1792073)
Thanks for helping buddy, That did center my name and the title under my name- could you point me in the direction to center the rest of the stuff under- like my avatar and such?

cancel the avatar- I got it centered.

down.low 04-16-2009 12:23 AM

Quote:

Originally Posted by down.low (Post 1792076)
cancel the avatar- I got it centered.

allright I got everything centered, thanks for helping out.

Fastbird 04-16-2009 12:12 PM

:) Thanks for helping out!

therogueforums 04-19-2009 09:13 PM

Quote:

Originally Posted by down.low (Post 1792068)
...


Thank you, so much! Worked like a charm!

mikey1991 04-20-2009 02:59 AM

great mod, saw it a awhile ago, tagged it.

Bowromir 04-21-2009 09:30 AM

down.low thanks for the additional info! good stuff

plazzman 04-25-2009 08:38 AM

1 Attachment(s)
I managed to make everything appear, but I have one problem. About every other post, the post bit is either dropped all the way down, or fixed. What do I do?

Fastbird 04-25-2009 01:42 PM

We need to see your postbit code. Copy it into notepad and then attach that file here so I can look at it.

plazzman 04-25-2009 11:12 PM

1 Attachment(s)
Sure, here you go.

Edit: Ok I just realized exactly what it's doing, it's putting the avy and user info directly in the middle of the posbit. So if the post is really long, the avy/postbit are really far down. However I don't know how to fix it

down.low 04-26-2009 05:01 AM

Quote:

Originally Posted by therogueforums (Post 1794723)
Thank you, so much! Worked like a charm!

No problem man.

plazzman 04-26-2009 09:58 AM

Ok, scratch my previous post, I figured it out. This is an awesome mod!

Fastbird 04-27-2009 12:04 PM

Quote:

Originally Posted by plazzman (Post 1799221)
Ok, scratch my previous post, I figured it out. This is an awesome mod!

Sweet! Now click install'd for me!

tommyturnage 05-10-2009 04:22 AM

can u get me the background in the 2nd pic

Fastbird 05-12-2009 12:49 PM

It's posted in the thread somewhere. I don't currently use it anymore.

Bulldog Stang 05-12-2009 07:03 PM

How do you get the Postbit to display on the side like that ??

Fastbird 05-12-2009 09:42 PM

That would be the postbit legacy mode. You can enable which way you would like it in your User CP options. ;)

3xigames 05-16-2009 02:18 AM

This just did absolutely nothing on my Bulletin :(
I REALLY want this.. it looks amazing.

"That would be the postbit legacy mode. You can enable which way you would like it in your User CP options"

How would I make my forum look to the left like yours as a default?

Fastbird 05-16-2009 07:42 PM

Log into the control panel. In the User CP, go to "vbulletin options". Once you are there, look for the "Style and Language Settings" section. Scroll down and look for "Use Legacy (Vertical) Postbit Template" and select YES. This will default your forum to the postbit_legacy mode.

Fastbird 05-16-2009 07:42 PM

I'm going to work on making this a product, then it will be much easier to work with. Only problem is I have no idea where to start, lol.

tommyturnage 05-16-2009 08:48 PM

Quote:

Originally Posted by Fastbird (Post 1809334)
It's posted in the thread somewhere. I don't currently use it anymore.

its not in this thread

Fastbird 05-17-2009 02:40 PM

Hmm, you're right. It was posted at one point, I guess the dude removed it. I can search around on my server and see if I still have that image uploaded. Give me a little bit. If not, I can have my brother redo the image.

Rideharder 05-22-2009 09:50 AM

Fastbird would you care to share how you did your header on your website I love how it keeps rotating pictures of cars.... anyway can you fill me in on how that's done?

Fastbird 05-22-2009 05:39 PM

The rotation is the winner of the picture of the month. We have a poll and let our members decide who's car/picture should be put up in the banner.

It's just a javascript for a banner rotation. I'll have to post up the code I used later tonight, as I'm at work right now and can't really get to it.

Thanks for the comments guys, nice to know the work you put in pays off!

Rideharder 05-23-2009 02:02 AM

Your template looks hot I will post a banner from our site to your site for cars that's the least I can do that's if you would like me to.. My site is related around sport bikes.. Your layout is one of the cleanest looking layouts I've ever seen.. a big pat on the back..

I have as ZX14 with nitrous pushing over 210 hp.. your site brings me back to when I built my cars ahead 1970 fire bird 350 4 bolt main 194 closed chamber heads with the tunnel ram with two 400 carburetors mounted to the top of that beast... I found out 600 carburetors flooded out on the street..LOL .. a solid crank and the biggest 12 disc three speed transmission that GM made and also It was boarded 30 over with LCD flat top pistons ..

And this is where the hairs stand up on the back your neck picture this a flat black 1970 tub in the back with a scoop sticking a least 2 foot high and when the hood was closed it buckled the scoop a little bit... that thing looked hotter than the Mad Max car..

I used to have cops just to stop me just to ask me where I was going...LOL

Fastbird 05-23-2009 03:19 AM

Quote:

Originally Posted by Rideharder (Post 1815557)
Your template looks hot I will post a banner from our site to your site for cars that's the least I can do that's if you would like me to.. My site is related around sport bikes.. Your layout is one of the cleanest looking layouts I've ever seen.. a big pat on the back..



I have as ZX14 with nitrous pushing over 210 hp.. your site brings me back to when I built my cars ahead 1970 fire bird 350 4 bolt main 194 closed chamber heads with the tunnel ram with two 400 carburetors mounted to the top of that beast... I found out 600 carburetors flooded out on the street..LOL .. a solid crank and the biggest 12 disc three speed transmission that GM made and also It was boarded 30 over with LCD flat top pistons ..

And this is where the hairs stand up on the back your neck picture this a flat black 1970 tub in the back with a scoop sticking a least 2 foot high and when the hood was closed it buckled the scoop a little bit... that thing looked hotter than the Mad Max car..


I used to have cops just to stop me just to ask me where I was going...LOL

Haha awesome! Glad you like the design too! If you want to stick a banner up that would be cool! I wish I had a first gen firebird, that's actually one of my 'dream' cars. Something about that classic look!

I'll get you that code ASAP, promise!


All times are GMT. The time now is 06:23 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.01558 seconds
  • Memory Usage 1,875KB
  • 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
  • (10)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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