Plugin Directory

Changeset 374693


Ignore:
Timestamp:
04/19/2011 10:17:20 AM (15 years ago)
Author:
slav123
Message:

tagging version 0.6

Location:
simple-faq
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-faq/tags/0.6/faq.php

    r343501 r374693  
    44Plugin URI: http://www.spidersoft.com.au/2010/simple-faq/
    55Description: Simple plugin which creates editable FAQ on your site
    6 Version: 0.4
     6Version: 0.6
    77Author: Slawomir Jasinski - SpiderSoft
    88Author URI: http://www.spidersoft.com.au/
    99License: GPL2
    1010
    11 Copyright 2009-2010 Slawomir Jasinski  (email : slav123@gmail.com)
     11Copyright 2009-2011 Slawomir Jasinski  (email : slav123@gmail.com)
    1212
    1313This program is free software; you can redistribute it and/or modify
     
    7171    $table_name = $wpdb->prefix . "faq";
    7272
    73     $select = "SELECT * FROM {$table_name} ORDER BY answer_date DESC";
     73    $select = "SELECT * FROM `{$table_name}` ORDER BY answer_date DESC";
    7474    $all_faq = $wpdb->get_results($select);
    7575
     
    215215   ?><table class="widefat">
    216216   <thead>
    217       <th scope="col"><? _e("Question") ?></th>
    218       <th scope="col"><? _e("Created") ?></th>
    219       <th scope="col"><? _e("Author") ?></th>
    220       <th scope="col" width="30"><? _e("Edit") ?></th>
    221       <th scope="col" width="30"><? _e("View"); ?></th>
    222       <th scope="col" width="30"><? _e("Delete");?></th>
     217      <th scope="col"><?php _e("Question") ?></th>
     218      <th scope="col"><?php _e("Created") ?></th>
     219      <th scope="col"><?php _e("Author") ?></th>
     220      <th scope="col" width="30"><?php _e("Edit") ?></th>
     221      <th scope="col" width="30"><?php _e("View"); ?></th>
     222      <th scope="col" width="30"><?php _e("Delete");?></th>
    223223   </thead>
    224224   <tbody>
     
    249249   $table_name = $wpdb->prefix . "faq";
    250250
    251    $row = $wpdb->get_row("SELECT * FROM {$table_name} WHERE id = '$id'");
     251   $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'");
    252252   echo '<p>';
    253253   _e("Question:");
     
    258258   echo '<br/>';
    259259   echo $row->answer;
    260    echo '<p>' . draw_ico(e_('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>';
     260   echo '<p>' . draw_ico(_e('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>';
    261261}
    262262
     
    276276      $id = null;
    277277    } else {
    278         $row = $wpdb->get_row("SELECT * FROM {$table_name} WHERE id = '$id'");
     278        $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'");
    279279    }
    280280
     
    283283    ?>
    284284    <form name="form1" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
    285     <input type="hidden" name="hid" value="<?= $id ?>"/>
    286     <input type="hidden" name="act" value="<?= $act ?>"/>
     285    <input type="hidden" name="hid" value="<?php echo $id ?>"/>
     286    <input type="hidden" name="act" value="<?php echo $act ?>"/>
    287287
    288288    <p><?php _e("Question:", 'mt_trans_domain' ); ?><br/>
    289     <input type="text" name="question" value="<?= $row->question; ?>" size="20" class="large-text"/>
     289    <input type="text" name="question" value="<?php echo $row->question; ?>" size="20" class="large-text"/>
    290290    <p><?php _e("Answer:", 'mt_trans_domain' ); ?><br/>
    291     <textarea name="answer" rows="10" cols="30" class="large-text"><?= $row->answer; ?></textarea>
     291    <textarea name="answer" rows="10" cols="30" class="large-text"><?php echo $row->answer; ?></textarea>
    292292    </p><hr />
    293 
    294     <p class="submit">
    295     <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" />
    296     </p>
    297 
     293    <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" /></p>
    298294    </form>
    299295<?}
  • simple-faq/tags/0.6/readme.txt

    r343501 r374693  
    44Tags: faq, question, answer, simple
    55Requires at least: 2.7
    6 Tested up to: 3.0.5
     6Tested up to: 3.1.1
    77Stable tag: 0.5
    88
     
    3939
    4040== Changelog ==
     41= 0.6 =
     42* 19/04/2011
     43* removed as shortcodes
     44* extra slashes in quries
    4145
    4246= 0.5 =
  • simple-faq/trunk/faq.php

    r343501 r374693  
    44Plugin URI: http://www.spidersoft.com.au/2010/simple-faq/
    55Description: Simple plugin which creates editable FAQ on your site
    6 Version: 0.4
     6Version: 0.6
    77Author: Slawomir Jasinski - SpiderSoft
    88Author URI: http://www.spidersoft.com.au/
    99License: GPL2
    1010
    11 Copyright 2009-2010 Slawomir Jasinski  (email : slav123@gmail.com)
     11Copyright 2009-2011 Slawomir Jasinski  (email : slav123@gmail.com)
    1212
    1313This program is free software; you can redistribute it and/or modify
     
    7171    $table_name = $wpdb->prefix . "faq";
    7272
    73     $select = "SELECT * FROM {$table_name} ORDER BY answer_date DESC";
     73    $select = "SELECT * FROM `{$table_name}` ORDER BY answer_date DESC";
    7474    $all_faq = $wpdb->get_results($select);
    7575
     
    215215   ?><table class="widefat">
    216216   <thead>
    217       <th scope="col"><? _e("Question") ?></th>
    218       <th scope="col"><? _e("Created") ?></th>
    219       <th scope="col"><? _e("Author") ?></th>
    220       <th scope="col" width="30"><? _e("Edit") ?></th>
    221       <th scope="col" width="30"><? _e("View"); ?></th>
    222       <th scope="col" width="30"><? _e("Delete");?></th>
     217      <th scope="col"><?php _e("Question") ?></th>
     218      <th scope="col"><?php _e("Created") ?></th>
     219      <th scope="col"><?php _e("Author") ?></th>
     220      <th scope="col" width="30"><?php _e("Edit") ?></th>
     221      <th scope="col" width="30"><?php _e("View"); ?></th>
     222      <th scope="col" width="30"><?php _e("Delete");?></th>
    223223   </thead>
    224224   <tbody>
     
    249249   $table_name = $wpdb->prefix . "faq";
    250250
    251    $row = $wpdb->get_row("SELECT * FROM {$table_name} WHERE id = '$id'");
     251   $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'");
    252252   echo '<p>';
    253253   _e("Question:");
     
    258258   echo '<br/>';
    259259   echo $row->answer;
    260    echo '<p>' . draw_ico(e_('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>';
     260   echo '<p>' . draw_ico(_e('back to list'), 'Backward.png', 'plugins.php?page=faq') . '</p>';
    261261}
    262262
     
    276276      $id = null;
    277277    } else {
    278         $row = $wpdb->get_row("SELECT * FROM {$table_name} WHERE id = '$id'");
     278        $row = $wpdb->get_row("SELECT * FROM `{$table_name}` WHERE id = '$id'");
    279279    }
    280280
     
    283283    ?>
    284284    <form name="form1" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
    285     <input type="hidden" name="hid" value="<?= $id ?>"/>
    286     <input type="hidden" name="act" value="<?= $act ?>"/>
     285    <input type="hidden" name="hid" value="<?php echo $id ?>"/>
     286    <input type="hidden" name="act" value="<?php echo $act ?>"/>
    287287
    288288    <p><?php _e("Question:", 'mt_trans_domain' ); ?><br/>
    289     <input type="text" name="question" value="<?= $row->question; ?>" size="20" class="large-text"/>
     289    <input type="text" name="question" value="<?php echo $row->question; ?>" size="20" class="large-text"/>
    290290    <p><?php _e("Answer:", 'mt_trans_domain' ); ?><br/>
    291     <textarea name="answer" rows="10" cols="30" class="large-text"><?= $row->answer; ?></textarea>
     291    <textarea name="answer" rows="10" cols="30" class="large-text"><?php echo $row->answer; ?></textarea>
    292292    </p><hr />
    293 
    294     <p class="submit">
    295     <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" />
    296     </p>
    297 
     293    <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button-primary" /></p>
    298294    </form>
    299295<?}
  • simple-faq/trunk/readme.txt

    r343501 r374693  
    44Tags: faq, question, answer, simple
    55Requires at least: 2.7
    6 Tested up to: 3.0.5
     6Tested up to: 3.1.1
    77Stable tag: 0.5
    88
     
    3939
    4040== Changelog ==
     41= 0.6 =
     42* 19/04/2011
     43* removed as shortcodes
     44* extra slashes in quries
    4145
    4246= 0.5 =
Note: See TracChangeset for help on using the changeset viewer.