ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

A good ee community with friendly, helpful support? (turned into a how-to)

January 27, 2010 6:44am

Subscribe [8]
  • #16 / Jan 27, 2010 12:26pm

    daulex

    152 posts

    Thank you lebisol, I took a bit of that tutorial into consideration, I will probably implement more of it later on.

    The main issue is the url, oddly my client does not want language based sub directories on the site…

  • #17 / Jan 27, 2010 12:29pm

    gamma911

    51 posts

    Well you are pretty brave doing such a complex site in 2.0 when it’s still pretty buggy.*hide* and the fact that not all the essential plugins / modules are available for it.

    How about considering 1.6.8 for this project?

  • #18 / Jan 27, 2010 12:35pm

    daulex

    152 posts

    gamma, 4 reasons:

    1. It’s stable enough for me to work with.
    2. I have much faith in the ellis lab dev team, they are quite epic (at least from the work I’ve seen them do with CI). Thus I will update EE when the new versions pop up.
    3. I do not need any of the plugins (except for the forums), I’m used to writing my own stuff (even for wordpress, which has plugins that can do everything you can imagine and more, I still write my own stuff).
    4. 1.6.8 would be the easy way out. I’d build the site in a week and forget about it. This brings problems and the pain of development, which keeps me hooked to the project.

  • #19 / Jan 27, 2010 12:40pm

    lebisol

    2234 posts

    Thank you lebisol, I took a bit of that tutorial into consideration, I will probably implement more of it later on.

    The main issue is the url, oddly my client does not want language based sub directories on the site…

    You are right, sorry have not tried this on 2.0 but I believe things have changed and most of the config is written to file “/system/expressionengine/config/config.php” after the installation is done. Then, I believe, you can compare the notes. But yes 2.0 is still ‘fresh’ so some techniques and plug-ins won’t apply.
    Hope this helps.

  • #20 / Jan 27, 2010 1:17pm

    daulex

    152 posts

    lebisol, ironically, the only thing that is causing me problems now is defining a variable in the index.php and then passing it into the template and being able to use it within ee code.

    After reading through the ee 2.0 docs, I understood that a var would not work and I would need to use a snippet, however snippets must be defined from the ee backend. (or at least so I gathered). If that’s the case, I will have to hijack the url and use the first segment, set up a lot of conditionals, etc, which is crap.

    Any idea how to set a {country_code} snippet within each of those index.php files per language? When that’s done, I could write up a tutorial on doing multiple languages in 2.0 😊

  • #21 / Jan 27, 2010 1:35pm

    ender

    1644 posts

    haven’t tried it in EE 2, but you can read $_SESSION variables in path.php and poke them through to EE templates as {variables} by using the $global_vars array.

  • #22 / Jan 27, 2010 5:35pm

    daulex

    152 posts

    Sorry, your last reply seemed confusing to me. Do you mean:

    in index.php:

    $_SESSION['lang'] = "fr";

    Then I could get it in a template through session, but how the hell do I define it as a {lang} within the template?

    Defining $global_vars does not work in index.php.

    Btw, in 2.0, for multi languages, you’re not using path.php, index.php is sufficient and that is the file, where you put in the $site_url and system url vars.

  • #23 / Jan 27, 2010 6:54pm

    Jamie Poitra

    409 posts

    Daulex,

    Something I do when needed is to set a variable in the path.php file.  You can look at the person’s session, browser, cookies, etc. and add a conditional to determine what you need and then set a variable based on that.

    path.php variables get parsed before pretty much anything else in the templates.

    As for the community issue I think part of it is that many of the more experienced developers simply don’t have a ton of time right now.  Between getting married and then my day job I’m pretty much worn out by the end of the day and posting on the EE forums isn’t usually first on my list.  The other devs I know are in similar situations.

    Jamie

  • #24 / Jan 28, 2010 7:44am

    daulex

    152 posts

    Thanks Jamie,

    What I ended up doing is:

    $_SESSION['lang'] = "en"; // modify "en" to suit the required language

    In each of the index.php files (one per language).

    Then (and I know this is crap, but it works):

    <?php $lang = $_SESSION['lang']; ?>

    At the top of every template.

    Then (the server is going to be a huge dedicated machine):

    {if "<?php echo $lang; ?>" != "en"}{title_<?php echo $lang; ?>}{if:else}{category_name}{/if}

    This sort of a conditional for EVERY bit of text that will change when the language switch is activated.

    The url structure is awesome too 😊 example: site.com/fr/product/

    Thanks everyone.

  • #25 / Jan 28, 2010 10:17am

    ender

    1644 posts

    I guess path.php is gone from EE 2, but searching for global_vars turned up this in index.php (around line 74):

    $assign_to_config['global_vars'] = array(); // This array must be associative

    so that’s probably the same functionality… I guess.  Assuming it still works like it did in 1.x then all you have to do is pop your $_SESSION variable into that.

    $assign_to_config['global_vars'] = array('lang' => isset($_SESSION['lang']) ? $_SESSION['lang'] : "");
  • #26 / Feb 13, 2010 9:20am

    Emily Heath

    197 posts

    Just a quick reply to your original comment about responsiveness in the forums. I’ve been working with EE for a few years now and I’ve always found the people in the forums to be very responsive.  Better yet, I often find that someone else has already asked my question (and gotten a useful response) so the answer is just sat there waiting for me. It is one of the big selling points about EE, support you can rely on.

    I wonder if the reason you haven’t received much help is because you are using EE2 and not so many people are using it to develop client projects and so don’t have so much experience with it?

  • #27 / Feb 13, 2010 1:18pm

    Bob Sutton

    87 posts

    I often find that someone else has already asked my question (and gotten a useful response) so the answer is just sat there waiting for me.

    I find contributors in the forums to be very responsive too, but I also spend an inordinate amount of time searching and reading old forum posts that are NOT relevant answers to my query. If anything, the community forums need meta-tagging or feedback stars or something more direct than simple Boolean text-search to highlight the frequent genius they contain. Over the years, the forums have become an invaluable knowledgebase, but too often, the single suggestion that resolves my problem is four pages deep in a meandering thread that is sorted deeply in the results list with a generic title like “Help!” Try more astute queries and you choke off Recall (often to “No Result Found”) more than you improve Precision.

  • #28 / Feb 16, 2010 10:42am

    daulex

    152 posts

    Amen to the last to comments.

    Emily, ee2 is a black hole for many of us and sadly that’s what created the impression I got. Btw, I might just pop by on the 25th, I work in Hoxton square, so it’s only a few minutes 😊

    Bob, I second the idea. Let’s create a petition!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases