Staticpage sidebar plugin help please
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
Staticpage sidebar plugin help please
I'm using the staticpage plugin as my navbar by calling serendipity_showPlugin and it gives the impression of working, however I have two problems that I need to deal with.
The first is that the static pages sidebar plugin gives the full url of each static page, but what I want is for the static page with the set as frontpage option checked to not have it's full url. I'd prefer for the link to simply go to the URL homepage, eg www.domain.com. Is this possible? What needs to change inside serendipity_plugin_staticpage.php?
The second problem I've got is a mod_rewrite problem and I don't know if it's due to my Mamp, or if it's a serendipity problem. Basically the static pages urls have stopped working and all requests for a static page are being redirected to the main blog overview page. Does anyone know what might be causing the problem?
The first is that the static pages sidebar plugin gives the full url of each static page, but what I want is for the static page with the set as frontpage option checked to not have it's full url. I'd prefer for the link to simply go to the URL homepage, eg www.domain.com. Is this possible? What needs to change inside serendipity_plugin_staticpage.php?
The second problem I've got is a mod_rewrite problem and I don't know if it's due to my Mamp, or if it's a serendipity problem. Basically the static pages urls have stopped working and all requests for a static page are being redirected to the main blog overview page. Does anyone know what might be causing the problem?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Staticpage sidebar plugin help please
Hi!
I don't really understand this problem, why do you need a full URL? That should never be required...and you'd really need to create your own PHP plugin (or patch the existing one) for this.
Try to remove the "ErrorDocument ..." handler inside your .htaccess, this will reveal if mod_rewrite actually works. ErrorDocument serves as a fallback, which should usually also work. Also, try to create a blog entry and see if its permalink works?
Regards,
Garvin
I don't really understand this problem, why do you need a full URL? That should never be required...and you'd really need to create your own PHP plugin (or patch the existing one) for this.
Are you sure mod_Rewrite is working on your Server? And how does your .htaccess look like?The second problem I've got is a mod_rewrite problem and I don't know if it's due to my Mamp, or if it's a serendipity problem. Basically the static pages urls have stopped working and all requests for a static page are being redirected to the main blog overview page. Does anyone know what might be causing the problem?
Try to remove the "ErrorDocument ..." handler inside your .htaccess, this will reveal if mod_rewrite actually works. ErrorDocument serves as a fallback, which should usually also work. Also, try to create a blog entry and see if its permalink works?
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/
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
Hi Garvin,
Sorry about my explanation, I feel like I'm learning Serendipity all over again. I've had some memory problems and some things I just have to relearn.
I'll go and check the mod-rewrite thing, but for the first question, what happens is that I'm using the static pages sidebar plugin as my navbar and with some CSS changes it looks no different to any other navbar. Except that all of the URLs are full URLs as you'd expect, but I want the URL of the page which is configured to be the startpage to just have the normal homepage url so that in index.tpl I can test to see if the user is on the 'start' page and then give them a different look from non-start pages. Does that make sense? Sorry about this, I should know the answer, I think I've done something like this before but I can't find my original example.
Sorry about my explanation, I feel like I'm learning Serendipity all over again. I've had some memory problems and some things I just have to relearn.
I'll go and check the mod-rewrite thing, but for the first question, what happens is that I'm using the static pages sidebar plugin as my navbar and with some CSS changes it looks no different to any other navbar. Except that all of the URLs are full URLs as you'd expect, but I want the URL of the page which is configured to be the startpage to just have the normal homepage url so that in index.tpl I can test to see if the user is on the 'start' page and then give them a different look from non-start pages. Does that make sense? Sorry about this, I should know the answer, I think I've done something like this before but I can't find my original example.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Hm, okay. That would definitely require patching your plugin.
I just committed version 1.15 of the plugin which will set the URLs of staticpages marked as "frontpage" to the frontpage URL. Tell me if that works out for you.
HTH,
Garvin
Hm, okay. That would definitely require patching your plugin.
I just committed version 1.15 of the plugin which will set the URLs of staticpages marked as "frontpage" to the frontpage URL. Tell me if that works out for you.
HTH,
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/
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
Jeez, you really haven't used s9y for some time, huh?carl_galloway wrote:Wonderful, thanks Garvin, where can I download it?
Either check it out of the additional plugins cvs on sourceforge.net or wait some days for the new version to be available on http://spartacus.s9y.org or via the Spartacus event plugin.
YL
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
As for the language - you can change it through http://url/?serendipity[lang_selected]=en
Regards,
Garvin
As for the language - you can change it through http://url/?serendipity[lang_selected]=en
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/
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Would need to see it. Maybe a matter of GET vs. POST?
Regards,
Garvin
Would need to see it. Maybe a matter of GET vs. POST?
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/
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Do you have the page online somewhere? It really should work if you use a <a href="http://index.php?serendipity[lang_selected]=XX">Lang</a>.
The only thing that might not work in this case is if you are logged in, then your preferences take precedence.
What does the Dropdown submit as URL variables? Maybe something else as lang_selected?
Regards,
Garvin
Do you have the page online somewhere? It really should work if you use a <a href="http://index.php?serendipity[lang_selected]=XX">Lang</a>.
The only thing that might not work in this case is if you are logged in, then your preferences take precedence.
What does the Dropdown submit as URL variables? Maybe something else as lang_selected?
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/
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
I logged out and it doesn't work, the html I'm using is this
Code: Select all
<a href="index.php?serendipity[lang_selected]=en" class="first"><img src="{$serendipityHTTPPath}templates/{$template}/img/gb.png" height="20" width="20" alt=" " /></a>
<a href="index.php?serendipity[lang_selected]=hu"><img src="{$serendipityHTTPPath}templates/{$template}/img/hu.png" height="20" width="20" alt=" " /></a>
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Maybe lang_selected is not the right one, maybe you need to check the serendipity_event_multilingual.inc.php for all $serendipity['GET'] variables and see if any one of them looks like the right one. Don't have the time to do that right now.
Regards,
Garvin
Maybe lang_selected is not the right one, maybe you need to check the serendipity_event_multilingual.inc.php for all $serendipity['GET'] variables and see if any one of them looks like the right one. Don't have the time to do that right now.
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/
-
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
Sorry to bump this, I know I've got this stuff working in the past but trying to find my previous threads here is like a needle in a haystack, anyway, I've tried both of user_language and lang_selected and neither of them is working.
If you have the time, are you able to take a look at the site again and see if you can get it to change language? http://tinyurl.com/58uh7p
If you have the time, are you able to take a look at the site again and see if you can get it to change language? http://tinyurl.com/58uh7p
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
IT's ?serendipity[lang_display]=hu
Regards,
Garvin
IT's ?serendipity[lang_display]=hu
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/