Events Made Easy › Forums › Bug fixed or feature request implemented › Jquery problem
Tagged: eme_get_events_list
- This topic has 21 replies, 2 voices, and was last updated 13 years, 10 months ago by Anonymous.
-
AuthorPosts
-
Tue 11 Jan 2011 at 22:55 #42399AnonymousInactive
Hello,
I just installed the plugin and right after i activated it, all the jquery function stopped being recognized as if the jquery js file was no there.
I am using WP 3.0.3 with network activated.
HAs anyone experienced this problem?
Regards,
Luis
Tue 11 Jan 2011 at 22:57 #46123AnonymousInactiveUpdate,
this only happened after i called the eme_get_calendar function on the sidebar.php of my theme.
Tue 11 Jan 2011 at 23:03 #46124FrankyKeymasterI believe this is fixed in trunk already, try this change for eme_calendar.php:
http://plugins.trac.wordpress.org/changeset/329066/events-manager-extended/trunk/eme_calendar.php
Tue 11 Jan 2011 at 23:37 #46125AnonymousInactiveHi,
thanks for the reply.
I changed the code to:
$eme_need_calendar_js=0;
and i am no longer getting js errors, however, i am getting a strange events page…
http://candidatura.comuf.com/events/?calendar_day=2011-01-12
feels like i am doing something wrong..
Wed 12 Jan 2011 at 08:19 #46126FrankyKeymasterNo no, you need to add these lines:
global $eme_need_calendar_js;
$eme_need_calendar_js=1;at lines 22,23 (at the beginning of the function eme_get_calendar)
Wed 12 Jan 2011 at 22:47 #46127AnonymousInactiveHi,
Those lines of code were there already. When i changed the value from 1 to 0 the error stopped occurring. Probably because i am loading jquery for some other stuff on the site. Can that be it?
Wed 12 Jan 2011 at 23:13 #46128FrankyKeymasterSorry, but I would need admin access on your site to verify some things. If you want, mail the info to me: liedekef [at] telenet.be
Wed 12 Jan 2011 at 23:41 #46129AnonymousInactiveHi,
I just sent you the information.
Feel free to check it out when you can.
Thanks
Thu 13 Jan 2011 at 07:50 #46130FrankyKeymasterYour theme is the problem: it includes 2 versions of jquery:
<script type='text/javascript' src='http://candidatura.comuf.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
and further down:
<<script type='text/javascript' src='http://candidatura.comuf.com/wp-content/themes/candidatura/js/jquery-1.4.3.min.js'></script>
The first one is added by wordpress, the second one by your theme. So fix your theme 🙂
Thu 13 Jan 2011 at 12:23 #46131AnonymousInactiveHi,
I’ll look into it and get back to you later tonight.
Thanks for the support.
Thu 13 Jan 2011 at 23:32 #46132AnonymousInactiveHi
Thanks for the tip.
I managed to corretc the jquery issue, however, the events page still doesn’t show correctly. Can you please check this page and see if you can tell what can be wrong?
http://candidatura.comuf.com/lista-de-eventos/?calendar_day=2011-01-18
regards,
Luis
Fri 14 Jan 2011 at 08:23 #46133FrankyKeymasterThere’s no such placeholder called “#_LOCATIONTOWN”, see
http://www.e-dynamics.be/wordpress/#formatting-events for a list of the placeholders you can use.
Sat 15 Jan 2011 at 10:59 #46134AnonymousInactiveHi,
I understand that, the thing is that i didn’t insert any placeholder in the event, just an image and some text.
thanks 🙂
Sat 15 Jan 2011 at 11:31 #46135FrankyKeymasterLook in the “default single event format” settings (or per event is also possible), there you’ll have somthing filled in. And for the rest: use placeholders like #_NOTES etc … as placeholders to show your content in any way you want.
Sat 15 Jan 2011 at 12:28 #46136AnonymousInactiveYeah, i found it in the settings page…that’s strange because i hadn’t start to “mess” with that part yet…can it be some kind of issue?? or it can be just my mix up 🙂
btw, is there any way i can implement a customized events page?? like for instance a page-{slug}.php for events?
Sat 15 Jan 2011 at 13:30 #46137FrankyKeymasterJust create a page within wordpress and use the shortcode [events_list] and you’ll get a list of events. The parameters you can use for this shortcode can be found on the doc site: http://www.e-dynamics.be/wordpress/#shortcodes
Wed 19 Jan 2011 at 16:44 #46138AnonymousInactiveWill that allow me to have some pagination and search and filter features?
Is there any way one can buils a page and call some function from php?
Wed 19 Jan 2011 at 16:48 #46139AnonymousInactivesorry for the alst post…i think i got it…:)
Wed 19 Jan 2011 at 17:07 #46140AnonymousInactivehhhmm…guess i didn’t get it…
I have the following code:
$limit = 10;
$scope = “future”;
$order = “ASC”;
$format = ”;
$echo = 0;
$category = ”;
$showperiod = ”;
$long_events = 0;
$author = ”;
$contact_person=”;
$paging=0;
$lista = eme_get_events_list($limit, $scope, $order, $format, $echo, $category,$showperiod, $long_events, $author, $contact_person, $paging);
and the return of the function is HTML…isn’t there a way it can return an array or an object??
Am i doing something wrong?
Wed 19 Jan 2011 at 18:01 #46141AnonymousInactiveWell…i hope you don’t mind but i changed your function a bit…when i pass the parameter echo = 1 the function will return ann array with the structure that used to generate the html.
Wed 19 Jan 2011 at 19:04 #46142FrankyKeymasterUse the eme_get_events function. In the latest trunk, these are the parameters:
function eme_get_events($o_limit = 10, $scope = “future”, $order = “ASC”, $o_offset = 0, $location_id = “”, $category = ”, $author = ”, $contact_person = ”)
Thu 20 Jan 2011 at 23:32 #46143AnonymousInactiveGreat, i got it working.
Thanks:)
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.