♥JcMagpie Posted August 2, 2019 Share Posted August 2, 2019 JcM Header Stock Banner V1.0 Phoenix This is a simple header add-on that lets you place banner at the top of your site. This makes use of the stock banner manager that comes with osC. It’s a no core change add-on. Simply install and turn on like any other add-on. Once it’s installed simply go to admin tools/banner manager and add your banners. Make sure to add it to the header group or it will not work. These can be text or images just follow instructions in admin. Remember to add your URL link for each banner or you will get a 404 error. The banner can be configured in admin and you can select which pages it is to be shown on. The text message is optional and can be turned on or off in admin. The actual text is set in the language file. That’s it enjoy. It has only been tested on Phoenix 1.0.1.X only. Can be seen working on this custom test site NOTE: This is NOT the official test site valquiria23 1 Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 8, 2019 Share Posted October 8, 2019 Just installed this on a Phoenix 1.0.2.5 with the below settings and it forces the breadcrumb to appear below this only. Logo - Order; 10, Width; 4 Banner - Order; 20 Width; 8 Breadcrumb - Order; 40 Width; 12 Any thoughts on this before I start digging into it? Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 8, 2019 Author Share Posted October 8, 2019 Sorry but not tested on 1.0.2.5 works fine on 1.0.2.2 post or pm link to site as got to be some issue with settings. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 8, 2019 Author Share Posted October 8, 2019 Must be an issue with 1.0.2.5 or your set up as it's fine on 1.0.2.2 with width set to 8 just tested see below Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 8, 2019 Share Posted October 8, 2019 Changed this <div id="header-banner" class="img-fluid " style="text-align: center;"> <?php echo tep_display_banner('static', $banner); ?> <?php if (MODULE_CONTENT_HEADER_JCM_STOCKBANNER_TEXTDISPLAY == 'yes') {?> <?php echo MODULE_CONTENT_HEADER_JCM_STOCKBANNER_TITLEB1?> <?php echo MODULE_CONTENT_HEADER_JCM_STOCKBANNER_TEXTB1?> </div> To this <?php echo tep_display_banner('static', $banner); ?> <?php if (MODULE_CONTENT_HEADER_JCM_STOCKBANNER_TEXTDISPLAY == 'yes') {?> <?php echo MODULE_CONTENT_HEADER_JCM_STOCKBANNER_TITLEB1?> <?php echo MODULE_CONTENT_HEADER_JCM_STOCKBANNER_TEXTB1?> and it worked. For some reason it doesn't like that DIV Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 8, 2019 Author Share Posted October 8, 2019 (edited) Should be no need to remove a div but hey if it work's for you then all good. sorry missing image in last post, as you can see works fine as is. Edited October 8, 2019 by JcMagpie Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 (edited) Interesting fact. If the "WEB Filter AVIRA" module is installed in your browser, banner display is blocked. This is blocked as a third-party ad. How to get around this? Edited October 22, 2019 by Fredi Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 (edited) Nothing new in that Fredi, it's all down to how you set it up, adblocker will also block banners if settings are strict. Turn off the built in adblocker and they should show fine or add your site as an exception to the rule allowing ads from your own site. Edited October 22, 2019 by JcMagpie Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 I understand it. You need to think about how to get around this. Maybe you need to change the name of the Banner Manager? I use my banners to advertise my products. I advertise myself. Let's think about how this can be solved. Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 Just checked on my test site and my banners are working fine with adblocker. pm a link to your so i can check. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 6 minutes ago, Fredi said: You need to think about how to get around this. Not sure I understand if you install an ad blocker then you cannot complain when it works! Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 "WEB Filter AVIRA" on to all sites. Image 1 "WEB Filter AVIRA" off to my site. Image 2 Test please my tested Phoenix V 1.2.0.5 https://fenix.arbat22.com/index.php Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 works fine on my laptop in firefox with adblocker installed. You must have very strict setting on your machine. Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 Problem in Hcrome. Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 Tested in chrome with another adblocker and works with that also. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 Looks like you are running some tracking add-ons on your site these can cause problems with some virus checkers. Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 I installed your module and it didn’t work. I have been looking for a reason for a long time. And I found her. We don’t know how browsers are configured for our customers and we don’t know whether they will see our banners or not. Therefore, I turned to you to try to find a solution to this problem. There is a problem. Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 Sorry I don't have a solution for you, also I would not wish to make one. If a customer selects to block adverts then who are we to bypass that? Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 OK. I remove my question. Thank you for your time. Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 I do not agree with using this but if you wish to use it on your website that's up to you. Anti Adblock Script https://antiblock.org/ Fredi 1 Quote Link to comment Share on other sites More sharing options...
Fredi Posted October 22, 2019 Share Posted October 22, 2019 Thank You Zahid! Quote Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.Best regards, Fredi Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 22, 2019 Author Share Posted October 22, 2019 This is also an option. It will display a message to the user to disable adblocker to see all the content. I personaly have not used it. You can also find some simple js scripts to do the same thing also. https://github.com/sitexw/BlockAdBlock Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 23, 2019 Author Share Posted October 23, 2019 For anyone else who feels the need to check for ad-blockers this is a simple implamentation of this detection script for Phoenix. https://github.com/InteractiveAdvertisingBureau/AdBlockDetection It's implamented using 2 sitewide hooks so no core changes. It will give you something to play with and refine for your site. It detects if ad-blocker is active in the customers browser and displays a message in a modal window which the customer can dismiss. It's not in the apps market and I do not plan to support it beyond what is posted here. You are free to edit the hooks code as you like. AdBlock Check Phoenix V1.0.zip Fredi 1 Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted October 23, 2019 Author Share Posted October 23, 2019 Small update to stop the message from being annoying! added session control so it only shows once each session. Only the AdText hook file needs to be updated. AdBlock Check Phoenix V1.1.zip Fredi 1 Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted October 24, 2019 Share Posted October 24, 2019 @JcMagpie as the stock banner manager is being removed as of Phoenix 1.0.3.0 do you plan to update this and add an admin area? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.