jbx
Forum Replies Created
-
Hi angelo_nwl,
I don’t want the default pagination. The client just wants NEXT and PREV with some surrounding wrapper elements for styling them one to the left and one to the right and putting the respective images around them. Its not as simple.
Hi philipjohn,
So, I temporarily removed the custom event-list.php, so that it uses the default ugly list of events. The next link still didn’t have any HREF.
I then temporarily commented out the filter I pasted earler here: http://pastebin.com/AUxjPkiB
The ugly
1 2 3 >links appeared and their page links were fine. So I guess one of the latest updates had some change which broke this in some way? Even though angelo_nwl said he tried my snippet and it worked for him.You mean you want to see the site URL?
This is the link: http://www.eve.com.mt/eventsAs you can see if you do ‘View Source’ the NEXT link just has an empty HREF.
I also have my own
event-list.phpunder my own theme inplugins/events-manager/templatesMaybe something changed in the functions used by that then?
Code here: http://pastebin.com/kseiFXDg
Sure, here it is:
The Previous and Next are appearing as they should, however their HREF links are ending up completely empty.
Thanks for the information. I think I had tried it with ‘above’ and ‘below’ and it still didn’t work. In the end I just removed the plugin and put the HTML/Javascript code directly in the template, because I couldn’t figure out what changed suddenly.
All I had added in the addthis_config was the flag to remove the promo popup, and I removed the JSON back to how it was.
I couldn’t understand what was causing the problem and in the end I just uninstalled the plugin completely, I couldn’t leave the site with the sharing facility working incorrectly. Instead I just added the AddThis Javascript/HTML code directly myself in the template.
Not sure I understand you correctly, but if you are using jQuery (i.e. client side Javascript) to get the address, how are you expecting the Contact Form (i.e. PHP on the serverside) to know about it and populate it?
I think you can simply do it without this plugin and just use Contact Form 7 and jQuery. Give the street field an ID in the Contact Form 7 tag generator, and then in the Javascript/jQuery code you have that gets the address just use whatever text you get and set it as the
valueof the element with that ID.So something like this, assuming your contact form has a field which you gave it ID
street1://some code which gets the address through jQuery and stores it in variable streetAddress $('#street1').value = streetAddress;Forum: Hacks
In reply to: How to remove "Add Media" button in WP 3.5?Just put ClaytonJames’s code in your theme’s functions.php file and it will work. (Just tried it on version 3.5.2)
Forum: Plugins
In reply to: [W3 Total Cache] Which Version of W3tc is stable with WP 3.5.1I didnt have problems with 0.9.2.9 on WordPress 3.5.1.
Its with 0.9.2.10 that problems started with minification of JS and CSS and they are still not completely solved with the latest version 0.9.2.11.Forum: Plugins
In reply to: [W3 Total Cache] Latest version breaks Minify of JS and CSSUpgraded to version 0.9.2.11. CSS seems to be OK but JS is still broken so I had to keep minification of that off. When I turn it on it suddenly stops finding jQuery.
Forum: Plugins
In reply to: [W3 Total Cache] Performance droped after update to Plugin 0.9.2.10Upgraded to 0.9.2.11 and JS is still broken when turning on minify of JS. The CSS issue seems to be fixed.
Forum: Plugins
In reply to: [W3 Total Cache] Performance droped after update to Plugin 0.9.2.10I just disabled CSS and JS minification for now. I was having the same problem and all JS and CSS wasnt working properly.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Pagination stylingOK managed to do it properly, posting the info here so that its useful for anyone looking for it.
One can write his own
em_paginate()function following this signature and putting it in your theme’sfunctions.php:function my_em_paginate($links, $link, $total, $limit, $page=1, $pagesToShow=10) { //your code here return $pagination_html; }Those parameters tell you how the default
$linkswill be displayed, the$linksyntax used to link to other event list pages, the$totalnumber of events, the$limitof how many events should be displayed on each page, which$pageis being displayed, and how many$pagesToShowin the event list page.After this it is very important that you put the following line:
add_filter('em_events_output_pagination','my_em_paginate', 1, 6);Note the filter name
em_events_output_paginationand the parameters 1 and 6, meaning high priority (lower number = earlier execution) and the number of arguments the function takes, which in our case is in fact 6.That worked for me and no need for messy function overriding.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Pagination stylingthanks for your reply.
Well that post isn’t really solving the problem properly. Its just a hack to replace the < and > with ‘Prev’ and ‘Next’. Its not really getting the links to enable you to manipulate them according to the template’s styling requirements.
For instance I need to put the Next on one side and Prev on the other side, replace them by links of a certain class (that have a background image), and eliminate the numbers.
Is there any way to get the next link and prev link URLs similarly to how wordpress
next_posts_link()andprevious_posts_link()functions work? Maybe there are some internal functions used byem_paginate()which provide these for it to construct the string in the first place?