Ergebnis 1 bis 19 von 19

Thema: Link "Vom Newsletter abmelden" geht nicht

  1. #1
    Alter Contao-Hase
    Registriert seit
    10.04.2011.
    Ort
    Zürich
    Beiträge
    1.123

    Standard Link "Vom Newsletter abmelden" geht nicht

    Hallo zusammen,

    der Link "Vom Newsletter" abmelden im versandten Newsletter funktioniert irgendwie nicht. Der Link ist:

    http://www.beerpong.de/?email=name@hoster.com

    die abonnenten-verwalten seite lautet aber:
    http://www.beerpong.de/de/service/newsletter.html

    wie kann ich das beheben? Ist ja nicht gerade schön, wenn sich ein Kunde nicht vom Newsletter abmelden kann.

    Viele Grüsse u Danke,
    David

  2. #2
    Contao-Urgestein Avatar von tril
    Registriert seit
    07.01.2010.
    Ort
    Bad Marienberg
    Beiträge
    2.939
    User beschenken
    Wunschliste

    Standard

    Das ist ein aktuell bekanntes Problem, zu dem ich noch nicht gekommen bin.

  3. #3
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Mach das vorerst per htaccess, so das du den Nutzer dahin umleitest.

    Ist auch meine Lösung und klappt wunderbar ;-)

    Code:
      # Rewrite for newsletter
      RewriteCond %{QUERY_STRING} email=(.*) [NC]
      RewriteRule de/service/newsletter.html?email=%1 [L,R=301]
    Gruß Kirsten
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  4. #4
    Alter Contao-Hase
    Registriert seit
    10.04.2011.
    Ort
    Zürich
    Beiträge
    1.123

    Standard

    Zitat Zitat von KATgirl Beitrag anzeigen
    Mach das vorerst per htaccess, so das du den Nutzer dahin umleitest.

    Ist auch meine Lösung und klappt wunderbar ;-)

    Code:
      # Rewrite for newsletter
      RewriteCond %{QUERY_STRING} email=(.*) [NC]
      RewriteRule de/service/newsletter.html?email=%1 [L,R=301]
    Gruß Kirsten
    Danke. Habe es so mal versucht, aber es klappt leider irgendwie nicht. Er leitet mich nirgendwo hin weiter...

    Code:
    ##
    # The following rules are required if you want to pass the language as first
    # URL parameter (added in Contao 2.11). The first rule rewrites an empty URL
    # to the front end controller, the second one adds a missing trailing slash.
    ##
    RewriteRule ^[a-z]{2}/$ index.php [L]
    RewriteRule ^([a-z]{2})$ $1/ [R=301,L]
    
    # Rewrite for newsletter
      RewriteCond %{QUERY_STRING} email=(.*) [NC]
      RewriteRule de/service/newsletter.html?email=%1 [L,R=301]
    </IfModule>
    Was habe ich hier falsch gemacht?

  5. #5
    Contao-Urgestein Avatar von tril
    Registriert seit
    07.01.2010.
    Ort
    Bad Marienberg
    Beiträge
    2.939
    User beschenken
    Wunschliste

    Standard

    Wenn schon dann muss es vor die Standardregel:
    Code:
    # Rewrite for newsletter
    RewriteCond %{QUERY_STRING} email=(.*) [NC]
    RewriteRule de/service/newsletter.html?email=%1 [L,R=301]
    
    RewriteRule ^[a-z]{2}/$ index.php [L]
    RewriteRule ^([a-z]{2})$ $1/ [R=301,L]

  6. #6
    Alter Contao-Hase
    Registriert seit
    10.04.2011.
    Ort
    Zürich
    Beiträge
    1.123

    Standard

    Danke für den Input. Habe es geändert, jedoch funktioniert es leider noch nicht. ich werde weiterhin zur falschen seite weitergeleitet.

    kann mir jemand nochmals helfen wo und wie ich den code anpassen muss? vll als anmerkung: ich habe die option im backend aktiviert, dass die Sprache der URL angehängt wird also das "/de/".

    VIele Grüsse u Danke,
    David

  7. #7
    Contao-Urgestein Avatar von tril
    Registriert seit
    07.01.2010.
    Ort
    Bad Marienberg
    Beiträge
    2.939
    User beschenken
    Wunschliste

    Standard

    Passt die URL de/service/newsletter.html denn überhaupt zu deiner Seite?
    Den Pfad musst du natürlich passend zur richtigen Seite anpassen.

  8. #8
    Alter Contao-Hase
    Registriert seit
    10.04.2011.
    Ort
    Zürich
    Beiträge
    1.123

    Standard

    ja. die seite zu welcher weitergeleitet werden soll ist:

    http://www.beerpong.de/de/service/newsletter.html

    Viele Grüsse u Danke,
    David

  9. #9
    Alter Contao-Hase
    Registriert seit
    10.04.2011.
    Ort
    Zürich
    Beiträge
    1.123

    Standard

    hat sonst noch jemand hilfe? irgendwie will es einfach nicht klappen. hier mal meine HTACCESS

    AddHandler php5-cgi .php
    ##
    # Contao Open Source CMS
    # Copyright (C) 2005-2012 Leo Feyer
    #
    # Formerly known as TYPOlight Open Source CMS.
    #
    # This program is free software: you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation, either
    # version 3 of the License, or (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public
    # License along with this program. If not, please visit the Free
    # Software Foundation website at <http://www.gnu.org/licenses/>.
    #
    # PHP version 5
    # @copyright Leo Feyer 2005-2012
    # @author Leo Feyer <http://www.contao.org>
    # @license LGPL
    ##

    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    <IfModule mod_headers.c>
    Header unset ETag
    </IfModule>

    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
    Order allow,deny
    Deny from all
    </FilesMatch>

    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
    # JavaScript
    AddType application/javascript js jsonp
    AddType application/json json
    # Audio
    AddType audio/ogg oga ogg
    AddType audio/mp4 m4a f4a f4b
    # Video
    AddType video/ogg ogv
    AddType video/mp4 mp4 m4v f4v f4p
    AddType video/webm webm
    AddType video/x-flv flv
    # SVG
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
    # Webfonts
    AddType application/vnd.ms-fontobject eot
    AddType application/x-font-ttf ttf ttc
    AddType font/opentype otf
    AddType application/x-font-woff woff
    # Assorted types
    AddType image/x-icon ico
    AddType image/webp webp
    AddType text/cache-manifest appcache manifest
    AddType text/x-component htc
    AddType application/xml rss atom xml rdf
    AddType application/x-web-app-manifest+json webapp
    AddType text/x-vcard vcf
    AddType application/x-shockwave-flash swf
    </IfModule>

    ##
    # Gzip compression
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_deflate.c>
    # Current Apache versions (>= 2.2)
    <IfModule filter_module>
    FilterDeclare COMPRESS
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
    FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $image/x-icon
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
    FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
    FilterChain COMPRESS
    FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
    </IfModule>
    # Legacy Apache versions
    <IfModule !mod_filter.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
    AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
    </IfModule>
    </IfModule>

    ##
    # Expires headers (for better cache control)
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType text/cache-manifest "access plus 0 seconds"
    ExpiresByType text/html "access plus 0 seconds"
    # Data
    ExpiresByType text/xml "access plus 0 seconds"
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType application/json "access plus 0 seconds"
    # Feed
    ExpiresByType application/rss+xml "access plus 1 hour"
    ExpiresByType application/atom+xml "access plus 1 hour"
    # Media: images, video, audio
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 month"
    ExpiresByType video/ogg "access plus 1 month"
    ExpiresByType audio/ogg "access plus 1 month"
    ExpiresByType video/mp4 "access plus 1 month"
    ExpiresByType video/webm "access plus 1 month"
    # HTC files (css3pie)
    ExpiresByType text/x-component "access plus 1 month"
    # Webfonts
    ExpiresByType application/x-font-ttf "access plus 1 month"
    ExpiresByType font/opentype "access plus 1 month"
    ExpiresByType application/x-font-woff "access plus 1 month"
    ExpiresByType image/svg+xml "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
    # CSS and JavaScript
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    </IfModule>

    ##
    # Add a Vary Accept-Encoding header for the compressed resources. If you
    # modify the file types above, make sure to change them here accordingly.
    # @see http://developer.yahoo.com/performance/rules.html#gzip
    ##
    <IfModule mod_headers.c>
    <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary Accept-Encoding
    </FilesMatch>
    </IfModule>

    ##
    # URL rewriting
    ##
    <IfModule mod_rewrite.c>
    RewriteEngine On

    ##
    # Change the RewriteBase if your Contao installation is in a subdirectoy and
    # the rewrite rules are not working properly. Usage examples:
    #
    # RewriteBase /contao-2.11.0
    # RewriteBase /path/to/contao
    #
    # Depending on your server, you might have to remove the line entirely.
    ##
    RewriteBase /

    ##
    # Uncomment the following lines and replace "domain.com" with your domain
    # name to redirect requests without "www" to the correct domain.
    ##
    RewriteCond %{HTTP_HOST} ^beerpong\.de [NC]
    RewriteRule (.*) http://www.beerpong.de/$1 [R=301,L]

    # Rewrite for newsletter
    RewriteCond %{QUERY_STRING} email=(.*) [NC]
    RewriteRule de/service/newsletter.html [L,R=301]

    ##
    # If you cannot use mod_deflate, uncomment the following lines to load a
    # compressed .gz version of the aggregated Contao JavaScript and CSS files.
    ##
    #AddEncoding gzip .gz
    #<FilesMatch "\.js\.gz$">
    # AddType "text/javascript" .gz
    #</FilesMatch>
    #<FilesMatch "\.css\.gz$">
    # AddType "text/css" .gz
    #</FilesMatch>
    #RewriteCond %{HTTP:Accept-encoding} gzip
    #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
    #RewriteCond %{REQUEST_FILENAME}.gz -f
    #RewriteRule ^(.*)$ $1.gz [QSA,L]

    ##
    # Do not rewrite requests for static files or folders such as style sheets,
    # images, movies or text documents. Do not add the URL suffix here!
    ##
    <FilesMatch "\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|t xt|swf|flv|eot|woff|svg|ttf|pdf|gz)$">
    RewriteEngine Off
    </FilesMatch>

    ##
    # By default, Contao adds ".html" to the generated URLs to simulate static
    # HTML documents. If you change the URL suffix in the back end settings, make
    # sure to change it here accordingly!
    #
    # RewriteRule .*\.html$ index.php [L] # URL suffix .html
    # RewriteRule .*\.txt$ index.php [L] # URL suffix .txt
    # RewriteRule .*\.json$ index.php [L] # URL suffix .json
    #
    # If you do not want to use an URL suffix at all, you have to add a second
    # line to prevent URLs that point to folders from being rewritten (see #4031).
    #
    # RewriteCond %{REQUEST_FILENAME} !-d
    #
    # If you are using mod_cache, it is recommended to use the RewriteRule below,
    # which adds the query string to the internal URL:
    #
    # RewriteRule (.*\.html)$ index.php/$1 [L]
    #
    # Note that not all environments support mod_rewrite and mod_cache.
    ##
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .*\.html$ index.php [L]

    ##
    # The following rules are required if you want to pass the language as first
    # URL parameter (added in Contao 2.11). The first rule rewrites an empty URL
    # to the front end controller, the second one adds a missing trailing slash.
    ##
    RewriteRule ^[a-z]{2}/$ index.php [L]
    RewriteRule ^([a-z]{2})$ $1/ [R=301,L]
    </IfModule>
    wie gesagt, habe ich die Option "Sprache der URL anhängen" in den Backend-Optionen aktiviert - vll liegt es daran, dass der Code nicht geht..

    Viele grüsse u Danke,
    David

  10. #10
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von sepp_a_u Beitrag anzeigen
    # Rewrite for newsletter
    RewriteCond %{QUERY_STRING} email=(.*) [NC]
    RewriteRule de/service/newsletter.html [L,R=301]
    Bitte richtig abschreiben ;-)
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  11. #11
    Contao-Urgestein Avatar von tril
    Registriert seit
    07.01.2010.
    Ort
    Bad Marienberg
    Beiträge
    2.939
    User beschenken
    Wunschliste

    Standard

    Hi, ich habe mir gerade ein Avisota 1.7.1 installiert und versucht das Problem nachzustellen.
    Witzigerweise funktioniert es bei mir korrekt.

  12. #12
    Contao-Nutzer
    Registriert seit
    21.05.2013.
    Beiträge
    7

    Computer Vom Newsletter abmelden working correctly.

    Hallo Leute,
    Ich habe ein Post hier
    https://community.contao.org/de/show...257#post266257

    Ich hoffe, das ist helfen
    B/R
    Wiparat

  13. #13
    Contao-Fan
    Registriert seit
    28.11.2011.
    Ort
    Nürnberg
    Beiträge
    691

    Standard

    Zitat Zitat von wiparat Beitrag anzeigen
    Hallo Leute,
    Ich habe ein Post hier
    https://community.contao.org/de/show...257#post266257

    Ich hoffe, das ist helfen
    B/R
    Wiparat
    PHP-Code:
    Hallo iCodr8,
    I'm new with Contao and Avisota newsletter. I just have made one website with Avisota newsletter, the system working perfectly.
    But there are so many releted objects must be configured correctly as well.
    1. create Module with module type Manage subscribtion 
    2. create page in Site structure
    3. at the page 2. in Articles, add the module from 1.
    4. Subscriber group important sent redirect unsubscriber to 2.
    5. create newsleltter template which located at TL_ROOT/template
    that'
    s all I have done and Avisota newsletter working corretly.

    I hope that help for you
    Ich verstehe nicht 4. und 5. Was ist das? Wo kann ich das einstellen?
    Im Tal der Ahnungslosen angelangt, kann mir jemand den Weg ins Licht zeigen?

    Danke

  14. #14
    Contao-Nutzer
    Registriert seit
    21.05.2013.
    Beiträge
    7

    Standard

    Hallo my-om,
    4. is Newsletter/Subscribers/New Distribution List, at New Distribution List there is one section "Manage Subscription Page", here set redirect to 2.(Page that contain Module with module type Manage subscribtion)
    5. incase of the new newsletter template needed then create the new newsletter template and put at TL_ROOT/template

    hope that help:-)
    you can contact me: ting@kasan.ch if I can help.

    Ting

  15. #15
    Contao-Nutzer
    Registriert seit
    23.02.2013.
    Beiträge
    17

    Standard

    Zitat Zitat von tril Beitrag anzeigen
    Hi, ich habe mir gerade ein Avisota 1.7.1 installiert und versucht das Problem nachzustellen.
    Witzigerweise funktioniert es bei mir korrekt.
    Hallo, ich habe Avisota 1.7.2 und Contao 2.11.10 am laufen und habe auch diesen Fehler:

    http://domain.de/?email=emailadresse

    und leitet mich somit immer wieder auf die Startseite und meldet den User nicht ab, hat jemand eine Idee woran dies liegen könnte und wie es behoben werden kann?

    Grüße
    Andreas

  16. #16
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    siehe Post Nr.: 10
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  17. #17
    Contao-Nutzer
    Registriert seit
    23.02.2013.
    Beiträge
    17

    Standard

    @KATgirl

    Das hilft mir nun auch nicht wirklich weiter, da mir immer noch die Newsletterliste fehlt, damit der User sofort automatisch ausgetragen wird.

    http://domain.de/newsletter.html?ema...oken=verteiler

    @All

    Ich habe mir aber mal den Case angeschaut und festgestellt, dass folgendes bei mir nicht funktioniert:

    AvisotaInsertTag.php
    PHP-Code:
    case 'unsubscribe':
                    case 
    'unsubscribe_url':
                        
    $strAlias false;
                        
    /*    if ($arrCurrentRecipient['source'] == 'list')
                            {  */
                            
    $objRecipientList $this->Database
                                
    ->prepare("SELECT * FROM tl_avisota_recipient_list WHERE id=2")
                                ->
    execute($arrCurrentRecipient['sourceID']);
                                if (!
    $objRecipientList->next())
                            {
                                return 
    '';
                                }
                            
    $strAlias $objRecipientList->alias;
                            
    $objPage $this->getPageDetails($objRecipientList->subscriptionPage);
                            
    /*            }
                        else if ($arrCurrentRecipient['source'] == 'mgroup')
                        {
                            if ($objCategory->subscriptionPage > 0)
                            {
                                $objPage = $this->getPageDetails($objCategory->subscriptionPage);
                            }
                            }  */ 
    So entsteht zwar der richtige Link, aber dies ist ja auch keine Lösung, so wie ich es sehe, werden keine Daten übergeben. Ich habe die Teile auskommentiert um zu testen, ob es dann funktioniert.

    Er kommt bei mir nicht durch die IF Schleife
    PHP-Code:
    if ($arrCurrentRecipient['source'] == 'list'
    .

    Sobald ich die rausnehme muß ich noch die DB Abfrage folgendermaßen ändern und ich habe das entsprechende Ergebnis.
    PHP-Code:
    tl_avisota_recipient_list WHERE id=? 
    nach

    PHP-Code:
    tl_avisota_recipient_list WHERE id// 2 ist eine Beispielverteiler 
    Vielleicht hat jetzt einer eine Idee, woran es liegen könnte. Freue mich über jede Hilfe.

    Danke und Grüße
    Andreas

  18. #18
    Contao-Fan
    Registriert seit
    28.11.2011.
    Ort
    Nürnberg
    Beiträge
    691

    Computer Ich hatte auch die ähnliche Probleme Hier der Link zur Lösung

    https://community.contao.org/de/show...316#post269316

    Ich hoffe der Thread hilft dir.

    Gruß Karlheinz
    Geändert von xchs (10.08.2013 um 16:34 Uhr) Grund: BB-Formatierungen entfernt.

  19. #19
    Contao-Nutzer Avatar von Coda
    Registriert seit
    18.08.2010.
    Ort
    Am Schreibtisch
    Beiträge
    32

    Standard

    Gleiches Problem bei mir.
    Contao 2.11.6
    Avisota 1.7.2
    DC_Memory 0.6.0

    Ich habe es im Mail-Template (bei mir mail_html_extended.html5) so gelöst - der Abmeldelink ist ja schon recht wichtig:

    Code:
    <?php $urladdemail = $this->replaceInsertTags( '{{newsletter::unsubscribe_url}}' ); ?>
    <a href="{{link_url::*}}<?php echo strstr ($urladdemail,'?'); ?>"><?php echo $GLOBALS['TL_LANG']['tl_avisota_newsletter']['unsubscribe'] ?></a>
    <?php unset($urladdemail); ?>
    * Sternchen im Code durch ID der Abmeldeseite ersetzen

    Auch im Plain-Template nicht vergessen (in meinem Fall mail_plain_extended.html5):
    Code:
    <?php echo $GLOBALS['TL_LANG']['tl_avisota_newsletter']['unsubscribe'] . "\n" ?>
    <?php $urladdemail = $this->replaceInsertTags( '{{newsletter::unsubscribe_url}}' ); ?>
    [{{link_url::*}}<?php echo strstr ($urladdemail,'?'); ?>]
    <?php unset($urladdemail); ?>

    Gut ist dabei, dass dieser Code selbst dann den richtigen Abmeldelink generiert, wenn Avisota durch Geisterhand wieder den richtigen Abmeldelink generieren sollte.
    Geändert von Coda (22.08.2013 um 19:27 Uhr)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •