♥JcMagpie Posted August 20, 2019 Share Posted August 20, 2019 JcM Header Carousel Banner V1.0 Phoenix 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. the display that's it enjoy! valquiria23 and kgtee 2 Quote Link to comment Share on other sites More sharing options...
dculley Posted January 19, 2020 Share Posted January 19, 2020 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. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted January 19, 2020 Share Posted January 19, 2020 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. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted January 19, 2020 Author Share Posted January 19, 2020 Will NOT work with anything over Phoienix 1.0.4.0. I would recomend using the one that has no need for old core banner code. JcM Header Banner Carousel V1.2 Phoenix Quote Link to comment Share on other sites More sharing options...
dculley Posted January 19, 2020 Share Posted January 19, 2020 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. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted January 19, 2020 Author Share Posted January 19, 2020 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. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted January 20, 2020 Author Share Posted January 20, 2020 (edited) The add-on has been updated to V1.3. JcM H Stock Carousel Banner V1.3 Phoenix 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 January 20, 2020 by JcMagpie Quote Link to comment Share on other sites More sharing options...
dculley Posted January 20, 2020 Share Posted January 20, 2020 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; useless in todays ecommerce climate, need code update or just simple removal 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. Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted January 20, 2020 Author Share Posted January 20, 2020 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. JcM Header Banner Carousel V1.2 Phoenix 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. 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.