PHP

Control WordPress 3.X.X Admin Bar Options for Subscribers

WordPress admin bar contains many interesting and convenient links for admins and editors. But it is totally useless, redundant and confusing for regular users. Here is how to hide it for subscribers while viewing the site. Open your theme functions.php file and add these  lines at the very end: if(current_user_can(‘subscriber’)) add_filter( ‘show_admin_bar’, […]

IIS

ERROR: Unreadable CAPTCHA cookie – RESOLVED!

RESOLVED!  One of the test WordPress instances had an impossible, unpleasant and not covered on Google error message.  When user is trying to register, the CAPTCHA code is displayed properly and validation is correct, but when the button Register is press, the page would display this: ERROR: Unreadable CAPTCHA cookie […]

IIS

Move IIS inetpub Directory

To keep your operating system completely separate from all the web stuff, it is advisable to move inetpub directory off the root of a %SystemDrive% to a completly different drive. In these sample I am moving IIS from C:\inetpub to x:\inetpub.   Adjust this to your needs. Steps described here were […]

No Picture
ASP.NET

The EXECUTE permission was denied on the object ‘aspnet_CheckSchemaVersion’, database ‘YourDB’, schema ‘dbo’

ASP.NET page returns this erorr: The EXECUTE permission was denied on the object ‘aspnet_CheckSchemaVersion’, database ‘YourDB’, schema ‘dbo’. (1) First try running this command/wizard: %WinDir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe (2) If this doesn’t work, try this query:  — Add user ASPNET to DB role USE YourDB GO sp_addrolemember ‘aspnet_Membership_FullAccess’, ‘ASPNET’ These steps should resolve your […]

PHP

Integrating bbPress Forum with WordPress Theme

Problem When I was preparing to roll out bbPress forum as a part of  WordPress site,  I discovered that process of bbPress user and login integration has a very good coverage on the Internet. This article deals with integrating bbPress forum “look and feel” with WordPress. How to make bbPress forum […]

PHP

Include HTML from HTML and PHP

Just before I forget, this article is about 2 great ways to load (include) HTML file from another HTML or from PHP.  Among other things I will show how to load HTLM file from WordPress text widget. Problem – Why would you need to load an HTML text file in WordPress? Say, […]