![]() |
|
|||||||
| Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
| Advertisement | |
|
|
| Learn how to remove ads | |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
How to add the alphabet of other language in a navigating bar?
|
|
#2
|
||||
|
||||
|
Untested, but you would need to edit code in the gars_class_list.php file (code below) and possibly other places, or turn the alphabet bar off using 'Display the Alphabetical Quick Jump Bar' under ACP -> GARS -> Types:
Code:
eval('$alphabar = "' . fetch_template('GARS_alphabar') . '";');
for ($i=65; $i<91; $i++)
{
$currentltr = chr($i);
$linkltr =& $currentltr;
$show['selectedltr'] = $this->ltr == $currentltr ? true : false;
eval('$alphabar .= "' . fetch_template('GARS_alphabar') . '";');
}
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. ![]() While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
|
#3
|
||||
|
||||
|
it's work!
Edit gars_class_list.php Find: Code:
eval('$alphabar = "' . fetch_template('GARS_alphabar') . '";');
for ($i=65; $i<91; $i++)
{
$currentltr = chr($i);
$linkltr =& $currentltr;
$show['selectedltr'] = $this->ltr == $currentltr ? true : false;
eval('$alphabar .= "' . fetch_template('GARS_alphabar') . '";');
}
Code:
// BEGIN Hack Russian Alphabet
eval('$alphabar = "' . fetch_template('GARS_alphabar') . '";');
// Russian letters
$a = array (192,193,194,195,196,197,198,199,200,202,203,204,205,206,207,208,209,210,211,212,213,214,215,217,221,222,223);
foreach ($a as $i) {
$currentltr = chr($i);
$linkltr =& $currentltr;
$show['selectedltr'] = $this->ltr == $currentltr ? true : false;
eval('$alphabar .= "' . fetch_template('GARS_alphabar') . '";');
}
// END Hack Russian Alphabet
|
|
#4
|
|||
|
|||
|
Hi
I have no coding experience/skills - could anyone be kind to tell me what this should look like for the danish alphabet? |
|
#5
|
||||
|
||||
|
Sorry, I don't know what ASCII numbers you'd use for Danish, but you might try looking at the chr and ord functions.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. ![]() While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
|
#6
|
|||
|
|||
|
Quote:
So would the danish hack look like this, or...? Code:
// BEGIN Hack Danish Alphabet
eval('$alphabar = "' . fetch_template('GARS_alphabar') . '";');
// Danish letters
$a = array (65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,198,216,197);
foreach ($a as $i) {
$currentltr = chr($i);
$linkltr =& $currentltr;
$show['selectedltr'] = $this->ltr == $currentltr ? true : false;
eval('$alphabar .= "' . fetch_template('GARS_alphabar') . '";');
}
// END Hack Danish Alphabet
Last edited by cykelmyggen; 08-03-2009 at 04:51 PM.. |
|
#7
|
||||
|
||||
|
This would only produce three characters in the letter bar. You'd need to add the other numbers for the entire alphabet:
Code:
$a = array (91,92.93);
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. ![]() While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
|
#8
|
|||
|
|||
|
Of cause...
![]() This one works - except there is an extra A at the beginning at the alphabet - this should be # I guess? Code:
// BEGIN Hack Danish Alphabet
eval('$alphabar = "' . fetch_template('GARS_alphabar') . '";');
// Danish letters
$a = array (65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,198,216,197);
foreach ($a as $i) {
$currentltr = chr($i);
$linkltr =& $currentltr;
$show['selectedltr'] = $this->ltr == $currentltr ? true : false;
eval('$alphabar .= "' . fetch_template('GARS_alphabar') . '";');
}
// END Hack Danish Alphabet
|
|
#9
|
||||
|
||||
|
Not sure why there is an extra A at the beginning. Maybe if you delete some numbers, and then add some back in, you'll be able to see why the extra A is appearing.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. ![]() While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
|
#10
|
|||
|
|||
|
Deleted first number which made one af the A's dissapear. Thanks for your support
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| arabic language ? | sayid | Geek Article and Review System | 1 | 10-01-2009 05:12 PM |
| Just show alphabet menu | wascallywabbit | Geek Article and Review System | 1 | 04-09-2009 03:14 AM |
| GARS: language pt-br | beduino | Add-ons | 1 | 06-24-2008 05:29 PM |
| GARS Alphabet Navigation Bar | RaceJunkie | Geek Article and Review System | 0 | 01-06-2008 03:30 PM |
| Language pharse not used. | cpmike | Geek Article and Review System | 5 | 01-18-2006 01:42 AM |