superky
Forum Replies Created
-
Admin search was enabled, and now is disabled and everything works fine! thank you
Thank you!
Sorry, one more question.
I was trying to change the words of the button ‘Load More..’ to ‘Load More’, however it is not changing in the frontend.
Thanks for the code! This would do for now, better than nothing.
Looking forward to the new feature addons to the beautiful plugin.
Forum: Plugins
In reply to: [AddToAny Share Buttons] Custom Icons not showing in Universal ButtonAll in a sudden, the instagram went missing under share button.
Forum: Plugins
In reply to: [WP Job Manager] Am I able to remove the “Posted on” for the publish dateThe issue is solved. I managed to override the publish date.
Thanks.
Forum: Plugins
In reply to: [WP Job Manager] Am I able to remove the “Posted on” for the publish dateHi,
I wanted to show the publish date only for example 23/6/22, not “Posted on 23/6/22”.
CSS would remove the whole date
Forum: Plugins
In reply to: [Calculated Fields Form] shortcode into fieldsThank you for your suggestion.
I’ve managed to get the tooltip by coding.
thanks!
Forum: Plugins
In reply to: [Calculated Fields Form] How to get the five highest valuetable += (function () {
if (fieldname3 >= ‘3’ && fieldname4 >= ‘3’ && fieldname6 >=’3′ && fieldname5 >= ‘2’ ) return ‘<tr><td>’ + fieldname37 + ‘</td><td>’ + fieldname47 + ‘</td><td>’ + fieldname51 + ‘</td><td>’ +
SUM([fieldname1, fieldname2, fieldname3, fieldname4, (function () {
if (fieldname5 != ‘MTH1’ || fieldname5 != ‘MTH2’ || fieldname5 != ‘ECON’ || fieldname5 != ‘CHEM’ || fieldname5 != ‘PHYS’) return 1 * fieldname9;
else {
if (fieldname6 != ‘MTH1’ || fieldname6 != ‘MTH2’ || fieldname6 != ‘ECON’ || fieldname6 != ‘CHEM’ || fieldname6 != ‘PHYS’) return 1 * fieldname10;
else {
if (fieldname7 != ‘MTH1’ || fieldname7 != ‘MTH2’ || fieldname7 != ‘ECON’ || fieldname7 != ‘CHEM’ || fieldname7 != ‘PHYS’) return 1 * fieldname11;
else {
if (fieldname8 != ‘MTH1’ || fieldname8 != ‘MTH2’ || fieldname8 != ‘ECON’ || fieldname8 != ‘CHEM’ || fieldname8 != ‘PHYS’) return 1 * fieldname12;
}
}
}
})()].sort(function (a, b) { return a – b }).reverse().slice(0, 4),
(function () {
if (fieldname5 == ‘MTH1’ || fieldname5 == ‘MTH2’ || fieldname5 == ‘ECON’ || fieldname5 == ‘CHEM’ || fieldname5 == ‘PHYS’) return 1.5 * fieldname9;
else {
if (fieldname6 == ‘MTH1’ || fieldname6 == ‘MTH2’ || fieldname6 == ‘ECON’ || fieldname6 == ‘CHEM’ || fieldname6 == ‘PHYS’) return 1.5 * fieldname10;
else {
if (fieldname7 == ‘MTH1’ || fieldname7 == ‘MTH2’ || fieldname7 == ‘ECON’ || fieldname7 == ‘CHEM’ || fieldname7 == ‘PHYS’) return 1.5 * fieldname11;
else {
if (fieldname8 == ‘MTH1’ || fieldname8 == ‘MTH2’ || fieldname8 == ‘ECON’ || fieldname8 == ‘CHEM’ || fieldname8 == ‘PHYS’) return 1.5 * fieldname12;
}
}
}
})().sort(function (a, b) { return a – b }).reverse().slice(0, 1)) + ‘</td><td> 51 </td><td> 48.75 </td><td> 31 </td><td> 30 </td></tr>’; else return ”;
})();Chem, phys,econ are the choice values.
I have this code but this wouldnt work for meForum: Plugins
In reply to: [Calculated Fields Form] How to get the five highest valueok, my bad. I overlooked it.
This is an admission score calculator. There are Core Subjects and Electives
Core Subjects – Fixed
- English
- Chinese Language
- Mathematices – Compulsory
- Liberal Studies
- Maths1
- Maths2
- Chemistry
- Music
- Economies
- History
- Physics
- English Literature
- Biology
Electives – Dropdown list
Core Subjects has 4 associated fields (fieldname1,fieldname2,fieldname3,fieldname4) to enter the marks.
Electives can choose 4 from the list
4 dropdowns(fieldname5,fieldname6,fieldname7,fieldname8), 4 fields for marks (fieldname9,fieldname10,fieldname11,fieldname12).Now I need to calculate them with the 5 highest marks, including 1.5*best of Maths1/Maths2/Chemistry/Economies/Physics(only the highest among these subjects will be selected), while others remaining subjects (not including Maths1/Maths2/Chemistry/Economies/Physics) multiply by 1.
Forum: Plugins
In reply to: [Calculated Fields Form] How to get the five highest valueSorry, still cant get it worked.
Let me explain it again in another way, forget the previous requirements mentioned above:
So there are 4 fields(fieldname1,fieldname2,fieldname3,fieldname4), each fields are a dropdown with a list of subjects,
Maths1, Maths2, Chemistry, Music, Economies, History, Physics, Literature, Biology etc.Each of the 4 fields(fieldname1,fieldname2,fieldname3,fieldname4), has a field to enter their marks(fieldname5,fieldname6,fieldname7,fieldname8).
(fieldname5 is to fieldname1, fieldname6 is to fieldname2, etc)Now I need to calculate them with the 5 highest marks, including 1.5*best of Maths1/Maths2/Chemistry/Economies/Physics, while others multiply by 1.
Forum: Plugins
In reply to: [Calculated Fields Form] How to get the five highest valueOK, what if the 4 fields are a dropdown list, inside the list i wanna check if 2 of them are equal to A or B?
Forum: Plugins
In reply to: [Calculated Fields Form] If else statement in table in calculation fieldThanks!
It works now!
Forum: Plugins
In reply to: [Calculated Fields Form] How to get the five highest valueSorry my bad. Let me explain this,
So in the top 5 highest values,
i) it must include one of the fields which is fieldname3, so i assume the formula would be
SUM(fieldname3,[fieldname4,fieldname6,fieldname5,fieldname16,fieldname18,fieldname20,fieldname22].sort(function(a, b){return a - b}).reverse().slice(0,4))
however, I am stuck in the second requirements:
ii) one of the best of 3 subjects, one of them is fieldname6. Another two is from electives dropdown, which are ‘Mathematics (Extended part – Calculus & Statistics)’ and ‘Mathematics (Extended part – Algebra & Calculus)’There are 4 dropdowns in total, which 2 of them has to be the Maths electives.
Forum: Plugins
In reply to: [Calculated Fields Form] If else statement in table in calculation fieldSorry just saw your reply after my reply.
Let me try with your suggestion