Re: All Business template Support Thread
Quote:
I have again read them over again, I understand the process involved but was hoping someone could shed some light on where exactly to put the <script> </script> code on the newly created PHP file as I think is where the confusion may lie.
I can not say it much more clearly than the instructions:
Quote:
<script>contents of the jscript_easySlider.js</script>
Quote:
I have followed your instructions and the PHP files are showing exactly as described but I cannot get
www.as-ireland.com to go away, it seems it is coded elsewhere but am not sure where to look, I have used the developers tool kit to find abnormal instances of the URL but none there!
Check your php sytax, etc. as you must have an error in your code. You can re-install the files related to these links from the original template package or do a file comparison.
Thanks,
Anne
Re: All Business template Support Thread
Quote:
Originally Posted by
derek.b
I have again read them over again, I understand the process involved but was hoping someone could shed some light on where exactly to put the <script> </script> code on the newly created PHP file as I think is where the confusion may lie.
Cheers
Derek
Hi Derek
Try the fix I posted here and see if that helps:
http://www.zen-cart.com/forum/showpo...&postcount=172
As far as your Twitter and Facebook link problems...
When looking at the coding, they are both referencing: <a href="blingthemes">
Your code:
Code:
<!--BOF footer menu display-->
<dl>
<span id="social-media">
<a href="blingthemes">
<img src="includes/templates/all_business/im ages/twitter.png" class="twitter-image" alt="twitter link"/>
</a>
<a href="blingthemes">
</span>
<br class="clearBoth"/>
<!--EOF footer menu display-->
Original Code:
Code:
<!--BOF footer menu display-->
<dl>
<span id="social-media">
<a href="http://www.twitter.com/picaflorazul">
<img src="includes/templates/all_business/im ages/twitter.png" class="twitter-image" alt="twitter link"/>
</a>
<a href="http://www.facebook.com/picaflor-azul#!/profile.php?id=100000413665171">
</span>
<br class="clearBoth"/>
<!--EOF footer menu display-->
The two files it should be pulling this info from are:
includes/languages/english/extra_definitions/all_business/footer_menu_defines.php (approx line 56)
Code:
define('TWITTER', 'http://www.twitter.com/picaflorazul');
define('FACEBOOK','http://www.facebook.com/picaflor-azul#!/profile.php?id=100000413665171');
includes/templates/all_business/common/tpl_footer_menu.php (approx line 24)
Code:
<span id="social-media">
<a href="<?php echo TWITTER; ?>"><img src="includes/templates/all_business/im
ages/twitter.png" class="twitter-image" alt="twitter link" /></a>
<a href="<?php echo FACEBOOK; ?>"><img src="includes/templates/all_busin
ess/images/facebook.png" class="facebook-image" alt="facebook link" /></a>
</span>
<br class="clearBoth" />
Try doing a search with the Developers Took Kit for "blingthemes" and see if you can find where it's being referenced. I suspect that is the root of your problem.
Re: All Business template Support Thread
Quote:
Originally Posted by
Boggled
Without sounding all gushy, that worked a treat, it was where to put the tags which confused me and being a non PHP/HTML/CSS expert in any way shape or form this was what I needed - You Legend!:smile:
Quote:
As far as your Twitter and Facebook link problems...
When looking at the coding, they are both referencing: <a href="blingthemes">
Your code:
Code:
<!--BOF footer menu display-->
<dl>
<span id="social-media">
<a href="blingthemes">
<img src="includes/templates/all_business/im ages/twitter.png" class="twitter-image" alt="twitter link"/>
</a>
<a href="blingthemes">
</span>
<br class="clearBoth"/>
<!--EOF footer menu display-->
Original Code:
Code:
<!--BOF footer menu display-->
<dl>
<span id="social-media">
<a href="http://www.twitter.com/picaflorazul">
<img src="includes/templates/all_business/im ages/twitter.png" class="twitter-image" alt="twitter link"/>
</a>
<a href="http://www.facebook.com/picaflor-azul#!/profile.php?id=100000413665171">
</span>
<br class="clearBoth"/>
<!--EOF footer menu display-->
The two files it should be pulling this info from are:
includes/languages/english/extra_definitions/all_business/footer_menu_defines.php (approx line 56)
Code:
define('TWITTER', 'http://www.twitter.com/picaflorazul');
define('FACEBOOK','http://www.facebook.com/picaflor-azul#!/profile.php?id=100000413665171');
includes/templates/all_business/common/tpl_footer_menu.php (approx line 24)
Code:
<span id="social-media">
<a href="<?php echo TWITTER; ?>"><img src="includes/templates/all_business/im
ages/twitter.png" class="twitter-image" alt="twitter link" /></a>
<a href="<?php echo FACEBOOK; ?>"><img src="includes/templates/all_busin
ess/images/facebook.png" class="facebook-image" alt="facebook link" /></a>
</span>
<br class="clearBoth" />
Try doing a search with the Developers Took Kit for "blingthemes" and see if you can find where it's being referenced. I suspect that is the root of your problem.
Ok so I looked at this again this morning and went on the hunt in my FTP program to see if there was any files that perhaps didn't look right or out of context with Anne's theme, low and behold I clicked on web/includes/extra_configures and in there was a file named estoreparameters.php, after downloading this and opening it up in my text editor it was full of Twitter/Youtube define statements and was obviously causing a conflict!!
Well all I can say is many thanks to Yourself and Anne for the help, I have managed to get 6 months into this without asking any questions and soley using the search function but had come to the stage where my eyes could not handle anymore!!
Once again Many Thanks:clap:
Re: All Business template Support Thread
Just one quick one, I have just done a HTML Validation on my site, and amongst over issues the discussed easy_slider php file which I have now created and uploaded is full of errors, I guess this is because it has been written as a .js file but now converted to PHP.
My question is any coding type experts out fancy having a look to see what the issue maybe?:dontgetit
Re: All Business template Support Thread
Quote:
Just one quick one, I have just done a HTML Validation on my site, and amongst over issues the discussed easy_slider php file which I have now created and uploaded is full of errors, I guess this is because it has been written as a .js file but now converted to PHP.
My question is any coding type experts out fancy having a look to see what the issue maybe?
Your errors are not native to the template or the slider. See the template demo here:
All Business free template by Picaflor Azul
and the XHTML validation here:
XHTML 1.0 Validation
and CSS validation here:
All Business CSS 2.1 Validation
If you make changes to the template then you will need to re-validate. The validator spells out all of the errors with line numbers and recommendations for fixing the errors. You need to go through the errors one at a time and fix them.
Thanks,
Anne
Re: All Business template Support Thread
Quote:
Originally Posted by
picaflor-azul
Your errors are not native to the template or the slider. See the template demo here:
All Business free template by Picaflor Azul
and the XHTML validation here:
XHTML 1.0 Validation
and CSS validation here:
All Business CSS 2.1 Validation
If you make changes to the template then you will need to re-validate. The validator spells out all of the errors with line numbers and recommendations for fixing the errors. You need to go through the errors one at a time and fix them.
Thanks,
Anne
Hi Anne
I didn't question as to whether the original template had valid XHTML or CSS, it was more that prior to me changing the jscript_easySlider.js file and using the script command and changing it to a php file I am now presented with a list of circa 30 errors which were not there before I changed the file extension. Only reason I changed this was to cure the page error being noted by IE8.
This is using an original copy of the jscript_easyslider.js file that was originally downloaded from your website.
I understand the need to validate after template alterations and also do so on a regualr basis, hence my statement that "amongst other issues" in my last post.
I just wondered if perhaps due to file extension change that a conflict of coding happened (if thats the correct term)?
Cheers
Derek
Re: All Business template Support Thread
I followed the same instructions on the demo to correct the javascript error, so it is possible to validate the xhtml and css after moving the js file:
http://www.zen-cart.com/forum/showpo...&postcount=248
The best advice that I can give you is to read the error messages carefully and follow the instructions given in the validator to correct the errors.
Thanks,
Anne
Re: All Business template Support Thread
Quote:
Originally Posted by
picaflor-azul
I followed the same instructions on the demo to correct the javascript error, so it is possible to validate the xhtml and css after moving the js file:
http://www.zen-cart.com/forum/showpo...&postcount=248
The best advice that I can give you is to read the error messages carefully and follow the instructions given in the validator to correct the errors.
Thanks,
Anne
Hi Anne,
I know this must be annoying you by now but given your experience I appreciate your help, when you say you moved the file did you rename it aswell?
You see the problem I have got is this, if you rename the .js to a php then surely you need to set the definition in the define_main_page.php in all_business as this currently still directs the script to jscript_easyslider.js even though the linked tutorial specifically states to delete that file from the relevant folder!
I have now completely reloaded that file and done exactly as stated over and over again I can upload the error log from the validation tool if it helps?
Thanks again for your time
Derek
Re: All Business template Support Thread
Quote:
Hi Anne,
I know this must be annoying you by now but given your experience I appreciate your help, when you say you moved the file did you rename it aswell?
You see the problem I have got is this, if you rename the .js to a php then surely you need to set the definition in the define_main_page.php in all_business as this currently still directs the script to jscript_easyslider.js even though the linked tutorial specifically states to delete that file from the relevant folder!
I have now completely reloaded that file and done exactly as stated over and over again I can upload the error log from the validation tool if it helps?
Thanks again for your time
Derek
I did follow the instructions in this thread
http://www.zen-cart.com/forum/showpo...&postcount=248
and renamed the file jscript_easyslider.php. If you look at the validator errors it will tell you how to fix them.
Thanks,
Anne
Re: All Business template Support Thread
Quote:
Originally Posted by
picaflor-azul
Ok not to worry, just can't understand how you don't get a validation error at all and I'm altering the same file (as from your website) altering it in the correct way and then getting errors in validation.:frusty:
What about the define main page statement does this need altering then to coincide with the new file name?
Cheers
Derek