Please upgrade here. These earlier versions are no longer being updated and have security issues.

How do you remove the "Start a New Discussions" name in the button?

How do you remove the "Start a New Discussions" name,how to rename

Comments

  • there are three ways to go about this.

    1) use firebug to identify the element you want to remove and remove it.

    2) read the documentation on internationalization and locales and remove it via the definition.

    3) Search the forum and read the answers to to the last few discussions that posed the same question.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • You want to remove or do you want to rename?

    grep is your friend.

  • I won't " Start a New Discussions " button name rename.

  • I won't " Start a New Discussion " button name rename.

  • R_JR_J Ex-Fanboy Munich Moderator

    The localization How To @peregrin mentioned could be found here
    If you want to customize your forum, you'll have to read and understand it!

    Afterwards, you can try $Definition['Start a New Discussion'] = 'Erzähl uns was!'; but that does not work for all strings you see in the forum. Read the documentation in order to search for an explanation and if you can not find it out yourself, don't hesitate to ask!


    hgtonightnandana
  • how to find $Definition['Start a New Discussion']
    = 'Erzähl uns was!';
    (I usd theme is vanila)

  • R_JR_J Ex-Fanboy Munich Moderator

    @R_J said:
    The localization How To peregrin mentioned could be found here
    If you want to customize your forum, you'll have to read and understand it!

    Please, read that documentation. You won't regret it.
    In summary it tells you that you have to

    1. create a folder and a file for your language where you can
    2. write a line Definition['Text in Vanilla'] = 'Text you like to see'; and
    3. 'Text in Vanilla' is the string you are looking for and
    4. 'Text you like to see' is the text in your language


  • http://vanillaforums.org/discussion/17104/big-button-start-new-discussion-beta2-version
    ANSWER

    vanila>applicalion>vanila>views>modules>newdiscussion.php
    3 line

  • @nandana said:
    http://vanillaforums.org/discussion/17104/big-button-start-new-discussion-beta2-version
    ANSWER

    vanila>applicalion>vanila>views>modules>newdiscussion.php
    3 line

    It's an answer, not a recommended one, and not the answer to the question you asked.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • what You ask

  • peregrineperegrine MVP
    edited September 2013

    If you want to rename a Translation - anything with T("something") "You DON'T change it in the core T("to something else"). That is the whole purpose of definitions - not to change the core.

    you change or add a definition in one of the following files

    the order of locales (the higher the number on the list, the higher precedence).

    en-CA is a country code (substitute your own country code that you use.

            1 - application based and dashboard based definitions
                  applications/locale/en-CA/definitions.php
                  applications/dashboard/locale/en-CA/definitions.php
            2- plugin based - plugins/yourplugin/locale/en-US.php  
                    plugins/your plugin/locale/en-US/definitions.php
            3 - theme based
                   themes/yourtheme/locale/en-CA.php
            4 - locale based - /locales/en-US/definitions.php
            5 - locale based  locales/en-US/other_definitions.php
            6- conf based - conf/locale.php
            7- conf - specialized conf/locale-en-US.php
    

    SO - if you want to rename the button

    e.g.

    you could create a file called conf/locale.php

    <?php if (!defined('APPLICATION')) exit();
     $Definition['Start a New Discussion'] = 'Erzähl uns was!'
    

    or add it to your application based defintions - and make sure you don't have duplicates, other wise the last one will take precedence in the file (I believe) and the highest number on the above chart will take precedence.

    it is better than changing the core.

    when modifying locales or adding locale files - always clear the ini files in the /cache folder - for best results.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    hgtonightrjadot
Sign In or Register to comment.