Recaptcha sur Nouvelle page fonctionne pas

résolu Recaptcha sur Nouvelle page fonctionne pas

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
Recaptcha sur Nouvelle page fonctionne pas

résolu Recaptcha sur Nouvelle page fonctionne pas

Catégorie Catégorie Questions & Aides
Titre du sujet Titre du sujet Recaptcha sur Nouvelle page fonctionne pas
Auteur de la discussion Auteur de la discussion referencemega
Date de début Date de début
Réponses Réponses 27
Affichages Affichages 1 656
Réaction Réaction 0
Dernier message par Dernier message par referencemega

referencemega

Membre

Membre
Réputation: 7%
Discussions
2
Messages
35
Solutions
2
J'aime
11
Points
18
salut a tous je suis entrant de monter un forum et je voudrait ajouter ce bout de code dans ma nouvelle page mais le problème c'est qu'il ne fonctionne pas car le code réagis comme si il ni avait pas de recaptcha quelqu'un peut m'aider svp merci demo code ci dessous

Code:
<form method="get" action="javascript:getlink();" style="text-align: center;" name="linkform" onsubmit="return checkForm(this);">
<input id='link' name='links' style='font-size: 14px;height: 24px;line-height: 24px;padding: 12px;width: 72%;color: #858c91;margin-right: 10px;margin-bottom: 0;' placeholder='Lien a Débrider' style='width:450px;'>
<br><br><center><div class="g-recaptcha" data-sitekey="6LdMib0UAAAAAH25ffd88878zwHi2ul2I50LoWYWPkXCkMRJ"></div> </center><br><br>
<button class="search-btn" id="submit" type="submit" style="border: none;  background-color: #67C8D8;font-size: 14px;line-height: 19px;font-weight: 600;padding: 14px 30px 15px;color: #fff;">Débrider</button>
</form>
<script type="text/javascript" language="javascript" src='https://www.google.com/recaptcha/api.js'></script>
 
merci mais non sa ne m'aide pas car pour le moment il reagis comme si je l'avais pas mis donc pas de message d'erreur rien comme si il i était pas !
 
Upvote 0
Vu les testes que j'ai fais avec ton code, je pense que il y a un erreur sur cette ligne :

Résultats
Vérification de la syntaxe PHP: Erreur d'analyse: erreur de syntaxe, '<' inattendu dans votre code en ligne 1

Code:
<form method="get" action="javascript:getlink();" style="text-align: center;" name="linkform" onsubmit="return checkForm(this);">
 
Upvote 0
oui car le code est pas complet il manque une partie du code mais qui ne change rien car en mettant un lien dans la case et en appuyant sur debridez il devrais y avoir la verification du recaptcha et la elle ni est pas je peut envoilez le reste du code mais sa te servira pas mieux a mon avis ou alor je me trompe peut etre aussi ?
 
Upvote 0
Tu as tester avec le template d'origine :

HTML:
<xf:js src="xf/captcha.js" min="1" />

<div data-xf-init="re-captcha" data-sitekey="{$siteKey}" data-invisible="{$invisible}"></div>

<noscript>
    <div>
        <div style="width: 302px; height: 422px; position: relative;">
            <div style="width: 302px; height: 422px; position: absolute;">
                <iframe src="https://www.google.com/recaptcha/api/fallback?k={$siteKey|urlencode}"
                    frameborder="0" scrolling="no"
                    style="width: 302px; height:422px; border-style: none;"></iframe>
            </div>
        </div>
        <div style="width: 300px; height: 60px; border-style: none;
            bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
            background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
            <textarea name="g-recaptcha-response" id="g-recaptcha-response"
                class="g-recaptcha-response"
                style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
                margin: 10px 25px; padding: 0px; resize: none;"></textarea>
        </div>
    </div>
</noscript>
<style>
// ########################## GLOBAL BASE SETUP #######################

html
{
    font: @xf-fontSizeNormal / @xf-lineHeightDefault sans-serif;
    font-family: @xf-fontFamilyUi;
    font-weight: @xf-fontWeightNormal;
    color: @xf-textColor;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    background-color: @xf-pageBg;

    /* // just a reminder that we *might* want this at some point
    -ms-text-size-adjust: none;
    -webkit-text-size-adjust: none;*/
}

button, input, optgroup, select, textarea
{
    font-family: @xf-fontFamilyUi;
    line-height: @xf-lineHeightDefault;
}

img
{
    max-width: 100%;
    height: auto;
}

b, strong
{
    font-weight: @xf-fontWeightHeavy;
}

a
{
    .xf-link();

    &:hover
    {
        .xf-linkHover();
    }
}

{{ include('core_setup.less') }}
{{ include('core_utilities.less') }}
{{ include('core_list.less') }}
{{ include('core_categorylist.less') }}
{{ include('core_block.less') }}
{{ include('core_blockmessage.less') }}
{{ include('core_blockstatus.less') }}
{{ include('core_blocklink.less') }}
{{ include('core_blockend.less') }}
{{ include('core_fixedmessage.less') }}
{{ include('core_button.less') }}
{{ include('core_meter_bar.less') }}

// ################################# INPUTS & FORMS #####################

.m-formElementExplain()
{
    display: block;
    font-style: normal;
    .xf-formExplain();

    .m-textColoredLinks();
}

{{ include('core_input.less') }}
{{ include('core_formrow.less') }}

{{ include('core_collapse.less') }}
{{ include('core_badge.less') }}
{{ include('core_tooltip.less') }}
{{ include('core_menu.less') }}
{{ include('core_offcanvas.less') }}
{{ include('core_tab.less') }}
{{ include('core_overlay.less') }}
{{ include('core_globalaction.less') }}
{{ include('core_avatar.less') }}
{{ include('core_datalist.less') }}
{{ include('core_filter.less') }}
{{ include('core_contentrow.less') }}
{{ include('core_pagenav.less') }}
{{ include('core_hscroller.less') }}

// FLASH MESSAGES
.flashMessage
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: @zIndex-9;
    .xf-flashMessage();

    .m-transitionFadeDown();
}

// AUTOCOMPLETE
.autoCompleteList
{
    .m-autoCompleteList();
    margin-top: 2px;
}

// #################################### TAGS ##############################
// note that while this is related to tags, it's commonly used so just include it

.tagList,
.tagList > dt,
.tagList > dd
{
    display: inline;
    padding: 0;
    margin: 0;
}

.tagItem
{
    display: inline-block;
    max-width: 100%;
    padding: 0 6px 1px;
    margin: 0 0 2px;
    border-radius: @xf-borderRadiusMedium;
    font-size: @xf-fontSizeSmaller;
    .xf-chip();

    &:hover
    {
        text-decoration: none;
        color: @xf-chip--color;
        .xf-chipHover();
    }
}

// ############################# MISC #########################

.recaptcha
{
    &.input
    {
        box-sizing: content-box;
        max-width: 100%;
    }

    img
    {
        max-width: 100%;
    }
}

.likesBar
{
    .m-transitionFadeDown();
    .xf-minorBlockContent();
    border-left: @xf-borderSizeMinorFeature solid @xf-borderColorFeature;
    padding: @xf-paddingMedium;
    font-size: @xf-fontSizeSmaller;
    margin-top: @xf-paddingMedium;
}

.likeIcon
{
    &:before
    {
        .m-faBase();
        .m-faContent(@fa-var-thumbs-up, 1em);
        color: @xf-textColorFeature;
        margin-right: .2em;
    }
}

.reactionsBar
{
    .m-transitionFadeDown();
    .xf-minorBlockContent();
    border-left: @xf-borderSizeMinorFeature solid @xf-borderColorFeature;
    padding: @xf-paddingMedium;
    font-size: @xf-fontSizeSmaller;
    margin-top: @xf-paddingMedium;
}

.reactionSummary
{
    display: inline-block;
    .m-listPlain();
    line-height: 16px;
    height: 16px;
    margin: 0 -2px;
    vertical-align: text-top;

    > li
    {
        display: inline-block;
        height: 20px;
        width: 20px;
        padding: 2px;
        margin: -2px 0;
        background: @xf-contentBg;
        border-radius: 50%;
        position: relative;
        margin-left: -6px;

        &:nth-child(1)
        {
            z-index: 3;
            margin-left: 0;
        }

        &:nth-child(2)
        {
            z-index: 2;
        }

        &:nth-child(3)
        {
            z-index: 1;
        }
    }

    .reaction
    {
        position: absolute;
        top: 0;

        &.reaction
        {
            // increase specificity to override .reaction.reaction--<size>
            display: block;
        }
    }
}

.reactionsBar,
.message-responseRow
{
    .reactionSummary
    {
        > li
        {
            background: @xf-contentAltBg;
        }

        .reaction
        {
            top: 2px;
        }
    }
}

.reactTooltip
{
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;

    .reaction
    {
        margin: @xf-paddingSmall;
        .m-transition(transform);

        &:hover
        {
            .m-transform(scale(1.2));
        }
    }
}

.colorChip
{
    display: inline-block;
    border: @xf-borderSize solid @xf-borderColor;
    border-radius: @xf-borderRadiusMedium;
    padding: 1px;
    width: 100px;
}

.colorChip-inner
{
    display: block;
    background-color: transparent;
    border-radius: @xf-borderRadiusSmall;
    height: 1em;
}

.colorChip-value
{
    display: none;
}

pre.sf-dump
{
    // not ideal, but then again neither is the default of 99999...
    z-index: @zIndex-1 !important;
}

.grecaptcha-badge
{
    z-index: @zIndex-5;
}

// Bookmarking links for 2.1
.bookmarkLink
{
    &:before
    {
        .m-faBase();
        .m-faContent(@fa-var-bookmark);
        font-weight: min(@xf-fontAwesomeWeight, @faWeight-regular);
    }
    &.is-bookmarked
    {
        &:before
        {
            font-weight: @faWeight-solid;
        }
    }

    &.bookmarkLink--highlightable.is-bookmarked
    {
        color: @xf-textColorAttention;

        &:hover
        {
            color: @xf-textColorAccentContent;
        }
    }

    span
    {
        margin-left: .35em;
    }
}

.dragHandle
{
    cursor: move;

    &:before
    {
        .m-faBase();
        .m-faContent(@fa-var-bars);
    }

    .is-undraggable &
    {
        visibility: hidden;
        cursor: default;
    }
}

{{ include('core_action_bar.less') }}
{{ include('core_labels.less') }}
{{ include('core_pikaday.less') }}
{{ include('core_reaction.less') }}
{{ include('core_smilie.less') }}
{{ include('core_bbcode.less') }}
{{ include('core_fa.less') }}

// RESOLUTION OUTPUT

.debugResolution
{
    .debugResolution-output:before
    {
        content: "Full @{xf-responsiveWide} - @{xf-pageWidthMax}";
        @media (min-width: @xf-pageWidthMax) { content: "Max > @{xf-pageWidthMax}"; }
        @media (max-width: @xf-responsiveWide) { content: "Wide < @{xf-responsiveWide}"; }
        @media (max-width: @xf-responsiveMedium) { content: "Medium < @{xf-responsiveMedium}"; }
        @media (max-width: @xf-responsiveNarrow) { content: "Narrow < @{xf-responsiveNarrow}"; }
    }
}
</style>
 
Upvote 0
le probleme c'est pas qu'il s'affiche pas avec mon code le recaptcha est bien present mais le code reagis comme si il ni etait pas en resumer tu clik sur debrider sans toucher au recatcha et sa fonctionne quand meme alor que normalement il devrais pas fonctionner avant que le recaptcha soit remplie
 
Upvote 0
je sais pas du tout en tous cas dure dure ?
[automerge]1571954224[/automerge]
voila un screen

1116
 
Dernière édition:
Upvote 0
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas