vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=264)
-   -   Hiding Postbit. (https://vborg.vbsupport.ru/showthread.php?t=320662)

DemOnstar 10-30-2015 09:26 PM

Hiding Postbit.
 
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/showthrea...t=conditionals



[edit] sorry, just saw you use vb5, but maybe it will work there too.

DemOnstar 11-01-2015 06:33 AM

Quote:

Originally Posted by ArcadeSyndicate (Post 2557977)
you can hide parts of the templates postbit and postbit legacy with simple conditionals...

https://vborg.vbsupport.ru/showthrea...t=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

Quote:

Originally Posted by DemOnstar (Post 2558095)
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

Quote:

Originally Posted by Replicant (Post 2558105)
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

Code:

.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

Quote:

Originally Posted by Replicant (Post 2558226)
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.

Quote:

Originally Posted by Replicant (Post 2558226)
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?

Quote:

Originally Posted by Replicant (Post 2558226)
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

Quote:

Originally Posted by MarkFL (Post 2558229)
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

Quote:

Originally Posted by DemOnstar (Post 2558227)
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:


All times are GMT. The time now is 12:33 AM.

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.02480 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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