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)
-   -   vB Weather Mk. 2 (https://vborg.vbsupport.ru/showthread.php?t=41842)

DraX 10-28-2002 05:23 PM

Changing the city/etc. doesn't work on your test board.

Tigga 11-04-2002 06:05 AM

Quote:

Originally posted by lemarsu
Hi,

Most of the time under the Temperature box there is no temperature, showing. (as you can see in the pic)

but under Detailed Forecast all comes up !
is it possible to fix that ?

LeMarsu

I've noticed the same problem... The temperature works fine on one of my sites, but not on another. It's the exact same code on both, so I'm not sure what could cause this. Anyone happen to know why it does this?

Julio 11-09-2002 03:58 AM

Has anyone been able to sucesfully change the default NY settings to your own? I have replaced the NY code with mine, (under weather.php) but it doesn't work.

Any help?

lemarsu 11-09-2002 09:05 AM

yes there are 2 places you need to change it in weather.php line 20 and line 201 aprox.

I think that all the changes I did.
if it doesn't work have a look in the database, that is a place a looked in when I 1st installed the weather hack.

all the best
LeMarsu

Julio 11-13-2002 05:06 AM

OK, thanks. Had to edit the database.

PlurPlanet - Can you please shoe me how to set it up that I can turn it on/off from the CP?

I have translated the text of this hack to another language, but notice that text under the 1st pic (below Current Weather..) still shows in English. I have modified functions.php already... anyone knows where exactly in the database I can change this (haven't found it) I know it is the "context" or it just comes from The Weather Channel?

lemarsu 11-13-2002 09:08 AM

are you talking about text like "Mostly Cloudy" or "sunny" ?
I think this is pulled out from msnbc.com

Tigga 11-13-2002 11:07 AM

Quote:

Originally posted by Julio
PlurPlanet - Can you please shoe me how to set it up that I can turn it on/off from the CP?
Sure, it's not very hard to do. :)

Just open the file the weather is displayed on (I'd assume it would be your forums/index.php, but of course you can display it in any file) and add this code right before the code for the weather:
PHP Code:

  if ($showweather) { 

Then right after the code for the weather add a } to close out that if statement.

Then using phpMyAdmin run this query:
PHP Code:

INSERT INTO setting VALUES (NULL,1,'Show Weather?','showweather','0','Show the weather forcast on your homepage.','yesno','3'); 

That will display the option right below the "Reason for turning board off" option in your Admin CP. If you know anything about the "setting" table you can change those values in the query to display it somewhere else. If you don't know how to change the setting and want it displayed somewhere else just PM me and let me know where you want it and I'll give you the code. :)

Julio 11-13-2002 11:56 AM

PlurPlanet:

I followed your instructions. It whows under "Reason for turning board off". If I leave it on, the board will show up fine, but if I turn it off, the board will not show at all. Just a blank screen.

GoTTi 11-14-2002 09:25 PM

wow this hack is real tight...this 1 gets my vote for HOM

Tony DiMera 11-14-2002 11:40 PM

Can we canadians use it for canadian cities?


All times are GMT. The time now is 08:57 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.01448 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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