The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB World Weather Details »» | |||||||||||||||||||||||||
This is VB World Weather...
It allow your users to look up and display local weather for 39,722 locations around the world! It is template based with multi language support built in! The zip file contains... 1. Step by step install files 2. All images, language files, templates, weather database file and scripts Demo http://forum.ya-right.com/ user: test pass: test when you login go to the usercp to try the demo, also look at the bottom of the forum home for the other display... The one on the forum home can be placed where ever you want to place it! If you have any questions or need install help post your questions here... UPDATES (7/15/2004 9:47 PM EDT) Go here for the FORUMHOME template update install info https://vborg.vbsupport.ru/showthrea...d=1#post533325 UPDATES (7/18/2004 9:04 AM EDT) Add a database install table script, for people who can not run the single sql file (FOUND IN STEP 7). It is very easy to use! Have a great day.... Sonia _______________________________ Next mod -> translate this topic or post! Show Your Support
|
Comments |
#17
|
||||
|
||||
In the instructions it says:
"If your setup uses a table_prefix then use the script that is included to add the prefix name to the forecast table name" Where do I look to see if my DB has a table_prefix and if it does not, do I need to run the sql file? |
#18
|
||||
|
||||
I ran the SQL file and received this error:
An error occurred while attempting to execute your query. The following information was returned. error number: 1064 error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '; CREATE TABLE forecast (id int(4) NOT NULL auto_increment Im now stuck at stage No7 It says: If your setup uses a table_prefix then use the script that is included to add the prefix name to the forecast table name. To run the change.php script, place the forecast.sql file and the change.php script in your main vbulletin directory (./) then run the script from your browser. When it is finished it will update the forecast.sql file to match your system settings! After this install the forecast database into your main forum database! Can someone explain this in English please. |
#19
|
|||
|
|||
Ver nice hack,absolutely will give it a try.By the way,I like the template of your demo http://forum.ya-right.com/ . I wonder where to download that skin. Any suggestion would be appreciated.Thannks.
|
#20
|
||||
|
||||
Awesome idea; I saw your post at vbulletintemplates and fell in love with it; Definetly going to use this.
Thanks bud! |
#21
|
|||
|
|||
Quote:
To find out if your using a prefix, go to ./includes/config.php, and find the variable... $tableprefix = ''; If this has a value, then you need to run the 'change.php' script to add the prefix! As for your MySql Error, something is not being escaped somewhere.... Tell me the following.... 1. Are you using a prefix? 2. How are you trying to install the weather table (command line, phpMyAdmin, other) ? If you can not get the SQL file to load, create the table manual, then I will give you a script to loop the file and do the inserts that way! I have tested this SQL file, on 8 different systems Unix, Linux, Windows and Mac and I can not reproduce your error. Note you can not load this from the VB admin panel it will not work! I will help you, but answer my questions so I can! |
#22
|
|||
|
|||
I checked the test site but did not see any weather conditions on the main forum page even though it's checked in the user cp
Is that a bug or just an oversite on adding it to the forum home page? |
#23
|
|||
|
|||
Quote:
Once that question is answered I'm gonna install. It's very cool! . |
#24
|
|||
|
|||
Quote:
I'm using vBadvanced's weather module right now and this will be a much better replacement |
#25
|
|||
|
|||
this hack looks killer
|
#26
|
||||
|
||||
Quote:
|
#27
|
|||
|
|||
Quote:
|
#28
|
|||
|
|||
I has already added a custom field so my field numbers are different.
I changed the array and the update statement and it does update the correct field, however the location on the user cp does not display. Is there any other place I need to change to use a field other than field9 for the location field if ( $_REQUEST['do'] == 'weather' ) { $new_forecast = forecast_valid ( $bbuserinfo[field19], $bbuserinfo[field20], $bbuserinfo[field21], $bbuserinfo[field22], $bbuserinfo[field23] ); $new_forecast = fetch_forecast ( $new_forecast, 1 ); $customfields = array (); fetch_profilefields(1); $navbits[''] = $vbphrase['weather_title']; } if ( $_REQUEST['do'] == 'places' ) { if ( !empty ( $_POST['location'] ) ) { $DB_site->query ( "UPDATE " . TABLE_PREFIX . "userfield SET field23=" . addslashes( $_POST['location'] ) . " WHERE userid=$bbuserinfo[userid]" ); $GLOBALS['url'] = 'profile.php?do=weather'; eval ( print_standard_redirect ( 'redirect_updatethanks' ) ); } else |
#29
|
||||
|
||||
Right on the demo site it won't show on form home what you selected and thats because its not keeping your selection if you notice..
maybe cuz that is a demo as he said |
#30
|
||||
|
||||
*nods*
The concept is excellent, but the install is a bit of a killer, mainly for those people who already have custom fields installed. I have installed it, but the Location Field is a single-line text box...with no hints as to what the code to put in it is. |
#31
|
||||
|
||||
Looks just fine!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|