im not good in this but is it possible to add a field in the product settings were i put the path so i don´t have to edit the php file if i changes host or have it on other host?
if i understand you right i must changes the path "chdir('/home/yoursite/public_html/forums');" in the php file but i want it to be ansetting were i can changes the path in the acp. and also the style doesn´t work like it should when i go to the file in the subfolder.
if i understand you right i must changes the path "chdir('/home/yoursite/public_html/forums');" in the php file but i want it to be ansetting were i can changes the path in the acp. and also the style doesn?t work like it should when i go to the file in the subfolder.
And you can't have it as a setting because in order to use settings, you must include the global.php file. And, in order to include the global.php file, you need to have the path correct. And if the path is set in a setting, which needs global.php to be called in order to use it.... round and round and round you go.
[QUOTE=John3971;1519238]that worked. thanks. but why does it have to be in the top? i tested at the bottom and that didn´t work.
Because code is executed (not really "executed" in the programming sense, though) in the order it appears. You will find that there are Javascript links in the template.