campsiteinternallink is missing from my installation
  • Hi,

    1. The campsiteinternallink is missing from my current installation (ver 3.4.3). Please refer to the attached image.

    2. Also everytime I click on icon "Insert/Edit link" I receive the following alert

    <script language="javascript" type="text/javascript" src="http://mycampsite/admin/articles/lists/link_list.js"></script>

    3. The "user-form.tpl" that is used to registration from, uses some language-specific words like Mr,Ms,Dr etc. I created the appropriate language translation for my country but it does not seems to work. Where to look ?

    Regards,
  • 4 Comments sorted by
  • for the question 3

    I found that the responsible code is inside "include/smarty/campsite_plugins/block.user_form.php" at line 55

    $p_params['submit_button'] = 'Submit';

    I added at the begining the code

    require_once($GLOBALS['g_campsiteDir']."/classes/Language.php ");
    camp_load_translation_strings("globals");
    camp_load_translation_strings("users");


    and changed the code at line 55 with

    $p_params['submit_button'] = getGS('Submit');

    but it does not seem to work.

    Any help here ?

  • These strings were not yet translated, we will fix this in a future version.
    Thanks for pointing out.

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Tue, Nov 2, 2010 at 10:21 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > for the question 3
    >
    > I found that the responsible code is inside
    > "include/smarty/campsite_plugins/block.user_form.php" at line 55
    >
    > $p_params['submit_button'] = 'Submit';
    >
    > I added at the begining the code
    >
    > require_once($GLOBALS['g_campsiteDir']."/classes/Language.php ");
    > camp_load_translation_strings("globals");
    > camp_load_translation_strings("users");
    >
    > and changed the code at line 55 with
    >
    > $p_params['submit_button'] = getGS('Submit');
    >
    > but it does not seem to work.
    >
    > Any help here ?
    >
    >
    >

  • Hi,

    If just checked http://campsite-demo.sourcefabric.org which runs latest Campsite (3.4.3, same as you) and the icon is there and works fine, also I didn't get any alert by using the "Insert/Edit Link" plugin, it works fine. I also checked in a couple local installations and everything is fine, so it looks like a specific issue related to your platform/installation. Can you provide us more details about it please?

    Cheers,
  • Hi,

    I suspect that the distributed tar file that someone downloads from sourceforge is somewhat different from your current project files that someone can see in this demo

    http://campsite-demo.sourcefabric.org

    I have also some artifacts with the plugins. I had the same problems with the previous version 3.4.2. I dont know, if it matters, but everytime I use a clean installation using the demo (not a blank template).

    Anyway, can I have access to the files at the current project to compare with mine?

    PS: I have made many changes to the engine files to correctly support my language. For example that statement

    {{ set_language name="Greek" }}

    did not correctly change the language in the front side section especially for system messages and forms. For example take a look from my notes :




    Folder path : include/smarty/campsite_plugins


    //*******************************************
    //function changes
    //*******************************************
    function.set_language.php

    // do comment
    /*
    if ($campsite->language->defined && $campsite->language->english_name == $languageName) {
    return;
    }
    */


    // add this

    $_COOKIE['TOL_Language'] = $campsite->language->code;
    $_REQUEST['TOL_Language'] = $campsite->language->code;



    //************************************************
    //function changes
    //************************************************
    function.set_default_language.php

    //add this

    $_COOKIE['TOL_Language'] = $campsite->language->code;
    $_REQUEST['TOL_Language'] = $campsite->language->code;



    //************************************************
    //function changes
    //************************************************

    function.camp_select.php

    camp_load_translation_strings("users");

    $output = array(getGS('0-17'), getGS('18-24'), getGS('25-39'), getGS('40-49'), getGS('50-65'), getGS('65 or over'));
    $output = array(getGS('Corporate'), getGS('Non-Governmental'), getGS('Government Agency'), getGS('Academic'), getGS('Media'), getGS('Other'));




    I have made many fixes and traslations like above and I am afraid I can not follow your updates very easy since I have to update the code everytime by myself.

    Regards,
    George