Forum Replies Created
-
AuthorPosts
-
charlestupman
ParticipantHi Rob, Samuel, saw the note and appreciate that it requires a lot of time to develop. Thank you for all your help getting your plugin to work on my site. Really appreciate it.
Regards, Charlie.
charlestupman
ParticipantHi Samual, thank you for the quick response. Unfortunately I am 100% committed to this theme. Normally I would test it before building but the client only decided they wanted the eCommerce features after green lighting the design. This solutions works fine, thank you for taking the time to address this problem, I know it is pretty unique and a lot of developers don’t provide this level of support so I really appreciate it. I will be using your products indefinitely. I just had one more thing, I have been in touch with the theme developer who said “If your plugin depends on JS code, you’ll need to run it in the callback of the theme’s content loading function (js/ajax.js, between lines 125-136)”. If I could I would really like to have The Events Calendar running within the theme’s framework so if you could let me know what js I need to run to have this work properly (and possibly the code to do so as I am unfamiliar with javascript) Then I would be forever grateful to you.
Thanks again for the quick response.
charlestupman
ParticipantI think all you would need to do is alter the “Single Event Link” function in link.php:
/**
* Single Event Link
*
* Get link to a single event
*
* @param int $event Optional post ID
* @return string
* @since 2.0
*/
function tribe_get_event_link($event = null) {
if ( ” == get_option(‘permalink_structure’) ) {
return apply_filters( ‘tribe_get_event_link’, TribeEvents::instance()->getLink(‘single’, $event), $event );
} else {
return trailingslashit( apply_filters( ‘tribe_get_event_link’, TribeEvents::instance()->getLink(‘single’, $event), $event ) );
}
}charlestupman
ParticipantHi Rob, thanks for the quick response. My theme developer is not being very helpful. Is there any way that I can get the code to pull relative URLs instead of absolute ones for these links. There are only 4 links I need updating (The title link, the “find out more” link on the events list page and the “next event” and “previous event” links on the Event page itself. I would really appreciate the help as I am so close to completing this theme.
charlestupman
ParticipantMy theme is definitely an issue, I think that because the pages are loaded with AJAX they don’t pull in the scripts that load the map (or the proper styling). If I load the page with a relative URL this doesn’t happen, would it be possible to change the code for links in views/singleevent.php and list.php to pull in relative links instead of absolute ones that load with AJAX. I am so so with php so i’m finding it hard to reach this solution on my own. I basically need new PHP code for any links to events (including next and previous links within the project pages)
charlestupman
ParticipantHi Barry, I just need to get these pages working properly either by: 1. Having the pages show up properly in their hashtag urls (http://linsrv103.linuxcontrolpanel.co.uk/~potent/potenttest/#/~potent/potenttest/events/ as opposed to http://linsrv103.linuxcontrolpanel.co.uk/~potent/potenttest/events/), all my other pages work fine or 2. By having the menu links working properly at their absolute address (again, http://linsrv103.linuxcontrolpanel.co.uk/~potent/potenttest/events/). I was having similar problems with my wordpress pages but managed to get around it by using shortcodes and creating a template through which all wordpress content flowed. For some reason the url calling system that allows pages to load without reloading the entire page is broken on events calendar pages and only works within the page and not on the menu items. I was trying to use an iframe to pull in the events list but this didn’t work. I also tried to create a template list page but the problem is that all pages generated by events calendar behave the same way. Do you know of any reason why the pages will not load by their hashtag URLs or why it would disable the facility for being able to do this with other links. I can provide you with any information you need.
charlestupman
ParticipantTried to create a template with the “list.php” code but not working.
-
AuthorPosts
