Page 1 of 1
its a bug
Posted: Mon Sep 26, 2005 4:34 pm
by Guest
Ok theres a bug in this plugin!
the Mod_Rewrite part of this modul rewrites links to plugin/plugin/...... thats why the links won't work with the rewrite funktion turned on

Posted: Mon Sep 26, 2005 4:35 pm
by Guest
ok sorry wrong thread.....just take a look at the coppermine_Selector error to understand what i am writing about *g*
Posted: Mon Sep 26, 2005 5:36 pm
by garvinhicking
Where exactly is that double link happening? I cannot find a reference in the code that strikes my eye.
Regards,
Garvin
Posted: Tue Sep 27, 2005 10:47 am
by Guest
the java buttons.....on klick etc.
Posted: Tue Sep 27, 2005 12:14 pm
by garvinhicking
Please be more specific, I still don't understand!
Please show me a snippet of code you mean, or a snippet of HTML output you mean.
Regards,
Garvin
Posted: Tue Sep 27, 2005 12:37 pm
by Guest
changes in cpgselector.inc.php
line 130: $link = ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/' . CPG_EVENT . ($serendipity['rewrite'] != 'none' ? '?' : '&');
and
line 725: $link = ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/' . CPG_EVENT . ($serendipity['rewrite'] != 'none' ? '?' : '&');
remove 'plugin/' and it works fine, rewrite ON!
Posted: Tue Sep 27, 2005 12:52 pm
by garvinhicking
Thanks, now I know.
I made some changes which should also get it to work in version 2.01 of the plugin.
I changed the lin you mentioned to:
Code: Select all
$link = $serendipity['serendipityHTTPPath'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . [b]'plugin/'[/b] . CPG_EVENT . ($serendipity['rewrite'] != 'none' ? '?' : '&');
That should do the trick, because the "plugin/" only is repeated twice in a relative directory environment.
Regards,
Garvin