Hi,
I made a quick change to the core GL lib-plugins to include the standard
web resources of GL.
Two small changes in
lib-plugin.phpThe first identifies links as part of the Geeklog Core Module.
So around line 946
Text Formatted Code
// Determine which Core Modules and Plugins support AutoLinks
// 'tag' => 'module'
//
// Hack - Autotag Links - Part 1
// Added standard Geeklog Links.
$autolinkModules = array ('story' => 'geeklog',
'event' => 'geeklog',
'link' => 'geeklog'
);
The second part is just a few lines down.
Around line 1051
Text Formatted Code
} else if ($autotag['tag'] == 'event') {
$autotag['parm1'] = COM_applyFilter ($autotag['parm1']);
$url = $_CONF['site_url'] . '/calendar_event.php?eid='
. $autotag['parm1'];
if (empty ($linktext)) {
$linktext = stripslashes (DB_getItem ($_TABLES['events'], 'title', "eid = '{$autotag['parm1']}'"));
}
}
//
// Added GL Links - Part 2
//
else if ($autotag['tag'] == 'link') {
$autotag['parm1'] = COM_applyFilter ($autotag['parm1']);
$url = $_CONF['site_url'] . '/portal.php/link/'
. $autotag['parm1'];
if (empty ($linktext)) {
$linktext = stripslashes (DB_getItem ($_TABLES['links'], 'title', "lid = '{$autotag['parm1']}'"));
}
}
//
// End Links
//
That´s it.
Now you can just add the lid [link:lid] and the autotags to the rest.
If I missed something, just let me know.
Boris
Vanrillaer.com - our Family Portal