Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Question RTL Pagination Direction

More
14 years 3 months ago #1 by kamal
hi,

With the RTL encoding, the Pagination start from left to right :silly: how can this be fixed ?? The "Page:الصفحة" text is on the right and that is ok.. but "1" appear on the left side and "2" appear on the right side which should be the opposite !!

Thx,
Attachments:

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #2 by etusha
Replied by etusha on topic Re: RTL Pagination Direction
EDIT THIS FILE
view.php showcat.php latestx.php kunena.search.class.php

FIND

for ($i = $startpage; $i <= $endpage && $i <= $totalpages; $i++)

REPLACE WITH

for($i = $totalpages; $i >= $startpage; $i--) {

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #3 by kamal
Replied by kamal on topic Re:RTL Pagination Direction
thanks Etusha,

appreciate your help ... it is working now as it suppose to be.

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #4 by etusha
Replied by etusha on topic Re:RTL Pagination Direction
i test it on localhost and for me was OK
anyway u copy those file
im not a professional coder (im new)

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #5 by kamal
Replied by kamal on topic Re:RTL Pagination Direction
yes i did replace the string in all 4 files and worked. site still on localhost for designing & not yet published.

thx

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #6 by kamal
Replied by kamal on topic Re:RTL Pagination Direction
there is still one couldn't find it, if the thread has more than one page which appears next to the thread titles!!

i had changed all 4 files, but this one still displaying number of pages LTR

thx :blush:

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #7 by kamal
Replied by kamal on topic Re:RTL Pagination Direction
I found the string in " flat.php " about line 279
Code:
for ($hopPage = $startPage; $hopPage <= $threadPages; $hopPage++)

i tried to change it according to your string:
Code:
for ($i = $totalpages; $i >= $startpage; $i--)

to be like this:
Code:
for ($hopPage = $threadPages; $hopPage >= $startPage; $hopPage--)

but only the first page# showed up with a comma and 2nd page not :S

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago - 14 years 3 months ago #8 by etusha
Replied by etusha on topic Re:RTL Pagination Direction
i give fast look but that not similar things

I should test and see it on localhost to give your the right respond


but try
($hopPage = $threadPages; $hopPage = $startPage; $hopPage--)

OR
for ($hopPage = $threadPages; $hopPage > $startPage; $hopPage--)

maybe work
Last edit: 14 years 3 months ago by etusha.

Please Log in or Create an account to join the conversation.

Time to create page: 0.666 seconds