Breaking News
recent

ওয়ার্ডপ্রেস প্লাগিন বাংলা করন - ১




আজকে আপনাদের দেখাব কিভাবে iredlof-ajax-login-plugin বাংলা করবেন ।

iredlof-ajax-login-plugin
http://wordpress.org/extend/plugins/iredlof-ajax-login-plugin/
প্রথমে iredlof-ajax-login-plugin কে আনজিপ করে নিতে হবে । এবং এর মধ্যে update-content.php ফাইলটি পাবেন এবং update-content.php ফাইল কেই এডিট করতে হবে । এডিট করার জন্য আপনাকে নোট প্যাড অথবা নোট প্যাড প্লাস সফর্ট ব্যবহার করতে হবে http://www.filehippo.com/download_notepad/ এখান থেকে এডিটর সফর্ট টি ডাউনলোড করে নিবেন । নিচে কোড গুলোন দেখে দেখে বাংলা করে সেভ করতে হবে । বাংলা করার সময় অবশ্যয় আপনাকে Encoding option এ গিয়ে > Encode In UTF-8 করে নিতে হবে ।




<?php
function updateHeader()
{
    global $user_ID, $current_user;
    get_currentuserinfo();
    ?>
    <div id="iRToppanel">
<?php
    global $user_identity, $user_ID;  
    // If user is logged in or registered, show dashboard links in panel
    if (is_user_logged_in()) {
?>
    <div id="iRPanel">
        <div>

            <div>
                <h1>Welcome back <?php echo ucwords($user_identity) ?></h1>
                <h2>Featured Post</h2>              
                <p><?php $rand_posts = get_posts('numberposts=1&cat=0&orderby=rand');
                   if($rand_posts)
                    {
                        foreach( $rand_posts as $rpost ) : setup_postdata($rpost);
                    ?>
                <span style="padding-bottom:3px;"><a href="<?php echo(get_permalink($rpost->ID)); ?>"><?php echo(get_the_title($rpost->ID)); ?></a></span><br/>
                <?php echo string_limit_words(strip_tags(get_the_excerpt(), '<a><strong>'),20); ?><span style="float:right;"><a style=" float:right;" title="Permanent Link to <?php echo(get_the_title($rpost->ID)); ?>" href="<?php echo(get_permalink($rpost->ID)); ?>"> Read More ...</a></span>
                <?php endforeach; }?></p><br/>
                <h2 style="border-top:1px dotted #fff;">Dashboard</h2>
                <ul>                  
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/index.php">Go to Dashboard</a></li>
                </ul>
                <h2 style="border-top:1px dotted #fff;">Comment</h2>
                <ul>Comment <a href="http://iredlof.com/2009/04/iredlof-ajax-login-wordpress-plugin/#respond" title="Download">here</a> if you like this plugin.</ul>
            </div>

            <div>          
                <h2>My Account</h2>              
                <ul>                  
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/index.php">Global Dashboard</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/profile.php">Edit My Profile</a></li>
                    <?php if ( current_user_can('level_1') ) : ?>
                        <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/edit-comments.php">Comments</a></li>
                    <?php endif ?>
                    <li><a href="<?php echo wp_logout_url(get_permalink()); ?>" rel="nofollow" title="<?php _e('Log out'); ?>"><?php _e('Log out'); ?></a></li>
                </ul>
                <?php if ( current_user_can('level_10') ) : ?>      
                <h2>Appearance</h2>              
                <ul>                      
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/themes.php">Themes</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/widgets.php">Widgets</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/theme-editor.php">Theme Editor</a></li>
                </ul>
                <?php endif ?>
            </div>

            <?php if ( current_user_can('level_2') ) : ?>

            <div>          
                <h2>Posts</h2>              
                <ul>                  
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/post-new.php">New Post</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/edit.php">Edit Posts</a></li>
                <?php if ( current_user_can('level_3') ) : ?>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/edit-tags.php">Tags</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/categories.php">Categories</a></li>
                <?php endif ?>
                </ul>
                <?php if ( current_user_can('level_10') ) : ?>      
                <h2>Plugins</h2>              
                <ul>                      
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/plugins.php">Plugins</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/plugin-install.php">Install a Plugin</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/plugin-editor.php">Plugin Editor</a></li>
                </ul>
                <?php endif ?>
            </div>

            <?php endif ?>
            <?php if ( current_user_can('level_2') ) : ?>

            <div>
                <?php if ( current_user_can('level_3') ) : ?>  
                <h2>Pages</h2>              
                <ul>      
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/post-new.php">New Page</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/edit-pages.php">Edit Pages</a></li>
                </ul>
                <?php endif ?>          
                <h2>Library</h2>              
                <ul>                  
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/upload.php">Library</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/media-new.php">Add New</a></li>
                </ul>
                <?php if ( current_user_can('level_3') ) : ?>      
                <h2>Users</h2>              
                <ul>                      
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/users.php">Author &amp; Users</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/user-new.php">Add New</a></li>
                </ul>
                <?php endif ?>
            </div>

            <?php endif ?>
            <?php if ( current_user_can('level_10') ) : ?>

            <div>          
                <h2>Settings</h2>              
                <ul>                      
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-general.php">General</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-writing.php">Writing</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-reading.php">Reading</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-discussion.php">Discussion</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-media.php">Media</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-privacy.php">Privacy</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-permalink.php">Permalinks</a></li>
                    <li><a href="<?php bloginfo('wpurl') ?>/wp-admin/options-misc.php">Miscellaneous</a></li>
                </ul>
            </div>

            <?php endif ?>
        </div>
                <div style="position:absolute; bottom:0px; right:0px;">
                <strong style="font-weight:bold;">Powered by</strong>              
                <ul>                      
                <li style="text-align:center;"><a href="http://iredlof.com">i<span style="color:#C30">Red</span>lof</a></li>
                </ul>
                </div>
    </div> <!-- /login -->  

    <!-- The tab on top -->  
    <div>
        <ul style="margin-right:-10%;">
            <li>&nbsp;</li>
            <!-- Logout -->
            <li><a style="width:50px;" href="<?php echo wp_logout_url(get_permalink()); ?>" rel="nofollow" title="<?php _e('Log out'); ?>"><?php _e('Log out'); ?></a></li>
            <li>|</li>
            <li id="toggle">
                <a id="open" href="#">Show iDashboard</a>
                <a id="close" style="display: none;" href="#">Close Panel</a>  
            </li>
            <li>&nbsp;</li>
        </ul>
    </div> <!-- / top -->

<?php
    // Else if user is not logged in, show login and register forms
    } else {  
?>
    <div id="iRPanel">
        <div>

            <div style="width:250px;">
                <h1>স্বাগতম-Wordpress Group<? bloginfo('name'); ?></h1>
                <h2>সাম্প্রতিক পোস্ট</h2>      
                <p><?php $rand_posts = get_posts('numberposts=1&cat=0&orderby=rand');
                   if($rand_posts)
                    {
                        foreach( $rand_posts as $rpost ) : setup_postdata($rpost);
                    ?>
                <span style="padding-bottom:3px;"><a href="<?php echo(get_permalink($rpost->ID)); ?>"><?php echo(get_the_title($rpost->ID)); ?></a></span><br/>
                <?php echo string_limit_words(strip_tags(get_the_excerpt(), '<a><strong>'),35); ?><br/><span style="float:right;"><a style=" float:right;" title="Permanent Link to <?php echo(get_the_title($rpost->ID)); ?>" href="<?php echo(get_permalink($rpost->ID)); ?>"> Read More ...</a></span>
                <?php endforeach; }?></p><br/>
                <h2 style="border-top:1px dotted #fff;">Comment</h2>
                <p>আপনি কি ওয়ার্ডপ্রেস এ নতুন <a href="https://www.facebook.com/groups/Wordpress2Smashing" title="new user">এখানে দেখুন</a></p>
            </div>

            <div style="width:195px;">
                <!-- Login Form -->
                <form action="<?php bloginfo('wpurl') ?>/wp-login.php" method="post">
                    <h1>লগইন করুন</h1>
                    <label for="log">ইউসার নেম : </label>
                    <input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="23" />
                    <label for="pwd">পাসওয়ার্ড :</label>
                    <input type="password" name="pwd" id="pwd" size="23" />
                    <label><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> আমাকে মনে রাখুন</label>
                    <div></div>
                    <input type="submit" name="submit" value="যাত্রা শুরু" />
                    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
                </form>
            </div>

            <div style="width:195px;">
            <?php if (get_option('users_can_register')) : ?>  
                <!-- Register Form -->
                <form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
                    <h1>সাইন আপ করুন!</h1>  
                    <label for="user_login">ইউসার-নেম</label>
                    <input type="text" name="user_login" id="user_login" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" />
                    <label for="user_email">ই-মেইল</label>
                    <input type="text" name="user_email" id="user_email" value="<?php echo attribute_escape(stripslashes($user_email)); ?>" size="25" />
                    <?php do_action('register_form'); ?>
                    <label id="reg_passmail">পাসওয়ার্ড টি আপনার ই-মেইলে পাঠানো হবে</label>
                    <input name="wp-submit" id="wp-submit" value="পাঠিয়ে দিন" type="submit">
                </form>
            <?php else : ?>
                <h1>Registration is closed</h1>
                <p>Sorry, you are not allowed to register by yourself on this site!</p>
                <p>You must either be invited by one of our team member or request an invitation by email at <b>info {at} yoursite {dot} com</b>.</p>

                <!-- Admin, delete text below later when you are done with configuring this panel -->
                <p style="border-top:1px solid #333;border-bottom:1px solid #333;padding:10px 0;margin-top:10px;color:white"><em>Note: If you are the admin and want to display the register form here, log in to your dashboard, and go to <b>Settings</b> > <b>General</b> and click "Anyone can register".</em></p>
            <?php endif ?>          
            </div>
            <div style="width:195px;">
            <form action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post">
                    <h1>Forgot Password !</h1>
                    <label for="user_login">Username or E-mail:</label>
                    <input type="text" name="user_login" id="user_login_FP" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="23" />                  
                    <div></div>
                     <p>New password will be e-mailed to you.</p>
                    <input type="submit" name="submit" value="Retreive" />
                    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
            </form>
            </div>
                <div style="position:absolute; bottom:0px; right:0px;">
                <strong style="font-weight:bold;">Powered by</strong>              
                <ul>                      
                <li style="text-align:center;"><a href="http://iredlof.com">i<span style="color:#C30">Red</span>lof</a></li>
                </ul>
                </div>
        </div>
    </div> <!-- /login -->  

    <!-- The tab on top -->  
    <div>
        <ul style="margin-right:-10%;">
            <li>&nbsp;</li>
            <!-- Login / Register -->
            <li id="toggle">
                <a id="open" href="#">স্টার্ট মেনু</a>
                <a id="close" style="display: none;" href="#">টুলবক্স বন্ধ</a>          
            </li>
            <li>&nbsp;</li>
        </ul>
    </div> <!-- / top -->  

<?php } ?>  

</div> <!--END panel -->  

<!-- End of login page -->

<?php
}
?>


ডক ফাইলটি এডিট করবেন না । আর অনুমতি ছাড়া কেউ এটি কোথাও প্রকাশ করবেন না ।
Nadim Zobaer

Nadim Zobaer

No comments:

Post a Comment

Thanks for ur comments

Powered by Blogger.