Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2013, 09:30 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-13-2013, 11:33 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you want all posts justified or do you just want a bb code to do it?
Reply With Quote
  #3  
Old 05-13-2013, 12:56 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
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 ?
Reply With Quote
  #4  
Old 05-13-2013, 02:00 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
Spangle
  #5  
Old 05-13-2013, 02:50 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
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
Reply With Quote
Благодарность от:
Toorak Times
  #6  
Old 06-04-2013, 09:21 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't work in blogs, can I add the justify command some where in the Blog CSS to make it work there ?
Reply With Quote
  #7  
Old 06-04-2013, 11:24 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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; /* ----------------------------------------------- */
}
Reply With Quote
Благодарность от:
Toorak Times
  #8  
Old 06-05-2013, 08:02 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats probably the only one I didn't try, thanks for the heads up
Reply With Quote
  #9  
Old 06-07-2013, 03:13 PM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04624 seconds
  • Memory Usage 2,254KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (3)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete