Jump to content

Recommended Posts

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

image.thumb.png.5815240a988aa2660d422e4481a0101f.png

 


 

Share this post


Link to post
Share on other sites

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?

 

Share this post


Link to post
Share on other sites

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.


 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Posted (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.

image.thumb.png.23f4f8943b39b8665ba1acb3e0a1f06f.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites

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 by Fredi

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

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 by JcMagpie

 

Share this post


Link to post
Share on other sites

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.


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites
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!


 

Share this post


Link to post
Share on other sites

"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
 

211121.jpg

211015.jpg


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

Problem in Hcrome.


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

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.


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

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?


 

Share this post


Link to post
Share on other sites

OK. I remove my question.
Thank you for your time.


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

Thank You Zahid!

 


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites

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.

image.png.eca7be6a47eaa1ba8115914099d14698.png

image.png.e0449140521f96b92dfab6d460dc28b6.png

 

AdBlock Check Phoenix V1.0.zip


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×