You are not logged in.
Hi!
I am using an EXCELLANT Open Souce CMS called Etomite (etomite.org) and would like to alter the linker plugin to allow it to read the database table for site content. I modified a piece of code to retrieve the title and url of the document from the CMS database, but I do not know how to replace its results with the document tree in the plugin. I have provided the code below.
<?
include("../../../includes/config.inc.php");
$linklist = "";
$tbl = $table_prefix . "site_content";
$sql = "SELECT * FROM $tbl";
$db = mysql_connect($database_server, $database_user, $database_password);
$db_select = mysql_select_db('system');
$rs = mysql_query($sql);
while($row = mysql_fetch_row($rs)) {
$linklist .= " <a href='[~". $row[0]. "~]'\">". $row[3]. "</a><br>\r\n";
}
mysql_close();
echo $linklist;
?>
$linklist is the variable that contains the completed list. The <a> tag can easily be modified for a javascript link.
Thanks in advance!!!
Last edited by KaplanDigital (2005-04-06 11:40:25)
Offline
Altough I have a little experience with etomite, I don't immediately have an answer to your problem. However I do know there's extensive knowledge and documentation on etomite and its plugins and this documentation also contains a shitload of info on how to use certain etomite specific functions, I think you will have more luck searching through there than this forum... just my opinion though!
Offline
Altough I have a little experience with etomite, I don't immediately have an answer to your problem. However I do know there's extensive knowledge and documentation on etomite and its plugins and this documentation also contains a shitload of info on how to use certain etomite specific functions, I think you will have more luck searching through there than this forum... just my opinion though!
I am asking about Xinha integration, not the other way around. I already have Xinha working within Etomite. I just need to know how to replace the Linker plugins filelist with the one I wrote (In first post).
Offline
sorry, must have misread your first post, it was late...
Offline
...take a look at this:
http://xinha.python-hosting.com/wiki/Linker
and at the functions used in scan.php
Niko
Offline
...take a look at this:
http://xinha.python-hosting.com/wiki/Linkerand at the functions used in scan.php
Thanks. I got it working.
Offline