Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2014, 11:36 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Justify text

I need a hack to justify all posts, articles and blogs.

I can do it via Firebug, but I'm finding it difficult to locate the code to edit in the templates.

Anyone help ?
Reply With Quote
  #2  
Old 07-27-2014, 10:47 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question too difficult ?
Reply With Quote
  #3  
Old 07-31-2014, 03:44 AM
webjocky webjocky is offline
 
Join Date: Jun 2013
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like to teach people to fish instead of just handing them one.
Although it says vB4, the same technique applies to vB5, maybe this will help. http://www.vbulletin.com/forum/forum...outvar-to-edit
Reply With Quote
Благодарность от:
ForceHSS
  #4  
Old 07-31-2014, 08:23 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webjocky View Post
I like to teach people to fish instead of just handing them one.
Although it says vB4, the same technique applies to vB5, maybe this will help. http://www.vbulletin.com/forum/forum...outvar-to-edit
If you bother to read the OP properly, you will have read that I can accomplish this through Firebug, but I cannot find the relative template to edit, despite doing a search, as far as I am aware it will not be in the Stylevars, but I will take a look.
Reply With Quote
  #5  
Old 08-01-2014, 09:37 AM
Darkness95's Avatar
Darkness95 Darkness95 is offline
 
Join Date: Sep 2010
Location: Italy
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi! There is also another one way to find the correct CSS template to edit!

First you have to go in the part of the forum which you want to edit. Now use with right click of your mouse the navigator (or inspect element) and know the name of the class you want to edit. Copy the class and go to:

Admin Control Panel > Styles & Templates > Search in Templates

Now use the section "Search Templates" (not Find and Replace) and put the name of the class in "Search for text", select the style which you want to find the CSS template and check "No" in "Search Titles Only".

To justify the text you have to open the CSS template and put in the class that you want to edit this:

HTML Code:
text-align: justify !important; 
Bye bye
Reply With Quote
  #6  
Old 08-01-2014, 06:58 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darkness95 View Post
Hi! There is also another one way to find the correct CSS template to edit!

First you have to go in the part of the forum which you want to edit. Now use with right click of your mouse the navigator (or inspect element) and know the name of the class you want to edit. Copy the class and go to:

Admin Control Panel > Styles & Templates > Search in Templates

Now use the section "Search Templates" (not Find and Replace) and put the name of the class in "Search for text", select the style which you want to find the CSS template and check "No" in "Search Titles Only".

To justify the text you have to open the CSS template and put in the class that you want to edit this:

HTML Code:
text-align: justify !important; 
Bye bye
I tried Searching ALL templates, mainly because I want it board wide, not just in the forums, as I said, I can do it with firebug, but cannot find the relevant template
Reply With Quote
  #7  
Old 08-01-2014, 10:48 PM
Darkness95's Avatar
Darkness95 Darkness95 is offline
 
Join Date: Sep 2010
Location: Italy
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spangle View Post
I tried Searching ALL templates, mainly because I want it board wide, not just in the forums, as I said, I can do it with firebug, but cannot find the relevant template

Don't worry, i've made a video for you to explain better how you have to do it!

Reply With Quote
Благодарность от:
Spangle
  #8  
Old 08-02-2014, 08:41 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darkness95 View Post
Don't worry, i've made a video for you to explain better how you have to do it!

Thanks a bundle Scanu !
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 01:30 AM.


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.03990 seconds
  • Memory Usage 2,236KB
  • 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
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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