pizzaman
Forum Replies Created
-
Forum: Plugins
In reply to: theme switcher problemsI had a similar problem. My theme wouldn’t change at all.
This MIGHT help…In theme-switcher.php replace:
wp_redirect($redirect);
with
header("Location: ". $redirect);
Forum: Fixing WordPress
In reply to: Merging of (blogroll) Links and Categories in 2.1I don’t see why get_links can’t still be used. It’s not deprecated in 2.1
If you look in admin->manage->categories, you’ll find that WP added some new category IDs. I just replaced the “old” cat ID with the new one and get_links works fine for me.
Forum: Themes and Templates
In reply to: Images left – not smiliesThanks Kaf. I’ve never seen that class documented.
Forum: Plugins
In reply to: Welcome message with usernameHere’s what I use. Put it in your sidebar. Modify it to suit your needs.
<?php if (isset($_COOKIE['wordpressuser_' . COOKIEHASH])) {
$l = "";
global $user_identity, $user_ID, $user_level;
get_currentuserinfo();
switch ($user_level) {
case 0:
$l = 'Subscriber';
break;
case 1:
$l = 'Contributor';
break;
case 2:
$l = 'Author';
break;
case 3:
$l = 'Author Level 2';
break;
case 7:
$l = 'Editor';
break;
case 10:
$l = 'Administrator';
} ?>
<li><?php echo ($l); ?></li>
<li><?php echo('Name: ' . $user_identity); ?></li>
<li><?php echo('Articles posted: ' . get_usernumposts($user_ID)); ?></li>
<?php } else { ?>
<li>Not logged in/Non-member</li>
<li>Please <a href="<?php get_settings('siteurl') ?>/wp-login.php?action=login" title="Login">Login</a> or <a href="<?php get_settings('siteurl') ?>/wp-register.php" title="Become a member so you can write articles">Register</a>.</li>
<?php }Forum: Installing WordPress
In reply to: Upgrading 2.0.3 to 2.0.4: No database upgrade linkI think you’re right, Handy.
Forum: Installing WordPress
In reply to: Upgrading 2.0.3 to 2.0.4: No database upgrade linkWhat I did was go to https://mysite/wp-admin/upgrade.php
You get the prompt there.
Forum: Plugins
In reply to: How to use categories in a CMS kind of way?If you’re not using “pretty” permalinks do this:
<a href="yourblog.com/?cat=catID">Category Name</a>
where catID is the number of the category you want to display.
Forum: Requests and Feedback
In reply to: Include add link option that opens in new windowThere is an option in the Link Manager to have links open in a new window. If you scroll down the page to the advanced section, you’ll see the Target “_blank” option.
Forum: Fixing WordPress
In reply to: ssi include into worpress 2.01 postYou can use this statement in a page template:
<?php virtual ('/cgi-bin/bib/buyitbomb.cgi?keywords=belt&db=17971&mode=all&boundary=word&format=ssi&results=10&start=0&s=1'); ?>
No need for a plugin.
Forum: Fixing WordPress
In reply to: No Cache Folder?Would having a ‘no-cache’ statement in the header cause WP not to cache?
Forum: Everything else WordPress
In reply to: No Spam!Yes. I’m now wondering if there’s something wrong somewhere – nobody loves me anymore. Like Akismet says it must be my lucky day(s).
Forum: Themes and Templates
In reply to: CSS Text And ImagesThanks Sam. Fixed it.
Forum: Themes and Templates
In reply to: CSS Text And ImagesHere’s the link. Scroll down to the 4th post on the page.
Forum: Fixing WordPress
In reply to: Link targetsHere’s the “non-validating”, easier (maybe) way…
<a href="https://whatever" target="_blank">TEXT</a>
The
target="_blank"
part is what opens the new window.Forum: Fixing WordPress
In reply to: Weblog Title with an Imagehmmmm….didn’t post as I thought it would
try again<div id="whatever"><a href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('stylesheet_directory'); ?>/imagefilename.png" border="0" /></a></div>