View Full Version : Hiding Postbit.
DemOnstar
10-30-2015, 09:26 PM
How do we get rid of the big grey box that contains user information?
I just want to use the page in a thread without it.
Is there a way to hide it to none registered users and those not logged on?
Cheers all. . . .
ArcadeSyndicate
10-30-2015, 09:41 PM
you can hide parts of the templates postbit and postbit legacy with simple conditionals...
https://vborg.vbsupport.ru/showthread.php?t=231525&highlight=conditionals
[edit] sorry, just saw you use vb5, but maybe it will work there too.
DemOnstar
11-01-2015, 06:33 AM
you can hide parts of the templates postbit and postbit legacy with simple conditionals...
https://vborg.vbsupport.ru/showthread.php?t=231525&highlight=conditionals
Cheers. I was thinking about hiding all of the postbit.
It may prove complicated for me to do it using permissions so I might just do it for all users.
Thanks. . .
Replicant
11-01-2015, 02:59 PM
Cheers. I was thinking about hiding all of the postbit.
It may prove complicated for me to do it using permissions so I might just do it for all users.
Thanks. . .
It's not too difficult to do at all. You can hide it with CSS and javascript/jquery although you will see it on pageload for a split second. The best way to do it is via template conditionals and should only take a couple lines of code to do it.
DemOnstar
11-04-2015, 01:59 PM
It's not too difficult to do at all. You can hide it with CSS and javascript/jquery although you will see it on pageload for a split second. The best way to do it is via template conditionals and should only take a couple lines of code to do it.
Cheers fella. I know you will be right. I have seen how much you have helped others but that suggestion on lines of code and it only taking a couple. I wouldn't even know where to start..
My level would be finding the template responsible and erasing some stuff. :eek:
Thanks. . .
Replicant
11-04-2015, 04:02 PM
What part exactly are you trying to hide? Stats or all userinfo? Does it matter if it is still on the page but just hidden?
Try this code to hide postbit. Add to your css_additional.css
.userinfo {
display: none;
}
.l-col__flex-3, .l-row__fixed--left > .l-col__flex-3 {
margin-left: 0;
}
This will affect all threads, if you want to apply it to a single thread only, that will take a couple lines of JS.
DemOnstar
11-04-2015, 04:22 PM
What part exactly are you trying to hide? Stats or all userinfo?
I was trying to get rid of it completely in one forum only but leave others unaffected. This will probably be a little more challenging than just additional.css.
Does it matter if it is still on the page but just hidden?
I am not sure it will matter as long as it isn't seen. But, does it matter? Are there microseconds of time lost by queries that are unnecessary?
This will affect all threads, if you want to apply it to a single thread only, that will take a couple lines of JS.
Your suggested code has done the job. Thanks for that. . .
MarkFL
11-04-2015, 04:27 PM
At the risk of butting in here, I can write a small add-on if you want that will add the CSS Replicant posted, but only in the forums you choose.
edit: Oops...nevermind, I didn't pay enough attention to notice this is a vB5 discussion. :o
DemOnstar
11-04-2015, 04:31 PM
At the risk of butting in here, I can write a small add-on if you want that will add the CSS Replicant posted, but only in the forums you choose.
Go for it!
Not sure if anyone else would want to use it but it's all yours. . .
Replicant
11-05-2015, 08:57 PM
I was trying to get rid of it completely in one forum only but leave others unaffected. This will probably be a little more challenging than just additional.css.
Not really, just a little jquery. I'll need more info though, like the pageid and so forth. A link to the specific forum will do, send in PM if you like.
I am not sure it will matter as long as it isn't seen. But, does it matter? Are there microseconds of time lost by queries that are unnecessary?
It's not extra querys, just template logic checks on already available data
Your suggested code has done the job. Thanks for that. . .
Not a problem.:up:
josueinaki
11-30-2015, 09:49 PM
hello, can help me to hide link for guest in postbit?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.