The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]() Quote:
ok. original code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php $today = date('Y-m-d'); $con = mysql_connect('localhost', 'username', 'passwd1'); # please put appropriate values here if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname_currency", $con); # please replace 'mydb' with your database name. $query = "SELECT cur_rate FROM currency WHERE cur_date = '$today' AND cur_code = 'PHP'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array( $result ); $php = $row['cur_rate']; echo "<p style=\"font-size:70%;\"><b>1 USD = PHP $php</b></p>";?> </body> </html> and then the plugin using vbulletin and global_start $today = date('Y-m-d'); $con = mysql_connect('localhost', 'username', 'passwd1'); # please put appropriate values here if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname_currency", $con); # please replace 'mydb' with your database name. $query = "SELECT cur_rate FROM currency WHERE cur_date = '$today' AND cur_code = 'PHP'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array( $result ); $php = $row['cur_rate']; then in the header: echo "<p style=\"font-size:70%;\"><b>1 USD = PHP $php</b></p> $php is scraping philippine peso and is standard at yahoo for that currency so i cannot change it unfortunately. is this what you wanted? can you help me now? |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|