Jump to content
JcMagpie

Support thread for JcM Header Carousel Banner V1.0 Phoenix

Recommended Posts

This is a header add-on that lets you place a carousel banner at the top of your site.

This makes use of the stock banner manager that comes with osC. It will show 4 banners.

It requires core changes so only use if you are happy to make these. A modification is required on the admin side to display the banner id’s in the banner manager so you can select which to display. You can do a file compare or simply replace the files with those provided.

In public_html/admin/banner_manager.php around line 320 find

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_GROUPS; ?></td>

and below this add,

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ID; ?></td>

around line 349 find

<td class="dataTableContent" align="right"><?php echo $banners['banners_group']; ?></td>

and below this add,

<td class="dataTableContent" align="right"><?php echo $banners['banners_id']; ?></td>

Then in /public_html/admin/includes/languages/english/banner_manager.php

at the end of the file just before the ?>

add

define('TABLE_HEADING_ID', 'Banner ID');

That’s it for the core changes. Now 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.

Select the banner id’s to be shown in the new banner manger and enter them in admin. These are the banners that will then be displayed in the carousel.

The overlay text for each banner can be set in the language file.

You can also select which pages it is to be shown on.

That’s it enjoy.

It has only been tested on Phoenix 1.0.2.0 only.

Can be seen working on this custom test site

setting banners.

image.thumb.png.f59eb2141c071b434afb1233e0e96e81.png

 

the display

image.thumb.png.53087118c5b7698a6cf414c2acc50677.png

that's it enjoy!


 

Share this post


Link to post
Share on other sites

This makes use of the stock banner manager that comes with osC.

Phx dos not have this.  Or any of its files.  I don't know how to turn it on.  I opened the admin and it is not there. 

 

Share this post


Link to post
Share on other sites
5 hours ago, dculley said:

This makes use of the stock banner manager that comes with osC.

Phx dos not have this.  Or any of its files.  I don't know how to turn it on.  I opened the admin and it is not there. 

 

I'm pretty sure the developer on this made a version that adds the stock banner manager back in.

Share this post


Link to post
Share on other sites

The above link does not have the main program to run.  It only has 2 files as if the Phx already has one loaded and Phx doesn't.

Phx doesn't have a banner program pre loaded or in tools to turn on. 

 

Share this post


Link to post
Share on other sites
28 minutes ago, dculley said:

The above link does not have the main program to run.  It only has 2 files as if the Phx already has one loaded and Phx doesn't.

It only has 3 files language, class, template. That is all that is required for an add-on. If your not sure what to do then please ask one of the developers to install it or another one for you.

I have downladed and checked the add-on and all required files are present.


 

Share this post


Link to post
Share on other sites

The add-on has been updated to V1.3.

It is for 1.0.4.3 and below only. Not tested on anything else.

It will show 8 banners. It requires core changes so be very careful when installing. The removed stock banner code is now included so just copy over the files provided. It is for Phoenix 1.0.4.3 only so if you have another version you will need to compare the files and make changes as required.

As the tables used by the stock banner have been removed you will need to use the provided SQL file and using phpMyadmin add the required tables to your database.

NOTE:- BACKUP YOUR DATA BEFORE YOU MAKE ANY CHANGES TO YOUR DB you have been warned!

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.

Select the banner id’s to be shown in the new banner manger and enter them in admin. These are the banners that will then be displayed in the carousel.

The overlay text for each banner can be set in the language file.

You can also select which pages it is to be shown on.

That’s it enjoy.

It has only been tested on Phoenix 1.0.4.3 only.

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites

FYI

Burt had removed it from 1.0.4.2

burt said:

Many things are being removed from core - these are things that are either;

  1. useless in todays ecommerce climate, need code update or just simple removal

  2. being abused by addon makers, fitting a square peg into a round hole

In the case of banner manager, BOTH of the above apply.
It was, shall we say, built in 1999 and never really updated - and then abused by "carousel" type addons (yes, I'm guilty of abusing it too).

To speed up replacement/better code, we need all shopowners to support the project and its coders.

Go to this post

Just thought you should know.

 

Share this post


Link to post
Share on other sites
21 minutes ago, dculley said:

Just thought you should know.

I have no involvement with Phoenix or how it is beeing "improved/updated".

If you need a marketing banner then you can have one that works without any Phoenix core code changes or need for old osC code such as this one.

Or you can add back the banner manager code and use this one which still uses the banner manager code. It up to you to decide.

JcM H Stock Carousel Banner V1.3 Phoenix

Just remember that if you keep updating Phoenix then more old code may be removed in future "improvments/updates" that may cause you problems.


 

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

×