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)

TECK 09-13-2002 09:14 AM

good luck...

lemarsu 09-13-2002 01:11 PM

Gohan,

Thanks for that ! :)

I have made one or 2 changes to the template "home_weather":
making it abit more generic.



PHP Code:

<tr>
    <
td width="165" bgcolor="#8080A6">
    <
table bgcolor="#8080A6" width="100%" border="0" cellspacing="1" cellpadding="3">
    <
tr>
        <
td bgcolor="#8080A6" valign="top" align="center"><normalfont><b>Weather</b></normalfont></td>
    </
tr>
    <
tr>
        <
td bgcolor="#8080A6" align="center">
        <
table bgcolor="#8080A6" border="0" cellpadding="4" cellspacing="1" width="100%" align="center">
        <
tr>
            <
td bgcolor="#8080A6" align="center"><smallfont>$weatherdata[city]</smallfont></td>
        </
tr>
        <
tr>
            <
td align="center"><smallfont><img src="https://vborg.vbsupport.ru/vbimages/weather/$iconset/$weatherdata[cicon].gif" border="0" alt="$weatherdata[context]"><br>$weatherdata[context]</smallfont></td>
        </
tr>
        <
tr>
            <
td align="center"><smallfont>Temperature:</smallfont><br><normalfont><b>$weatherdata[temp]</b></normalfont><br><smallfont>(Real Feel: <b>$weatherdata[realfeel]</b> )</smallfont></td>
        </
tr>
        <
tr>
            <
td align="center"><smallfont><a href="weather.php?s=$session[sessionhash]&action=getdata">Detailed Forecast</a><br><a href="weather.php?s=$session[sessionhash]&action=modifysettings">Change Settings</a></smallfont></td>
        </
tr>
        </
table>
        </
td>
    </
tr>
    </
table>
    </
td>
</
tr




Thanks again.

LeMarsu

lemarsu 09-13-2002 01:24 PM

how bizzar.

the code : bgcolor = "{ tableheadbgcolor } "

gets changed to bgcolor="#8080A6" even in [ code ] or [ php ]

:|

Erwin 09-13-2002 01:26 PM

Quote:

Originally posted by Gohan
Page generated in 0.80983102 seconds (90.22% PHP - 9.78% MySQL) with 72 queries.
[Debug Mode OFF] [PHP v4.2.2] [GZIP disabled] [Server Load: 0.00 ? 0.01 : 0.00]

so bad for server??
just no problem cus so fast server without lag.

TECK is right (as usual ;) ) - it's BAD for your server. What hacks do you have installed? Take them out. Get it to below 30.

NTLDR 09-13-2002 07:14 PM

Quote:

Originally posted by Erwin
TECK is right (as usual ;) ) - it's BAD for your server. What hacks do you have installed? Take them out. Get it to below 30.
Gohan, I strongly recomend that you either reduce the number of news posts & active threads and/or remove some of the addons to that page 71 for the sites home page is very, very, very high.

Gohan 09-13-2002 11:07 PM

Quote:

Originally posted by NTLDR


Gohan, I strongly recomend that you either reduce the number of news posts & active threads and/or remove some of the addons to that page 71 for the sites home page is very, very, very high.

Hmm.. but my server get every day around 10 users visitor.
i think better remove a weather and calendar hack from vbindex.

Gohan 09-13-2002 11:44 PM

Quote:

quote:
Quote:

Originally posted by PsYc
Database error in vBulletin 2.2.7:

Invalid SQL: SELECT accid,city_title FROM weather_city WHERE subdivid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064


$cities = $DB_site->query("SELECT accid,city_title FROM weather_city WHERE subdivid=$current_subdiv[subdivid] ORDER BY city_title");


i think this query seems to complicate it..

i have created all tables and made the changes, i run it 4 times deleted it and made a fresh install... everytime i got this error, can anyone help?

--------------------------------------------------------
edit: ok fixed my errors, works great

* PsYc clicks install

same as my problem.. what did you fix?
Hello, nobody know fixed??

Gohan 09-16-2002 08:00 PM

Quote:

Originally posted by Gohan
Hello, nobody know fixed??
ok then.. i'll remove this hack!!! :( :tired: :dead:

PHiXTiT 09-17-2002 05:33 PM

Quote:

Originally posted by PHiXTiT
Great hack! (5)

Only 2 problems.

1) The time is 40 minutes in the future.

2) There are no subdivisions in Canada such as Alberta, Ontario, etc, but all the cities are listed. All others are working for me.

BTW: Just wondering if you are planning on adding the option for users to select different .gif files when modifying settings?


Running on 2.2.7

Anyone?

tako 09-24-2002 08:15 PM

Have they blocked the data again?? It is not working on my site today.....


All times are GMT. The time now is 09:20 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.01621 seconds
  • Memory Usage 1,766KB
  • 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
  • (1)bbcode_php_printable
  • (7)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