Andrei Zhitkov
Forum Replies Created
-
Forum: Plugins
In reply to: [AddToAny Share Buttons] Publisher name on FacebookThank you for the clarification.
Forum: Plugins
In reply to: [AddToAny Share Buttons] Publisher name on FacebookI second this question.
Why are you messing with the referral?
Why is this not entered in the change log?Forum: Developing with WordPress
In reply to: Too many letters for gettext“best to provide online multi-lingual help through your own site”
That’s what Joomla is doing for their core and this keeps it up-to-date for all installations. However it may be too taxing for an individual casual developer to maintain such a site. It would make sense to let end-users customize or add to the help info as they may see fit which makes an argument for a distributed help files.
I looked into the admin help screen. There may not be enough room (I have pictures) and localization is still an issue.
I am starting to lean toward self-contained help files with the path being switched depending on the users locale.“So do you need to create a whole web site in just one language”
No, this is not about creating a site, this is about making a plugin, or a theme, and figuring out the best way to internationalize its help pages.related.php line 64
The official advice doesn’t work, for it doesn’t remove the initial connection into the_content hook. I was getting duplicate insertions — one original, still working perfectly well and the second later displaying as shortcode. I was not able to get rid of the original insertion point until I used
remove_filter( 'the_content', array($related, 'related_content_filter') );
to counter your// Add the related posts to the content, if set in options add_filter( 'the_content', array($this, 'related_content_filter') );
per another piece of official documentation:
If a filter has been added from within a class, for example by a plugin, removing it will require accessing the class variable. global $my_class; remove_filter( 'the_content', array($my_class, 'class_filter_function') );
You are right about
post_content_after
. Apparently this was custom for my theme and will not be available just for anybody. I should have double-checked it. Oops about it.Generally plugins developers should not make concessions to lazy theme designers. Themes should support the fullest range of hooks, and those which do do not, should not be used.
At the end of the day, you would do well if you offered alternative hook to insert the Related links.
Forum: Developing with WordPress
In reply to: term_taxonomy_id vs term_idI see. wp_term_taxonomy is a joint table to resolve multiple-to-multiple relations, right?
https://codex.www.ads-software.com/images/2/25/WP4.4.2-ERD.pngForum: Plugins
In reply to: [Quiz Tool Lite] Huge number of unfinished attemptsForum: Fixing WordPress
In reply to: shortcode fires from the editor, creates DB entriesWell, you are exactly right.
It’s Yoast SEO.
Thank you for the hint.Forum: Fixing WordPress
In reply to: shortcode fires from the editor, creates DB entriesThis is the plugin.
All the shortcodes from it give me this problem.Forum: Plugins
In reply to: [Quiz Tool Lite] Reflective question in QuizIndeed, I wouldn’t have have been bothering you if the features fit the bill. ??
I have been working and I got a new qType going — textArea, which is pretty much identical to reflectionText, but I can display it inside quiz reports without being graded or marked as such. Now I have to figure out how to save those answers when they are in a quiz list. I don’t know how to deal with the necessity to write answers and read responses at the same time. ??On the general note, I looked at lots of different quiz solutions and they all shy away from free text entries for quizzes, for all quizzes are usually intended for automated evaluation and to match an unpredictable strings is tricky to say the least. I can emphasize with that. However there is a lot of value in giving a human evaluator the ability to include any type of question in a quiz and look at the results as one compiled list.
Forum: Plugins
In reply to: [Yoast Duplicate Post] Duplicate from one custom post type to anotherUnfortunately it’s not an option. The source type is not authorized for creation or editing by the duplicator so it needs to be done in one step.
Forum: Plugins
In reply to: [Quiz Tool Lite] Reflective question in QuizAlex,
if you just include reflexive questions into
$questionRS = qtl_queries::getQuestionsInPot($potID, true, “random”, $qCount);
then getQuestionsInPot will try to get question options, but they are not set since we are not intending to evaluate (mark) questions.
This leads to a whole bunch of warnings but, most importantly, the answer being marked as incorrect.The problem is not in to joining the reflectives in a pot, they need to be saved by default, but not marked.
–> vs. ->
– vs. –Do you see any difference?
And if you don’t, in the words of a popular commercial, “Why code more?”
You don’t have to explain to me what this code for.
What you have to do once in a while is ask yourself if there is a simple, better way.Regards.
This is way too much code (i.e. trouble) to output simple simulated arrow, if you ask me.
This seems to be a feature, not a bug. ??
Links fail if your browser is set to allow tracking.
If you block tracking in the browser settings, AS YOU SHOULD, I might add, then links are working just fine. The browser blocks tracking and the problem with it.This is kinda funny.
- This reply was modified 7 years, 8 months ago by Andrei Zhitkov.