URL & Afew Minor Edits
Vinnie 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: URL & Afew Minor Edits
Philipp
From: Austria
Administrator
1342From: Austria
URL & Afew Minor Edits
Not for the 1.8.x series, but the upcoming version 2.0 have already this and other SEO related features.
In the meantime you could try the following mod_rewrite modification:
http://www.esselbach.com/thread.php?id=320
Will be there any fixes for the URL naming to give the user the option of adding tis own url. For example if you look at the user-panel in word press it gives you the option of adding a post-slug which then extends onto the URL. The way to make it a compelte URL would be for a plug-in or a permalink rewrite
Not for the 1.8.x series, but the upcoming version 2.0 have already this and other SEO related features.
In the meantime you could try the following mod_rewrite modification:
http://www.esselbach.com/thread.php?id=320
1 Re: URL & Afew Minor Edits
Vinnie
OP
0
From: -
From: -
URL & Afew Minor Edits
Thanks for the support everything done now and working smooth as in the meta data for this article: www.wrappingmachinery.com/story3.html
Will be there any fixes for the URL naming to give the user the option of adding tis own url. For example if you look at the user-panel in word press it gives you the option of adding a post-slug which then extends onto the URL. The way to make it a compelte URL would be for a plug-in or a permalink rewrite
I think for this system it would be an important element that should not be overlooked.
Thanks again
Thanks for the support everything done now and working smooth as in the meta data for this article: www.wrappingmachinery.com/story3.html
Will be there any fixes for the URL naming to give the user the option of adding tis own url. For example if you look at the user-panel in word press it gives you the option of adding a post-slug which then extends onto the URL. The way to make it a compelte URL would be for a plug-in or a permalink rewrite
I think for this system it would be an important element that should not be overlooked.
Thanks again
1 Re: URL & Afew Minor Edits
Philipp
From: Austria
Administrator
1342From: Austria
URL & Afew Minor Edits
You could alter the database field length for story_extra1. Run the following SQL query in phpMyAdmin to extend the length to 255 characters:
Have you re-add <title>$insert[page_title]</title> in site_header?
Okay the meta-data has now been implemented as a new editable field in the CMS on each story.
The problem we run into now is that it becomes too short as there is nowhere in any of the mods that say the length of the description.
You could alter the database field length for story_extra1. Run the following SQL query in phpMyAdmin to extend the length to 255 characters:
ALTER TABLE esselbach_st_stories CHANGE story_extra1 story_extra1 VARCHAR(255);
Click on anyone of those test stories and you it comes up with the same title, also take a look at the description and see how it cuts off the end of the already far too short sentence.
Have you re-add <title>$insert[page_title]</title> in site_header?
1 Re: URL & Afew Minor Edits
Vinnie
OP
0
From: -
From: -
URL & Afew Minor Edits
Hi
Okay the meta-data has now been implemented as a new editable field in the CMS on each story.
The problem we run into now is that it becomes too short as there is nowhere in any of the mods that say the length of the description.
Also the title of each story keeps defaulting to the website title. Each story should be easily identifiable in the meta-title
For example if you see here:
http://www.wrappingmachinery.com/
Click on anyone of those test stories and you it comes up with the same title, also take a look at the description and see how it cuts off the end of the already far too short sentence.
Hi
Okay the meta-data has now been implemented as a new editable field in the CMS on each story.
The problem we run into now is that it becomes too short as there is nowhere in any of the mods that say the length of the description.
Also the title of each story keeps defaulting to the website title. Each story should be easily identifiable in the meta-title
For example if you see here:
http://www.wrappingmachinery.com/
Click on anyone of those test stories and you it comes up with the same title, also take a look at the description and see how it cuts off the end of the already far too short sentence.
1 Re: URL & Afew Minor Edits
Philipp
From: Austria
Administrator
1342From: Austria
URL & Afew Minor Edits
You could set the description to the first 100 characters by changing:
to:
Interesting, it should remove all HTML tags from the output after the strip_tags() function is used in the line above.
At least the first thing could be done with the extra fields:
cadmin => News => Edit Fields => Field 1 => Enabled, text only => Add "Meta description" as Field Text
Then replace the first code section with:
Unfortuanately it picks up the entire first paragraph which makes the description awfully long which is not a great idea.
You could set the description to the first 100 characters by changing:
$insert[page_description] = addslashes(strip_tags($data[story_text]));
to:
$insert[page_description] = addslashes(strip_tags(substr($data[story_text],0,100))." ...");
Secondly, the meta-description is also picking up raw HTML as in any links it has in.
Interesting, it should remove all HTML tags from the output after the strip_tags() function is used in the line above.
I believe another two fields added to the editor would be useful as in:
Meta description field which allows the site-owner to add his own meta-description
And a post slug allowing for correct URL naming.
At least the first thing could be done with the extra fields:
cadmin => News => Edit Fields => Field 1 => Enabled, text only => Add "Meta description" as Field Text
Then replace the first code section with:
dbconnect();
$query = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_id = '$id'");
$data = mysql_fetch_array($query);
$insert[page_title] = addslashes($data[story_title]);
$insert[page_keywords] = addslashes(DoKeywords($data[story_text]));
$insert[page_description] = addslashes(strip_tags($data[story_extra1]));
MiniCache("cache/tags/story-$id", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_description] = "$insert[page_description]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");
1 Re: URL & Afew Minor Edits
Vinnie
OP
0
From: -
From: -
URL & Afew Minor Edits
Hi
We have implemented the fix for the meta-data. Unfortuanately it picks up the entire first paragraph which makes the description awfully long which is not a great idea.
Secondly, the meta-description is also picking up raw HTML as in any links it has in.
I believe another two fields added to the editor would be useful as in:
Meta description field which allows the site-owner to add his own meta-description
And a post slug allowing for correct URL naming.
Hi
We have implemented the fix for the meta-data. Unfortuanately it picks up the entire first paragraph which makes the description awfully long which is not a great idea.
Secondly, the meta-description is also picking up raw HTML as in any links it has in.
I believe another two fields added to the editor would be useful as in:
Meta description field which allows the site-owner to add his own meta-description
And a post slug allowing for correct URL naming.
1 Re: URL & Afew Minor Edits
Vinnie
OP
0
From: -
From: -
URL & Afew Minor Edits
Thanks Philipp for the fast support, I will try this and let you kwo the results.
Thanks Philipp for the fast support, I will try this and let you kwo the results.
1 Re: URL & Afew Minor Edits
Philipp
From: Austria
Administrator
1342From: Austria
URL & Afew Minor Edits
You need to re-add $insert[page_title to the template. Then you can set the default meta title and keywords under Other/Websites => WEBSITE HEADER.
There is no support for meta descrption in version 1.8.x, but you can try the following modification. Open core.php in an editor and find:
and replace the code with this:
Then find:
and replace this code with:
Replace "*** Enter here your default description ***" with your default meta description.
Finally, manually remove the cache files in /cache/tags and add the following line to your site_header template:
You need to re-add $insert[page_title to the template. Then you can set the default meta title and keywords under Other/Websites => WEBSITE HEADER.
There is no support for meta descrption in version 1.8.x, but you can try the following modification. Open core.php in an editor and find:
dbconnect();
$query = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_id = '$id'");
$data = mysql_fetch_array($query);
$insert[page_title] = addslashes($data[story_title]);
$insert[page_keywords] = addslashes(DoKeywords($data[story_text]));
MiniCache("cache/tags/story-$id", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");
and replace the code with this:
dbconnect();
$query = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_id = '$id'");
$data = mysql_fetch_array($query);
$insert[page_title] = addslashes($data[story_title]);
$insert[page_keywords] = addslashes(DoKeywords($data[story_text]));
$insert[page_description] = addslashes(strip_tags($data[story_text]));
MiniCache("cache/tags/story-$id", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_description] = "$insert[page_description]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");
Then find:
$query = DBQuery("SELECT * FROM esselbach_st_websites WHERE website_id = '$configs[4]'");
$data = mysql_fetch_array($query);
$insert[page_title] = addslashes($data[website_dtitle]);
$insert[page_keywords] = addslashes($data[website_dkeywords]);
MiniCache("cache/tags/default", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");
and replace this code with:
$query = DBQuery("SELECT * FROM esselbach_st_websites WHERE website_id = '$configs[4]'");
$data = mysql_fetch_array($query);
$insert[page_title] = addslashes($data[website_dtitle]);
$insert[page_keywords] = addslashes($data[website_dkeywords]);
$insert[page_description] = addslashes(" *** Enter here your default description ***");
MiniCache("cache/tags/default", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_description] = "$insert[page_description]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");
Replace "*** Enter here your default description ***" with your default meta description.
Finally, manually remove the cache files in /cache/tags and add the following line to your site_header template:
<meta name="DESCRIPTION" content="$insert[page_description]" />
1 Re: URL & Afew Minor Edits
Vinnie
OP
0
From: -
From: -
URL & Afew Minor Edits
Thanks for your reply Philipp. I had removed the <title>$insert[page_title]</title> from the tmeplate becasue I wanted to give the index page it's own title, meta description etc.
I don't care about meta-keywords, they are useless anyway, what I do care about is Meta-title and meta-description, this part of the functionality is important.
What I need to do now is create a static meta title for the home page and individual ones for the articles, can this be done?
Thanks for your reply Philipp. I had removed the <title>$insert[page_title]</title> from the tmeplate becasue I wanted to give the index page it's own title, meta description etc.
I don't care about meta-keywords, they are useless anyway, what I do care about is Meta-title and meta-description, this part of the functionality is important.
What I need to do now is create a static meta title for the home page and individual ones for the articles, can this be done?
1 Re: URL & Afew Minor Edits
Philipp
From: Austria
Administrator
1342From: Austria
URL & Afew Minor Edits
This could be done with mod_rewrite. For an example see this thread: http://www.esselbach.com/thread.php?id=320
The menu is part of the site_header (left menu) or site_footer (right menu) template.
You can turn off comment on each article by selecting "Enable Comments?:" => No
To make this the default setting, open cadmin/mod_news.php in an editor and replace:
with:
It should show the title of the article. Also, the CMS is automatically generating keywords for each article.
Please check if the following line is in the template site_header:
This is part of the site_header template.
1. We would like to get the functionality to work with URL's naming. For example it would be handy if we could name our own URL's rather than have it page 1, 2 etc
This could be done with mod_rewrite. For an example see this thread: http://www.esselbach.com/thread.php?id=320
2. Where does one edit the menu? We would like to take out items in the menu area and rename items.
The menu is part of the site_header (left menu) or site_footer (right menu) template.
3. Turn off comment on the articles.
You can turn off comment on each article by selecting "Enable Comments?:" => No
To make this the default setting, open cadmin/mod_news.php in an editor and replace:
if (!$commen) $commen = 1;
with:
if (!$commen) $commen = 0;
4. Create meta-data for eacha rticle, meaning meta TITLE AND DESCRIPTION. At the momment if you palce ana rticle it gives the same title as the name of the site, which is not good. I would liekt o be able to change title and meta-description.
It should show the title of the article. Also, the CMS is automatically generating keywords for each article.
Please check if the following line is in the template site_header:
<title>$insert[page_title]</title>
5. How to we change the name in the blue bar, at the momment it says STORYTELLER CMS SYSTEM we would liek to get to that somehow and not found a way to alter it?
This is part of the site_header template.
Hi
I have just installed the unbranded version of StoryTeller. I have a couple of questions before we continue to prepare it for it's intended use:
1. We would like to get the functionality to work with URL's naming. For example it would be handy if we could name our own URL's rather than have it page 1, 2 etc
2. Where does one edit the menu? We would like to take out items in the menu area and rename items.
3. Turn off comment on the articles.
4. Create meta-data for eacha rticle, meaning meta TITLE AND DESCRIPTION. At the momment if you palce ana rticle it gives the same title as the name of the site, which is not good. I would liekt o be able to change title and meta-description.
5. How to we change the name in the blue bar, at the momment it says STORYTELLER CMS SYSTEM we would liek to get to that somehow and not found a way to alter it?
Thanks for your help in this matter.
[Edited by Vinnie on 2006-12-22 11:38:15]