ryancp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Slideshow doesnt work with last uptdateUnder plugins in your dashboard, click on editor and then click on “NextGEN Gallery” in the right hand side (You can probably get to it here: http://www.magarciaguerra.com/wp-admin/plugin-editor.php?file=nextgen-gallery/nggallery.php). Search for “if ( $this->options[‘galShowSlide’] )” and then add two forward slashes to the beginning of it like this //if ( $this->options[‘galShowSlide’] ).
That tells php to ignore that line of code.
Save the file (make sure the file is writable by your server) and see if it makes your slideshows work.Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Slideshow doesnt work with last uptdateI had the same problem.
I noticed it was because swfobject.js (inside admin/js) wasn’t put inside the <head> of my pages.
So in nggallery.php I just commented out line 283:
//if ( $this->options['galShowSlide'] )
This forced the plugin to enqueue the swfobject.js file.That seemed to do it for me. I don’t know why $this->options[‘galShowSlide’] was false, but it was, and cause it to not enqueue the js file.
Hope that helps.
Forum: Themes and Templates
In reply to: How can i put posts in a page except home pageThe way I handle this is to create a new page template in your theme’s root directory. Call it “page-template-whatever.php”.
In that new file, you can add this code:<?php /* Template Name: YourTemplateName */ ?> <?php get_header(); ?> <div id="content"> <h1><?php the_title(); ?></h1> <?php query_posts("cat=27&showposts=5"); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" style="margin-bottom: 15px;"> <?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --> <p style="margin-top: -10px; margin-bottom: -8px;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><strong><?php the_title(); ?></strong></a> <?php the_excerpt('Read the rest of this entry »'); ?> </div> <?php endwhile; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here. <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <!-- end #content --> <?php get_footer(); ?>The top part just tells WordPress what the template name will be, and when you write/edit your page, you can select this as a template and it will process this code.
Basically, this is a static page that gets the most recent 5 posts that are in the category with ID of 27. This is just an example. Feel free to look in the codex (http://codex.wordpress.org/Pages) on how to modify this to suit your needs.
Forum: Fixing WordPress
In reply to: Multple BlogsI’m with you. The only way I know to do multiple blogs would be to use wordpress mu (http://mu.wordpress.org). I’ve never tried it though.
Ideally, you should be able to set up one directory of the core wordpress files and have another folder with only the necessary files for each blog you want to run. But, wordpress (the original version you download from wordpress.org) doesn’t let you do that. So, to do multiple blogs, you just have to install them into a different folder and maintain all the updates etc. (the same process as installing one blog, but do that for however many you want).
It’s kind of a pain, trust me, I know.
Forum: Fixing WordPress
In reply to: Multple BlogsHi ninjon,
For the splash page with recent posts of all your blogs, I would just bring in the rss feeds and use php to parse through them and display the title, blurb, and a link to the full post.
If you have php5, this is pretty simple to do.As far as wp and phpbb, there is this that I’ve heard about recently: http://www.wp-united.com
Forum: Your WordPress
In reply to: Examples of WP that don’t look like blogs?We just launched a wordpress-based website that is Texas Tech’s news and information site. It holds our releases, clips, stories, and videos.
Take a look: Texas Tech TodayForum: Plugins
In reply to: Choose a sidebar for each Page/PostHi bcreighton,
If I understand your question correctly, you could probably set up an if else in the single.php template page that says “if the meta key $sidebar_number = 1 then include sidebar1.php”, etc. for each sidebar version. Then, in your post/page, make a plugin that lets the user choose (from a drop down select list for example) which sidebar they want, and then when they save their post, insert the sidebar version as a meta key/value pair (custom field).
I think that should accomplish what you are looking to do.
Forum: Plugins
In reply to: Multiple TinyMCE Editors When Writing a PostWell, I tried adding another tinymce editor to a textarea I added through a plugin I created. I did this the standard way as you would add a tinymce editor to any other application that wasn’t wordpress. The result was that the editors buttons and appearance was carried over to the original “post” textarea (what I did not want).
So, my solution was to just add an FCKeditor to my own textarea, and leave tinymce alone. This seems to be an adequate workaround.
HTH anyone who needs to do the same.