By Andy on Tuesday, 04 February 2014
Posted in General Issues
Likes 0
Views 771
Votes 0
Hi - I'm using the EasyDiscuss Content Plugin. Current behaviour is when I publish an EasyBlog post, the entire text of it gets replicated into an ED discussion, with a "Read Full Article" link at the bottom.

I really don't want to replicate all my blog content on ED (that seems an odd thing for it to do by default?!) - Is there a way that instead of the blog content going to EasyDiscuss, instead it just creates a discussion thread with this simple text:

"Username published an article called BLOG NAME (with the link to the blog). Any questions or comments?"

To me that would be super cool, super friendly, and way better than just replicating the whole blog content as it currently does? Please, please, please????!!!!
OK I think I've got it, so if anyone is trying to do the same:

File to tweak: plugins/content/easydiscuss/easydiscuss.php

Tweak to make: Comment out around line 54 and 55:

// Removed below 2 lines - stops ED putting Blog content into the discussion thread.
// $this->mapExisting( $article );
// return true;


Took me a while to find this - but I think it's the right bit... and I don't think it'll have any bad side effects!
·
Friday, 07 February 2014 10:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

The plugin is still in beta and I don't really have the time to update it yet You can hack the plugin if you want by editing the file /plugins/content/easydiscuss/easydiscuss.php
·
Tuesday, 04 February 2014 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
OK understood. I'll take a look and see what I can do.

Strangely though I notice now on my EasyDiscuss that some blogs are showing with just the 'Read full article' text... Did you do anything or is perhaps the plugin creating these as and when people visit the various blogs maybe?

That's actually kind of the thing I wanted - so if I can find the code where ED is creating that, then I can replicate it wherever it is that ED creates a discussion when a blog is edited / published.
·
Tuesday, 04 February 2014 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Hm, I didn't actually make any changes on the site apart from enabling EasyDiscuss in the comment area
·
Tuesday, 04 February 2014 22:59
·
0 Likes
·
0 Votes
·
0 Comments
·
That's odd then! There must be different discussion creation behaviour based on whether you edit a blog, or view one (that's assuming the new discussion entries are being created as and when blogs are viewed - or maybe the plugin is just working behind the scenes creating them).

I'm going to turn the plugin off for now to stop the creation of discussions (I have 1,000+ blogs) prior to me hacking that file to include the standard text I'm after.

In case you are still looking at this though, feel free to turn the plugin back on to experiment. I'm also going to delete most of the discussions created so far (but will leave the one that created the full text when I edited an article, and the one of the new ones that are created with just the 'read full blog' text.
·
Tuesday, 04 February 2014 23:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Andy,

If you need to hack the file, it's located in /plugins/content/easydiscuss/easydiscuss.php
·
Wednesday, 05 February 2014 02:46
·
0 Likes
·
0 Votes
·
0 Comments
·
OK I've taken a look at that file and I'm understanding how it works a bit better now... One thing I can't find is where the text "Read full article..." comes from.... does the plugin have a language file somewhere - I can't see it?

That's the default text that is added for existing blogs when you enable the plugin.

My overall objective here is to be able to change that text, and also to use that text instead of the current behaviour of all the text from new and edited blogs going into EasyDiscuss.
·
Wednesday, 05 February 2014 21:42
·
0 Likes
·
0 Votes
·
0 Comments
·
The language file is using COM_EASYDISCUSS_PLUGIN_READMORE
·
Wednesday, 05 February 2014 23:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark... I've got half-way with this....

DONE: Change the standard text that the plugin uses when it creates a discussion for existing blogs.

NOT DONE: Stop the plugin (or EasyDiscuss itself) changing that standard text when the blog is edited - or when a new blog is created.

I can't quite follow the code well enough to see what I need to do to stop the behaviour of updating the ED post when the EB post is edited, nor to stop the use of the full blog text when a new blog is written (I just want it to use my standard text that I've got it using for existing blogs).

I can wait for a response because I know ED isn't on the priority development list, but grateful for any further help as and when you can....
·
Thursday, 06 February 2014 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Hm, not too sure which text are you referring to here. Can you please advise?
·
Thursday, 06 February 2014 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark... When you first activate the plugin, it begins creating a ED thread for every pre-existing Blog - and by default it uses the text 'Read Full Article'. On my site you'll see I've changed that to a much longer intro that I wanted which begins "What did you think about this article?....."

BUT when you create a new blog, or edit an existing one, the plugin takes the blog contents and replaces whatever was in the ED thread... That's the behaviour I'm trying to stop and keep my default text intact. (Reason is I don't want my ED being an exact copy of my EB content!)....
·
Thursday, 06 February 2014 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing
·
Friday, 07 February 2014 12:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
The language file is using COM_EASYDISCUSS_PLUGIN_READMORE
I am playing with newly installed EB/ED and also would like to edit, well, actually, translate, the "Read Full Article" link but to no avail.

The COM_EASYDISCUSS_PLUGIN_READMORE key is translated in my ru-RU.com_easydiscuss.ini and the site's front end is switched to Russian but the link still get displayed in English.

Assuming that ED could pull this link text from its English language file, I also tried to translate it inside the en-GB.com_easydiscuss.ini. No joy either.

Where could I go to edit or translate it please?

P S What really puzzles me is that the pre-created out of the box "Copy of You have successfully installed EasyBlog" blog post shows up the "Read full article" link in Russian. Once I start creating new blog posts, even within the same "Uncategorised" category, the link displays back in English.
·
Wednesday, 19 October 2016 05:02
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Alex,

We are no longer providing support to users with a translator license as stated on http://stackideas.com/forums/announcement-for-all-translators

However, your subscription would still grant you access to our products as long as the language strings are up-to-date. Should you require any professional assistance, please consider purchasing a proper license for your account.

Thanks for understanding.

Regarding with your case, I already tested in my locally, it seems work fine, this is what I trying to do :
1. Make sure this following language constants translated from this language file -> JoomlaFolder/language/ru-RU/ru-RU.com_easydiscuss.ini

COM_EASYDISCUSS_PLUGIN_READMORE="Читать статью полностью"

2. Set Russian as frontend default language.
3. Create a new blog post from frontend
4. Once you already created blog post, that read more content will store in database, mean if the language show English, it will always show English.

Because this plugin using the event trigger when saving the blog post that moment, it will inject the read more translated content into the discussion post, you can check my attached screenshot below, it did show correctly.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Wednesday, 19 October 2016 10:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post