PDA

View Full Version : [Postbit] Postbit table


rootnik
07-04-2002, 10:00 PM
The only thing edited here is the left block, see screenshot below.

There are no hard coded colors. There are some hard coded font tags. Just replace your entire postbit template with the contents of the txt file.

http://www.dsspost.com/postbit.gif

rootnik
07-05-2002, 05:17 PM
small update, added posts per day next to the post count.

sphinx
07-05-2002, 05:37 PM
very good well done,one question how do I make a black border around it if possible ?

sphinx
07-05-2002, 05:43 PM
ok sorted it out now

sphinx
07-05-2002, 05:47 PM
addendum how do I get faint lines around it like here ?

rootnik
07-05-2002, 06:32 PM
You'll need to add some code to each box you want that border on.

here is the code: style="border: 1px solid #D1D1D1;

Just look through the template until you find the box you want to edit. Here is an example of how you would add the code.

Before adding code:

<td width="100%" height="12" bgcolor="#F9F9F9"></normalfont><font face="Verdana" size="1" color="#4274B6"><b>$post[usertitle]</b></font></td>


After adding code:
<td style="border: 1px solid #D1D1D1; width="100%" height="12" bgcolor="#F9F9F9"></normalfont><font face="Verdana" size="1" color="#4274B6"><b>$post[usertitle]</b></font></td>

Notice where I put "style="border: 1px solid #D1D1D1;" right after the begining tag of the code.

The above example puts a border around the box that shows the member rank. You will need to add "style="border: 1px solid #D1D1D1;" to each box you want to border on.

You may want to get rid of the table background color too if you plan on doing this or the borders will look a little funky. :cool:

rootnik
07-05-2002, 07:03 PM
I checked out your site and you'll defiently would want to change the template to have a border like the postbit here. I guess my template works better on some colors than others :D

If you have trouble making those changes to the template that I posted above, I'll post an update maybe tomorrow with the setup you want or maybe somebody else here will do it. Its very easy to do, I just don't have the time right now to make the changes and test it.

sphinx
07-05-2002, 07:11 PM
yeah anything m8 is appreciated I am prettly new to this but learning faster thanks to yourself and other helpful members,again thanks

imported_ULTIMATESSJ
07-05-2002, 07:15 PM
would someone be able to customise this for my postbit, as it is massive and has lots of different stuff as i have added so many hacks

dmjof
07-05-2002, 07:22 PM
Um, it should be easy to you if you know begginers HTML...Just follow the instructions in the text file he has provided you with, then put extra tables with the PHP Code (E.X: $postbits) for the hacks in it.

rootnik
07-05-2002, 07:31 PM
right above

</table>
</div>

Add one of these for each new box you want.

<tr>
<td width="100%" height="12" bgcolor="#F9F9F9"><b>
<font face="Verdana" size="1" color="#4274B6">INSERT WHAT YOU WANT IN THE BOX HERE</b>
</td>
</tr>

dmjof
07-05-2002, 07:38 PM
Yep, exactly what I meant, but in code, thanks rootnik for posting that

chratnox
07-05-2002, 08:35 PM
very nicely done buddy :) GREAT work

K33nny
07-05-2002, 09:17 PM
Not be picky or anything but their a lot of unneeded/unused font tags, tags in general in your code. Take thouse out and in the long run you'll save a little bandwidth, even if it is 50 kb at the end of the month... still something. ;-)

Thanks.

rootnik
07-05-2002, 09:53 PM
k33nny, Thanks for notcing. I created the table with front page and it adds allot of tags that are not needed. I'll edit those out when I release the next update.

gpdoyon
07-06-2002, 07:28 PM
Great template! But, I had a problem with mine. Here is what it looked like after I installed the new template. The dag-gone "Search" button is really intruding. Did I do something wrong?

rootnik
07-06-2002, 07:45 PM
Heya GP,

find a small magnify glass icon like the one used next to the user names here. Save it as "findnew2.gif" and upload it to your vbulletin image directory.

Then replace your postbit_search template with this:

[<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]"><img src="images/findnew2.gif" border="0" alt="Find more posts by $userinfo[username]"></a>]

I still plan on cleaning the font codes up and posting a couple updates later tonight.

gpdoyon
07-06-2002, 07:53 PM
Ah-so! Thanks rootnik! I'll try it again later when my board doesn't have as many users on.

A sweet template that makes me look good. Are there any better kinds!? :D

- Gerry

rootnik
07-07-2002, 03:08 AM
This is the last update for this tweak. What's different?

1. I cleaned up the html, getting rid of the font tags that were not needed.

2. Instead of replacing the entire postbit template I included code for the user table only. There is no reason to replace the entire template just to modify the user info part of it. I tried to explain where in the template to paste the code, but it may not be the same in your template if yours is already heavily modified. Most people shouldn't have this problem, and those who do should have enough experience to hunt the area down themselves.

3. I explain how to easily add more "blocks" to the table.

screenshot:

http://dsspost.com/postbit3c.gif
I also added a private message link and the username is a link to the user's profile.

Enjoy :cool:

gpdoyon
07-07-2002, 11:36 AM
Originally posted by rootnik
Heya GP,

find a small magnify glass icon like the one used next to the user names here. Save it as "findnew2.gif" and upload it to your vbulletin image directory.

Then replace your postbit_search template with this:

Hi Rootnik,

Sorry to bother yah. I did what you said and it worked great. However, I want to keep my traditional "Search" button along with the "PM", "WWW", etc. and only replace the "Search" button that appears to the right of the user name in the user stats box like it appears here. Otherwise the little magnifying glass seems to replace the original "Search" postbit for both.

Is that possible?

Thanks!

- Gerry

sphinx
07-07-2002, 01:16 PM
have you tried using a different name ? ie search for your original button and say search1 etc for the search user posts ?

Wayne Luke
07-07-2002, 05:35 PM
Not a bad modification once all the extraneous HTML is removed and formatting is moved to a CSS file.

SemperFidelis
07-07-2002, 11:09 PM
Very nice work
Clicks Install
:D

defnot
07-08-2002, 01:10 AM
great !!!

thx

Trust
07-08-2002, 02:21 PM
Very nice.....thx dude...:D

Tristaticg3
07-08-2002, 03:38 PM
this is one of my favorite postbit mods so far...

Troy J.
07-09-2002, 04:50 AM
i have a little problem, im new to vb editing and i cant find this code anywhere on my postbit template

Find and delete everything between the <div align="left"> tag and the </div> tag.

i even set it back to original incase i deleted it but still no.

thx for any help u guys can give me

I'm using 2.2.6 btw

imported_dinozz
07-09-2002, 05:24 AM
it's very very nice

imported_BigJohnson
07-10-2002, 02:24 AM
Mine looks great but I have no lue why mine is aligned to the very bottom. The whole left postbit is aligned to the bottom of the whole table. How do i change this.

Sean123
07-20-2002, 11:03 PM
I am a bit confused on where to put this. Do I just open up my AdmiCP and copy and paste it somwhere. Please explain where I would put this. Thanks

Sean

DeMiNe0
07-21-2002, 01:58 PM
if you want to add a black border just put Bordercolor="#000000" somonewere after the <TD

Bungie
07-21-2002, 10:41 PM
Excellent postbit rootnik, have been waiting for this. :) Cheers! *clicks install*

@Bluehemp--
Go into your Admin CP. In the left menu, all the way at the bottom, you will see 'Templates'. Click Modify. In the new screen that shows up, click [expand list]. Then scroll down until you see.. 'Postbit Templates [expand]', click [expand]. After that, in the menu right below that, you will see.. postbit [change original]. Click [change original]. Lastly, in that box you just opened, paste all the content in the postbit(a).txt file, over what is there. Then click save...

I hope this helps ;)

rukasu
07-27-2002, 05:20 AM
I cant find the <div align="left"> tag either. Maybe its a product of one of the hacks you guys have installed? I am looking in the postbit template and it aint there. im using 2.2.6 btw

dmjof
07-27-2002, 01:50 PM
le funksta: Just try adding it in there wherever needed if you can't find it. Type that in the little box also, and click find, and if it says "Not found." then try changing left to "center" or "right" because it might be changed and then change it to whatever align you want such as "left".

rukasu
07-28-2002, 06:39 AM
I get it now, to install the updated one after the <div align="left"> you need to have installed the earlier one cos thats what provides the div.

kriscad
07-30-2002, 01:16 PM
very nice work - smooth.

Fincycle
07-31-2002, 03:23 PM
ahh, its that easy hey ;)

Fincycle
07-31-2002, 03:24 PM
will it look bad if we change the font?

kcadd
08-02-2002, 08:29 AM
I changed it a little, I hope thats OK. I made the username into a link to their profile. I didnt like the large search button next to the username

imported_Massie
08-08-2002, 12:52 PM
Can anyone help me figure how to add this to my complicated postbit? I am so lost as to what to add etc, I would appreciate the help, I really love the look of it!!

Here is an image of my messy postbit lol... thanks!

imported_Massie
08-08-2002, 01:03 PM
Forgot to say that I can attach my postbit to a post if someone is willing to take a look for me... I am lost with all the code ....

Neo-Storm
08-08-2002, 01:14 PM
please post it in the template modification support... Maybe i can help you, but i don't know what you want!

imported_Massie
08-08-2002, 01:16 PM
Ok will do.... will explain there hehe

NuclioN
08-16-2002, 02:11 PM
great postbit tweak! However, when i saw the borders i realized that the avatar display field is less smaller in this forum then on ours. I altered the % settings in the tables but the fields stay large in width. How can i make that smaller?

Soul
08-18-2002, 05:56 AM
hey rootnik, what would be the code to just use the posts per day ? That's kinda neat.

NexDog
08-19-2002, 08:18 AM
I have major problems viewing .txt files as they are posted here and at vbull.org. For some reason, the code parses into real tables. Could anyone post the whole txt file as a quote?

Cheers!

Tony G
08-19-2002, 11:29 AM
Right click and view source should do the trick.

mashby
08-20-2002, 03:39 PM
Originally posted by NexDog
I have major problems viewing .txt files as they are posted here and at vbull.org. For some reason, the code parses into real tables. Could anyone post the whole txt file as a quote?

What browser are you using? I use Opera 6.0 for Windows and some attachements don't download correctly. This is an issue with vB and not this board. So, I have to use IE for some attachements.

Also, what program handles your .txt files by default?

Faction
09-16-2002, 07:40 AM
awsome work

Tony G
09-16-2002, 10:40 AM
Right Click - View Source. Then you get the code. :)

imported_DigitalJE5U5
09-17-2002, 11:05 PM
Can someone please tell me where/what exactly to put this

I wanna add this option <b>Member No.:</b> $post[userid]
but I want it to appear directly underneath the User Title.

Thanks alot!@

mashby
09-21-2002, 07:18 PM
You need to search for $post[usertitle] and place it after that.

My postbit code looks something like this:

<smallfont>$post[usertitle]</smallfont><br>
<smallfont>Member #$post[userid]</smallfont><br>