luckdragon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change max upload limitsome hosts allow a php.ini to be placed in your directory which will override the default, some don’t.
also, you can try modifying it in .htaccess
place this in your .htaccess file
php_value upload_max_filesize 15Mif your site errors, you know that php_value is not allowed in your .htaccess
additionally, you can try adding to your script:
ini_set('upload_max_filesize','15360000000');(note that if you are using ini_set, you can’t use the shorthand of 15M, you have to put the actual value that it is equal to (15,000,000 * 1024))
Forum: Fixing WordPress
In reply to: How can I make the homepage title different from the navigationmy fault, this line
add_filter('the_title' => 'my_set_title');should actually be:
add_filter('the_title', 'my_set_title');Forum: Fixing WordPress
In reply to: I am having a thumbnail issuehave you tried removing the slideshow plugin to see if it allows you to upload again? are you over your quota for your hosting account? (i.e. out of space), etc…
Forum: Fixing WordPress
In reply to: having a "blond moment" or "brain fart"here’s the jest of it, I’m writing a custom plugin for a tree farm/nursery, they have several dozen types of trees, and then each of those tree types comes in several sizes
I have admin.php?pagename=trees-types which brings up a list of the different types of trees (and allows you the option of editing them, deleting them, or managing the different sizes), what I want to do is when they click the link to manage the sizes, have it go to:
admin.php?pagename=trees-sizes&id=XXX
but I can’t remember, for the life of me, how to tell the plugin that trees-sizes is supposed to run a specific function without adding it to the admin menu (since the id needs to be set in order for it to work, and I don’t like the concept of them clicking on it from the menu just for it to either say “you didn’t specify a tree” or redirect them to the same page as the “tree types”.)Forum: Fixing WordPress
In reply to: Cannot login to WP Admin Screen – Getting fatal errorI would start by looking at the file that’s generating the error, and see what’s on line 168.
considering that wp-admin/index.php is only supposed to be around 106 lines by default, there might be something wrong with yours.
Forum: Fixing WordPress
In reply to: How can I make the homepage title different from the navigationin your functions.php add this:
function my_set_title($title) { if (is_home()) $mytitle = "Welcome To My Site"; if (in_the_loop()) return $mytitle; else return $title; } add_filter('the_title' => 'my_set_title');Forum: Plugins
In reply to: Add HTML code for "badge" from FatCowright now, it has
<a href=change that to<a style="float:right" href=Forum: Fixing WordPress
In reply to: Heading text extralinkactually, there’s another way..
use the “extra fields” option in wordpress..
create an extra field (I’ll call it extraCode for this code) and put in the value the extra code/text you want it to display
then modify your template so instead of showing just the_excerpt(); it shows:
<?php $extraCode = get_post_meta($post->ID, 'extraCode', true); if ($extraCode) : echo $extraCode; endif; the_excerpt(); ?>then, anytime you want to do that, you just add the extraCode extra field to your post, and it will get displayed before the excerpt
Forum: Fixing WordPress
In reply to: Heading text extralinkjust for that post?
Forum: Hacks
In reply to: Add rel=lightbox to images extracted automatically from rss feedsforeach ( $rss_items as $item ) : ob_start(); echo '<li>\n<a>get_permalink() . '">' . $item->get_title() . "</a>\n"; echo '<p>' . $item->get_description() . "</li>\n"; $content = ob_get_clean(); $content = preg_replace("/img/i",'img rel="lightbox"',$content); echo $content; endforeach;that should do it for you.
Forum: Fixing WordPress
In reply to: How do I limit the amount of Text?in your template’s functions.php put:
function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); }then, in your template for the page you want, search for
<?php the_excerpt();?>and change it to:<?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,25); ?>where the 25 is the number of words you want to limit it to.
Forum: Fixing WordPress
In reply to: How to remove the comment section on certain pages?quick edit the page, and it gives you an option to “allow comments”, just unclick that
Forum: Fixing WordPress
In reply to: Heading text extralinkyou are saying you want it as part of the headline title? or part of the_excerpt?
Forum: Plugins
In reply to: Add HTML code for "badge" from FatCowI would recommend using the text widget and putting the code in there, if that placement is ok, otherwise, you might have to edit your theme’s header.php to place it where you want
Forum: Fixing WordPress
In reply to: Change Default Username & Password Text Fields on Registration Pageyou probably need to edit the plugin’s php file to change that text