FREQUENTLY ASKED QUESTIONS
1 - I made all of the edits in the install instructions, uploaded the files and refreshed the templates, imagesets, and theme. Why don't I see the weather?
Ensure that you followed the "
DIY Instructions" in the install file.
2 - Does this mod support subsilver2?
Yes.
3 - How do I restrict access to the weather page to logged in members only?
Open: root/weather.php
Find:
Code: Select all
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
After Add:
Code: Select all
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
4 - How do I increase the size of the weather image?
Open: root/styles/prosilver/template/weather.html
Find:
Change the width and height to your liking.
5 - Can I remove the link that's applied to the weather image?
No. Removing the link will violate the scripts terms of use.
6 - How do I make it so if someone click the weather forecast a new window is opened instead of them leaving my website?
Open: root/styles/prosilver/template/weather.html
Find:
Inline Find:
Add Before:
Open: root/styles/subsilver2/template/weather.html
Find:
Inline Find:
Add Before:
7 - Can I change the colors of the weather forecast?
Yes.
Click here to enter your City and State. After you submit your info, you'll be given the option(s) to change the Background and Text color of the Weather Forecast.
Copy the updated weather forecast code.
Open: root/styles/prosilver/template/weather.html
Replace the old weather script code with the new one. The code begins with:
Code: Select all
<a href="http://www.weatherforyou.com
... And ends with:
8 - Is this mod XHTML 1.0 Strict?
No. The phpBB custom page is but the weather script portion of the page isn't. Sorry I can't control that. Only the author of the script.
9 - How do I add this mod to a style other than prosilver?
For "prosilver" based styles, copy the "prosilver" folder in the download and rename it to the exact name of the style you're using.
- Upload the copied folder to the following directory: yoursite.com/yourphpbb/styles/
- In the install instructions, apply the edits for "overall_header.html", "stylesheet.css", "bidi.css", "buttons.css", and "colours.css" to the respective files of the style you're using.
- Upload the edited file. Go to the ACP, select the "Styles" tab. Refresh your "Templates", "Themes" and "Imagesets".
For "subsilver" based styles, copy the "subsilver2" folder in the download and rename it to the exact name of the style you're using.
- Upload the copied folder to the following directory: yoursite.com/yourphpbb/styles/
- In the install instructions, apply the edit for "overall_header.html" to the "overall_header.html" file of the style you're using.
10 - How do I uninstall this mod?
Reverse the edits given in the install file. The edited files include:
- yoursite.com/yourphpbb/includes/functions.php
- yoursite.com/yourphpbb/language/en/common.php
- yoursite.com/yourphpbb/styles/prosilver/template/overall_header.html
- yoursite.com/yourphpbb/styles/prosilver/theme/stylesheet.css
- yoursite.com/yourphpbb/styles/prosilver/theme/bidi.css
- yoursite.com/yourphpbb/styles/prosilver/theme/buttons.css
- yoursite.com/yourphpbb/styles/prosilver/theme/colours.css
- yoursite.com/yourphpbb/styles/subsilver2/template/overall_header.html
Delete from your server:
- yoursite.com/yourphpbb/weather.php
- yoursite.com/yourphpbb/styles/prosilver/template/weather.html
- yoursite.com/yourphpbb/styles/prosilver/theme/weather.css
- yoursite.com/yourphpbb/styles/prosilver/theme/images/simple_weather_mod.png
- yoursite.com/yourphpbb/styles/subsilver2/template/weather.html
- yoursite.com/yourphpbb/styles/subsilver2/theme/images/simple_weather_mod.png
11 - How do I make the "Weather" link in the overall_header viewable to logged in members only?
Open: root/styles/prosilver/template/overall_header.html
Find:
Code: Select all
<!-- SIMPLE WEATHER MOD BEGIN -->
<li class="icon-swm"><a href="{U_SIMPLE_WEATHER_MOD_LINK}" title="{L_SIMPLE_WEATHER_MOD_LINK_EXPLAIN}">{L_SIMPLE_WEATHER_MOD_LINK}</a></li>
<!-- SIMPLE WEATHER MOD END -->
Replace With:
Code: Select all
<!-- SIMPLE WEATHER MOD BEGIN -->
<!-- IF S_USER_LOGGED_IN -->
<li class="icon-swm"><a href="{U_SIMPLE_WEATHER_MOD_LINK}" title="{L_SIMPLE_WEATHER_MOD_LINK_EXPLAIN}">{L_SIMPLE_WEATHER_MOD_LINK}</a></li>
<!-- ENDIF -->
<!-- SIMPLE WEATHER MOD END -->
Open: root/styles/subsilver2/template/overall_header.html
Find:
Code: Select all
<!-- SIMPLE WEATHER MOD BEGIN -->
<a href="{U_SIMPLE_WEATHER_MOD_LINK}"><img src="{T_THEME_PATH}/images/simple_weather_mod.png" width="16" height="16" alt="*" /> {L_SIMPLE_WEATHER_MOD_LINK}</a>
<!-- SIMPLE WEATHER MOD END -->
Replace With:
Code: Select all
<!-- SIMPLE WEATHER MOD BEGIN -->
<!-- IF S_USER_LOGGED_IN -->
<a href="{U_SIMPLE_WEATHER_MOD_LINK}"><img src="{T_THEME_PATH}/images/simple_weather_mod.png" width="16" height="16" alt="*" /> {L_SIMPLE_WEATHER_MOD_LINK}</a>
<!-- ENDIF -->
<!-- SIMPLE WEATHER MOD END -->
12 - What versions of phpBB is this mod compatible with?
The mod was tested on versions 3.0.8, 3.0.9 and 3.10.
13 - How do use this mod for International weather and/or Weather.com?
For international weather you can use the code from the
Weather.com.
Install the mod the same way listed in the install instructions, except instead of using the code from the link in the mod instructions, use the code from weather.com