By Gilles on Tuesday, 22 July 2014
Posted in Technical Issues
Likes 0
Views 533
Votes 0
Hello,
How do I prevent the the avatar and the "Posted by..." byline from appearing when using a menu item of type single blog? I only want the title to appear.
I don't see this in the menu item editing window where I would expect it.

Cheers,
G
Hello Gilles,

You might want to replace the attached file in ../components/com_easyblog/themes/default/blog.read.php and change this item id to your own menu item id: http://screencast.com/t/Ub4D85Ll which you can get from here: http://screencast.com/t/Ds8h1KOCIqrl . If it doesn't work, you can provide us your backend and FTP so we can apply the hack for you.
·
Tuesday, 22 July 2014 10:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nick... but wait,
You have to be kidding! I have to replace a php file (a headache as the next EB update will eradicate it) just so I don't show this extra information?
In J!'s core menu, one easily sets the display option of the articles. Settings such as author, dates etc.
You're telling me EB does not have this feature?
Gilles
·
Tuesday, 22 July 2014 10:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

Yes, EB does have this feature in Backend>Easyblog>Themes. There you can turn on and off those things but it will affect all your page and not only the single page menu item. The hack that I gave to you is to only applied to the menu item Single Entry Layout so that the other pages won't get affected.
·
Tuesday, 22 July 2014 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nick,
This is very disappointing. When purchasing EB, I thought I'd be getting what J! core offers and more. Although it does offer some impressive features not found in the Joomla blog core, the fact that some features exist in the core and not in EB is disappointing. Especially something as rudimentary as styling the look of the item from the menu.

Seriously, you must agree, I shouldn't have to hack the code to get a such a feature offered in the J! core.
Now I look foolish to my clients having recommended EB.
Your thoughts?
G
·
Tuesday, 22 July 2014 10:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

Sorry for letting you down and thanks for the suggestion. We will definitely discuss this with our team whether we can add this or not in the future Easyblog release.
·
Tuesday, 22 July 2014 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding. Had I known EasyBlog was missing such control, I would have looked at some other extension. My client and I both thought we would not be missing display controls from J! after converting the blog to EB.
Can anything else be done?
Thanks for any input you may provide.
G
·
Tuesday, 22 July 2014 20:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding. Had I known EasyBlog was missing such control, I would have looked at some other extension. My client and I both thought we would not be missing display controls from J! after converting the blog to EB.
Can anything else be done?
Thanks for any input you may provide.
G
·
Tuesday, 22 July 2014 20:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

Sorry for late reply to this,
Can you provide us with your Joomla backend and FTP access so we can try is it possible can make a quick hack for you?
If no, we will see if we can implement this in the future. Please advise.
·
Wednesday, 23 July 2014 00:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,
Thanks for wanting to help.

The details are attached. please be careful not to break the site and please let me know exactly what was changed in the end so I can continue to maintain the site in the future ie. EB future updates, etc.
I look forward to hearing back from you.

(more info in site details)
·
Wednesday, 23 July 2014 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

I'm really sorry that delayed of this reply,
I have tried to access in your Joomla backend, it seems like you provided that access is not working
Warning
Username and password do not match or you do not have an account yet.

please advise.
·
Wednesday, 23 July 2014 14:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I just tried and it worked. Perhaps when I entered the pwd in the site details, I had a typo. Hard to tell as I the field content is hidden.
Let's try again, see the info in the site details.
·
Wednesday, 23 July 2014 21:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

Sorry for late reply to this,
I have tried to modify this few file and set this position (easyblog-after-entries) in this latest blog post module.
JoomlaFolder\components\com_easyblog\models\blog.php
LINE 720

		$customBlogId = JRequest::getVar('customBlogId', '');
if ($customBlogId) {
$queryWhere .= ' AND a.`id` < ' . $customBlogId;
}


JoomlaFolder\components\com_easyblog\themes\default\blog.latest.php
LINE 47

<?php JRequest::setVar('customBlogId', $row->id); ?>


JoomlaFolder//templates/yoo_micasa/styles/wonderlit/css/style.css

.ezb-mod .mod-item + .mod-item {
margin: -8px 0 0 !important;
}


Try to check your Easyblog Frontpage and see how it goes?
·
Thursday, 24 July 2014 00:27
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't think you corrected the right area. Please restore the changes you made as you didn't modify the correct areas.

Arlex, it seems you also broke some of the sidebars on the site. This is frustrating. I know you're trying to help but when you do, twice now, you have broken the site or... changed the way other things used to behave and we have to redo.

1. One sidebar used to display a list of latest entries on on some pages. This is no longer displaying. If you don't know what you did, I'll have to redo it. Don't mess with it if you'll cause more problems.

2. The sidebar I use to display the three exercises in the Story Finder no longer displays either. Please restore it. I had set so it would only display on some pages and this functionality has to be restored as it was.

3. I still see the photo and info on these 3 exercises blog posts as well as the navigation at the bottom. You can see the page here (after you login)
http://wonderlit.com/story-finder-exercises/random-free-fall/random-free-fall.html

4. Remember, the actual Blog portion (blog menu item) is OK.. It's the blog entries, accessed from the sidebar module which need the photo, and "Posted by..." line removed. I ONLY want the title to appear for these.

Go back a few posts here, my instructions were quite clear.

I've wasted much time on this and re-working things EB has broken while trying to help. I'm now working for free for my client as I can not charge them for all these EB issues.

Please help ASAP as this is taking way too long.


Please help without breaking the site. If you don't understand, perhaps you can call me, I'm in Canada.
Cheers,'
G
·
Thursday, 24 July 2014 00:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

I'm really sorry for that
I have revert back all the changes, your site is came back to be normal as you expected before.
·
Thursday, 24 July 2014 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks,
Can you now help solve the issue stated previously?
G
·
Thursday, 24 July 2014 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,
I;m still waiting on this one.
Can you please provide a solution? my client's work is on hold and unpublished to the public until this gets resolved.
Thanks!
G
·
Thursday, 24 July 2014 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

I'm really sorry that delayed of this reply,
Please find your answer in your queries below :

I don't think you corrected the right area. Please restore the changes you made as you didn't modify the correct areas.
Arlex, it seems you also broke some of the sidebars on the site. This is frustrating. I know you're trying to help but when you do, twice now, you have broken the site or... changed the way other things used to behave and we have to redo.
1. One sidebar used to display a list of latest entries on on some pages. This is no longer displaying. If you don't know what you did, I'll have to redo it. Don't mess with it if you'll cause more problems.

>> I'm really apologize of this Actually that was not messed up anything in your frontpage, what i did for you last night is using your left sidebar latest blog post module to configure and (display a list of "blog titles" on the front page of the blog post before the pagination just like how Joomla is displaying) so your left sidebar temporary no display a list of latest blog post.
>> But it seems like you didn't see what i did for you the customization is it work like similar with Joomla feature then request me changed back all my changes.

2. The sidebar I use to display the three exercises in the Story Finder no longer displays either. Please restore it. I had set so it would only display on some pages and this functionality has to be restored as it was.
>> Hm, that was strange, because this is what i see the 2 module in your left sidebar at last night ( http://www.wonderlit.com/blog.html ) , check my screenshot : http://screencast.com/t/kVTL8Ug4NVzm Am i missing something here?

3. I still see the photo and info on these 3 exercises blog posts as well as the navigation at the bottom. You can see the page here (after you login)
http://wonderlit.com/story-finder-exercises/random-free-fall/random-free-fall.html

>> It seems like the STORY FINDER EXERCISES module is located in your blog entry page left sidebar.

4. Remember, the actual Blog portion (blog menu item) is OK.. It's the blog entries, accessed from the sidebar module which need the photo, and "Posted by..." line removed. I ONLY want the title to appear for these.
>> Do you mean that latest blog post module inside the [bPosted by][/b]? ( http://screencast.com/t/eGrZdQTiMfn2 ) It seems like you already did it, because I checked the module only appear the photo and the blog title.
·
Thursday, 24 July 2014 23:12
·
0 Likes
·
0 Votes
·
0 Comments
·
The site is back to how it was. Thanks.
However, you still don't understand what I'm asking. let me try again and provide more details.
From the original question of this post, I wrote:

Hello,
How do I prevent the the avatar and the "Posted by..." byline from appearing when using a menu item of type single blog? I only want the title to appear.
I don't see this in the menu item editing window where I would expect it."

1. Login to the front-end and go to http://wonderlit.com/wonderlit-program/the-story-finder.html
2. You'll see a sidebar "Story Finder Exercises" which has three links of type "EB single post"
3 Click on any of them, ie. you'll get this one when you click on the first, Free Fall: http://wonderlit.com/story-finder-exercises/random-free-fall/random-free-fall.html
4. Here, I only want the title of the entry, (no avatar, no sub-lines) and no navigation. (see screenshot, highlighted areas... I do not want to appear)

I hope this helps clarify things.
·
Thursday, 24 July 2014 23:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

There's actually no way to turn these options off if you are linking to a specific blog entry. You can however disable them in the theme settings. However, disabling them in the theme settings also means that every other blog posts on the site wouldn't have these properties. As mentioned in my post on your other thread, we do not currently have theme related settings within the Joomla menu system and this is why you can't disable it per menu item.

I have added a temporary hack so that whenever a new menu item is created that links to a particular blog post, it will not show the items which you have highlighted. These are the files that I have modified:

/components/com_easyblog/views/entry/view.html.php and at line 494 - 502 I have added the codes below:


// Hacked by mark
$activeMenu = JFactory::getApplication()->getMenu()->getActive();
$singleEntryMenu = false;

if (isset($activeMenu->query['view']) && $activeMenu->query['view'] == 'entry') {
$singleEntryMenu = true;
}
$theme->set('singleEntryMenu', $singleEntryMenu);
// End Hacks
·
Friday, 25 July 2014 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Thanks for this hack. It does the job and accomplishes what my client wants.
Please consider building some of this control in EB. An all-or-nothing approach is often very limiting.
Thanks again for doing this.
I just need to make a note of it so I can re-introduce the hack every time I update EB. Not very efficient but it's the price I have to pay I guess.
G
·
Friday, 25 July 2014 00:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

We actually try not to replicate the "theme" settings within menu's because it will get a tad more complicated. Like I've said in my other post, we are not dealing with basic article viewing items like Joomla article does. EasyBlog has lots of different variables and different way of displaying these blog posts. In EasyBlog 4 however, we have moved the theme settings into categories so that you can have more refined control over this.
·
Friday, 25 July 2014 00:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Great to hear about the improvements of EB4!
Does this mean I'll be able to accomplish what you did here for me in the core EB4 without the need to hack?
G
·
Friday, 25 July 2014 00:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gilles,

In a way if you configure the category to hide these items
·
Friday, 25 July 2014 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect. I look forward to v4.
·
Friday, 25 July 2014 01:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding
·
Friday, 25 July 2014 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark.
I updated EB to the latest version and have lost this hack. I looked for the line numbers to add the code above and I can't find locate parts of the code so I can modify it.
With the new .php file, how to I restore the hack?
(PS. this is why I dislike hacks. The code breaks when the component gets updated. Why not provide this capability of not posting the info (avatar, "posted by", font-size,etc) in EB settings or themes?
Please respond quickly as the site is not as it used to be prior to the update.
Thanks.
·
Monday, 18 August 2014 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
I updated EB and the hack has disappeared (that's why I dislike hacks)
Can you help me in re-inserting the hack in the file? I tried to add the code of lines above but can't determine where it should be inserted.
I still don't know why EB doesn't have a setting to prevent displaying the avatar, "posted by...", font-size, etc as I wish to do here.
Please respond asap as the site no longer appears as it did.
Gilles
·
Monday, 18 August 2014 23:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Firstly, can you please not use the nudge tool? You have only posted this 3 minutes ago. The nudge tool is only there if your post was left out for over 24 hours in case we missed it. If you are going to abuse it, we are most likely going to remove this feature.
·
Monday, 18 August 2014 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I thought it was suggesting I use the tool. It sometimes takes 24 hours for a response from SA and since the site's frontend is changed due to a hack, I thought this would increase the priority.
·
Monday, 18 August 2014 23:38
·
0 Likes
·
0 Votes
·
0 Comments
·
To be honest with you, I don't see why a hack is a priority. A hack is something that we are doing out of good faith to ensure that you can satisfy your clients without needing you to pay any additional money. In other words, we are providing free customizations for your site without charging you a single penny.

I don't have any intentions of being disrespectful here but you have purchased the software as is and we do not need to actually customize anything for you but because we try our best to ensure that your customers are happy, we went ahead and provided a hack for the site. When updating, the files get overwritten and you expect us to fix this in 5 minutes? Where would you even find a freelancer that costs $79 and gets to you within 5 minutes?

I do hope that you would understand where we are coming from and Thank you for being understanding.
·
Monday, 18 August 2014 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
This time I have created a template override instead of hacking the views. The file is in /templates/yoo_micasa/html/com_easyblog/blog.read.php
·
Monday, 18 August 2014 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark,
I do understand your position, I do hope you understand ours as well. We've had many struggles with configuring EB. Before purchasing, we thought many of the simple customizations (ie. displaying or not displaying fields as in this request) were intrinsic. I made a wrong assumption and for this, I apologize.

I now have a hack for the commenting order and another for this. As you can understand, it's becoming a mess. I'm getting to the point where I don't want to update EB in fear of breaking the site and introducing conflicts.

Having said this,
Thanks very much for putting the override in place. I do appreciate it very much.
Gilles
PS. No, I don't expect a five-minute response time
·
Tuesday, 19 August 2014 00:00
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Gilles
·
Tuesday, 19 August 2014 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post