Gwentrac
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to used wp-editor in front endSorry a made a mistake.
But You have to read “$content = $_POST[‘result_description’]” and not $content = $_POST[‘event_description’];
Best regards,
Gwen
Forum: Plugins
In reply to: [SearchAutocomplete] Problem to select result in the autocompletion listHello,
Thank for your anwser but it doesn’t work. ??
I tried something like that:
———————————————————————-
wp_deregister_script(‘jquery-ui-core’);
wp_register_script(‘jquery-ui-core’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js’);
wp_enqueue_script(‘jquery-ui-core’);
———————————————————————-I forgot to tell you that this code is included in a hook in my function.php file.
add_action( ‘wp_enqueue_scripts’, ‘insert_js_in_footer’ );
function insert_js_in_footer(){
….
}Your plugin is exactly what I need and it will be very nice if I could use it.
Any other idea?
Best regards.
Gwen
Forum: Plugins
In reply to: [SearchAutocomplete] Problem to select result in the autocompletion listHello,
You are right. If I delete all my jQuery line of my function.php file I don’t have this problem anymore.
In my function file, I have the following code:
———————————————————————
wp_deregister_script(‘jquery’); wp_register_script(‘jquery’,”https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js”);
wp_enqueue_script(‘jquery’);wp_deregister_script(‘jqueryui’);
wp_register_script(‘jqueryui’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js’);
wp_enqueue_script(‘jqueryui’);
….
————————————————————————But the problem is that I need this loading for other element of my website!
How can I keep my script loading and implement your plugin? Do you have an idea?Thanks in advance.
Best regards.Gwen
Hello Marcus,
Thanks for your help but I had not succeed!!! I tried different staff but ….I spend all my sunday morning… grrhh!
Could you give me additional information?
Could you detail your proposition “add categories to the event that way”.Best regards,
Gwen
Yes, I overload the file ‘templates/forms/event/when.php’ to give specific ID et name to the 2 fields.
Then I added my javascript code in my theme js file.My problem now is to find which javascript event used to fill automatically the end_date field.
Any idea, please?
Best regards,
GwenHello,
Ok I added my custom js file. It’s working
I tried to had the following javascript code but It doesn’t work.
document.getElementById(‘gtr_start_date’).onchange=function(){
var t1 = document.getElementById(‘gtr_start_date’).value;
document.getElementById(‘gtr_end1_date’).value = t1;
};With “gtr_start_date” and “gtr_end_date” the id of the date texts field.
I don’t find which javascript event used corresponding to the start_date selection.
Could you help me, please?
Best regards,
GwenHello.
Could you confirm that I have to change only the file events-manager\includes\js\events-manager.js ?
Moreover, could you tell me which function should I change? I spend more than 4 hours this week end and I don’t find how to do it. : (
Thanks in advance.
Best regards.
Gwen
Hello agelonwl,
I think I find a solution. I add the following code in my functions.php template file.
function myStartSession() {
if(!session_id()) {
session_cache_expire(10); // in minutes
ini_set(‘session.cache_limiter’, ‘private’);
session_start();
}
}Best regards,
Gwen
Sorry, my website is not online for the moment. However, I can show you what can of page I get. check the below link.
On the web, I read sometimes about:
session_cache_limiter(‘private’);
$cache_limiter = session_cache_limiter();
session_cache_expire (30);
But I don’t know where to put this code.Best regards,
Gwen
Hello,
I did exactly the same.
But now, the problem is a have an “Web page expired” when I click on “Back”. I need to press F5 and I don’t want to ask my user to do it each time they want to go back in the event list page when they are in an event page.Any idea? A cache problem, maybe?
Agelonwl,
Thank a lot.
With your solution I get the error page “WEB page expired”?
Do you know how can change it? If I make F5 I come back in the previous page with the good selection.Best regards,
Could you tell me were I can find where the placeholder #_EVENTLINK is define.
Thanks that, I could make some modification.Best regards,
GwenHello,
I try but I doesn’t work!
Hello,
I tried it but It doesn’t work.
I loose the value of $_REQUEST[‘region’], $_REQUEST[‘states’]… the the event page.Best regards,
Gwen
Hello,
Do you mean I have to had something like that in my event-single.php file?
$region=$_REQUEST[‘region’];
$states=$_REQUEST[‘states’];And then, I have the link:
I will try that!
Best regards,Gwen