vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Fully justify posts (https://vborg.vbsupport.ru/showthread.php?t=298096)

Spangle 05-13-2013 09:30 AM

Fully justify posts
 
I'm trying to fond a template MOD to allow posters to fully justify their posts, ( like a newspaper column), is there one or is there a snippet to put this in the editor.

nerbert 05-13-2013 11:33 AM

Do you want all posts justified or do you just want a bb code to do it?

Spangle 05-13-2013 12:56 PM

Quote:

Originally Posted by nerbert (Post 2421717)
Do you want all posts justified or do you just want a bb code to do it?

I would prefer it to be automatic, that way I think the board looks more professional

That is providing user text formatting can override it.

For eg, I still want users to be able to center text if they want to ?

nerbert 05-13-2013 02:00 PM

in postbit.css find line 256, about a quarter down and modify as shown

Code:


.postcontent {
        word-wrap: break-word;
        text-align:justify;
}


.postbit .posttitle {
        display:block;
        padding: {vb:stylevar padding};
        font-weight:bold;
        font: {vb:stylevar post_title_font};
        margin: 0;
}

.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
        max-width: {vb:stylevar image_medium_max};
}

/*postbit legacy*/

I don't know if this works for the legacy version. Test it out and see how it works with center tags.

Generally it seems to work nicely as long as the user hasn't used carriage return

Spangle 05-13-2013 02:50 PM

Quote:

Originally Posted by nerbert (Post 2421739)
in postbit.css find line 256, about a quarter down and modify as shown

Code:


.postcontent {
        word-wrap: break-word;
        text-align:justify;
}


.postbit .posttitle {
        display:block;
        padding: {vb:stylevar padding};
        font-weight:bold;
        font: {vb:stylevar post_title_font};
        margin: 0;
}

.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
        max-width: {vb:stylevar image_medium_max};
}

/*postbit legacy*/

I don't know if this works for the legacy version. Test it out and see how it works with center tags.

Generally it seems to work nicely as long as the user hasn't used carriage return

That seems to have done the job, thanks a million

Spangle 06-04-2013 09:21 PM

This doesn't work in blogs, can I add the justify command some where in the Blog CSS to make it work there ?

nerbert 06-04-2013 11:24 PM

in blog.css scroll down about 20% to line 199 and find this and modify

Code:


.fly {
        float: {vb:stylevar right};
        display: inline;
        font-size: 88%;
}

<vb:if condition="$stylevar['textdirection'] == 'rtl'">
.blogentrybit .fly .popupmenu a.popupctrl, .bloghead .fly .trackbacks, .bloghead .fly .comments {
        display: block;
        float: {vb:stylevar right};
}
</vb:if>
.lastedited, div.tags, dl.blogcategory, .smallfont {
        font-size: {vb:stylevar small_fontSize};
}

.blogmeta .tags img {
        display: none;
}

.blogmeta .tags:hover img {
        display: inline;
        margin-top: -5px;
}

.blog_date, .comment_date {
        font-size: {vb:stylevar small_fontSize};
        /*color:{vb:stylevar body_color};*/
}

.blogcontent {
        margin-top:8px;
        margin-bottom:8px;
        font:{vb:stylevar content_msg_font};
      text-align: justify; /* ----------------------------------------------- */
}


Spangle 06-05-2013 08:02 AM

Thats probably the only one I didn't try, thanks for the heads up

Toorak Times 06-07-2013 03:13 PM

Thank god I kept looking. I'll give this a try tonight, been desperately looking for a simply add to the wysiwyg bbcode but this should do the job...I hope...


This worked brilliant in The Blog for me, absolute justify, wonderful http://www.tooraktimes.com.au/entry....Show-at-RRR-fm
But cms, Not so good, but close and better

works great in Forum http://www.tooraktimes.com.au/showth...3451#post13451


So close...

--------------- Added [DATE]1370625144[/DATE] at [TIME]1370625144[/TIME] ---------------

Quote:

Originally Posted by nerbert (Post 2425861)
in blog.css scroll down about 20% to line 199 and find this and modify

Code:


.fly {
        float: {vb:stylevar right};
        display: inline;
        font-size: 88%;
}

<vb:if condition="$stylevar['textdirection'] == 'rtl'">
.blogentrybit .fly .popupmenu a.popupctrl, .bloghead .fly .trackbacks, .bloghead .fly .comments {
        display: block;
        float: {vb:stylevar right};
}
</vb:if>
.lastedited, div.tags, dl.blogcategory, .smallfont {
        font-size: {vb:stylevar small_fontSize};
}

.blogmeta .tags img {
        display: none;
}

.blogmeta .tags:hover img {
        display: inline;
        margin-top: -5px;
}

.blog_date, .comment_date {
        font-size: {vb:stylevar small_fontSize};
        /*color:{vb:stylevar body_color};*/
}

.blogcontent {
        margin-top:8px;
        margin-bottom:8px;
        font:{vb:stylevar content_msg_font};
      text-align: justify; /* ----------------------------------------------- */
}





Thanks works brilliantly Nerbert!


All times are GMT. The time now is 06:06 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.01081 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete