Featured, Wordpress

Subdomain not working in wordpress MU(WPMU) or WordPress 3

Hi, I came across a situation, Everything was fine … wordpress 3.0  was installed properly but i was unable to create sub domain for wordpress for example : wordpress.mavendeveloper.com or jobs.mavendeveloper.com or extjs.mavendeveloper.com or iphone.mavendeveloper.com or any other such sub domain under wordpress 3.0 I searched in forums for help … and followed each and [...]

Continue Reading

Featured, Wordpress

WordPress 3 is now Available

Arm your vuvuzelas: WordPress 3.0, the thirteenth major release of WordPress and the culmination of half a year of work by 218 contributors, is now available for download (or upgrade within your dashboard). Major new features in this release include a sexy new default theme called Twenty Ten. Theme developers have new APIs that allow [...]

Continue Reading

Featured

FiFa 2010 Begins

Fifa 2010 Begins Today at South Africa … The wait is almost over. At 2pm (Central African Time) today, a Fifa World Cup™ like none of the 18 that have gone before it will begin, and not only South Africa but an entire continent will rejoice. Over the next 31 days a footballing and cultural [...]

Continue Reading

Featured, Wordpress

Converting WordPress To WordPress MU

Converting WordPress To WordPress MU is Simple What i think about converting from WP to WordPress MUsimply requires fews steps: 1) backup your WP DB . 2) fresh Install MU and let MU create Tables for You… the tables it creates are : a) WP_1_posts b) WP_1_Postmeta , etc 3) Now from your old DB [...]

Continue Reading

Featured, Info

HTML5, Video, Canvas, and Ext JS

HTML5 is coming. All of us at Ext are excited to embrace the new standard as it gains acceptance. This post will examine two notable HTML5 developments – Video and Canvas. The video tag allows for native video rendering, removing the current need for third-party plugins like Flash. Likewise, the canvas tag has a clean [...]

Continue Reading

Featured, Info

ExtJS Phone Number Validation

Validate Phone Number With regex Extjs has give us vtype for phone number validation but with this all the requirements are not full-filled …. we may need different type of phone number validation then the default vtype provided by Extjs What ?????? to do in this case…. !!! Well don’t panic, we have other options [...]

Continue Reading

Featured, Info

extJS [Solution] Grid to Grid Drag and Drop On Particular Grid Node

hello, I was searching for the Grid to Grid Drag and Drop on particular row of the grid so that i can change the information on drag node on respect of dropped row of another Grid.. i was left helpless … then i researched and did a long hide and trail and finally got the [...]

Continue Reading

Featured, Info

Google Chrome Doesn’t Support ‘specialkey’ event – ExtJS

ExtJS doesn’t support specialkey event on Google Chrome nor any other key events are supported (keydown,keypress). If you want Google Chrome to support specialkey, keypress, keydown event, then all you have to do is : this.reffield.on(‘keydown’,function(field,evt){ if(evt.getKey() == 17 && evt.getKey() == 9 || evt.getKey() == 9 && evt.getKey() != 17 ) Ext.getCmp(‘mailSub’).focus(false,10); },this); doing [...]

Continue Reading

Featured, Info

How to Develop an Iphone Application

well 1st of all, get the tools ready … actually da only required tool for iphone application development is xcode …. u can find about xcode how to code in xcode IDE but it’s nt clearly given where to find xcode.. well it comes with your mac install DVD (optional package) u need to install [...]

Continue Reading

Featured, Info

ExtJS, email validation using regex

ExtJS doesn’t support email validation with all real world email addresses using vtype :’email’….. but ExtJS has given us regex config for any textfield….. so idea is to use that regex for email validation on any textfield used for storing email…… Email Validation How to validate email field using regex for emails which contains ‘ [...]

Continue Reading





Wordpress

WordPress Permalink Without Using GUID

Posted on 03 September 2010

Sometimes we have a need of pretty link instead of default link ….

Default link is http://mavendeveloper.com/?p=3

pretty link is http://mavendeveloper.com/2010/08/sub-domain-not-working-in-wordpress-3-0-or-wpmu/

if you are in loop the below code works well:

get_permalink($post->ID);

but sometimes getting pretty link is impossible when you have to construct pretty link outside of loop in custom requirement… in such a situation what can be done is … query the database and generate you own pretty link like shown below :

SELECT CONCAT(DATE_FORMAT(post_date,’%Y/%m/%d/’),post_name) AS permalink FROM wp_posts WHERE post_status=’publish’;

I will show you the complete example how to use this from which you will have clear idea :

example:

$sql_query = “select *,CONCAT(DATE_FORMAT(post_date,’%Y/%m/%d/’),post_name) AS permalink from “.$blogPostsTable.” where post_status = ‘publish’ and post_type = ‘post’
order by post_date desc limit 0,5″;
$sql = mysql_query($sql_query);

while($array = mysql_fetch_assoc($sql)){
$recent_post3 .= ”

“;
$recent_post3 .= ‘

  • ‘.substr($array['post_title'],0,45). ‘..‘;
    $recent_post3 .= “”;
  • }
    echo $recent_post3;


    Share
    [del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

    Comments (0)

    Info

    Sub-domain not working in WordPress 3.0 or wpmu

    Posted on 02 August 2010

    Hi,

    I came across a situation, Everything was fine … wordpress 3.0  was installed properly but i was unable to create sub domain for wordpress for example :

    • wordpress.mavendeveloper.com or
    • jobs.mavendeveloper.com or
    • extjs.mavendeveloper.com or
    • iphone.mavendeveloper.com or any other such sub domain under wordpress 3.0

    I searched in forums for help … and followed each and everything like :

    To enable the Network menu item, you must first define multisite in the wp-config.php file.

    Open up wp-config.php and add this line above where it says /* That's all, stop editing! Happy blogging. */:

    define('WP_ALLOW_MULTISITE', true);
    
    • even changed in Database

    But no hope …. after that what i did is :

    • removed/deactivated all the active plugins
    • uploaded twentyTen theme (it comes by default)

    And Yes , After i uploaded twentyTen Theme it worked … i have just removed this theme and has just my custom theme … and that was the solution …..

    Please do Upload TwentyTen theme if u come up with such a problem and you will find it working ….

    If  you have any problem in sub-domain issue please write to me …. i have gained a whole lot of experience in sub-domain issue for wpmuwordpress 3.0 and ….

    Share
    [del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

    Comments (0)

    Info

    Iphone Comparison

    Posted on 07 July 2010

      Manufacturer: Apple

      Retail Price: iPhone 3GS $99, iPhone 4 $199 for 16GB ($299 for 32GB) with two year plan
      Release Date: June 24, 2010
      Primary Function: Smartphone
      Interesting Fact: Prototype found in a bar near Apple Headquarters

      Dimensions: Similar size and weight of iPhone 3GS

      Battery Type: 16% larger than iPhone 3GS

      Memory: 8 GB (3GS), 16-32 GB (4)

    • Connectivity: UMTS/HSDPA/HSUPA, GSM/EDGE, Wi-Fi, Bluetooth 2.1 + EDR

    iPhone 4 vs iPhone 3GS

    Are you wondering what the differences are between the new iPhone and the old iPhone? This page will review the specs and pricing of the iPhone 4 and the iPhone 3GS to help you decide if the new iPhone is worth purchasing or upgrading. While not a free cell phone, the iPhone 3GS will continue to be sold at a discounted price with iOS 4 operating system but now only 8 GB of memory.

    Highlights of the iPhone 4

      Thinnest smartphone at 0.37 inches which is 24% thinner than the iPhone 3GS.

      Retina Display increases pixel density to 326 ppi which allows for a significantly higher resolution 960 X 640 pixel display.

      40% increase in talk time due to larger battery (miniaturization of components allows more space)

      A4 chip and miniaturization of components allows more space for battery

      Addition of gyroscope for six axis motion sensing in combination with the accelerometer

      FaceTime – video chat between two iPhone 4′s

    For more details visit the iPhone 4 page. A comparison of key features and pricing follows. Note that many still continue to refer to the iPhone 4 as the iPhone 4G.

    Comparison of Features and Functions

    The key features of the iPhone 4 are compared with the iPhone 3GS.
    http://www.apple.com/iphone/specs.html
    6
    http://www.gsmarena.com/apple_iphone_3gs-2826.php
    7

    Feature iPhone 3GS iPhone 4
    Weight 135g 137g (4.8 oz)
    Dimensions 115.5 x 62.1 x 12.3 mm (4.50 X 2.4 X 0.48 inches) 115 X 59 X 9 mm (4.50 X 2.31 X 0.37 inches)
    Display 320 x 480 pixels, 3.5 inches 960 x 640 pixels, 3.5 inches + Retina Display
    Camera 3 megapixel auto-focus 5 megapixel auto-focus + front camera + LED Flash
    Video VGA @ 30fps H.264 video up to 720p @ 30 fps
    Talk Time Up to 5 hours 3G Up to 7 hours 3G
    SIM Size Standard SIM Micro SIM

    Pricing and availability of the iPhone 4 and iPhone 3GS in the US are compared below. Keep in mind that as of June 7th, AT&T (US provider) charges a $325 early termination fee on the two year contract.

    Feature iPhone 3GS iPhone 4
    Price (US) $99 with plan $199 – $299
    Memory 8 GB (was 16/32 GB) 16 or 32 GB
    iOS 4 Features Most All
    Upgrade to iPhone 4? 30 days prior June 7 Up to 6 months end-of-contract
    Tethering Yes $20/month Yes $20/month

    Tethering on the iPhone 3GS and iPhone 4 (but not iPad) is allowed with the new AT&T data plans that took effect June 7th.
    http://www.product-reviews.net/2010/06/04/new-iphone-4g-no-ipad-tethering-say-att/
    8


    iPhone 4 vs iPhone 3GS Images Powered by Bing and Google


    iPhone 4 vs iPhone 3GS Blogs


    iPhone 4 vs iPhone 3GS Videos Powered by YouTube


    iPhone 4 vs iPhone 3GS News

    Share
    [del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

    Comments (0)

    Info

    Ext JS + jQTouch + Raphaël = Sencha

    Posted on 23 June 2010

    Exciting things are happening! Today, we’re combining forces with the jQTouch and Raphaël projects, changing our company name to Sencha, and moving our web address from www.extjs.com to www.sencha.com.

    Share
    [del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

    Comments (0)

    Info

    HTML5 Is Here Now (It’s Just Not For Your Desktop Yet)

    Posted on 23 June 2010

    Adobe and Microsoft are claiming HTML5 is ten years away. Apple is saying it’s here right now. HTML5 Family technologies are here in 2010 on every mobile device that matters.

    Share
    [del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

    Comments (0)

    Info

    The HTML5 Family: Geolocation

    Posted on 23 June 2010

    Various imprecise forms of web-based geolocation have been in use for some time. However, today we have a tons of location-aware devices using advanced location sensing techniques.

    Share
    [del.icio.us] [Digg] [dzone] [Facebook] [Friendsite] [Google] [LinkedIn] [MySpace] [Twitter] [Windows Live] [Yahoo!] [Email]

    Comments (0)

    SEE MORE ARTICLES IN THE ARCHIVE


    mavendeveloper.com worth $27080
    See details information