Page 1 of 2 12 LastLast
Results 1 to 10 of 20
Like Tree1Likes

Thread: Cockpit ---- admin Panel

  1. #1
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts

    Cockpit ---- admin Panel



    At the beginning I want to sell it , not for the price but for the pleasure to sell
    we are all here for that not ???


    Some condition have change my decision
    so here they are version compatible 3.04 to 3.5./*

    1) Copy the file below to a text editor like notepad ....etc
    name it update-tpl.php
    and save it

    2) put into /wp-content/themes/classipress/
    path to this file is
    http:// your-site.com/wp-content/themes/classipress/update-tpl.php

    3)Go in to you wordpress admin

    4)Go to page and create a new one called eg: update
    so you have now a page http://www.yoursite.com/update/

    5)in the same page in "attibute" select inside the dropdown menu "Last Update"

    save the page and make it private only for admin
    and then lauch it

    What will you see ........???

    PHP Code:
    <?php
    /*
    Template Name: Last Update
    */
    /*
    Last Updated post and page From Classipress
    Team:ClassiPress
    website :http://appthemes.com/
    Contributor:mr_green
    website :http://www.vazy.biz
    */
    /********************************************************************************/
    /* Page template for admin inside Wordpress that let you see all and when Ad    */
    /* has been updated by user after they have approved and published by admin(you)*/
    /********************************************************************************/
    ?>

    <?php get_header(); ?>

    <?php
    $today 
    current_time('mysql'1);
    $howMany 25;
    if ( 
    $recentposts $wpdb->get_results("SELECT ID, post_title, post_content, post_modified_gmt  FROM $wpdb->posts WHERE post_status = 'publish' AND post_modified_gmt < '$today' ORDER BY post_modified_gmt DESC LIMIT $howMany")):
    ?>
    <div style="margin:0 auto;padding:0 10px;text-align:left;">

    <h1><?php _e("Recent Updates"); ?></h1>
    <ul>
    <?php
    foreach ($recentposts as $post) {
    if (
    $post->post_title == ''$post->post_title sprintf(__('Post #%s'), $post->ID);
    echo 
    "<h2><a href='".get_permalink($post->ID)."'>";
    the_title();
    echo 
    '</a></h2>';
    if(
    get_post_meta($post->ID'images'true)) echo cp_get_image_thumbs_legacy($post->IDget_option('medium_size_w'), get_option('medium_size_h'), $post->post_title); else cp_get_image_url_single($post->ID'medium'$post->post_title,-1);
    echo 
    '<h3>' $post->post_modified_gmt '</h3>';
    edit_post_link__('Edit'), ' >> ''');
    echo 
    '<p>' $post->post_content '</p>';
    echo 
    '<hr noshade color="#CCCCCC" size="5"/>';
    }
    ?>
    </ul>
    </div>

    <?php endif; ?>

    <?php get_footer(); ?>
    you can change
    PHP Code:
    $howMany 25
    to the desired number of ......
    Best

  2. The Following 9 Users Say Thank You to mr_green For This Useful Post:

    aleksandar (September 9th, 2011), areis (May 25th, 2011), boxbust (August 29th, 2011), hugo (March 17th, 2011), jcss (September 4th, 2011), marcelopereto (March 17th, 2011), rubencio (March 17th, 2011), sixfigs (September 4th, 2011), wighty (September 9th, 2011)

  3. #2
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    My Classipress Suggestion: http://ideas.appthemes.com/forums/84...ents?ref=title vote if you like!

  4. #3
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Best

  5. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  6. #5
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Best

  7. #6
    marcelopereto's Avatar
    Join Date
    Oct 2010
    Location
    Brazil
    Posts
    13
    Thanks
    2
    Thanked 1 Time in 1 Post

    Lightbulb I recommend this update

    You must be an AppThemes customer and logged in to view this response. Join today!
    [CENTER]Classificados da Vila[/CENTER]

  8. #7
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Best

  9. #8
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Best

  10. The Following User Says Thank You to mr_green For This Useful Post:

    rubencio (September 3rd, 2011)

  11. #9
    Junior Member jcss's Avatar
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    41
    Thanks
    2
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    mr_green likes this.

  12. #10
    Junior Member sixfigs's Avatar
    Join Date
    Aug 2011
    Location
    United States
    Posts
    47
    Thanks
    8
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom fields in admin panel
    By jeffnaramor in forum Help Using ClassiPress
    Replies: 1
    Last Post: December 24th, 2010, 08:43 AM
  2. Not able to access admin panel
    By panks7077 in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: December 17th, 2010, 01:26 PM
  3. Can not get into my admin panel
    By padiwak in forum ClassiPress General Discussion
    Replies: 5
    Last Post: October 10th, 2009, 12:31 AM