| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 8678|Reply: 8
Collapse the left

[Solved] RTL ACP login is styled with admincp.css

[Copy link]
Post time: 2012-02-22 21:34
| Show all posts |Read mode
Hello everybody,
How can I make the rtl ACP styled with admincp_rtl.css
Many thanks


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
 Author| Post time: 2012-02-22 22:22
| Show all posts
Here is an other screenshot, this time it's not login panel, but inside the acp. I noticed that sometimes template uses admincp.css and other times uses admincp_rtl.css

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
 Author| Post time: 2012-02-22 22:26
| Show all posts
as I said sometimes template is styled with admincp_rtl.css, here is a screenshot

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
 Author| Post time: 2012-02-23 00:25
| Show all posts
can we do in discuz templates something like this (as with phpbb):

<!--IF RTL-->
    <link rel="stylesheet" href="static/image/admincp/admincp_rtl.css" type="text/css" media="all" />
<!--ELSE-->
   <link rel="stylesheet" href="static/image/admincp/admincp.css" type="text/css" media="all" />
<!--ENDIF-->
 Author| Post time: 2012-02-23 01:34
| Show all posts
One more thing: I want to change the bgimg.jpg used in the header with bgimg_rtl.jpg (I flipped the image to be more convenient for rtl styles), but it's impossible because there is no css file for RTL, there is only one file "style.css" (in template\default\style\tx\). Would you please, vot, make this possible.
Many thanks
 Author| Post time: 2012-02-23 18:08
| Show all posts
Edited by charafweb at 2012-2-23 15:31

Eureka!!!!I did the folowing:
in the file: source\function\function_admincp.php
after:
  1. $IMGDIR = $_G['style']['imgdir'];        $STYLEID = $_G['setting']['styleid'];        $VERHASH = $_G['style']['verhash'];        $frame = getgpc('frame') != 'no' ? 1 : 0;        $charset = CHARSET;        $basescript = ADMINSCRIPT;
Copy the Code


I added

  1. $rtl_suffix = RTLSUFFIX;
Copy the Code



and I replaced:

  1. <link href="static/image/admincp/admincp.css?{$_G[style][verhash]}" rel="stylesheet" type="text/css" />
Copy the Code


with

  1. <link href="static/image/admincp/admincp{$rtl_suffix}.css?{$_G[style][verhash]}" rel="stylesheet" type="text/css" />
Copy the Code


And now the rtl acp is styled with admincp_rtl.css

thanks

 Russia

Post time: 2012-02-23 19:47
| Show all posts
I noticed that sometimes template uses admincp.css and other times uses admincp_rtl.css

This means that there is a bug: some AdminCP modules uses admincp.css instead of admincp_rtl.css.
You can help to find all the places where this is occured.

I added
$rtl_suffix = RTLSUFFIX;


This method is used already in admincp_main.php:
  1. 0038: $rtl_suffix = RTLSUFFIX;
  2. 0045: <link rel="stylesheet" href="static/image/admincp/admincp{$rtl_suffix}.css?{$_G[style][verhash]}" type="text/css" media="all" />
Copy the Code
And I agree with your suggestion,
may be the "function_admincp.php" file is more suitable place to set the $rtl_suffix !





 Author| Post time: 2012-02-23 20:10
| Show all posts
hello vot, as you mentioned, that method is used in admincp_main.php. what i did is just copied those lines (from admincp_main.php) to function_admincp.php , and that works great. and i'm happy because i understood it alone (my knowledge about php is very limited)

 Russia

Post time: 2012-02-23 20:28
| Show all posts
Thanx!
And I have found the same problem in admincp_login.php.

Fix:
http://code.google.com/p/discuzx-en/source/detail?r=369
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-04-27 05:00 GMT+3 , Processed in 0.077658 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list