View Single Post
  #382  
Old 06-02-2005, 03:42 AM
sim tech sim tech is offline
 
Join Date: Jan 2005
Location: Georgia
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually found the instructions pretty good... compared to several of the other mods out there. I was doing great until I got to step-7, then I got hung up a bit until I re-read the original posting.

The mod still doesn't work though :nervous:

But my problem is the same as many other folks:
The dreaded
_________________________________________
-- NO FORECAST SELECTED --


Use the Forecast Options below to configure your weather display


-- NO FORECAST SELECTED --

__________________________________________


It looks like the weather hack works great on a forum that is an original install, but if one of us added a new user profile field (I had added one for employer information) then it threw off the fields and we get that error where you can't save the data.

My Forecast Display Type is defaulted to field6 (the instructions say it should be field5) and I modded the profile.php tp reflect field6-10 instead of 5-9 but it still won't save the city data.

Is there anyplace else besides profile.php where the fields needed to be changed?

Or better yet - is there any way to change the assigned field# on the User Profile Field Manager in the admmin area? I tried deleting the older added profile fields but the field#s did not change.

-Update-
I fiddled with mysql long enough & renamed userfield & profilefield (profilefieldid) structure to correct the fields to read field5 thru field9. I also updated the code as per why-not's post #114 on https://vborg.vbsupport.ru/showthread.php?t=67084&page=8&pp=15. This is the tricky part... I tried selecting the settings and it still did not update, until I hit "save changes" twice.

Now - is there any way to have this automatically come on for every member? I think it would be used and appreciated more if it appeared on the bottom of the main forum page, with a default setting and location, and then the member can go into the usercp and customize it. This would solve my mod to have to do the initial "double submit" to get it to start up. Once it starts it updates great ( I have my cron updating every 30 minutes).

Can a default be set up? Also - can other cities be added? I'm living in a suburb of a major city, where the towns are 50,000+ but they are not on the list... at the same time small towns with less than 1000 people are listed!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01386 seconds
  • Memory Usage 1,768KB
  • 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
  • (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