Hi,
you can either try to used template file at wp-content/plugins/events-manager/templates/templates/events-list.php and/or event-single.php then add an href tag with PHP $_REQUEST
to use templates: http://wp-events-plugin.com/documentation/using-template-files/
Hello,
I already have and used a template file for event-single.php.
But what you mean by “add an href tag with PHP $_REQUEST”? Is it linked with Cookies?
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:
Retour
I will try that!
Best regards,
Gwen
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
reading your first post; have you tried something like
<a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true"><img src="http://yourlinktoyourimage.jpg" alt"Go Back" /></a>
Hello,
I try but I doesn’t work!
Could you tell me were I can find where the placeholder #_EVENTLINK is define.
Thanks that, I could make some modification.
Best regards,
Gwen
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,
seems that it is working fine when I tested it; here’s what I did
1. modify template file at /wp-content/plugins/events-manager/templates/templates/event-single.php
2. copied the template above to my theme directory at /wp-content/themes/YOUR_CURRENT_THEME/plugins/events-manager/templates/event-single.php
3. edit the file and save
4. here is my actual template
<?php
global $EM_Event;
/* @var $EM_Event EM_Event */
echo $EM_Event->output_single();
?>
<a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true"><span>Back</span></a>
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?
Do you have a sample link for us to see?
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