The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hi
how i can change the style direction to be from right to left? |
#2
|
||||
|
||||
![]()
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. |
#3
|
||||
|
||||
![]()
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 />left</vb:if>;"> Code Code code etc etc </div> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|