• » webSPELL.org - Free Content Management System
  • Language switch: English German
  • login



    » lost password?   » register now
  • About webSPELL

    webSPELL is a free Content Management System which was especially developed for the needs of esport related communities. Since a short while we are also offering an optimized and enhanced webSPELL version for the special requirements of non-profit organisations. The purpose of both systems is to offer a professional and free opportunity to create and administrate your own website in an easy and optimized way.

    » Learn more about webSPELL     » Download webSPELL now!
  • Advertisement

    Follow us

  • Sort:      1 2  » printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
    Author
    Message
    webSPELL friend
    674 Posts
    29.11.2009, 19:04 email offline quote 

    Can you write the example, I don't understand what source

    www.kode-designs.com
    How much wood would a woodchuck chuck if a woodchuck could chuck wood?
    Administrator
    Member of webSPELL e.V.
    2568 Posts
    29.11.2009, 18:53 email offline quote 

    write the second source before the first code

    i have also created an addon likes this today.
    i will publish it now zunge raus
    webSPELL friend
    674 Posts
    29.11.2009, 18:49 email offline quote 

    Here's part where needs lang switch. I added language_array['checklogin']['login_successful']
    Code:
    1.
    2.
    3.
    4.
    $('status').set('html', '<div id="logged_in">You are now logged it! <br />' +
                     language_array['checklogin']['login_successful'] +
                  '<img align="absmiddle" src="images/loader-bar.gif">' +
                  '<br /> Please wait while we redirect you to your private page...</div>');


    And at end of code:

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    //initialize javascript language array
    var language_array=new Array();
    language_array['checklogin']=new Array();
    if(typeof(calledfrom)=='undefined'){
         fetch('getlang.php?modul=checklogin&mode=array','none','execute','event');
    }
    else if(calledfrom=='admin'){
         fetch('../getlang.php?modul=checklogin&mode=array','none','execute','event');
    }


    But I get undefined message on place where should be login success. So how do I add that language array?

    www.kode-designs.com
    How much wood would a woodchuck chuck if a woodchuck could chuck wood?
    webSPELL user
    304 Posts
    29.11.2009, 14:44 offline quote 

    very cool, thx lächeln

    Signatur:
    Aka Laurenzo
    webSPELL user
    379 Posts
    29.11.2009, 02:52 email offline quote 

    k3rmit wrote:

    F1skr wrote:

    ...i would let php do the work for me...

    you really should have a look at the code i mentioned zwinkern bbcode.js is not parsed by webspell, cause it is no template file, therefor no language variables in there like in the template filess. that's why there is used a combination of php and js for outputting language strings in javascript. php generates a javascript language array, js functions are using this array for the translations.


    I totally understand what the bbcode.js does, you don't get what i ment, and i don't blame you zwinkern


    can't figure out how to explain it right now tho :X









    webSPELL god
    Member of webSPELL e.V.
    7824 Posts
    29.11.2009, 00:45 email offline quote 

    F1skr wrote:

    ...i would let php do the work for me...

    you really should have a look at the code i mentioned zwinkern bbcode.js is not parsed by webspell, cause it is no template file, therefor no language variables in there like in the template filess. that's why there is used a combination of php and js for outputting language strings in javascript. php generates a javascript language array, js functions are using this array for the translations.
    webSPELL user
    379 Posts
    28.11.2009, 23:44 email offline quote 

    k3rmit wrote:


    have a look how it is done at the existing webspell language features within the bbcode.js (for example the bbcode-checker).


    i would let php do the work for me, but i see webspell calls the language switch anyway so you could just as well use that. depending on what you want most of, php or js, I wonder what is the best solution generally, not only webspell related?
    webSPELL hero
    1783 Posts
    28.11.2009, 17:49 offline quote 

    if you can write php scripts it´s easy to learn js zunge raus
    webSPELL friend
    674 Posts
    28.11.2009, 17:44 email offline quote 

    I suck at javascript and ajax so I was just trying some things amüsiert

    -MooTools is because of tutorial amüsiert

    k3rmit wrote:

    the better question would be why to use any external js framework at all ;-) webspell includes all necessary ajax function for such a simple purpose.

    didn't know that, but as I said I'm new to JS

    www.kode-designs.com
    How much wood would a woodchuck chuck if a woodchuck could chuck wood?
    webSPELL hero
    1783 Posts
    28.11.2009, 17:25 offline quote 

    kayyy wrote:

    many other addons are using jquery. why do u use mootools ( because of the conflict between jquery and mootools ) ?

    perhaps because of the tut ?! zunge raus
    Sort:      1 2  » printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
  • » Support

    » Topics
    18.06.2013 - 01:11 - 1 Replies
    » how can i transform back ...
    how can i transform back to old my website ?
    Last post: Schalla
    Board: EN - Technical support
    18.06.2013 - 01:11
    17.06.2013 - 20:50 - 3 Replies
    » Suche Coder !
    Suche Coder !
    Last post: naki
    Board: DE - Suche
    17.06.2013 - 20:50
    17.06.2013 - 18:56 - 7 Replies
    » Querry Failed Error no 10...
    Querry Failed Error no 1054
    Last post: RUSSHEL
    Board: EN - Technical support
    17.06.2013 - 18:56
    17.06.2013 - 12:48 - 0 Replies
    » [4SALE] Custom team websi...
    [4SALE] Custom team website
    Last post: element-
    Board: EN - Offers
    17.06.2013 - 12:48
    17.06.2013 - 10:49 - 12 Replies
    » webSPELL Bootstrap (respo...
    webSPELL Bootstrap (responsible)
    Last post: Mister T.
    Board: EN - General
    17.06.2013 - 10:49
    16.06.2013 - 21:21 - 3 Replies
    » update webspell problem
    update webspell problem
    Last post: RUSSHEL
    Board: EN - General support
    16.06.2013 - 21:21
    16.06.2013 - 20:42 - 0 Replies
    » "Make sure you have cooki...
    "Make sure you have cookies enabled" During Login
    Last post: Sasquatch
    Board: EN - General support
    16.06.2013 - 20:42
    16.06.2013 - 16:22 - 8 Replies
    » Farbe von "Dein Profil wu...
    Farbe von "Dein Profil wurde aktualisiert. Du wirst weitergeleitet" ändern!
    Last post: Cali-go
    Board: DE - Allgemeiner Support
    16.06.2013 - 16:22
    16.06.2013 - 16:19 - 2 Replies
    » Sehr erfahrener Programmi...
    Sehr erfahrener Programmierer gesucht (Community,Clanpage)
    Last post: StufF
    Board: DE - Suche
    16.06.2013 - 16:19
    15.06.2013 - 22:39 - 0 Replies
    » portfolio/agency for sale
    portfolio/agency for sale
    Last post: Thoomii
    Board: DE - Biete
    15.06.2013 - 22:39
    15.06.2013 - 16:39 - 2 Replies
    » [4SALE] eSport Design/Tem...
    [4SALE] eSport Design/Template
    Last post: LeG3nDz
    Board: EN - Offers
    15.06.2013 - 16:39
    15.06.2013 - 10:35 - 12 Replies
    » externe Festplatte spinnt
    externe Festplatte spinnt
    Last post: plenergy
    Board: DE - Internet
    15.06.2013 - 10:35
    14.06.2013 - 20:53 - 11 Replies
    » Webspell ver 1070 EN
    Webspell ver 1070 EN
    Last post: TyRRRax
    Board: EN - General support
    14.06.2013 - 20:53
    14.06.2013 - 19:03 - 4 Replies
    » Kostenlose Clanmappen!
    Kostenlose Clanmappen!
    Last post: unikat
    Board: DE - Biete
    14.06.2013 - 19:03
    14.06.2013 - 15:22 - 6 Replies
    » Userpic & Avatar
    Userpic & Avatar
    Last post: Tuxx
    Board: DE - Technischer Support
    14.06.2013 - 15:22
    14.06.2013 - 14:31 - 5 Replies
    » [B] Meine Dienste als Des...
    [B] Meine Dienste als Designer
    Last post: Kenny2601
    Board: DE - Biete
    14.06.2013 - 14:31
    14.06.2013 - 08:54 - 0 Replies
    » [S] Aufträge Web- und Pri...
    [S] Aufträge Web- und Printdesign
    Last post: neiD-
    Board: DE - Suche
    14.06.2013 - 08:54
    14.06.2013 - 00:52 - 3 Replies
    » News Fail can´t publish
    News Fail can´t publish
    Last post: bazic
    Board: DE - Allgemeiner Support
    14.06.2013 - 00:52
    13.06.2013 - 13:59 - 2 Replies
    » [V] Design + Anpassung
    [V] Design + Anpassung
    Last post: e9li
    Board: DE - Biete
    13.06.2013 - 13:59
    13.06.2013 - 13:13 - 9 Replies
    » [SELL] Gaming Website - E...
    [SELL] Gaming Website - EXCLUSIVE WEBSITE
    Last post: hornyst
    Board: EN - Offers
    13.06.2013 - 13:13
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers