mildlyhotpeppers
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Filtering the_content();I ended up just using javascript for that part, using the string.replace(); function. I made it replace “<p><” with “& lt;” and “></p>” with “& gt;”. The second part, however, isn’t as easy:
I wanted to also add an option to paste it into a forum, using the forum markup. So it would look like
[URL="<?php the_permalink(); ?>"] <?php the_content(); ?>[/URL] [URL="https://www.mildlyhotpeppers.com/"]MildlyHotPeppers.com[URL]
And I need the resulting content to be in the format
[IMG]___________[/IMG]
. I would replace<a href="
with[IMG]
.
Except this time I can’t just replace `>
with
[/IMG]because there's still a
alt=”____”`somewhere in there. So I’d have to use regular expressions to replace all of it, wouldn’t I?I don’t know regex yet though…can anyone help?
Forum: Plugins
In reply to: Create a random number when a post is addedWhy not just use the post’s id instead? Seems a lot easier than making your own random number…plus there’s a x% chance of the number being repeated, where x is the number of existing posts…if you use a number between 1 and 100, that is.
Forum: Installing WordPress
In reply to: wp-cache trying to work but not workingHas anyone come up with a solution? It seems like I’m experiencing the same thing…
Forum: Themes and Templates
In reply to: Images in RSS FeedsxD Thanks.
Forum: Themes and Templates
In reply to: Images in RSS FeedsOh that’s weird…it didn’t show up in Firefox so I didn’t check with my feed reader. (It works in Thunderbird.) Doesn’t Firefox act as a feed reader too?
Thanks for pointing that out though.
Forum: Themes and Templates
In reply to: Flash in php?For long stretches of HTML I think it’s better to just escape out of the PHP. For example:
<?php if (is_page('home')) { ?> <div id='flash'>FLASH OBJECT HERE</div>"; <?php } else { echo "<div id='banner'></div>"; } ?>
Then you don’t have to escape every double quote that occurs.
Forum: Themes and Templates
In reply to: category urlsAw…
Thanks.
Forum: Themes and Templates
In reply to: Do you guys like this theme?It looks nice – my only complaints are that the font for “Apple Intellect” is rather plain and boring, and the gradients on the two sides aren’t centered and don’t fade completely to the background color. But that’s more design and not choice of theme, I guess.
Forum: Fixing WordPress
In reply to: blog title refuses to changeWoo. I realized it was because of SEO. Apparently it sets the title for the home page. ??
Forum: Fixing WordPress
In reply to: blog title refuses to changeI did what you said…nothing happened. ): Thanks for trying though.
Forum: Fixing WordPress
In reply to: blog title refuses to changeThanks for the help, but I don’t think not validating would be the problem. I checked the database, and it says MildlyHotPeppers.
Forum: Fixing WordPress
In reply to: blog title refuses to change<title><?php if ( is_single() ) { ?> <?php the_title(); ?> -<?php } ?> <?php bloginfo('name'); ?> </title>
It’s
the_title();
because it’s supposed to return the post title if it is a single post, with a dash following it (Hence, the need forif (is_single() )
.) No matter what, however, it should show the blog name, hencebloginfo('name');
. On my home page, this returns “MildlyHotBlog,” but on any other post page it shows “Postname – MildlyHotPeppers”Forum: Fixing WordPress
In reply to: blog title refuses to changeI tried it, doesn’t work. Could it be my server?
Forum: Fixing WordPress
In reply to: blog title refuses to change…bump.
Forum: Fixing WordPress
In reply to: blog title refuses to changeIt stays the same. (I cleared the cache before refreshing, just for the record.)