Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nmarlon

    (@nmarlon)

    Ok, thank you so much!

    • This reply was modified 5 years, 11 months ago by nmarlon. Reason: Just adding the "ok"
    Thread Starter nmarlon

    (@nmarlon)

    Eu desconheço o motivo de if function_exists() não está funcionando, parece que ele não identifica o submit_button. Eu mudei no wp-data-access-diehard.php para if ( ! function_exists( 'submit_button2' ) ) { , function submit_button2( , if ( ! function_exists( 'get_submit_button2' ) ) { e function get_submit_button2( . depois começou a ter erro nas páginas do plugin no admin do wordpress, então coloquei isso:

    if (preg_match('/wpda/',$_GET['page'])){
        submit_button( $text, '', '', false, array( 'id' => 'search-submit' ) ); 
    }else{
        submit_button2( $text, '', '', false, array( 'id' => 'search-submit' ) );
    }
    

    E assim tem funcionado tudo perfeitamente até agora. Muitíssimo obrigado pela atenção e pelo ótimo plugin, tem atendido às minhas necessidades.

    Google Translated: I don’t know why if function_exists () isn’t working, it looks like it does not identify submit_button. I changed in wp-data-access-diehard.php to if (! Function_exists ('submit_button2')) {, function submit_button2 (, if (! Function_exists ('get_submit_button2')) { and function get_submit_button2 (. then there was an error in the plugin pages in the wordpress admin, so I put this:

    if (preg_match('/wpda/',$_GET['page'])){
        submit_button( $text, '', '', false, array( 'id' => 'search-submit' ) ); 
    }else{
        submit_button2( $text, '', '', false, array( 'id' => 'search-submit' ) );
    }
    

    And so everything has worked perfectly so far. Thank you very much for your attention and for the great plugin, it has met my needs.

    • This reply was modified 6 years ago by nmarlon. Reason: The translator change the code
    Thread Starter nmarlon

    (@nmarlon)

    Mas não tinha visto que deu erro no http:/…/wp-admin/admin.php?page=wpda ou seja, não conseguia abrir nenhuma das páginas de edição do plugin WP Data Access no wordpress. Eu conseguia usar o Elementor, mas não criar uma nova tabela no WP-Data-Access do wordpress. Dava erro. Então, ao invés de substituir TODOS os “submit_button”, substituí só os que estavam dando erro, cada vez que eu substituía um, mostrava outro lugar que precisava da variável, assim fui descobrindo qual precisava do submit_button do template e qual usava à do próprio plugin. Dessa tudo mesmo está funcionando em normalmente. Cada uma das páginas, o Elementor e o plugin nas páginas funciona.

    O que eu alterei foi o arquivo:
    plugins\wp-data-access\wp-data-access-diehard.php – Line 49 e 50: “submit_button” para “submit_button2”
    -Line 57 e 58: “get_submit_button” para “get_submit_button2”

    Thread Starter nmarlon

    (@nmarlon)

    ORIGINAL: Eu consegui consertar sem dar erro na página de plugins (como eu tinha editado o template.php padrão do wordpress, a página de plugins do wordpress não abria), ao invés de mudar o submit_button no template.php, Eu fiz isso:

    1. Baixei a pasta do plugin /public_html/wp-content/plugins/wp-data-access toda no meu PC
    2. abri essa pasta no Sublime Text 3.
    3. Apertei Ctrl+Shift+F para pesquisar por referências do “submit_button” em TODOS os arquivos
    4. Substituí todos os “submit_button” por “submit_button_wpda” (No lugar de _wpda pode ser qualquer outro nome)
    Resumo do procedimento 3 e 4
    5. Enviei a pasta do plugin wp-data-access de volta para o servidor do meu site wordpress. Substituindo apenas os arquivos de tamanho diferentes.

    Agora tudo funciona normalmente

    Google Translate: I managed to fix the plug-ins page without error (as I had edited the standard wordpress template.php, there was no wordpress plug-in page), when I started changing or sending a button in the template.php , I made it:

    1. Download the plugin folder / public_html / wp-content / plugins / wp-data-access all on my PC
    2. I opened this folder in Sublime Text 3.
    3. Press Ctrl + Shift + F to use for “submit_button” references in ALL files
    4. Replace all “submit_button” with “submit_button_wpda” (no place in _wpda can be any other name)
    Summary of procedure 3 and 4
    5. Submit a wp-data-access plugin back to my wordpress website server. Replacing only files of different size.

    Now everything works normally

    • This reply was modified 6 years ago by nmarlon. Reason: The translated part
    Thread Starter nmarlon

    (@nmarlon)

    Thread Starter nmarlon

    (@nmarlon)

    I Install “WP Data Access 3.1.1” still not working.

Viewing 6 replies - 1 through 6 (of 6 total)