Thread: mYvBindex v3.1
View Single Post
  #92  
Old 11-04-2002, 05:38 AM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like you forgot to make the changes in admin/functions.php that were listed in the instructions.

Find:
PHP Code:
// ###################### Start doshutdown ####################### 
And above that add:
PHP Code:
// ###################### Weather Functions #######################
function convert_temp($number,$tpc) {
$number *= 1;
if (
$tpc == 0) {
$number = (5/9) * ($number-32);
$number round($number);
return 
"$number?C";
} else {
return 
"$number?F";
}
}

function 
convert_press($number,$tps) {
$number *= 1;
if (
$tps == 0) {
$number $number *33.86;
$number round ($number);
return 
"$number mbar";
} else {
return 
"$number inHg";
}
}

function 
convert_length($number,$tps) {
$number *= 1;
if (
$tps == 0) {
$number $number 1.609;
$number round ($number);
return 
"$number km";
} else {
return 
"$number mi";
}
}

function 
convert_speed($number,$tps) {
$number *= 1;
if (
$tps == 0) {
$number $number 1.609;
$number round ($number);
return 
"$number km/h";
} else {
return 
"$number mph";
}
}

function 
getdayofweek($numbers) {
if (
$numbers == "1") {
$dayofweek="Sunday";
return 
"$dayofweek";
} elseif (
$numbers == "2") {
$dayofweek="Monday";
return 
"$dayofweek";
} elseif (
$numbers == "3") {
$dayofweek="Tuesday";
return 
"$dayofweek";
} elseif (
$numbers == "4") {
$dayofweek="Wednesday";
return 
"$dayofweek";
} elseif (
$numbers == "5") {
$dayofweek="Thursday";
return 
"$dayofweek";
} elseif (
$numbers == "6") {
$dayofweek="Friday";
return 
"$dayofweek";
} else {
$dayofweek="Saturday";
return 
"$dayofweek";
}
}

function 
getweathertype($type) {
if (
$type == '1') {
$weathertype="Cloudy";
return 
"$weathertype";
} elseif (
$type == '3') {
$weathertype="Mostly Cloudy";
return 
"$weathertype";
} elseif (
$type == '4') {
$weathertype="Partly Cloudy";
return 
"$weathertype";
} elseif (
$type == '13') {
$weathertype="Light Rain";
return 
"$weathertype";
} elseif (
$type == '14') {
$weathertype="Showers";
return 
"$weathertype";
} elseif (
$type == '18') {
$weathertype="Rain";
return 
"$weathertype";
} elseif (
$type == '19') {
$weathertype="AM Showers";
return 
"$weathertype";
} elseif (
$type == '20') {
$weathertype="Scattered Showers";
return 
"$weathertype";
} elseif (
$type == '21') {
$weathertype="Few Showers";
return 
"$weathertype";
} elseif (
$type == '22') {
$weathertype="Mostly Sunny";
return 
"$weathertype";
} elseif (
$type == '24') {
$weathertype="Sunny";
return 
"$weathertype";
} elseif (
$type == '26') {
$weathertype="AM Clouds/ PM Sun";
return 
"$weathertype";
} elseif (
$type == '27') {
$weathertype="Isolated T-Storms";
return 
"$weathertype";
} elseif (
$type == '28') {
$weathertype="Sct T-Storms";
return 
"$weathertype";
} elseif (
$type == '29') {
$weathertype="PM Showers";
return 
"$weathertype";
} elseif (
$type == '32') {
$weathertype="Few Snow Showers";
return 
"$weathertype";
} elseif (
$type == '33') {
$weathertype="Cloudy/ Wind";
return 
"$weathertype";
} elseif (
$type == '36') {
$weathertype="Rain/ Thunder";
return 
"$weathertype";
} elseif (
$type == '37') {
$weathertype="Partly Cloudy/ Wind";
return 
"$weathertype";
} elseif (
$type == '40') {
$weathertype="Light Rain/ Wind";
return 
"$weathertype";
} elseif (
$type == '41') {
$weathertype="Showers/ Wind";
return 
"$weathertype";
} elseif (
$type == '43') {
$weathertype="T-Showers";
return 
"$weathertype";
} elseif (
$type == '44') {
$weathertype="Mostly Sunny/ Wind";
return 
"$weathertype";
} elseif (
$type == '49') {
$weathertype="Sct Flurries/ Wind";
return 
"$weathertype";
} elseif (
$type == '51') {
$weathertype="PM T-Storms";
return 
"$weathertype";
} elseif (
$type == '53') {
$weathertype="T-Storms";
return 
"$weathertype";
} elseif (
$type == '55') {
$weathertype="Sunny/ Wind";
return 
"$weathertype";
} elseif (
$type == '56') {
$weathertype="AM T-Storms";
return 
"$weathertype";
} elseif (
$type == '80') {
$weathertype="AM Light Rain";
return 
"$weathertype";
} elseif (
$type == '84') {
$weathertype="Snow Showers";
return 
"$weathertype";
} elseif (
$type == '90') {
$weathertype="Snow/ Wind";
return 
"$weathertype";
} elseif (
$type == '98') {
$weathertype="Light Snow";
return 
"$weathertype";
} elseif (
$type == '100') {
$weathertype="PM Snow";
return 
"$weathertype";
} elseif (
$type == '103') {
$weathertype="Light Snow/ Wind";
return 
"$weathertype";
} elseif (
$type == '106') {
$weathertype="Light Wintry Mix";
return 
"$weathertype";
} elseif (
$type == '109') {
$weathertype="Snow";
return 
"$weathertype";
} elseif (
$type == '133') {
$weathertype="PM Snow Showers/ Wind";
return 
"$weathertype";
} elseif (
$type == '153') {
$weathertype="PM Light Snow/ Wind";
return 
"$weathertype";
} elseif (
$type == '155') {
$weathertype="PM Snow Showers";
return 
"$weathertype";
} elseif (
$type == '175') {
$weathertype="PM Light Snow";
return 
"$weathertype";
} elseif (
$type == '181') {
$weathertype="AM Snow/ Wind";
return 
"$weathertype";
} else {
$weathertype="Unknown Type";
return 
"$weathertype";
}

Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,885KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete