By Nick Hartmann on Sunday, 19 July 2015
Posted in General Issues
Replies 21
Likes 0
Views 0.9K
Votes 0
Hi guys,

maybe it is just me but I am missing the option to change the meta title of my blog posts. It seems as easyblog is automatically taking the article title as a meta title.

Can you confirm that this is the case and that there is currently no option in easyblog to change the metatitles for the blog posts?

Best Nick
Hey Nick,

I am really sorry for the delay of this reply as it is a weekend for us here. Do you mean the "title" tag on the head section of the page? By default EasyBlog would use the post title as the title tag on the page. Is there any specific reasons for modifying it?
·
Sunday, 19 July 2015 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Do you mean the "title" tag on the head section of the page?

=> Yep that's what I mean. For google they are to long so I would like to shorten them. But if I do that now the permalink will change as well and I might get in trouble with finding a shorter version of what I want to say.

But I should be able to use the meta keyword form provided in the backend for my metaTitle if I change something in the source code.

Can you tell me which file I would need to modify?
·
Sunday, 19 July 2015 20:06
·
0 Likes
·
0 Votes
·
0 Comments
·
You should take a look at the file /administrator/components/com_easyblog/includes/post/post.php at line 5253
·
Sunday, 19 July 2015 20:53
·
0 Likes
·
0 Votes
·
0 Comments
·
I am afraid that I can't see any folder with the name /includes/ after I have gone to administrator > components > com_easyblog

Any chance that this folder has a different name? Or am I not seeing everything in my FTP (I am using WinSCP).
·
Sunday, 19 July 2015 21:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, which version are you on Nick? I am actually providing these information based on EasyBlog 5.x.
·
Sunday, 19 July 2015 22:10
·
0 Likes
·
0 Votes
·
0 Comments
·
I am on version 3.9.24862 (which is odd since I purchased it in april). Is there a newer version available? In the backend it is telling me that I am on the newest one.
·
Sunday, 19 July 2015 22:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Nick,

Yes, we actually released version 5 about 2 weeks ago You can try it out here, http://demo.stackideas.com
·
Sunday, 19 July 2015 23:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Cool. But how do I get that into my system
·
Sunday, 19 July 2015 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
If you are using 3.9.x, you can edit the file in /components/com_easyblog/views/entry/view.html.php at line 230. To update to EasyBlog 5, refer to the documentation at http://stackideas.com/docs/easyblog/administrators/upgrades/upgrade-easyblog-3-9-to-easyblog-5
·
Monday, 20 July 2015 00:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Great thanks. I will deal with the update later.

Can you advice what to put in to get the MetaKeys? I tried:

$document->setTitle( $meta->keywords . ' - ' . $pageTitle );
$document->setTitle( $draft->metakey . ' - ' . $pageTitle );

but on http://www.userability.de/entry/mobile-usability/wie-eine-schlechte-usability-vor-dubiosen-gewinnspielen-schuetzt I only see an "-" and then my pageTitle.

Thanks for your help. Much appreciated.
·
Monday, 20 July 2015 02:54
·
0 Likes
·
0 Votes
·
0 Comments
·
You need to use a code that looks similar like this


$metaId = $blog->getMetaId();
$meta = EasyBlogHelper::getTable('Meta');
$meta->loadByType(META_TYPE_POST, $blog->id);

echo $meta->keywords;
·
Monday, 20 July 2015 12:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

since you helped (or did all the work ) updating my easyblog to version 5 I was looking into that issue again.

I've found on /administrator/components/com_easyblog/includes/post/post.php at line 5253 the entry for the page title:

// Get the page title
$title = EB::getPageTitle($this->config->get('main_title'));

$this->doc->setTitle($this->title);

if ($title) {
$this->doc->setTitle($this->title . ' - ' . $title );
}


Can you advice where I would add what you mentioned above?


$metaId = $blog->getMetaId();
$meta = EasyBlogHelper::getTable('Meta');
$meta->loadByType(META_TYPE_POST, $blog->id);

echo $meta->keywords;


Thanks & best regards Nick
·
Monday, 27 July 2015 03:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I am sorry for the late reply.

I am sorry as EasyBlog 3 and EasyBlog 5 is quite different. You can try use this code:

// Get the page title
$title = EB::getPageTitle($this->config->get('main_title'));

$this->doc->setTitle($this->keywords);

if ($title) {
$this->doc->setTitle($this->keywords . ' - ' . $title);
}


Please give this a try and hope this helps.
Have a nice day.
·
Monday, 27 July 2015 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohdyasseribz,

thanks. I tried that but on http://www.userability.de/entry/mobile-usability/mobile-payment-auf-dem-vormarsch the meta title is only " - Wiss.." so the value I set for the keyword is missing. As you can see in my source code there is a value for <meta name="keywords" content="tütlte" /> so I would expect the meta title like "tütlte - Wiss..".

Not sure why it isn't interpreting the keyword field.

Best Nick
·
Monday, 27 July 2015 23:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Nick,

If you can provide me with the FTP access and admin access, I would be glad to help you check this even though this is not covered in our support policy

Do take note that I am doing this out of good faith and I do hope that other users won't expect me to help customize their site.
·
Tuesday, 28 July 2015 01:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark! Really appriciates it. Please find the credentials attached. Would be great if you can let me know what you have changed cause I am willing to learn .
·
Tuesday, 28 July 2015 02:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I am sorry for the late reply. I have tested this locally and it seems to be working correctly. So, I tried to login to your backend, however, it seems like you have disabled our access.
Warning
Username and password do not match or you do not have an account yet.


May I know where do you put your keyword on your blog? http://screencast.com/t/erqshiru . By the way, this is a customization and it will get overridden when updating EasyBlog to the latest. Please make sure you have backup this file before updating EasyBlog

Please advise.
·
Tuesday, 28 July 2015 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Moudyasseribz,

not sure what I provided you with but attached the login data to my backend as well as to the ftp (I checked and they are working ).

Regarding your question: I tried both maintaining the keywords directly on the blog post as well as under easyblog > SEO.

Best Nick
·
Wednesday, 29 July 2015 04:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I've posted a test post on your site and put some keywords while composing the post and it seems like the page title is generated correctly. You can refer to the blog url here, http://www.userability.de/entry/web-usability/testing-blog-post , http://screencast.com/t/89azu2JqQDy .

By the way I've checked your other post and it seems like it does not contain any of the keywords there. Try to add some keywords as you can see from my screenshot here, http://screencast.com/t/89azu2JqQDy and see how it goes.
·
Wednesday, 29 July 2015 13:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

thanks. Then I think I know my "mistake" cause I realised that my input didn't stick last time. As you can see in my screenvideo when I enter "test" by typing it in, it doesn't automatically get the frame around it, which is obiviously neccessary so it lasts...but I just figured out that I need to push the enter button afterwards. I thought it would be a normal text input similar to the meta description (so all in all an usability issue for me and I kinda work in that department so I know my ways around;) ).

But then everything is good. Thanks for your support. Best Nick
·
Wednesday, 29 July 2015 14:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

Ah I see. Yes you need to press enter after you have typed the keywords. Nevertheless glad that your issue has been resolved now.
·
Wednesday, 29 July 2015 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post