Frumph.NET

Just another WordPress site
  • Home
  • Archive
    • Incoming Links
  • Contact
  • Documentation
    • FAQ
    • ComicPress ChangeLog
  • Downloads
    • ComicPress Child Theme’s
    • Easel
    • Easel Child Themes
    • Plugins
  • Forum
Twitter Facebook RSS
Home » Page 19
May 2012
S M T W T F S
« Nov    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Pinups

2009-01-05-Arlina

Anomaly

Anomaly-lab7-finished
May11

Extended Body Classes – Revisited

by Philip M. Hofer (Frumph) on May 11th, 2010 at 12:01 am
Posted In: Wordpress

WordPress 2.8+ gave us a a lot of new sets of classes for the body post and comment areas. That will allow designers to use those tags in designing their site. These tags are ‘dynamically generated’ when certain events or pages are loaded. To enable your theme to use those tags you just have to do a little editing to your theme.

<body <?php if (function_exists('body_class')) { body_class(); } >>

On Frumph.NET and other WordPress / ComicPress sites, there’s a plethora of different customizations you can do. Per page, per category, if the page is in the comic category and more. In example on this site for this page if you were to go to page 2 of this post.

<body class="single single-post postid-220 logged-in paged-2 single-paged-2 user-admin sitemember noncomic gecko single-category-wordpress single-author-admin am day morning tue layout-3c">

All of these can be used to design your site by just placing one of those before the element you want to use.
↓ Read the rest of this entry…

Pages: 1 2 3
└ Tags: class, code snippet, theme
2 Comments
May10

Closed ComicPress Beta Testing

by Philip M. Hofer (Frumph) on May 10th, 2010 at 3:32 pm
Posted In: ComicPress

ComicPress Premium is beginning its Closed Beta Phase of development. Many new features are fully functional, and now bug testing is needed. If you have experience with ComicPress Legacy, WordPress 2.9 and 3.0-beta, you may be one of the people we are looking for.

↓ Read the rest of this entry…

 Comment 
May10

WordPress – Plugin & Theme Check for Multisite/WPMU

by Philip M. Hofer (Frumph) on May 10th, 2010 at 9:16 am
Posted In: Wordpress

This is some information you might need when checking whether or not the current WordPress installation is Mulsite or WPMU.

If this is a MU or Multisite WordPress this will be an option available, if it is not, it won’t be there. fileupload_url contains http://domain.tld/files which is used to rewrite the location of the wp-content/blogs.dir/#/files where the # is the blog ID number of the current blog being processed.

get_option('fileupload_url');

The MU / Multisite change to the option upload_path changes the information from wp-content/uploads to wp-content/blogs.dir/#/files where the # is the blog ID number of the current blog being processed.

get_option('upload_path');

When coding your plugin or theme that will access the uploads directory those two options are important to know the distinction between the MultiSite(MU) and single installations of WordPress.

The following bit of code is something to add to your plugin or theme if you need to determine whether or not the theme is Multisite or not. With ComicPress we use it to find the proper directory to load comics into.

function yourtheme_this_is_multsite() {
	global $wpmu_version;
	if (function_exists('is_multisite'))
		if (is_multisite()) return true;
	if (!empty($wpmu_version)) return true;
	return false;
}

The $wpmu_version was a way in WPMU <= 2.9.2 to determine if it was a WordPress MU install and the is_multisite() || VHOST is a way to determine if it’s a WordPress > 3.0 installation.

For example, with ComicPress we use it to make sure we’re pointing to the right spot to find the comics.

if (comicpress_this_is_multisite()) { $path_to_use = get_option('fileupload_url'); }

Of course we could also do:

$mu_path = get_option('fileupload_url');
if (!empty($mu_path)) $path_to_use = $mu_path;

But it’s not as reliable.

└ Tags: Multisite, WPMU
 Comment 
  • Page 19 of 39
  • « First
  • «
  • 17
  • 18
  • 19
  • 20
  • 21
  • »
  • Last »

Control Panel

  • Register
  • Recover password

Most Recent Logins

Philip M. Hofer (Frumph)

Categories

  • Blog
    • Articles
    • BookOfPhilip
    • Dream Journal
    • News
    • Random Thoughts
  • ComicPress Child Themes
  • ComicPress Manager
  • Design
  • Guide
  • Information
  • Twitter
  • Uncategorized
  • WebComic
    • Rascal
  • WebComic Planet
  • Wordpress
    • Comic Easel
    • ComicPress
    • Easel
    • FAQ

©2008-2012 Philip M. Hofer | Powered by WordPress with Easel | Subscribe: RSS | Back to Top ↑