Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-04-06 11:39:50

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Linker Plugin Integration With The CMS Etomite

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

#2 2005-04-06 19:45:05

Foxx
Xinha Community Member
Registered: 2005-02-20
Posts: 41

Re: Linker Plugin Integration With The CMS Etomite

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

#3 2005-04-06 20:46:06

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Linker Plugin Integration With The CMS Etomite

Foxx wrote:

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

#4 2005-04-07 03:31:22

Foxx
Xinha Community Member
Registered: 2005-02-20
Posts: 41

Re: Linker Plugin Integration With The CMS Etomite

sorry, must have misread your first post, it was late...

Offline

#5 2005-04-07 03:40:43

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Linker Plugin Integration With The CMS Etomite

...take a look at this:
http://xinha.python-hosting.com/wiki/Linker

and at the functions used in scan.php


Niko

Offline

#6 2005-04-09 13:03:17

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Linker Plugin Integration With The CMS Etomite

niko wrote:

...take a look at this:
http://xinha.python-hosting.com/wiki/Linker

and at the functions used in scan.php

Thanks. I got it working.

Offline

Board footer

Powered by FluxBB