It appears you have not yet registered with our community. To register please click here...

vbulletin-skins-forum
| Discussions: 2,429 | Messages: 7,169 | Members: 5,989 | Online: 25 | Newest : Demonicangel (Welcome!)
Logo
All times are GMT -5. The time now is 02:31 PM.

Go Back   Forums Help - vBulletin, IPB, phpBB, SMF skins and community > Forum Areas > Forums In Depth > Forums Articles

Forums Articles Articles related to forums

Tags: , ,

Comment
 
LinkBack Article Tools Search this Article Display Modes
<!-- google_ad_section_start -->vBulletin - [How To] Version Check<!-- google_ad_section_end -->
vBulletin - [How To] Version Check
Published by King Kovifor
01-12-2007
vBulletin - [How To] Version Check

This how to uses code I received from Dan - I've made modifcations...

Create a file and add it to your forum directory. Add the following content:

Code:
<?php error_reporting(E_ALL & ~E_NOTICE); define(DIR, dirname(__FILE__)); include(DIR . '/includes/config.php'); define(TABLE_PREFIX, $config['Database']['tableprefix']); if ($_REQUEST['product']) { mysql_connect($config['MasterServer']['servername'], $config['MasterServer']['username'], $config['MasterServer']['password']) or die('<strong>Error:</strong> Could not connect to the MySQL Server.'); mysql_select_db($config['Database']['dbname']) or die('<strong>Error:</strong> Could not select database.'); $result = mysql_query("SELECT version FROM " . TABLE_PREFIX . "product WHERE productid = '" . mysql_real_escape_string($_REQUEST['product']) . "' LIMIT 1"); $num_rows = mysql_num_rows($result); if ($num_rows == 1) { $info = mysql_fetch_array($result); print '<version productid="' . $_REQUEST['product'] . '">' . $info['version'] . '</version>'; } else { die(); } } else { die(); } ?>

Save as anything thing. Upload to your forum directory.

When checking versions. The link should be:

http://yours.tld/forum_dir/file_name...uct=PRODUCT_ID

That'll check the forum the file is installed on. Make sure that you have the latest version installed on the forum where you uploaded the file.

Thanks to DAN for the code!
Article Tools

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Comment



Article Tools Search this Article
Search this Article:

Advanced Search
Display Modes

Posting Rules
You may not post new articles
You may not post comments
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1
Points Per Thread: 15
Points Per Reply: 5



Links: Babyforum.com | Deejayforum.com | Hometalkcafe.com | Equineboard.com | Evboard.com


Forums Help: Forum Skin Design and Professional Services RSS Feeds



Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Forums Help - All Rights Reserved
Article powered by GARS 2.1.6b ©2005-2006