SchuminWeb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Needed: Old media manager as pluginBackground on this: this was accomplished as a modification to functions.php at the theme level on another thread, and I believe that the gist of this request is to encapsulate those changes into a plugin rather than doing skin work.
This is the original discussion:
http://ww.wp.xz.cn/support/topic/is-there-a-way-to-disable-the-new-media-manager?replies=14Forum: Fixing WordPress
In reply to: Is there a way to disable the new Media Manager?I would agree that wrapping these changes up as a plugin would be wonderful (since I’m sure we’re not the only ones to think about this), but I’m not sure if this is actually the venue where we’re supposed to do that.
That brings the question: what is the proper venue for “plugin wanted” types of requests? Obviously we can cite this thread in that request, but not sure exactly where it needs to go.
Forum: Fixing WordPress
In reply to: Is there a way to disable the new Media Manager?Works perfectly. Thanks much! I now can upgrade my sites to 3.5 and not lose any functionality.
Forum: Fixing WordPress
In reply to: Is there a way to disable the new Media Manager?Actually, I spoke too soon. It works perfectly on the regular editor screen, but not when you take it to fullscreen, unfortunately. That still shows the new box.
I tinkered around with the code a bit based on your suggestion, but unfortunately wasn’t able to come up with anything that worked for fullscreen.
Any ideas?
Forum: Fixing WordPress
In reply to: Is there a way to disable the new Media Manager?Perfect! Thanks much.
Forum: Fixing WordPress
In reply to: Is there a way to disable the new Media Manager?A.Morita, first of all, thank you for the code.
I put it in, and unfortunately, the button does not work. There’s no link on the button to make the dialog box come up. I got the same result in both Firefox and Chrome. I copied the code with no modification other than adding the obligatory PHP open and close.
Forum: Themes and Templates
In reply to: Use of a separate theme for lower than a certain screen width?That’s exactly what I’m trying to avoid. Doing it with CSS alone I fear will cause me problems with AdSense because it involves different ad spots for different sizes. I want to be able to switch to a different theme entirely for lower resolution.
I have found plugins that will use different themes based on screen width and on user agent, but not both of them together, and running the two plugins together causes the screen width one to override any of the user agent ones. So I feel I’m stuck. Is there something that I can put in my “screen” theme to tell it to go to a different theme if it detects that the resolution is less than a specified threshold? That’s more what I’m looking for.
That’s awesome, thank you very much! I believe that I can build on this from here. Greatly appreciated!
Forum: Themes and Templates
In reply to: Add custom post above page contentThat got it! Thanks much. You did leave out a ?> in your code, however, so here’s the final code that I ended up using:
<?php $wp_query->in_the_loop = true; $addedLoop = new WP_Query(); $addedLoop->query('post_type=site_updates&post_status=publish&paged=$paged&posts_per_page=3'); // var_dump($addedLoop); - uncomment this to check the contents returned while ($addedLoop->have_posts()) : $addedLoop->the_post(); ?> <li><p class="smalltext"><B><?php the_time('F j, Y'); ?>, <?php the_time('g:i A'); ?></B> – <?php the_content(); ?></p></li> <?php endwhile; wp_reset_query(); ?>Your last suggestion of just putting in a bogus rel-attribute worked like a charm. Thank you very much.
As far as features go, I like #1 in your earlier comment, where you add a settings field to blacklist or whitelist certain domains for lightboxing. I think optimally, there should be a setting to have either a whitelist of domains (i.e. only these domains should be lightboxed and nothing else) or a blacklist of domains (i.e. all domains should be lightboxed except for these), and then a text box for the corresponding list. That seems like the best solution, since while the bogus rel-attribute definitely works, it is a little cumbersome, and too easy to forget to set and/or do inconsistently.
Let me know what you think!
Forum: Themes and Templates
In reply to: Add filler graphic based on custom fieldFigured it out.
Forum: Fixing WordPress
In reply to: Next/previous page not working for custom post types onlyPosting the full PHP per an off-board request:
<?php /* Template Name: Archives (Site Updates) */ ?> <?php get_header(); ?> <?php get_template_part('sidebar-archives'); ?> <?php remove_filter ('the_content', 'wpautop'); ?> <div id="content"> <h2 class="centerparagraph"><?php the_title(); ?></h2> <?php global $query_string; query_posts("post_type=site_updates&post_status=publish&posts_per_page=50"); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <p><B><?php the_time('F j, Y'); ?>, <?php the_time('g:i A'); ?></B> – <?php the_content (); ?></p> <?php endwhile; endif; ?> <div id="updatenavigation"> <hr /> <div id="updatenavigationleft"> <?php next_posts_link('Previous entries') ?> </div> <div id="updatenavigationright"> <?php previous_posts_link('Next entries') ?> </div> </div> <?php wp_reset_query(); ?> </div> <?php get_footer();?>So far, so good. That doesn’t cause a PHP error as it did before, however, there’s no link in there. If I put the URL’s custom field in between those quote marks in the a tag, then I get myself in trouble again. Is there a way to put the custom field for the URL in there without causing the site to break?