Forum Replies Created
-
AuthorPosts
-
May 15, 2017 at 9:36 am in reply to: How hide the HTML code text before the event description field on submitted page #1283963TorstenParticipant
Thanks Geoff, Your 2nd suggestion worked perfectly for me 🙂
- This reply was modified 6 years, 11 months ago by Torsten.
TorstenParticipantHey Andras,
Thanks for your help.
I actually fixed this one already with CSS.
Cheers,
TorstenTorstenParticipantHey Geoff,
Thanks for this!
I actually found a plugin that is limiting the characters and displaying it. It is called “Word Count and Limit” and works fine within the backend for post, pages and adding events.
However it is not working for the “outside” event submission page in my case at http://psychiatrie-frankfurt-am-main.de/events/community/add/ for the event description form.Would you be able to amend the PHP/JS script a bit to make this work?
I also actually have tried it with a JS script that works but only for the text (or code) type of the event description field not when I use the editor. You can see this here:
// character limit for event submission text fields // Add ID to Description textarea jQuery(document).ready(function ($) { // Set your character limit var count_limit = 1000; // Set the initial symbol count on page load $('#tcepostcontent-wc span').html($('#tcepostcontent').val()); $('#tcepostcontent').on('keyup', function () { var char_count = $(this).val().length; var tcepostcontent = $(this).val(); var text_remaining = count_limit - char_count; // Update the character count on every key up $('#tcepostcontent-wc span').html(text_remaining); if (char_count >= count_limit) { $('#tcepostcontent-wc').css('color', 'red'); $(this).val(tcepostcontent.substr(1, count_limit)); } else { $('#tcepostcontent-wc').css('color', null); } }).after('<p id="tcepostcontent-wc">Maximal 1000 Zeichen stehen zur Verfügung: <span>1000</span></p>'); });
Maybe you can amend that one a bit so it works?
Thanks for all your help!
Kind regards,
TorstenNovember 16, 2016 at 9:52 am in reply to: Community Events: edit possible without access to backend #1193317TorstenParticipantThanks for your help Geoff. This makes total sense!
November 10, 2016 at 2:29 pm in reply to: Community Events: edit possible without access to backend #1190651TorstenParticipantNo problem Geoff!
I tried this now but it looks that the organiser needs to sign into the backend and this is want I don’t want or am I wrong?
Cheers,
TorstenNovember 10, 2016 at 10:16 am in reply to: Community Events: edit possible without access to backend #1190478TorstenParticipantHey Geoff,
Thanks for your quick response!
I am not sure I can follow you. There are no tickets involved. Our website offers event organisers to submit their own event. I want them to be able to edit the event details afterwards in case something went wrong but without them logging into the wordpress backend.
So how is it possible?
Cheers,
TorstenNovember 10, 2016 at 9:44 am in reply to: Community Events: edit possible without access to backend #1190458TorstenParticipantHi Geoff,
Sounds good, thx, but how?
What would be the settings and how does it work after an event has been submitted. How to get it back or access to it?
Thanks for your help!
Kind regards,
TorstenTorstenParticipantThanks a lot Hunter (what a name) 😉
Actually I had included a custom JS script which caused an error “Uncaught TypeError: Cannot read property ‘length’ of undefined” so the map did not show up anymore.
It was for a character limitation of the event description field (id=”tcepostcontent”) which I need to set to a max of 1000. Would you have an idea what else or how else I can implement such thing?Is there maybe a bit of php or else even a plugin that can be used?
Here is the code snippet I used. Maybe you can even tell how to fix it?
// character limit for event submission text fields
// Add ID to Description textarea
jQuery(document).ready(function ($) {
// Set your character limit
var count_limit = 1000;// Set the initial symbol count on page load
$(‘#tcepostcontent-wc span’).text($(‘#tcepostcontent’).val().length);$(‘#tcepostcontent’).on(‘keyup’, function () {
var char_count = $(this).val().length;
var tcepostcontent = $(this).val();// Update the character count on every key up
$(‘#tcepostcontent-wc span’).text(char_count);if (char_count >= count_limit) {
$(‘#tcepostcontent-wc’).css(‘color’, ‘red’);
$(this).val(tcepostcontent.substr(0, count_limit));
} else {
$(‘#tcepostcontent-wc’).css(‘color’, null);
}}).after(‘<p id=”tcepostcontent-wc”>Maximal 1000 Zeichen stehen zur Verfügung: <span>0</span></p>’);
});The error is on line 9 at “$(‘#tcepostcontent-wc span’).text($(‘#tcepostcontent’).val().length);”
Thanks a lot,
TorstenTorstenParticipantHey there,
Also the mobile view does not look great.
The calender days are overlapping as you can see here:https://www.dropbox.com/s/uqpcaul01i25amb/Screenshot%202016-04-06%2015.40.51.png?dl=0
Thanks for your help.
Cheers,
TorstenTorstenParticipantHey Brian,
The update fixed the issue indeed!
Thanks a million for your quick and efficient help,
TorstenJune 19, 2015 at 1:27 pm in reply to: Updates broke my site – DE translation are wrong – addons no longer working #971489TorstenParticipantThe mesage there is currently:
“Veranstaltung submitted.
Submit another veranstaltung”
But I need:
“Ihre Veranstaltung wird in Kürze freigeschaltet.
Falls Sie Ihre Veranstaltung nach 1 – 2 Tagen nicht auf der Homepage sehen können, aktualisieren Sie bitte Ihre Browseransicht indem Sie gleichzeitig die Tasten Strg und F5 drücken bzw. einfach einen anderen Browser verwenden.Bitte beachten Sie, dass in der Broschüre leider nur Veranstaltungen erscheinen können, die bis zum 19.06.2015 angemeldet wurden.
Selbstverständlich werden alle Veranstaltungen der Psychiatriewoche 2015 jederzeit online zu sehen sein.”June 19, 2015 at 1:26 pm in reply to: Updates broke my site – DE translation are wrong – addons no longer working #971487TorstenParticipantHey there,
Also my customised message after submission of an event is now gone and has been replaced with a terrible translation.
How can I change this so I can show a page with my wording there that I have been setup already?
I used an additional plugin for this before but this also causes now my site to break as soon as activated.
Thanks for your quick help,
TorstenTorstenParticipantThe mesage there is currently:
“Veranstaltung submitted.
Submit another veranstaltung”
But I need:
“Ihre Veranstaltung wird in Kürze freigeschaltet.
Falls Sie Ihre Veranstaltung nach 1 – 2 Tagen nicht auf der Homepage sehen können, aktualisieren Sie bitte Ihre Browseransicht indem Sie gleichzeitig die Tasten Strg und F5 drücken bzw. einfach einen anderen Browser verwenden.Bitte beachten Sie, dass in der Broschüre leider nur Veranstaltungen erscheinen können, die bis zum 19.06.2015 angemeldet wurden.
Selbstverständlich werden alle Veranstaltungen der Psychiatriewoche 2015 jederzeit online zu sehen sein.”TorstenParticipantHey there,
Also my customised message after submission of an event is now gone and has been replaced with a terrible translation.
How can I change this so I can show a page with my wording there that I have been setup already?
I used an additional plugin for this before but this also causes now my site to break as soon as activated.
Thanks for your quick help,
TorstenTorstenParticipantHey there,
Luckily I managed to fix this myself.
However all my additional add-ons and special settings are gone now.Also I noticed that the German translations have gone worse. It’s now part German part English and therefore looks pretty bad.
Is there a way to go back to an older version of the plugins?
Cheers,
Torsten -
AuthorPosts