By Ben Goldie on Saturday, 05 July 2014
Posted in Technical Issues
Likes 0
Views 467
Votes 0
Hello!

Since we last spoke, I have completely solved the ajax problem with the EasyBlog and EasyDiscuss components and everything is running fine.

This is a quick question regarding the Easy Blog -- Quick Post function, and reloading page after an upload.

I noticed that after a comment is added, or a new blog post is added, the page reloads and the user is made aware that he/she has successfully posted. This is fine.

But after a 'quick post' is added, the page does not reload, a green completion message appears but it is high up the page, not near the bottom, so the user does not know that the post has been completed.

As a result, when a friend of mine tested, he clicked 'submit' 3 or 4 times because he couldn't see the completion message which was up the page.

I was wondering, is it possible to do a complete page refresh after the quick post is successfully added? That way, the user will clearly know that it was successful. It is the same problem with error messages: because they are high up on the page on the quick post function, it is difficult to see them.

Is this fixable? Thank you so much for your time.

Best wishes,
Ben
Hello Ben,

You can relocate the message by editing the theme file /components/com_easyblog/themes/dashboard/system/dashboard.quick.post.php and relocating the codes below:


<div id="eblog-message" class="eblog-message"><div></div></div>
·
Sunday, 06 July 2014 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ben,

I am really sorry but unfortunately it's not possible to actually perform a complete page refresh upon posting quick updates currently
·
Sunday, 06 July 2014 03:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark, thanks for your quick response.

In that case, instead of a refresh, is it possible to move the green confirmation message to the bottom of the page?
·
Sunday, 06 July 2014 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much, Mark! I will do what you suggested and move the error message.

Fantastic support as always, have a great week!

Best
Ben
·
Sunday, 06 July 2014 21:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Ben
·
Monday, 07 July 2014 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I successfully moved the confirmation message to the bottom of the screen. Great advice, it worked perfectly.

FYI, I had to edit both files: dashboard.quick.post.php and dashboard.microblog.php. You can suggest editing both of these to the next user with this query.

I have one last question regarding this. My blog settings don't add new entries to the frontpage. I.e. all front page entries have to be approved by the admin in order to be published on the front page.

However, all 'quick posts' using the microblog are automatically added to the front page: this bypasses the admin, and it's a big problem for my website.

Do you know how to stop auto adding quick posts to front page? I would appreciate any advice.

Thanks again, Mark.

Ben.
·
Tuesday, 15 July 2014 09:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ben,

Here's what you can do, edit the file /components/com_easyblog/views/microblog/view.ajax.php and at line 81 locate the codes below:


$blog->frontpage = (empty($acl->rules->contribute_frontpage)) ? '0' : true;


Replace it with,


$blog->frontpage = false;


By the way, looking at the codes, if your user does not have the "Contribute Frontpage" acl, they shouldn't be able to publish it on the front page.
·
Tuesday, 15 July 2014 13:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks again, Mark, you're the best! Have a great day. Ben.
·
Wednesday, 16 July 2014 07:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ben,

You're welcome.
·
Wednesday, 16 July 2014 09:17
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post