vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

PKRWUD 03-26-2003 10:01 PM

Any news on a fix for the weather?

PKRWUD 03-26-2003 10:14 PM

Nevermind, I followed your advice and found it. The fix can be found here (about halfway down the page).

attroll 03-27-2003 02:56 PM

I got it working for three days then it started not showing the weather. It does not list the town and state and the temp now say "0 F". I looked at several other memebers who also have the weather on there index page and they are getting the same thing. Is there something wrong with there server that it looks to?

jarvis 03-27-2003 04:25 PM

The weather is fixed by making the following in your myindex.php read:

Quote:

fputs($rawdata,"GET /m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
read...

Quote:

fputs($rawdata,"GET http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
(Just in case people weren't able to search for the fix. ;) )

attroll 03-27-2003 04:46 PM

I did the following like you said. I went into myvbindex.php and did the following:

Found:

fputs($rawdata,"GET /m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");


Replaced with:

fputs($rawdata,"GET http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");

But I still get the same results as I meantiond before.

PKRWUD 03-27-2003 04:57 PM

After making the above mentioned change, the next time you go to that page, select Change Settings (weather), and then select Submit, and your weather will be back. Unfortunately, for me at least, I have to do this everytime I log in to my website.

attroll 03-27-2003 05:05 PM

Ok I did that too. I went into change settings and hit submit and still get the same thing.

PKRWUD 03-27-2003 05:19 PM

Okay, well, after reading a little more closely, I see why there's a difference. You need to ALSO go to your weather.php file, and make the same change there. I didn't make the change in my myvbindex.php file, which is probably why I have to "reset" it each time I log in.

Anyway, make the exact same change to your weather.php file, and you should be good to go!

Take care,
~Chris

Intex 03-27-2003 06:28 PM

For people that see the shoutbox (TWTCornish version) appear on the homepage but get an error when they come to submit a shout, it could be that your path is not set correctly in the shoutbox_postshout template.

My forum is located in /forum yet the original code seemed to rely on the shoutbox.php file being located on the root /. Anyway, adding /forum/ in front of the filename (as shown below) sorted it out for me.

Quote:

<table cellpadding="5" cellspacing="0" border="0" width="100%">
<form action="/forum/shoutbox.php" method="post" name="vbform">
<input type="hidden" name="type" value="shout">

Intex 03-27-2003 07:38 PM

In having problems with the weather hack. Its shown on my homepage, but no location information or graphics are shown either on the homepage or the actual weather stats page for the individual.

The code clearly has an incorrect path and judging from the templates I can only imagine this due to the variable not working? Any ideas? (see attached image).


All times are GMT. The time now is 01:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01975 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete