Prev Thread Prev Thread   Next Thread Next Thread
 Right To Left
Author Message
Guest
Right To Left - 11/19/2007 02:53:39 AM
Is it possible to configure the application so that when the administrator adds a new forum he can set the forum direction, i.e. Left To Right or Right To Left?
I am planning to build a forum web site that uses both Arabic and English languages. So, I can have the Arabic forums RTL oriented and the English forum LTR oriented.
 
a.rahman

  • Total Posts : 20
  • Reward points : 270
  • Joined: 11/19/2007
  • Status: offline
RE: Right To Left - 11/19/2007 03:01:44 AM
This message was posted by me (a.rahman), I don't know why it is showing Guest!
 
Samuel

  • Total Posts : 9151
  • Reward points : 27365
  • Joined: 05/23/2001
  • Status: offline
RE: Right To Left - 11/19/2007 08:00:25 PM
Hi a.rahman,

unfortunately, no, forum direction cannot be changed individually.
ASPPlayground.net Developer
a.rahman

  • Total Posts : 20
  • Reward points : 270
  • Joined: 11/19/2007
  • Status: offline
RE: Right To Left - 11/19/2007 10:49:52 PM
Thanks, Samuel, for your reply.
I know this feature is not available, but my question is:
How difficult is it to add a check box that will switch the direction of the whole page, or just one part of the page?
How much code is required?
How many source files will be modified?
What development skills do I need to add this feature? VB.NET, HTML?
 
<message edited by a.rahman on 11/20/2007 12:09:55 AM>
Samuel

  • Total Posts : 9151
  • Reward points : 27365
  • Joined: 05/23/2001
  • Status: offline
RE: Right To Left - 11/20/2007 08:54:04 AM
We are using VB.NET.

hm... you can control the direction of the whole page by changing the CSS file. So, what I am thinking now is you can add a CSS file that has RTL specification in the body element, and use a querystring to change which CSS file the software loads. The CSS is loaded dynamically by the software with a call to the sub OutputCSS. so, if you capture the querystring in this sub, you can change the CSS file to load for the page.

1) create a button that adds a query string (e.g. "RTL") to the current page
2) capture the querystring in the outputCSS function and change the CSS file to load based on the query string
3) remember the querystring in a session variable
4) outputCSS will check for the existence of the session variable, if it doesn't see the querystring.

Hope this is clear enough for you. however, it will change the direction of the whole page, so you have to take it into consideration and see whether it meets your need.


ASPPlayground.net Developer

  Enter the code shown; Click to reload image.
Post Message Preview
Jump to:

Current active users
There are 0 members and 1 guests.
Icon Legend and Permission
  • New Messages
  • No New Messages
  • Hot Topic w/ New Messages
  • Hot Topic w/o New Messages
  • Locked w/ New Messages
  • Locked w/o New Messages
  • Read Message
  • Post New Thread
  • Reply to message
  • Post New Poll
  • Submit Vote
  • Post reward post
  • Delete my own posts
  • Delete my own threads
  • Rate post

© 2000-2008 ASPPlayground.NET Forum Version 3.2 a