Kontaktseite Emailadresse verschleiern

Hallo, gern möchte ich meine Emailadresse verschleiern (at).

Weiß jemand wo ich das machen kann?

Vielen Dank

Das Template heißt contact.tpl.
Such da drin nach “$oxcmp_shop->oxshops__oxinfoemail->value”, das ist die Email Adresse.

Danke für die schnelle Antwort.

Wie könnte ich da das (at) rein zaubern?

[{$oxcmp_shop->oxshops__oxinfoemail->value|replace:'@':'(at)'}]

wäre eine Möglichkeit

Danke, aber leider passiert überhaupt nichts.

tmp geleert?

wirkungsvoller ist das Verstecken der MailAddy in einem iframe:
http://forum.oxid-esales.com/showthread.php?t=17697

Ja ist geleert.

Kann ich nicht einfach im backend irgendwo info(at)meinedomain.de eingeben und dann steht das da?

klar, kann man auch die Mail-Adresse im Klartext in der contact.tpl eintragen

  • nur muss man dies in der richtigen Datei / theme machen
  • evtl. gibt es auch ein Modul, das diesen Block überschreibt
  • evtl. wird im footer auch ein anderes template geladen

um hier tiefer einzusteigen, braucht man mehr Infos zum Shop
du kannst mr auch den link per PN zusenden

Ich würde es so machen:
Bsp: Flow

application/views/flow/tpl/page/info/contact.tpl

Z. 43

<strong>[{oxmultilang ident="EMAIL" suffix="COLON"}]</strong> <span itemprop="email">[{oxmailto address=$oxcmp_shop->oxshops__oxinfoemail->value text=$oxcmp_shop->oxshops__oxinfoemail->value|replace:"@":" [at] " encode="hex"}]</span><br>

Ansicht: https://4104.foxido.de/kontakt/

(Du kannst es direkt im Theme, besser aber in einem Child-Theme ändern)

Hi Foxido, genau so habe ich mir das vorgestellt.:slight_smile:

Allerding nutze ich das Roxive Theme und der code ist etwas anders. Ich poste iÍhn einfach mal hier:



[{capture append="oxidBlock_content"}]
    [{if $oView->getContactSendStatus()}]
        [{assign var="_statusMessage" value="PAGE_INFO_CONTACT_THANKYOU1"|oxmultilangassign|cat:" "|cat:$oxcmp_shop->oxshops__oxname->value}]
        [{assign var="_statusMessageSuffix" value="PAGE_INFO_CONTACT_THANKYOU2"|oxmultilangassign}]
        [{include file="message/notice.tpl" statusMessage=$_statusMessage|cat:$_statusMessageSuffix}]
    [{/if}]
    <h1 class="page-header">[{oxmultilang ident="DD_CONTACT_PAGE_HEADING"}]</h1>

    [{assign var="sGoogleMapsAddr" value=$oViewConf->getViewThemeParam('sGoogleMapsAddr')}]
    [{if $sGoogleMapsAddr}]
        <div class="row">
            <div class="col-xs-12">
                <div class="google-maps">
                    <figure>
                        <iframe width="100%" height="400" style="width:100%;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.de/maps?t=m&q=[{$sGoogleMapsAddr|urlencode}]&ie=UTF8&hq=[{$sGoogleMapsAddr|urlencode}]&output=embed"></iframe>
                    </figure>
                </div>
            </div>
        </div>
    [{/if}]

    <div class="row">
        <div class="col-xs-12 col-lg-3 pull-right">
            <h2 class="page-header">[{oxmultilang ident="DD_CONTACT_ADDRESS_HEADING"}]</h2>
            <div itemscope itemtype="http://schema.org/Organization">
                <address>
                    <strong itemprop="name">[{$oxcmp_shop->oxshops__oxcompany->value}]</strong><br>
                    <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
                        <span itemprop="streetAddress">[{$oxcmp_shop->oxshops__oxstreet->value}]</span><br>
                        <span itemprop="postalCode">[{$oxcmp_shop->oxshops__oxzip->value}]</span> [{$oxcmp_shop->oxshops__oxcity->value}]<br>
                        [{$oxcmp_shop->oxshops__oxcountry->value}]<br>
                        <span class="hidden" itemprop="addressLocality">[{$oxcmp_shop->oxshops__oxcity->value}], [{$oxcmp_shop->oxshops__oxcountry->value}]</span>
                    </span>
                    [{if $oxcmp_shop->oxshops__oxtelefon->value}]
                        <strong>[{oxmultilang ident="PAGE_INFO_CONTACT_PHONE"}]</strong> <span itemprop="telephone">[{$oxcmp_shop->oxshops__oxtelefon->value}]</span><br>
                    [{/if}]
                    [{if $oxcmp_shop->oxshops__oxtelefax->value}]
                        <strong>[{oxmultilang ident="PAGE_INFO_CONTACT_FAX"}]</strong> <span itemprop="faxNumber">[{$oxcmp_shop->oxshops__oxtelefax->value}]</span><br>
                    [{/if}]
                    [{if $oxcmp_shop->oxshops__oxinfoemail->value|replace:'@':'(at)'}]
                        <strong>[{oxmultilang ident="PAGE_INFO_CONTACT_EMAIL"}]</strong> <span itemprop="email">[{oxmailto address=$oxcmp_shop->oxshops__oxinfoemail->value}]</span><br>
                    [{/if}]
                    <span class="hidden" itemprop="url">[{$oViewConf->getHomeLink()}]</span>
                </address>
            </div>
        </div>
        <div class="col-xs-12 col-lg-9">
            <h2 class="page-header">[{oxmultilang ident="DD_CONTACT_FORM_HEADING"}]</h2>
            [{include file="form/contact.tpl"}]
        </div>
    </div>

    [{insert name="oxid_tracker" title=$template_title}]
[{/capture}]

[{include file="layout/page.tpl" sidebar="Left"}]


das replace nicht im if (denn da wird ja nur abgefragt, ob es eine Mail-Adresse gibt) sondern eine Zeile tiefer bei der Ausgabe der Mail-Adresse

So konte das eh nicht funktionieren. Rot hätte dorthin gemusst, wo es grün ist:

[{if $oxcmp_shop->oxshops__oxinfoemail->value[B]|replace:'@':'(at)'[/B]}]
                        <strong>[{oxmultilang ident="PAGE_INFO_CONTACT_EMAIL"}]</strong> <span itemprop="email">[{oxmailto address=$oxcmp_shop->oxshops__oxinfoemail->value[B]|replace:'@':'(at)'[/B]}]</span><br>
                    [{/if}]

Ersetze einfach

[{if $oxcmp_shop->oxshops__oxinfoemail->value|replace:'@':'(at)'}]
                        <strong>[{oxmultilang ident="PAGE_INFO_CONTACT_EMAIL"}]</strong> <span itemprop="email">[{oxmailto address=$oxcmp_shop->oxshops__oxinfoemail->value}]</span><br>
                    [{/if}]

mit:

[{if $oxcmp_shop->oxshops__oxinfoemail->value}]
                        <strong>[{oxmultilang ident="PAGE_INFO_CONTACT_EMAIL"}]</strong> <span itemprop="email">[{oxmailto address=$oxcmp_shop->oxshops__oxinfoemail->value text=$oxcmp_shop->oxshops__oxinfoemail->value|replace:"@":" [at] " encode="hex"}]</span><br>
                    [{/if}]

Geil! Es funktioniert!

Vielen lieben Dank an Foxido und das Forum hier.:slight_smile:

[QUOTE=Angelhardt;188328]Geil! Es funktioniert![/QUOTE]

“Sischer datt”, wie der Kölner es sagen würde. Gerne :slight_smile: