Welcome to Geeklog, Anonymous Monday, November 11 2024 @ 10:47 pm EST
Geeklog Forums
Adding dynamic meta data to stories
Page navigation
ByteEnable
However, as of GL 1.3.9 and 1.4.0, the hack should work. It would require some PHP skills probably to hack up the latest version of GL. I don't have to the time to download the standard edition of GL and hack it up.
Byte
Nucleus
I want to integrate this hack to may Geeklog 1.40sr5.
Are there any new Infomations , or a solution?
garfy
when you are writing a story you can add somewhere in the story window like we add [image1] we can add [description_here you write meta description for this page]
and also you can add [keywords_where you can add keywords]
is that possible
also this stuff must be included into future versions, it is a must have a prioroty no1 because other CMS like Joomla has that and I do not wanna switch to joomla just fo that
so is this hack working with latest version of joomla and can you set the description and keywords only for one page and not for all of them?
garfy
"meta_description" with a type of text, NULL
"meta_keywords" with a type of text, NULL
config.php, add:
$_CONF['meta_description'] = "The coolest website ever!";
$_CONF['meta_keywords'] = "my,keywords,rank,high,in,google";
header.thtml, add the following somewhere in the "head":
<META NAME="description" CONTENT="{meta_description}">
<META NAME="keywords" CONTENT="{meta_keywords}">
storyeditor.thtml, add the following above intro_text:
<tr>
<td valign="top" align="right">Meta Desc:</td>
<td><textarea name="meta_description" cols="60" rows="2">{story_meta_description}</textarea></td>
</tr>
<tr>
<td valign="top" align="right">Meta Keywords:</td>
<td><textarea name="meta_keywords" cols="60" rows="2">{story_meta_keywords}</textarea></td>
</tr>
article.php, modify the COM_siteHeader (around line 150) function call:
$display .= COM_siteHeader ('menu', $pagetitle, $rdf,$A['meta_description'],$A['meta_keywords']);
lib-common.php, modify the COM_siteHeader function:
function COM_siteHeader( $what = 'menu', $pagetitle = '', $headercode = '',$meta_desc='',$meta_key='')
around line 579 or so add:
if ( !empty($meta_desc))
$_CONF['meta_description'] = $meta_desc;
if ( !empty($meta_key))
$_CONF['meta_keywords'] = $meta_key;
$header->set_var(meta_description,$_CONF['meta_description']);
$header->set_var(meta_keywords,$_CONF['meta_keywords']);
story.php, add the following around 579:
$story_templates->set_var('story_meta_description',$A['meta_description']);
$story_templates->set_var('story_meta_keywords',$A['meta_keywords']);
modify the submitstory function with meta data:
function submitstory($type='',$sid,$uid,$tid,$title,$introtext,$bodytext,$hits,$unixdate,$expiredate,$comments,$featured,$commentcode,$trackbackcode,$statuscode,$postmode,$frontpage,$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$delete,$show_topic_icon,$meta_description,$meta_keywords,$old_sid)
just before the DB_save call in function submitstory add:
$meta_description = addslashes($meta_description);
Modify the DB_save with the meta data:
DB_save ($_TABLES['stories'],'sid,uid,tid,title,introtext,bodytext,hits,date,comments,related,featured,commentcode,
trackbackcode,statuscode,expire,postmode,frontpage,draft_flag,numemails,owner_id,group_id,perm_owner,
perm_group,perm_members,perm_anon,show_topic_icon,in_transit,meta_description,meta_keywords', "'$sid',$uid,'$tid','$title','$introtext','$bodytext',$hits,FROM_UNIXTIME($unixdate),'$comments','$related',$featured,'$commentcode','$trackbackcode','$statuscode',FROM_UNIXTIME($expiredate),'$postmode','$frontpage',$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$show_topic_icon,1,'$meta_description','$meta_keywords'");
around line 1100 or so add the meta data:
COM_applyFilter ($_POST['show_topic_icon']), <- dont add this
COM_stripslashes ($_POST['meta_description']),
COM_stripslashes ($_POST['meta_keywords']),
COM_applyFilter ($_POST['old_sid'])); <- dont add this
can somebody be more precise how to insert a new row into table
i opened the gl_stories and then press insert and theree are so many fields there
which one to fill
garfy
can someone tell me how to add a table in database?
Quote by ByteEnable: Insert two rows into your gl_stories table of your geeklog database:
"meta_description" with a type of text, NULL
"meta_keywords" with a type of text, NULL
And is it working for 1.405 sr2 version
what about for the following 1.4.1??
trampoline
Weee
Chase
which code for your appraoch as well, look good.
--
http://TazaKino.com - Pakistani News
Where YOU report the news
Wee
beewee
If you're no so stupid to put a static centerblok with a not relevant H1 header and not relevant text on top of your stories, Google will show the first lines of your latest story in the search results, so that's quite OK. Google will do that even if your left column come first in the source code
Do not focus on that stupid meta tags, these are important:
- site name
- topic names
- story titles
- story ID's
- content of your stories
- proper use of H1/H2/H3/H4 tags for the storytitles and subtitles, not for blocks or blocktitles
- clean, semantic HTML code, without tables and loads of javascripts
- no duplicate content
- lots of relevant backlinks with a proper anchortext
Unique, well written content, and a proper display of your content, is always the most important!
PS I wanted to post the url to the webmaster blog, but the spamfilter didn't allow it...
The rest is not so important. You better make some time to polish your content and backlinks instead of worrying about a meta description.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
jhackwith
Quote from the Official Google Webmaster Blog:
... Do not focus on that stupid meta tags, these are important:
- site name
- topic names
- story titles
- story ID's
- content of your stories
- proper use of H1/H2/H3/H4 tags for the storytitles and subtitles, not for blocks or blocktitles
- clean, semantic HTML code, without tables and loads of javascripts
- no duplicate content
- lots of relevant backlinks with a proper anchortext
Unique, well written content, and a proper display of your content, is always the most important!
PS I wanted to post the url to the webmaster blog, but the spamfilter didn't allow it...
The rest is not so important. You better make some time to polish your content and backlinks instead of worrying about a meta description.
I'm sorry, but I just have to jump in here and state that "stupid meta tags" are very important, for one key reason: search engines are used by people.
What is the point of SEO, anyway? Yes, you want the search engines to place your site high on the listings for your targeted keywords, but the ultimate win for SEO is a clickthrough by an actual person. As you pointed out, the Google Webmaster Blog states that meta tags will not improve your ranking within search results, they "can improve clickthrough."
Meta descriptions are very important, not for search engines, but for people. You can have your page listed in the top ten listings for your relevant keywords, but if your description is the same for every page on your site (as is the case with every standard install of Geeklog), you have less of a chance that a person looking for your targeted keyword will choose to click on your link in search results.
No, meta tags are not the be-all and end-all of SEO. That era ended in the 90s. However, they are one tool that should be ready in the toolbelt of every competent developer. To simply state that they are completely unimportant is a gross oversimplification.
To continue to refuse to include them in the core Geeklog code is a shame.
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- DesolacÃon
Laugh
http://googlewebmastercentral.blogspot.com/2008/11/googles-seo-starter-guide.html
I also see a feature request has now been made.
http://project.geeklog.net/tracking/view.php?id=732
One of the Geeklog Core Developers.
Chase
My idea was that we generate meta-description and meta-keywords automatically.
http://www.geeklog.net/forum/viewtopic.php?showtopic=85249
--
http://TazaKino.com - Pakistani News
Where YOU report the news
mystral-kk
I have made Metatags plugin, which allows you to set keywords and description meta tags in each article and staticpage. This plugins converts autotags [meta:key comma_separated_keywords] and [meta:desc description_of_page] into <meta name="keywords" content="comma_separated_keywords"> and <meta name="description" content="description_of_page"> respectively. Should work with Geeklog-1.5.0 or later.
Grab a copy from http://mystral-kk.net/filemgmt/visit.php?lid=30 and give it a try.
-- mystral-kk, "Every cloud has a silver lining."
beewee
Hi all,
I have made Metatags plugin, which allows you to set keywords and description meta tags in each article and staticpage. This plugins converts autotags [meta:key comma_separated_keywords] and [meta:desc description_of_page] into <meta name="keywords" content="comma_separated_keywords"> and <meta name="description" content="description_of_page"> respectively. Should work with Geeklog-1.5.0 or later.
Grab a copy from http://mystral-kk.net/filemgmt/visit.php?lid=30 and give it a try.
Hi Mystral_kk, is there a way to put in a default robots.txt field in the configuration? And is there a way to make default meta tags for the news topics? I love this plugin by the way, works really great
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
mystral-kk
Hi Mystral_kk, is there a way to put in a default robots.txt field in the configuration? And is there a way to make default meta tags for the news topics? I love this plugin by the way, works really great
Hi beewee, currently, there is no way to set default robots.txt field and no way to make default meta tags for the news topics. I'll see if it is possible to implement these two features in a next version. Please be patient.
-- mystral-kk, "Every cloud has a silver lining."
beewee
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Laugh
Meta Tags support will be added to Geeklog 1.6.1 when it comes out later this year for Stories, Staticpages, Topics and probably Polls. Default tags for the entire site and/or homepage can be set as well in the config panel.
Tom
One of the Geeklog Core Developers.
Page navigation
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content