Re: Scheduled Events Add-On
Quote:
Originally Posted by
dbltoe
And, "The Lord helps those who help themselves."
and fools rush in blah blah :D
sounds like the add pages mod is more trouble than it's worth and as for the zen 4 dummies I agree luckily I have the fix from Clyde from when I was playing with the mod, and besides I've never liked the more info side box. I'd much prefer a way of putting links to pages 1,2,3,4,5,6,7, whatever in the information side box where I feel they belong not in a seperate side box. One thing that drives me bonkers :frusty: is having to roam round a site looking for the information I need, much prefer stuff all in one place. might give the About Us mod a go as you can clone new pages with it or am I asking for problems.
Re: Scheduled Events Add-On
Quote:
Originally Posted by
dbltoe
Timed out before I remembered your need for the UK date format.
While doing the changes to the includes/languages/custom/english.php from the events mod suggested in my last post, don't forget to "fix" the date format in lines 23 and 24 to match what you need for the UK.
sorted that thanks
Re: Scheduled Events Add-On
Quote:
Originally Posted by
dbltoe
And, "The Lord helps those who help themselves."
It's always a good idea to compare mods and find out what files they have in common before using them. Especially when modifying a live shop.
Some use winmerge, beyondcompare, or (paid) ultracompare to make sure the commonalities are found and dealt with properly.
Using one of those, you'll find that the add pages mod uses a modified includes/languages/custom/english.php as does the events mod. The english.php file holds defines specific to the English language. The variables (in ALL_CAPS format) are set so that they can be called when needed and only need to be defined once. When you see "BOX_INFORMATION_EVENTS" or something similar, it tells you that a define has failed or doesn't exist.
The english.php file provided with the add pages mod is an older version and has an addition to the footer that is (IMHO) stretching the definition of Designed By. It also modifies a core file - includes/filenames.php. This means that an upgrade will wipe out the changes and break the mod.
I would first take the english.php file from the events mod and do the following:
Around line 148, replacewithThen, take the includes/extra_datafiles/extra_pages_filenames.php included in the events mod and replacewithThen replace the includes/filenames.php that came with the add pages mod with the original includes/filenames.php that came with your version of Zen Cart.
Doing both these things will allow the mods to work together and not be broken by a future upgrade.
Just tried the alterations on my test wamp site and just got a white screen :frusty: think I'll look into using the FAQ MOD for my extra pages
Re: Scheduled Events Add-On
Quote:
Originally Posted by
discoverytdi
Just tried the alterations on my test wamp site and just got a white screen :frusty: think I'll look into using the FAQ MOD for my extra pages
sorted just uploaded this part
// information box text in sideboxes/more_information.php - were TUTORIAL_
define('BOX_HEADING_MORE_INFORMATION', 'More Information');
define('BOX_INFORMATION_PAGE_2', 'Page 2');
define('BOX_INFORMATION_PAGE_3', 'Page 3');
define('BOX_INFORMATION_PAGE_4', 'Page 4');
define('BOX_INFORMATION_PAGE_5', 'Page 5');
define('BOX_INFORMATION_PAGE_6', 'Page 6');
define('BOX_INFORMATION_PAGE_7', 'Page 7');
and it solved it please tell me that come the upgrade to zencart 1.5 I won't have to do this again, but i'll put it in my events file just in case. NURSE IN NEED A BIGGER BOOK CASE :D
Re: Scheduled Events Add-On
Quote:
Then, take the includes/extra_datafiles/extra_pages_filenames.php included in the events mod and replace
Quote:
<?php
// $Id: extra_pages_filenames.php 2008-12-31 08:07:26Z dbltoe $
// define the extra page filenames
define('FILENAME_DEFINE_EVENTS', 'define_events');
define('FILENAME_EVENTS', 'events');
EndQuote
with
Quote:
<?php
// $Id: extra_pages_filenames.php 2008-12-31 08:07:26Z dbltoe $
// define the extra page filenames
define('FILENAME_DEFINE_EVENTS', 'define_events');
define('FILENAME_EVENTS', 'events');
define('FILENAME_DEFINE_PAGE_5', 'define_page_5');
define('FILENAME_DEFINE_PAGE_6', 'define_page_6');
define('FILENAME_DEFINE_PAGE_7', 'define_page_7');
EndQuote
Then replace the includes/filenames.php that came with the add pages mod with the original includes/filenames.php that came with your version of Zen Cart.
Doing both these things will allow the mods to work together and not be broken by a future upgrade.
Did you do the other part? If you did not, then the next upgrade will break the cart.
Re: Scheduled Events Add-On
Quote:
Originally Posted by
dbltoe
Did you do the other part? If you did not, then the next upgrade will break the cart.
no cause when I did the other 2 changes they broke the site, . not sure if it's related to the change of host as I've just notice that the rma mods missing from the infomation sidebox the files and everything are there it's just not showing so I'll will try them one by one and see what hapens
Re: Scheduled Events Add-On
Quote:
Originally Posted by
discoverytdi
no cause when I did the other 2 changes they broke the site, . not sure if it's related to the change of host as I've just notice that the rma mods missing from the infomation sidebox the files and everything are there it's just not showing so I'll will try them one by one and see what hapens
and based on your post you didn't fully investigate the error you got and instead just reversed the code.. the way to resolve the error is to checkout the error logs in your cache to see why you got the blank screen..
blank screen = error
But going back to what dbltoe originally posted it sounds like you have several mods modifying the same files and you are not merging all the code in these common files correctly. this is why after installing some mods or making some changes, that some of the code from one or another or your add-ons is being wiped out. If you are not using Winmerge (free) or Beyond Compare (paid) to compare common files when installing mods, you will struggle mightily as you setup your store..
Re: Scheduled Events Add-On
Quote:
Originally Posted by
DivaVocals
and based on your post you didn't fully investigate the error you got and instead just reversed the code.. the way to resolve the error is to checkout the error logs in your cache to see why you got the blank screen..
blank screen = error
But going back to what dbltoe originally posted it sounds like you have several mods modifying the same files and you are not merging all the code in these common files correctly. this is why after installing some mods or making some changes, that some of the code from one or another or your add-ons is being wiped out. If you are not using Winmerge (free) or Beyond Compare (paid) to compare common files when installing mods, you will struggle mightily as you setup your store..
Thanks Diva you are probably right I've not had any problems till now as the mods I have haven't caused problems extra sideboxes IH3 and zen light box etc, will have to read up on winmerge and use it more often in future. the more I use zencart the more I learn still that’s what life’s about making mistakes and learning. Cheers both for all your help. :bigups: On the subject of winmerge is there a simple guide somewhere I could read I get lost with all the jargon sometimes being a thick scouser from Liverpool UK.
Re: Scheduled Events Add-On
Quote:
Originally Posted by
dbltoe
Did you do the other part? If you did not, then the next upgrade will break the cart.
:bigups: cheers done, most have messed up the first time changed both files without a hitch.
Re: Scheduled Events Add-On
Quote:
Originally Posted by
discoverytdi
Thanks Diva you are probably right I've not had any problems till now as the mods I have haven't caused problems extra sideboxes IH3 and zen light box etc, will have to read up on winmerge and use it more often in future. the more I use zencart the more I learn still that’s what life’s about making mistakes and learning. Cheers both for all your help. :bigups: On the subject of winmerge is there a simple guide somewhere I could read I get lost with all the jargon sometimes being a thick scouser from Liverpool UK.
None that I'm aware of.. I'm sure you can Google up something that would be useful.. I downloaded Winmerge and dove in head first.. I didn't find it tough to figure out how to use it.. Did the same when I switched to Beyond Compare (Beyond Compare is not free but it's totally worth the small cost as it's a MUCH better program than Winmerge IMHO..)