Giter Club home page Giter Club logo

contao-banner-bundle's Introduction

contao-banner-bundle's People

Contributors

bugbuster1701 avatar dmolineus avatar joehi avatar qzminski avatar stefansl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

contao-banner-bundle's Issues

FE Route mit Parameter definieren

statt:
/bbfebanner/banclicks?bid=42 bzw. /bbfebanner/banclicks?defbid=42
dann
/bbfebanner/banclicks/bid/42 bzw. /bbfebanner/banclicks/defbid/42

[Insight] Code should not be duplicated - in src/Resources/…/classes/DcaBanner.php, line 250

in src/Resources/contao/classes/DcaBanner.php, line 250

The next 47 lines appear both in src/Resources/contao/classes/DcaBanner.php:250 and src/Resources/contao/classes/DcaBanner.php:391.

    
        if ($arrImageSize === false)
        {
            //Interne Banner Grafik
            $output = '<div class="mod_banner_be">' .
                    '<div class="name"><span style="color:red;">'.$GLOBALS['TL_LANG']['tl_banner']['tl_be_read_error'].'</span><br />'.$this->urlEncode($objFile->path).'</div>' .
                    '<div class="right">' .
                    '<div class="left">'.
                    '<div class="published_head">'.$GLOBALS['TL_LANG']['tl_banner']['banner_published'][0].'</div>'.
                    '<div class="published_data">'.($row['banner_published'] =='' ? $GLOBALS['TL_LANG']['tl_banner']['tl_be_no'] : $GLOBALS['TL_LANG']['tl_banner']['tl_be_yes']).' </div>'.
                    '</div>'.

Posted from SensioLabsInsight

Is this bundle use ImageSize?

It seems that in banner ImageSize does not work [completely]? I mean it use only main ImageSize and not Media queries.

Also, it does not use alt and title form file Meta data.

Contao 4.9 - Backend - Internal Server Error - Attempted to load class "Imagick" from namespace

Hallo,

ich habe eine Seite inkl. Banner-Erweiterung auf Contao 4.9 upgedatet.

Installiert ist bugbuster/contao-banner-bundle in Version 1.1.0.

Auf meinem Server lief alles tutti (All-Inkl) nun auf dem Kundenserver (Hetzner) kann ich die einzelnen Banner nicht mehr bearbeiten weil ein Server-Fehler erscheint. Die Übersicht und die Vorschaubilder sind sichtbar, nur das einzelne Element lässt sich nicht bearbeiten wenn ein Bild verknüpft ist. Banner ohne Bilder gehen.

Fehler: Attempted to load class "Imagick" from namespace "BugBuster\Banner". Did you forget a "use" statement for another namespace?

Laut PHPInfo ist imagick aktiv:
imagick module enabled
imagick module version 3.4.4

Log:

[2020-03-30 12:22:02] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"http://develop.example.com/contao?act=edit&do=banner&id=12&ref=-j9w9_DH&rt=glaT3ZcWXp2Ta-H3UjBPv6wru0z-wAd9S0-RlWLN7WE&table=tl_banner","method":"GET"} []
[2020-03-30 12:22:02] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "Imagick" from namespace "BugBuster\Banner". Did you forget a "use" statement for another namespace?" at /usr/www/users/xxx/example_2019/vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/DcaBanner.php line 566 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Attempted to load class \"Imagick\" from namespace \"BugBuster\\Banner\".\nDid you forget a \"use\" statement for another namespace? at /usr/www/users/xxx/example_2019/vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/DcaBanner.php:566)"} []

Ich habe den Debug-Modus via Manager aktiviert, bekomme aber keine weiteren Details im Dev-Log zum dem Fehler. Die aktuellen Meldungen betrefen die users-json. Ich kann die Meldungen gerne posten, sehe aber keine Bezug zum Banner-Modul.

C4.10-RC2: ServiceNotFoundException

Bei internem Banner
Bei Aufruf von \System::getContainer()->get('contao.routing.url_generator');
kommt:

ServiceNotFoundException
You have requested a non-existent service "contao.routing.url_generator". 
Did you mean this: "contao.slug.generator"?

Workaround:
config/config.yml

contao:
    prepend_locale: false

Error bei internem Banner mit Umlaut/Leerzeichen im Dateinamen

Banner anlegen und speichern. Statt der Übersicht kommt dann:
Internal Server Error
/files/bilder/09_R%C3%BCdiger-Kaminski_Feldhase.jpg does not exist
at /vendor/contao/image/src/Image.php:59

Dateiname ist "09_Rüdiger-Kaminski_Feldhase.jpg"
Contao 4.4.21

Using of the image meta data (optional)

alt and title are filled from the banner definition.
alt = Banner Name
title = Banner Comment
If these values are not set there, the meta data would be possible as an alternative

  • Checkbox for optional using meta data
  • language files
  • Migration, for default status of the field, depending on the fields "banner name" and "banner comment"
  • using meta data (optional), if necessary and possible
  • view status overwrite in backend banner overview
  • update manual

User Deprecated: Using deserialize()

User Deprecated: Using deserialize() has been deprecated and will no longer work in Contao 5.0. Use StringUtil::deserialize() instead.

vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/BannerSingle.php:377 {▶}
vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/BannerInsertTag.php:239 {▶}
vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/BannerInsertTag.php:110 {▶}

[Insight] Code should not be duplicated - in src/…/modules/ModuleBannerStatistics.php, line 275

in src/Resources/contao/modules/ModuleBannerStatistics.php, line 275

The next 22 lines appear both in src/Resources/contao/modules/ModuleBannerStatistics.php:275 and src/Resources/contao/modules/ModuleBannerStatistics.php:360.

                }
                else
                {
                    $Banner['banner_image'] = \Image::get($this->urlEncode($objFile->path), $intWidth, $intHeight,'proportional');
                }
                $arrBannersStat['banner_id'       ]   = $Banner['id'];
                $arrBannersStat['banner_style'    ]   = '';
                $arrBannersStat['banner_name'     ]   = specialchars(ampersand($Banner['banner_name']));
                $arrBannersStat['banner_alt'      ]   = specialchars(ampersand($Banner['banner_name']));
                $arrBannersStat['banner_title'    ]   = $Banner['banner_url'];
                $arrBannersStat['banner_url'      ]   = (strlen($Banner['banner_url']) <61 ? $Banner['banner_url'] : substr($Banner['banner_url'], 0, 28)."[...]".substr($Banner['banner_url'],-24,24) );

Posted from SensioLabsInsight

[Insight] Code should not be duplicated - in src/Resources/…/classes/BannerExternal.php, line 90

in src/Resources/contao/classes/BannerExternal.php, line 90

The next 95 lines appear both in src/Resources/contao/classes/BannerExternal.php:90 and src/Resources/contao/classes/BannerInternal.php:115.

            'srcset' => \StringUtil::specialchars(ampersand($FileSrc))
        );
        $picture['alt']   = \StringUtil::specialchars(ampersand($this->objBanners->banner_name));
        $picture['title'] = \StringUtil::specialchars(ampersand($this->objBanners->banner_comment));
        
        $arrImageSize[0] = $arrImageSizenNew[0];
        $arrImageSize[1] = $arrImageSizenNew[1];
        $arrImageSize[3] = ' height="'.$arrImageSizenNew[1].'" width="'.$arrImageSizenNew[0].'"';
        
        $objReturn = new \stdClass;
        $objReturn->FileSrc = $FileSrc;

Posted from SensioLabsInsight

Linking to event page

When trying to link to an event page within the site as an external link you get a 404 error.

[Insight] PHP methods should not contain too much logic

9% of all methods have more than 50 lines. This violation is raised when more than 5% methods are too long.

Interne Links über app_dev.php falsch

  • Redirect releativ zu aufgerufene Route lenkt falsch um (app_dev.php/route/action/seite.html = 404
  • Anzeige im Backend, app_dev.php in der Bannerziel-URL: app_dev.php/zweiteseite.html

ampersand() leads to incorrect redirect url

Hello,

we're currently having a problem with the following line

$banner_url = ampersand($objBanners->banner_url);

which transforms

https://example.org?utm_source=something&utm_medium=something&utm_campaign=something

to

https://example.org?utm_source=something&amp;utm_medium=something&amp;utm_campaign=something

And this way the campaign doesn't track.

Is it okay to remove the ampersand() call?

Bye Defcon0

Contao 4.4.24: Installation fehlgeschlagen

die Installation der Extension hat folgenden Fehler geworfen:

In FileLoader.php line 168:

[Semantical Error] The annotation "@sensio\Bundle\FrameworkExtraBundle\Conf
iguration\Route" in class BugBuster\BannerBundle\Controller\BannerFeControl
ler does not exist, or could not be auto-loaded in /www/htdocs/w0146c19/web
pages/svnrw/dev/vendor/bugbuster/contao-banner-bundle/src/Controller (which
is being imported from "/www/htdocs/xxxxx/xxxx/xxxx/dev/vendor/bug
buster/contao-banner-bundle/src/ContaoManager/../Resources/config/routing.y
ml"). Make sure annotations are installed and enabled.

In AnnotationException.php line 54:

[Semantical Error] The annotation "@sensio\Bundle\FrameworkExtraBundle\Conf
iguration\Route" in class BugBuster\BannerBundle\Controller\BannerFeControl
ler does not exist, or could not be auto-loaded.

Using "ampersand()" has been deprecated

User Deprecated: Since contao/core-bundle 4.10: Using "ampersand()" has been deprecated and will no longer work in Contao 5.0. Use "Contao\StringUtil::ampersand()" instead.

  • 2x in src/Resources/contao/classes/DcaBanner.php
  • src/Resources/contao/classes/BannerInternal.php:147
  • src/Resources/contao/classes/BannerSingle.php:404
  • src/Resources/contao/classes/BannerInsertTag.php:244
  • src/Resources/contao/classes/BannerInsertTag.php:110

[Insight] Code should not be duplicated - in src/Resources/…/classes/DcaBanner.php, line 210

in src/Resources/contao/classes/DcaBanner.php, line 210

The next 31 lines appear both in src/Resources/contao/classes/DcaBanner.php:210 and src/Resources/contao/classes/DcaBanner.php:251.

            case 1: // GIF
            case 2: // JPG
            case 3: // PNG
                $output = '<div class="mod_banner_be">' .
                        '<div class="name"><img alt="'.\StringUtil::specialchars(ampersand($row['banner_name'])).'" src="'. $banner_image .'" height="'.$intHeight.'" width="'.$intWidth.'" /></div>' .
                        '<div class="right">' .
                        '<div class="left">'.
                        '<div class="published_head">'.$GLOBALS['TL_LANG']['tl_banner']['banner_published'][0].'</div>'.
                        '<div class="published_data">'.($row['banner_published'] =='' ? $GLOBALS['TL_LANG']['tl_banner']['tl_be_no'] : $GLOBALS['TL_LANG']['tl_banner']['tl_be_yes']).' </div>'.
                        '</div>'.
                        '<div class="left">' .

Posted from SensioLabsInsight

[Contao 4.7] None of the chained routers were able to generate route

None of the chained routers were able to generate route: Route 'bugbuster_banner_frontend_clicks' not found

 (1/1) RouteNotFoundException

None of the chained routers were able to generate route: Route 'bugbuster_banner_frontend_clicks' not found
in ChainRouter.php line 253

at ChainRouter->generate('bugbuster_banner_frontend_clicks', array())in Template.php line 316

at Template->route('bugbuster_banner_frontend_clicks')in mod_banner_list_dsb.html5 line 13

Forum

Deprecated: specialchars()

User Deprecated: Using specialchars() has been deprecated and will no longer work in Contao 5.0. Use StringUtil::specialchars() instead.

Bildgrößen greifen nicht

Ich habe ein Logo mit dem Banner-Modul eingebunden und mit einer Bildgröße versehen.
Bildschirmfoto 2019-07-01 um 15 55 55

Leider wird im Frontend die Größe nicht neu berechnet.
Bildschirmfoto 2019-07-01 um 15 57 41

Der Log gibt dazu keine Informationen preis.

Contao 4.4.37
Banner: 1.0.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.