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)
-   -   Justify text (https://vborg.vbsupport.ru/showthread.php?t=313146)

Spangle 07-22-2014 11:36 AM

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 ?

Spangle 07-27-2014 10:47 AM

Question too difficult ?

webjocky 07-31-2014 03:44 AM

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

Spangle 07-31-2014 08:23 AM

Quote:

Originally Posted by webjocky (Post 2509103)
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.

Darkness95 08-01-2014 09:37 AM

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 :D

Spangle 08-01-2014 06:58 PM

Quote:

Originally Posted by Darkness95 (Post 2509265)
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 :D

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

Darkness95 08-01-2014 10:48 PM

Quote:

Originally Posted by Spangle (Post 2509335)
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! ;)


Spangle 08-02-2014 08:41 AM

Quote:

Originally Posted by Darkness95 (Post 2509370)
Don't worry, i've made a video for you to explain better how you have to do it! ;)


Thanks a bundle Scanu !


All times are GMT. The time now is 09:32 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.02563 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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