Dan Hannigan
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsify WP] Set style selector to post ID?Nevermind – got it
'selector' => '#post-' . get_the_ID()'
Forum: Plugins
In reply to: [Dave's WordPress Live Search] I can't exlude page from live searchHey guys, there’s a little note on that exceptions area that might help clear some things up –
“NOTE: These pages will still be returned in search results. This only disables the Live Search feature for the search box on these pages.”
Forum: Plugins
In reply to: [Accordion Shortcode] Fixed accordions height ?My guess would be generating a random ID would help if you have multiple accordions on one page – resolves conflicting IDs. But, with the code above you shouldn’t have to mess with the random ID ??
I’m going to keep testing the plugin today, but it almost seems like users cant actually pass values to the accordion like it states you can. I’m not sure though.
Forum: Plugins
In reply to: [Accordion Shortcode] Fixed accordions height ?Okay, I just posted a very ugly hack for this, but then I hopped in to the jQuery Accordion docs and found one simple line that did the trick.
Please note this requires modifying the plugin itself, which I typically never condone, but it does the job and doesn’t really futz with the plugin too much.
In the plugin, starting on line 114 you’ll find this code
$query_atts = shortcode_atts( array( 'autoHeight' => false, 'disabled' => false, 'active' => 0, 'animated' => 'slide', 'clearStyle' => false, 'collapsible' => false, 'event' => 'click', 'fillSpace' => false ), $attr);
What you’re going to want to do is drop a new line in that shortcode_atts array that looks like this: ‘heightStyle’ => ‘content’
Don’t forget to include a , on the previous line if you’re adding. Here’s my code below
$query_atts = shortcode_atts( array( 'autoHeight' => false, 'disabled' => false, 'active' => 0, 'animated' => 'slide', 'clearStyle' => false, 'collapsible' => false, 'event' => 'click', 'fillSpace' => false, 'heightStyle' => 'content' ), $attr);
Again, it’s never ideal to modify the plugin like this, but it does work. If I can figure out how to properly integrate this in to where the user can set that variable I’ll fork the plugin on GitHub and see if I can get the original developer to pull it in to their version.
Forum: Fixing WordPress
In reply to: Showing and navigating posts by date/week… can it be done?Not sure if I should piggyback on this or move to a new thread but I’m trying to get similar functionality worked out but instead of weekly it would be daily. The navigation being next day, previous day, and so on.
I’ve been searching for daily pagination for a few days and have come up short. I can get the pagination part to work – displaying links and such – but then it doesn’t query for posts from that day. Just using a simple loop to run it:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $today = getdate(); query_posts("year=$today[year]&monthnum=$today[mon]&day=$today[mday]&paged=$paged&orderby=date&order=asc"); if (have_posts()) : while (have_posts()) : the_post(); ?>
It’s a little daily events calendar type thing.
Let me know if I need to move this to a new thread too…
Forum: Plugins
In reply to: [Flickr Press] [Plugin: Flickr Press] photos not showing upI’m having the same issue here… except when I view it on my computer, on firefox, it works. But when I go to any other computer, or any other browser it doesn’t work.
I’m fairly certain I’ve linked everything right. Any suggestions?
Forum: Plugins
In reply to: Variable Links based on UserSorry I’m not responding till now, just got in to work and tried out that code and boom! It worked! I did have to add a full https://www.mydomain.com/ addy in order for it to work, but it does! Thanks so much!
Forum: Plugins
In reply to: Variable Links based on UserI was digging around more and stumbled across this on the website for Peter’s Login Redirect:
Reply from Peter: If you are trying to make a link to the redirect URL you’d set up for a specific user using my plugin, you’ll find the username in the “rul_value” field and the URL in the “rul_url” field in the [wp]_login_redirects table. So you can write a database query to get the proper URL for the currently logged in user.
So that sounds like a solution, problem is I don’t know how to create a database query… I know basic PHP, but if someone could even point me in the right direction on how to do this, or give a coding example (if it’s easy) that’d be great.
Forum: Everything else WordPress
In reply to: Multi-user site w/ individual pages?That’s not too bad of a solution – I’ve done something similar to that for a site I build so I know it’s not too hard to develop and implement. I’ll have to fiddle with that.
Forum: Everything else WordPress
In reply to: Multi-user site w/ individual pages?I could do that with author templates, I’ve worked with them before. But I was under the impression those aren’t really something the user can update. As in the example above… I/the company I work for wouldn’t be doing the updates, the individual salesmen would. I just might not know the ins and outs of author templates ??
Forum: Everything else WordPress
In reply to: Multi-user site w/ individual pages?It would be just an individual page that the user can post information / updates on. Say if they were salesmen of some sort… they could put something about themselves, and little blurbs about their current specials.