The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2008, 08:28 AM
Whity's Avatar
Whity Whity is offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Geek Article and Review System License Holder 
Default alphabet of other language

How to add the alphabet of other language in a navigating bar?
Reply With Quote
  #2  
Old 04-27-2008, 03:58 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #3  
Old 04-28-2008, 07:07 PM
Whity's Avatar
Whity Whity is offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Geek Article and Review System License Holder 
Default

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') . '";');
                }
After add:

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
Reply With Quote
  #4  
Old 07-31-2009, 10:46 AM
cykelmyggen cykelmyggen is offline
Junior Member
 
Join Date: Jul 2009
Posts: 26
Geek Article and Review System License Holder 
Default

Hi
I have no coding experience/skills - could anyone be kind to tell me what this should look like for the danish alphabet?
Reply With Quote
  #5  
Old 07-31-2009, 07:14 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #6  
Old 07-31-2009, 07:39 PM
cykelmyggen cykelmyggen is offline
Junior Member
 
Join Date: Jul 2009
Posts: 26
Geek Article and Review System License Holder 
Default

Quote:
Originally Posted by Morgan View Post
Sorry, I don't know what ASCII numbers you'd use for Danish, but you might try looking at the chr and ord functions.
The danish characters missing in the end of the alphabet has ascii values 91 92 and 93,

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..
Reply With Quote
  #7  
Old 08-03-2009, 01:47 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #8  
Old 08-03-2009, 04:53 PM
cykelmyggen cykelmyggen is offline
Junior Member
 
Join Date: Jul 2009
Posts: 26
Geek Article and Review System License Holder 
Default

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
Reply With Quote
  #9  
Old 08-06-2009, 02:08 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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
Reply With Quote
  #10  
Old 08-06-2009, 02:18 PM
cykelmyggen cykelmyggen is offline
Junior Member
 
Join Date: Jul 2009
Posts: 26
Geek Article and Review System License Holder 
Thumbs up

Deleted first number which made one af the A's dissapear. Thanks for your support
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 10:23 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.