If it is just the index.php file you want it on, you should put a require statement for that file in index.php, probably at the top under the statement for global.php. Edit the templates to how you want them, then put $weather in the forumhome template where you want the weather box to be.
When I'm editing the template of something that's going to get used in another template, as is the situation here, what I do is go to the page that's made by the main template first--in this case, index.php--then save the page as a plain text or HTML-only file (not as Web page, complete). Then I open that file in a browser as well as a text editor, and manually write into the file the basic HTML that would make the new feature show up. This gives me the framework of the template that will be included on the main template, which in this case the template getting included is homeindex_left_weather. Then I copy that HTML framework to a new blank text file, copy the variables from the sample template (the one I provided in the ZIP called homeindex_left_weather.txt) to the places they should go in the framework, and that gives me my template. All that's left is to create the new template in the admin cp, name it the right name, and copy the contents from the text editor.
|