its a bug

Creating and modifying plugins.
Post Reply
Guest

its a bug

Post 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 ;-)
Guest

Post by Guest »

ok sorry wrong thread.....just take a look at the coppermine_Selector error to understand what i am writing about *g*
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Where exactly is that double link happening? I cannot find a reference in the code that strikes my eye.

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/
Guest

Post by Guest »

the java buttons.....on klick etc.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Guest

Post 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!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Post Reply