Title: stackedsax's Replies | WordPress.org

---

# stackedsax

  [  ](https://wordpress.org/support/users/stackedsax/)

 *   [Profile](https://wordpress.org/support/users/stackedsax/)
 *   [Topics Started](https://wordpress.org/support/users/stackedsax/topics/)
 *   [Replies Created](https://wordpress.org/support/users/stackedsax/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/stackedsax/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/stackedsax/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/stackedsax/engagements/)
 *   [Favorites](https://wordpress.org/support/users/stackedsax/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Twitter Tools] Lots of Validation Errors](https://wordpress.org/support/topic/plugin-twitter-tools-lots-of-validation-errors/)
 *  [stackedsax](https://wordpress.org/support/users/stackedsax/)
 * (@stackedsax)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-twitter-tools-lots-of-validation-errors/#post-1652645)
 * Oh whatever. Thanks very much, moderator.
 * [http://wordpress.pastebin.com/paKqZJYA](http://wordpress.pastebin.com/paKqZJYA)
 * You can figure it out if you guys want to. I’m done helping the community for
   the day.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Twitter Tools] Lots of Validation Errors](https://wordpress.org/support/topic/plugin-twitter-tools-lots-of-validation-errors/)
 *  [stackedsax](https://wordpress.org/support/users/stackedsax/)
 * (@stackedsax)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-twitter-tools-lots-of-validation-errors/#post-1652644)
 * The ampersand looks fine. It’s just separating HTTP variables in the request.
   One variable is ‘ak_action’ and another variable is ‘v’. No harm done.
 * Now, what IS strange is that Twitter Tools loads its css like this. Why can they
   not use wp_enqueue_style like you’re supposed to?
 * Using index.php to dynamically generate a css file is one of the most bizarre
   things I’ve seen done in a long, long time. There is no need for the css to be
   generated dynamically. It’s not like Twitter Tools is using PHP variables in 
   any of the CSS definitions. Why on earth is this like this?
 * To make this better, rip out the code from lines 997 to 1523 (lines refer to 
   Twitter Tools 2.4). Remove everything from aktt_init() until and including add_action(‘
   init’, ‘aktt_resources’, 1);
 * In other words, remove this:
 *     ```
       function aktt_init() {
       	global $wpdb, $aktt;
       	$wpdb->aktt = $wpdb->prefix.'ak_twitter';
       	$aktt = new twitter_tools;
       ...
       ...
       ...
       <and everything in between>
       ...
       ...
       ...
       add_action('init', 'aktt_resources', 1);
       ```
   
 * Then, replace with some improved init functions:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_
 * Create two directories:
 * >  wp-content/plugins/twitter-tools/js
   >  wp-content/plugins/twitter-tools/css
 * And create 5 files:
 * >  wp-content/plugins/twitter-tools/js/aktt.js
   >  wp-content/plugins/twitter-tools/
   > js/aktt_admin.js wp-content/plugins/twitter-tools/js/aktt_prototype.js wp-content/
   > plugins/twitter-tools/css/aktt.css wp-content/plugins/twitter-tools/css/aktt_admin.
   > css
 * With the contents:
 * **wp-content/plugins/twitter-tools/js/aktt.js:**
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_
 * I could make one or two more improvements, like not loading the aktt.css in the
   admin, but whatever. At least this allows me to cache the css and js on my CDN
   now. Phew.

Viewing 2 replies - 1 through 2 (of 2 total)