Posts Tagged ‘HOW-TO’

WordPress Theme Cheat Sheet

5
responses

The WordPress Help Cheat Sheet: Is a nifty little collection of code snippets and helpful bits of information aimed directly towards theme and template developers who need a reminder once in a while. Nice to print out and put somewhere handy. If you get lost looking for the link to the actual PDF download, look for it at the bottom of the post, towards the right under the word link. (yes, the authors need to make the most important content of a post easily visible and identifiable)

[Continue Reading...]

Blogs and the Mobile Web

17
responses
by
on
September 27th, 2007
in
HOW-TO, WordPress, WordPress Plugins

Five Reasons Why The Mobile Web Sucks and the counter arguments from Russell (warning, littered with expletives) made me think about blogs, mobile web and the proliferation of blogs on mobile phones and mobile browsers. Since I am closely involved with many of the technologies that are being bolstered or criticized on those posts, I have my own opinions about some of them. Wireless carrier networks are SLOW: I am not so sure. Sprint has decent speeds and I can surf just fine on my phone or by using it as a modem. It is not as good as my 17 Mbps cable modem, but when I was stuck in a hospital and needed to call my parents in India using Skype via Sprint through my 755p, it worked like a charm. My VPN back to work and most surfing done over the phone was painless and got me through […]

[Continue Reading...]

WP Plugins, Windows, Subversion and Extend

4
responses
by
on
September 18th, 2007
in
HOW-TO, LinkyLoo, WordPress

How to Maintain Your WordPress Plugin from a Windows Workstation using Subversion: A step by step, illustrated set of instructions painstakingly put together by Roland on how to use Subversion on a Windows machine and use it to add your plugin(s) to the WordPress Extend section. I love tutorials like this. Thanks Roland.

[Continue Reading...]

WordPress File Uploads With IIS 7

1
response
by
on
September 13th, 2007
in
HOW-TO, LinkyLoo, WordPress, WordPress FAQs

WordPress File Uploads With IIS: Joseph figured out how to fix permission issues with IIS 7, PHP 5 and Windows Vista. This might help someone in the future.

[Continue Reading...]

The “More” Tag on a WordPress Page

31
responses

Nathan Rice wrote about WordPress’s ability to make any page a homepage. One problem I ran into using the technique of pages was the inability to use the <!–more–> tag to display partial posts. Apparently this is default behavior (for good reason) on pages. However, when using Nathan’s technique, I found myself in a unique situation where I only wanted to show a partial post (on a page) if the post was making use of the <!–more–> tag (apparently, I’m not alone). The technique is rather simple. Simply declare a variable named $more as a global and set it to false right before showing your content. If you wish to resume normal behavior after the content is shown, simply set the variable back to true. <?php global $more; $more = false; ?> <?php the_content('Continue Reading'); ?> <?php $more = true; ?>

[Continue Reading...]

Reduce the Size of Your WordPress Plugin Footprint

19
responses

For each WordPress plugin you install, you are adding to the bandwidth/server overhead of your site. As a plugin author, there are some simple steps to take to reduce the footprint of your plugin (whether it be helping with server load or conserving bandwidth), even if your plugin still requires a lot of code. Break Out Admin Panels Into Separate Files Even for simple plugins, adding admin panels can easily balloon a plugin’s file size. A simple, yet effective technique, is to copy the code used for the admin panel to a separate file and simply provide an include in the function that loads the admin panel. For example, say you load in your admin panel using this code: add_options_page(‘Plugin Name’, ‘Plugin Name’, 10, basename(__FILE__), ‘printAdminPage’); The function printAdminPage is going to be the function that loads the admin panel. Within this function you could have: function printAdminPage() { include […]

[Continue Reading...]

Adsense with Rounded Corners

7
responses
by
on
July 6th, 2007
in
Blogging News, HOW-TO, LinkyLoo

Google Adsense Ad Border with Rounded Corners: Apparently I was snoozing when this feature was released by Google but now you can have rounded corners on your Google AdSense ads. This could be a good way to increase your CTR, especially on blogs with AdSense blindness. I can see people coming up with very creative variations of the borders and colors to attract more attention to AdSense ads. I first noticed it on Google Blogoscoped while reading their article on AdSense Referrals.

[Continue Reading...]

Dissecting a Plugin: Better Comments Manager

8
responses
by
on
June 18th, 2007
in
HOW-TO, WordPress Plugins

One question I’ve been receiving a lot lately is regarding editing or traversing WordPress plugin code. The question more-or-less is, “Where do I start?” It’s a hard question to answer since every plugin is different, but there are a few ways to get a handle on how a plugin works. I feel a real-world application is needed to show how to edit plugin code, so I am going to periodically dissect a plugin and show you the innards by adding in a few simple features. The first plugin to be dissected is called Better Comments Manager (version 1.2). Ajay did a good job reviewing the Better Comments Manager plugin, so I suggest you check out the review to get a good overview of the plugin. In this dissection, we will be adding/modifying two simple features to the plugin: Disable the scrolling effect when replying to a comment. Add the panel […]

[Continue Reading...]

CSS for code: Wrap long lines

15
responses
by
on
June 16th, 2007
in
Code, HOW-TO, WordPress

If you post code on your WordPress blog, you could use a code beautifier plugin such as syntax highlighter or you could include your code in <pre> tags. They preserve line breaks, multiple blanks, tabs between words and other formatting commonly used in code. However, in some cases, if body of your blog is narrow(er) or your line of code is really long, it will not wrap and will overflow over your sidebar. You can just hide the overflow but that still will look tacky and not very usable. On performing a little search, I discovered that Tyler Longren had already come up with a clever hack to solve the problem. If you add the following code to your stylesheet, it will wrap the long lines of code. pre { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: […]

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php