PDA

View Full Version : header section in flynax



Petrache Nicolae
August 4, 2012, 07:23 PM
hello guys. can anyone tell me wich is the actual header for the script? meaning the one wich covers all areas. i have installed a scroll to top wich is working fine except in certain areas. for instance, in listing page or search page will not work and olso, if i change the language will not work? thanks

Peter Jonsson
August 4, 2012, 10:37 PM
msg me your site.

Morgan Bohman
August 5, 2012, 08:20 AM
Care to share Petrache?

Petrache Nicolae
August 5, 2012, 08:36 AM
Care to share Petrache?

hello. what would you like to see? the scroll to top in action and where is not working?

Morgan Bohman
August 5, 2012, 08:50 AM
I have checked your site and I can see it is working with your language but not english. I was just curious to now how you did and where you got the resources.

Petrache Nicolae
August 5, 2012, 09:08 AM
I have checked your site and I can see it is working with your language but not english. I was just curious to now how you did and where you got the resources.

i have used my previous implementation from opencart.
you can use the data from here http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

1. in templates/your_theme/tpl/header.tpl, before </head>, add <script type="text/javascript" src="templates/your_theme/js/scrolltopcontrol/scrolltopcontrol.js"></script>
2. add scrolltopcontrol.js in templates/your_theme/js/scrolltopcontrol/ and make sure to adjust line 12 to point to your png file of scroll to top

and so, we arrive at the things wich i have written in the original thread. since we have just 1 header and that should be the same for all the webpages in the website, why is not working in my default language in listing details page or the list/grid view of all ads and olso, why is not working in the second language (i suspect becouse the second language is like www.mysite.ro/en/ )

if you need aditional details let me know

Mike
August 8, 2012, 07:12 AM
When site is in english:

"NetworkError: 404 Not Found - http://yoursite.ro/en/templates/realty_quiet_day/js/scrolltopcontrol/scrolltopcontrol.js"


What means that page can't load the javascript because url is wrong:
http://yoursite.ro/en/templates/

url should be without en

http://yoursite.ro/en/templates/

So go to place where you adding your js file and change it to correct variable. to load files from template use {$rlTplBase} variable


{$rlTplBase}js/scrolltopcontrol/scrolltopcontrol.js

Petrache Nicolae
August 8, 2012, 07:51 AM
When site is in english:

"NetworkError: 404 Not Found - http://yoursite.ro/en/templates/realty_quiet_day/js/scrolltopcontrol/scrolltopcontrol.js"


What means that page can't load the javascript because url is wrong:
http://yoursite.ro/en/templates/

url should be without en

http://yoursite.ro/en/templates/

So go to place where you adding your js file and change it to correct variable. to load files from template use {$rlTplBase} variable


{$rlTplBase}js/scrolltopcontrol/scrolltopcontrol.js


Hello Mike. Have replaced the code in the header.tpl with
<script type="text/javascript" src="{$rlTplBase}js/scrolltopcontrol/scrolltopcontrol.js"></script>
and is working the same way.

Petrache Nicolae
August 13, 2012, 02:19 PM
problem solved. has to be like this 2. add scrolltopcontrol.js in /templates/your_theme/js/scrolltopcontrol/ and make sure to adjust line 12 to point to your png file of scroll to top

i didn't had / in front of templates and becouse of that was not working ok. now it works perfect in all website and both languages. can be sean at www.piese-laptop.ro. Thanks Mike

Chris Brown
August 13, 2012, 03:05 PM
Nice site :D deffinatly a few customisations there

Petrache Nicolae
August 13, 2012, 03:10 PM
Nice site :D deffinatly a few customisations there

Thanks. More will come when flynax team will have time to deal them. They are under presure now becouse of the new script.

Chris Brown
August 13, 2012, 03:21 PM
Thanks. More will come when flynax team will have time to deal them. They are under presure now becouse of the new script.

Yeah i know :D, i have a list as long as my arm of things i want to do, just need some money LOL :D