Hi,
Relating to the previous post:
http://www.s9y.org/forums/viewtopic.php?t=5213
I have a minor issue in that I cannot get the XML icons to display within the 'Syndicate this blog' entry within the sidebar.
I've added a full URL in the admin suite, then edited the plugin_categories.tpl file (I assume that this is the correct one).
I can't get anything to show up - only broken links.
Is this because the blog is embedded ?
Thanks
Neil.
showing xml icons on sidebar
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: showing xml icons on sidebar
Hi!
Yes, this is one of the issues I was talking about. As you can see the URL is malformed:
http://www.invidion.co.uk/financial_mon ... /index.rss
It should read like any of those:
http://www.invidion.co.uk/blog/wrapper. ... /index.rss
http://www.invidion.co.uk/financial_wra ... /index.rss
Maybe you can get it to work this way.
Regards,
Garvin
Yes, this is one of the issues I was talking about. As you can see the URL is malformed:
http://www.invidion.co.uk/financial_mon ... /index.rss
It should read like any of those:
http://www.invidion.co.uk/blog/wrapper. ... /index.rss
http://www.invidion.co.uk/financial_wra ... /index.rss
Maybe you can get it to work this way.
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/
Ah,
After banging my head against a wall for the last couple of weeks, I finally grasped the whole point of this.
I set the the relative path and URL to the root directory of my site, and the index file to the 'financial_monkey.php' page which retrieves the wrapper file in the serendipity directory.
Phew.
Thanks for your help on this. Much appreciated.
After banging my head against a wall for the last couple of weeks, I finally grasped the whole point of this.
I set the the relative path and URL to the root directory of my site, and the index file to the 'financial_monkey.php' page which retrieves the wrapper file in the serendipity directory.
Phew.
Thanks for your help on this. Much appreciated.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Glad that it seems to work out for you now!
Best 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/
OK,
I'm almost there - but having looked again, not quite.
Firstly, having set everything back to the base URL directory, everything is working OK - but the links at the top of the blog (the <h1> and <h2> entries) point back to the index of the main website - not the blog itself (which is merely one page within the website).
As I don't really want to start sniffing referring pages and redirecting them, is it possible to hardcode the url of the blog in the template pages ?
I attempted to edit index.tpl to change {$serendipityBaseURL} to the actual URL (as this will not change), but this seems to make no difference.
If this can't be done, I can live with it.
Finally, I still can't get the XML icons to appear. They are in the img/ directory in the main templates, and I looked in the admin suite for a directive, but can't get them to appear.
Hmmmm....
I'm almost there - but having looked again, not quite.
Firstly, having set everything back to the base URL directory, everything is working OK - but the links at the top of the blog (the <h1> and <h2> entries) point back to the index of the main website - not the blog itself (which is merely one page within the website).
As I don't really want to start sniffing referring pages and redirecting them, is it possible to hardcode the url of the blog in the template pages ?
I attempted to edit index.tpl to change {$serendipityBaseURL} to the actual URL (as this will not change), but this seems to make no difference.
If this can't be done, I can live with it.
Finally, I still can't get the XML icons to appear. They are in the img/ directory in the main templates, and I looked in the admin suite for a directive, but can't get them to appear.
Hmmmm....
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Yes, this change could be made to the index.tpl file! Did you make sure you were editing the right file? You must edit the index.tpl in your templates directory!
The problem is that your image link points to this directory:
http://www.invidion.co.uk/templates/car ... mg/xml.gif
but it should read something like
http://www.invidion.co.uk/blog/template ... mg/xml.gif
instead. This comes because of your serendipityHTTPPath setting; you could however hard-wire those paths as well into the plugin_categories.tpl file...but I wonder why the HTTPPath does not point to the real blog dir? Anyways,I guess I'm the one who'S too tired now
Regards,
Garvin
Yes, this change could be made to the index.tpl file! Did you make sure you were editing the right file? You must edit the index.tpl in your templates directory!
The problem is that your image link points to this directory:
http://www.invidion.co.uk/templates/car ... mg/xml.gif
but it should read something like
http://www.invidion.co.uk/blog/template ... mg/xml.gif
instead. This comes because of your serendipityHTTPPath setting; you could however hard-wire those paths as well into the plugin_categories.tpl file...but I wonder why the HTTPPath does not point to the real blog dir? Anyways,I guess I'm the one who'S too tired 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/
OK,
The easy fix to get round this is to create the relevant subdirectories 'templates/carl_contest/img/' under the root directory to hold the 'xml.gif' and other images.
The reason why the HTTP Path does not point (directly) to the blog is I set it as 'http://www.invidion.co.uk/' and the index file as 'financial_monkey.php' (which is the page of the embedded blog)
financial_monkey.php contains the following code:
<?
chdir('serendipity');
ob_start();
require ('wrapper.php');
$blog = ob_get_contents();
ob_end_clean();
chdir('..');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD><TITLE>Financial Monkey</TITLE>
<? include("scripts/toptemplate.php");?>
<? echo $blog;?>
<? include("scripts/footer.php");?>
and wrapper.php (in the serendipity directory) contains:
<?
require ('index.php');
?>
But now I'm not sure which directory is feeding the .tpl files.
I was under the (mistaken) impressive that they were under the 'templates/default/' directory. Obviously not - but if I edit files under the 'carl_contest' directory, it makes no difference either.
The system is obviously getting fed .tpl files from somewhere. I just need to figure out where....
The easy fix to get round this is to create the relevant subdirectories 'templates/carl_contest/img/' under the root directory to hold the 'xml.gif' and other images.
The reason why the HTTP Path does not point (directly) to the blog is I set it as 'http://www.invidion.co.uk/' and the index file as 'financial_monkey.php' (which is the page of the embedded blog)
financial_monkey.php contains the following code:
<?
chdir('serendipity');
ob_start();
require ('wrapper.php');
$blog = ob_get_contents();
ob_end_clean();
chdir('..');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD><TITLE>Financial Monkey</TITLE>
<? include("scripts/toptemplate.php");?>
<? echo $blog;?>
<? include("scripts/footer.php");?>
and wrapper.php (in the serendipity directory) contains:
<?
require ('index.php');
?>
But now I'm not sure which directory is feeding the .tpl files.
I was under the (mistaken) impressive that they were under the 'templates/default/' directory. Obviously not - but if I edit files under the 'carl_contest' directory, it makes no difference either.
The system is obviously getting fed .tpl files from somewhere. I just need to figure out where....
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
The *.tpl files should be fetched from your templates/carl_contest/ directory. Any file that does not exist there is fetched from templates/default/. That means, if for example "comments.tpl" does not exist in carl_contest, it will be fetched from default/comments.tpl...
HTH,
Garvin
The *.tpl files should be fetched from your templates/carl_contest/ directory. Any file that does not exist there is fetched from templates/default/. That means, if for example "comments.tpl" does not exist in carl_contest, it will be fetched from default/comments.tpl...
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/