![]() |
how to change direction
hi
how i can change the style direction to be from right to left? |
True "Right to Left" is controlled by the language chosen... if it's an RTL (right-to-left) language like Arabic then the forum will automatically change to RTL format.
To override this for a language like English you can make a new plugin on the global_start hook with the code: Code:
$stylevar[textdirection] = "rtl"; If you just want say the username/avatar on the right side of the postbit instead of the left side you would have to manually edit your templates- in this case the postbit_legacy template. --------------- Added [DATE]1294327822[/DATE] at [TIME]1294327822[/TIME] --------------- After further inspection the plugin above only works in VB 3.x, it doesn't work in VB 4.x and I tried many other hooks besides global_start. For VB4 Go to Admin CP -> Language Manager -> Edit Settings for your language and choose text direction "Right to Left" instead of "Left to Right" - you could probably do this for VB3 too without a plugin. |
And in a conditional let's say for vB4 you can use for example:
Code:
<div style="float:<vb:if condition="$stylevar['textdirection'] == 'rtl'">right<vb:else |
All times are GMT. The time now is 01:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|