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
its a bug
-
Guest
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Where exactly is that double link happening? I cannot find a reference in the code that strikes my eye.
Regards,
Garvin
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
Please show me a snippet of code you mean, or a snippet of HTML output you mean.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
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!
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!
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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:
That should do the trick, because the "plugin/" only is repeated twice in a relative directory environment.
Regards,
Garvin
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' ? '?' : '&');
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/