kaosteam
25-11-2009, 11:37:44
Merhaba,
Joomla modülü dışarıdan mesela wordpress bir site ansayfasından nasıl çağırabiliriz. Mesele yeni üyeleri orda göstermek istiyorum. Bu konuda bilgiis olan var mı?
Bir mantığım var ancak çalıştıramadım. Daha doğrusu No direct access hatası veriyor.
<?php
defined('_JEXEC') or die ('No direct access');
$username = "xxxx";
$password = "xxxx";
$hostname = "xxxx";
//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
global $mainframe;
//select a database to work with
$selected = mysql_select_db('xxxx',$dbhandle)
or die("Could not select examples");
//execute the SQL query and return records
$query = mysql_query("SELECT params FROM jos_modules WHERE id='31'");
//Some extra settings
require_once ($_SERVER['DOCUMENT_ROOT'] .'/v2/modules/mod_mostread/helper.php');
$rowdata = mysql_fetch_assoc($query);
?>
Joomla modülü dışarıdan mesela wordpress bir site ansayfasından nasıl çağırabiliriz. Mesele yeni üyeleri orda göstermek istiyorum. Bu konuda bilgiis olan var mı?
Bir mantığım var ancak çalıştıramadım. Daha doğrusu No direct access hatası veriyor.
<?php
defined('_JEXEC') or die ('No direct access');
$username = "xxxx";
$password = "xxxx";
$hostname = "xxxx";
//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
global $mainframe;
//select a database to work with
$selected = mysql_select_db('xxxx',$dbhandle)
or die("Could not select examples");
//execute the SQL query and return records
$query = mysql_query("SELECT params FROM jos_modules WHERE id='31'");
//Some extra settings
require_once ($_SERVER['DOCUMENT_ROOT'] .'/v2/modules/mod_mostread/helper.php');
$rowdata = mysql_fetch_assoc($query);
?>