PAGENAVIGATION

إذا كان لديك أسئلة تتعلق بجوملا! ليست مرتبطة بالأقسام الأخرى قم بوضعها هنا

Moderators: sherif, General Support Moderators

Locked
mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

PAGENAVIGATION

Post by mossimo » Sun Mar 18, 2007 10:55 am

hello  :)
good day to all of you!
i have another problem in page navigation.
i would like also it will be arabic in administration and also. i try already the body in administration to rtl but still the the page navigation ltr how can i make it rtl?thanks!!!  :D

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Mon Mar 19, 2007 2:40 am

hi Mossimo
Did you mean top menu by page navigation or you mean page direction. any way to rtl a content or a specific area in your template ,,,just make sure of the id , class of the area you want to rtl then edit it in you css file
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Mon Mar 19, 2007 3:40 am

I guess you will need to change in core files if drma's solution did not work.

To further explain his point. Try to know which CSS class is responsible for that and then put the direction code in css file which is:
direction: rtl;

Otherwise, you may have to put the old code we talked about that determines the language and parses the dir= value in the pagenation area you want.

Good luck
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Mon Mar 19, 2007 3:49 am

i was searching for this css code  line for dayz

Code: Select all

direction: rtl;
thanxxxx :pop
Last edited by drma on Wed Mar 21, 2007 2:46 am, edited 1 time in total.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Mon Mar 19, 2007 4:00 am

You're welcomed,

Guess what? I found it here in this forum!! I am not sure either Ahmad, Dr. Drsh or Mohammed wrote it.
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Mon Mar 19, 2007 5:51 am

Thanks Guys for reply!!! :) :)
I sleep early yesterday so now i try what you say but still its not working!!

sir here's the code i think that the pagenav in admin appear
if ($this_page > 1) {
$page = ($this_page - 2) * $this->limit;
$html .= "\n<< Start";
$html .= "\n< Previous";
} else {
$html .= "\n<< Start";
$html .= "\n<&nbsp;Previous";
}

for ($i=$start_loop; $i limit;
if ($i == $this_page) {
$html .= "\n $i ";
} else {
$html .= "\n$i";
}
}

if ($this_page limit;
$end_page = ($total_pages-1) * $this->limit;
$html .= "\n Next >";
$html .= "\n End >>";
} else {
$html .= "\nNext >";
$html .= "\nEnd >>";
}
return $html;

i see this file in administrator/includes/pageNavigation.php

I try to edit the css and still its not working i try to add in pagenav class.
Sir it is possible also when i change my languange to arabic it will appear arabic text instead of english the pagenavigation in administration backend....?

In my frontend i stll did not test the page nave bec i still have no template for arabic... :D :D :D :D

Thanks Emakki and DRMA!!!!! ;D ;D

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Mon Mar 19, 2007 7:41 am

First of all, it's like I said the first time. You need to change the core file.

Now before I change the Arabic text needed below, I do not think that the language can be changed in the backend. You still can use the old "theDir" I gave you where you need the direction but it will not be useful because in the backend there is only English. There are some Admin Templates for rtl, yet, there is no other language than English nor a choice.

I'll change the text needed below. Make sure you save it as utf8.


if ($this_page > 1) {
        $page = ($this_page - 2) * $this->limit;
        $html .= "\n<< البداية";
        $html .= "\n< السابق";
      } else {
        $html .= "\n<< البداية";
        $html .= "\n< السابق";
      }

      for ($i=$start_loop; $i limit;
        if ($i == $this_page) {
            $html .= "\n $i ";
        } else {
            $html .= "\n$i";
        }
      }

      if ($this_page limit;
        $end_page = ($total_pages-1) * $this->limit;
        $html .= "\n التالي >";
        $html .= "\n النهاية >>";
      } else {
        $html .= "\nالتالي >";
        $html .= "\nالنهاية >>";
      }
      return $html;


Again, this will be stuck in the page regardless of the language. If there is a way to choose the language, you will need to add the if lang=ar the one we talked about to parse either English or Arabic.

Good luck
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Mon Mar 19, 2007 8:35 am

You're welcomed,

Guess what? I found it here in this forum!! I am not sure either Ahmad, Dr. Drsh or Mohammed wrote it.
thats exactly wht i meant,,,i was searchin 4 it n this forum lol
see this file in administrator/includes/pageNavigation.php

I try to edit the css and still its not working i try to add in pagenav class.
Sir it is possible also when i change my languange to arabic it will appear arabic text instead of english the pagenavigation in administration backend....?
(EDITED)miss mossimo now i get you..you need to rtl the direction in administrator control panel
to do that just edit the css file in the
your site root\administrator\templates\joomla_admin\css\template_css.css
by adding this code to the end of each CSS Syntax
the code

Code: Select all

direction: rtl;
syntax 

Code: Select all

{
text-align: center;
color: black;
font-family: arial
}
add the code to the CSS Syntax

Code: Select all

{
text-align: center;
color: black;
font-family: arial
direction: rtl;
}
OR

you can edit the css file by going to
Administrator Control Panel =>Site=>Template Manager=>Administrator Template => Choose your template that u want to edit => Edit CSS

here an example for rtl direction admin template pls download it from this link
edited
sorry the admin template need more work on it...its just an example for wht i meant
cheers
Last edited by drma on Tue Apr 03, 2007 6:08 pm, edited 1 time in total.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Mon Mar 19, 2007 10:48 am

sir i corrupt the file?i try to download it when i unzip there was an error

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Mon Mar 19, 2007 10:57 am

ٍ)EDITED)hi mossimo
i had downloaded it twice and it works fine....you just need to extract it first b4 uploading it to your server
Last edited by drma on Wed Mar 21, 2007 8:50 am, edited 1 time in total.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Tue Apr 03, 2007 4:38 pm

drma wrote: ?)EDITED)hi mossimo
i had downloaded it twice and it works fine....you just need to extract it first b4 uploading it to your server
Hello dr!!!
i download the file but when i extract it i cannot there is an erro that cannot unzip this file!!!
please i need it...
sir by the way as i remember you and mr.emakki was helping me about the direction of the whole page to rtl when i used english it was ltr when arabic rtl but how about there CSS how can i assign different template i mean different css or what?
ok when i download your file i can use it when i used arabic languange and when i used english i will use my template is this possible?

Thanks!!
Mr.Emakki hello!
Long time no hear!
I try to send a message in you YM but you are not reply :(
its ok!!!

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Tue Apr 03, 2007 6:06 pm

Hi mossimo,

I don’t recommend to use that file at all,,,it was just and example for what I meant,,,its will rewrite over all you default admin control panel images and files,,,and if you insist I will upload it again to another location
About possibility of using two different template yes that is possible
Just go to
Site => Template Manager => Administrator Template
you need to have the rtl template 1st
here are a website offer  more then 30 administrator template,,,,,
http://www.joomlaos.de/option,com_remos ... d,148.html
send to me the link for your choosen template and I will try to rtl the direction as soon as I can
have a nice day
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Tue Apr 03, 2007 6:15 pm

sorry do you mean use  both direction" rtl & ltr" in one template?
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Tue Apr 03, 2007 6:54 pm

drma!wow to much template for admin i thought i can use only these  :)
Thanks for the link!

I know you should study now and not answering my question if i am not mistaken you are still studying doctorate!!!
sorry for the inconvience....

i still want to test your template if possible..
Sorry i still have no livesite... i testing it in my pc...

sir you told me it possible to use 2 different template in my admin....

i would like to use rtl for arabic and ltr for english...
But i think i should a code in my index to determine if it is arabic or english language.....

Thanks again!!!

:) :pop :pop

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Tue Apr 03, 2007 7:22 pm

Mossimo

I'm not a student  I'm an electrice engineering,I hope that I have time to get my master degree and after that PhD .until that time, that's OK you can say that I'm a doctor,I don't mind at all :pop :pop
here r the admin template,,,as i told you its will over write on your default admin template
http://drm.prophp.org/admintemp/blackend_admin.zip
and if you need support in rtl things just send me the template file URL
:pop
Last edited by drma on Tue Apr 03, 2007 7:24 pm, edited 1 time in total.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Tue Apr 03, 2007 10:16 pm

drma wrote: Hi mossimo,

I don’t recommend to use that file at all,,,it was just and example for what I meant,,,its will rewrite over all you default admin control panel images and files,,,and if you insist I will upload it again to another location
About possibility of using two different template yes that is possible
Just go to
Site => Template Manager => Administrator Template
you need to have the rtl template 1st
here are a website offer  more then 30 administrator template,,,,,
http://www.joomlaos.de/option,com_remos ... d,148.html
send to me the link for your choosen template and I will try to rtl the direction as soon as I can
have a nice day

Hi,
Sorry.. got busy.

For using different CSS files, use the same methode bu checking the language then requesting the proper file. If you choose to use two files of templates then in each file there is a css file request. Use the proper file for ezch template.

Good luck
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Thu Apr 05, 2007 11:09 am

HELLO!!! :) :)
SORRY for my late response

sir!!!
you give this code to determine the languange and change the direction of my whole site now sir what code should i add to use different CSS?


>

Thanks!!

Sir DRMA!!!! i will fix first the template after i will email it again..
But i will Try my best first to fix it again.......
Thanks Guys!!!! :)

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Thu Apr 05, 2007 11:35 am

Cool... So you are using one template file with different directions depending on the language. Now for the CSS you MUST load a different css for each language but from the same template. Here is how:
First make a CSS file for arabic and name it: template_css_arabic.css and and template_css_english.css for the english.

Now since we are using the following code to determine which language we are using



we can assume that the language either = arabic or english. There is no need to make an "if" statement again so we will just do the following:

------- this is what you need to do after making the two css language files ------

In the CSS line:
/templates/alcredit/css/template_css.css" />

replace it with:
/templates/alcredit/css/template_css_.css" />

We just added what is shown in red above. This will request a css file named template_css_arabic.css or template_css_english.css depending on the value of $mosConfig_lang which is the site language.

You can use this method with any language and also for other stuff like images incase you want to have different images for each language. Just make imaged like myimage_arabic.gif and myimage_english then use the code above to parse it depending on the language like myimage_.gif

I hope it works and please tell me if it did or not, and if not what error you get.

good luck
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Thu Apr 05, 2007 1:38 pm

thanks sir emmaki i didnt notice you are the one of the moderator here!!
:) :) :)
You are qualified!!!
can i make a petition for  DRMA to become a moderator also :) if possible!

i try to tweak my css but i cannot find where i can change the float for the items,archives,categories what i mean in top menu when i click the content by section and i choose my section the next menu is floating in right how can i make it to float in left!
thanks!!! :pop :pop

User avatar
drma
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Tue Jan 30, 2007 4:13 am

Re: PAGENAVIGATION

Post by drma » Thu Apr 05, 2007 9:16 pm

ROFL
hi miss mossimo
I'm still new to Joomla!, its just my second month, and yes moderators here are professional guys
i just post here  to get some experience,,,,and to learn and to test my skills and knowledge,,,thanx any way,,, :laugh: :laugh: :laugh:

about the floating just open the css file and search for the word left and change it to right
backup your css file first
:pop :pop :pop
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Fri Apr 06, 2007 1:19 am

Thanks Massimo for the nice words. I am like Drma, kind of new to Joomla but been around for a while. He also deserves to be.  I am really thinking about it but it is not my choice. I guess moderation is about positive contribution rather than experience in my opinion and he is cool in that. Let's see what days hide in our fates ;)

As Drma said, change the lefts to rights and pay atention: some classes do not have text-align tags since the coder assumes English is left by default. Such classes may take the right side as for the rtl but some of them may not. So, you may need to add text-align: right; in classes you you see in left at an Arabic page.

An easy way I use to get the classes used is Fire Fox by selecting the text I want then right click and choose: View Selection Source. This will show the source code of your selection highlighted rather than showing the whole source and be lost in a lot of code.

Then you will see class="category" for example. Look for .category in your css file and change the code in it. If it is not there then make one with a period before it like:
.category {
.....css code......
}

Hope things get well..

Again please let us know..

Regards,
Eyad Makki
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Sat Apr 07, 2007 3:09 am

hello sir....
good morning!!
what i mean is the backend admin template....
when i set to arabic it rtl my template the topmenu the link for components the dropdown menu is right when you click to component...
and also the content sectiion...
i try to search in in backend template THEME.CSS but i cannot find align align...
thnaks

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Sat Apr 07, 2007 4:46 am

Hi,

As I said before. Try to highlight the portion of the page where you want it to be left and view source selection.
If there is a class then in the css make the required changes.

Now, you are talking about the admin. To see the css, go to Site>Templates>Admin Templates
Then choose the English Template (if you have two) and press on Edit CSS. I am sure you will find a lot of text-align.

If this is not helpful. Please explain again what do you have (template or templates), what code did you apply and what went wrong with a bit further explaination.

Thanks
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية

mossimo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Tue Jun 27, 2006 8:13 am

Re: PAGENAVIGATION

Post by mossimo » Sat Apr 14, 2007 9:03 am

sorry guys i was not able to answer i got busy!!!
:(

Guys!
I try to use different template the Essential Plazza Silver where i get from this http://www.joomlaos.de/option,com_remos ... d,148.html but when i go to my contact component there is no preview image in contact info..
when i try to use the default template its working the preview page!

Guys i open a new thread about this things!!!
http://forum.joomla.org/index.php/topic ... #msg771817

thanks

User avatar
emakki
Joomla! Ace
Joomla! Ace
Posts: 1686
Joined: Fri Dec 01, 2006 9:26 am
Location: Centreville, Virginia
Contact:

Re: PAGENAVIGATION

Post by emakki » Sat Apr 14, 2007 10:09 am

Cool!
I am sure they will help you. My guess is, the template does not have a picture for that function since this is the difference between it and the default.

I think you should try another one but be careful to use a good one because I once tried a template which screwed things up I had to rename the default to the same template name to get my site back.

Good luck
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Locked

Return to “القسم العام”