php forum
php mysql forum
php mysql smarty
 
Topic Options
#226766 - 10/25/02 05:18 PM Hack for dual-language boards
noox Offline
Journeyman

Registered: 04/19/01
Posts: 109
Loc: Austria/Salzburg
These two hacks could be interesting if you have a dual-language board.<br /><br />The first hack allows visitors who are not logged in to switch between two languages. It also detects the language depending on the browser settings if no language cookie is found. If a user creates an account, the language he/she is currently using is written in his/her user profile.<br /><br />The second one allows to define a different categories order depending on the choosen language. If you have for instance a German forum, but also a small English category, you can then define that the English category is displayed last when somebody uses the german language, and that it is displayed first when somebody uses English.<br /><br /><br />Mod Name: Dual-Language Hack 0.9<br />Description: Autodedects language, allows to switch between two languages, allows to specify categories order depending on the choosen language.<br />Working under: 6.1.1 <br />Any pre-requisites: none<br />Author(s): nòóx (Hannes Schmiderer)<br />Demo: www.downhill-board.com (currently still 5.4.1) and www.nooxnet.com/ubbthreads.php (6.1.1) <br />Files Altered:<br />- ubbt.inc.php<br />- languages/*/generic.php<br />- adduser.php<br />- admin/dochangecatorder.php<br />- ubbthreads.php<br />Database Altered: no<br />New Files: none<br />Any other info: Works for two languages only. At the moment it is implemented for English and German. But it should be easy to adapt it for any other two languages.<br />


Attachments
59453-duallanguagehack.txt (42 downloads)

_________________________
nòóx
_____________________
www.dh-rangers.com, www.downhill-board.com

Top
#226767 - 10/25/02 08:37 PM Re: Hack for dual-language boards [Re: hPm]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226768 - 10/25/02 09:15 PM Re: Hack for dual-language boards [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yes, nice <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#226769 - 01/04/03 05:07 PM Re: Hack for dual-language boards [Re: hPm]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
I've just came across this. - I quite like the general idea of trying to set the default threads language like the browser's preferred language setting.<br /><br />Has anybody ever got this hack running?<br />Looks that there are some severe bugs (like missing parenthesis) <br />in the code supplied with V. 0.9 here, and I had to de-install<br />it right again.<br /><br />Noox, have you further worked on this hack on your boards?<br /><br />Just curious,<br />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks