Web Design Forum: Too many design competitions, not enough dev. - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Too many design competitions, not enough dev. Let's fix that.

#1 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 15 October 2011 - 11:24 PM

Here's one for the more code-minded. Lots of folks here use WordPress and it's fairly simple to develop for, so we'll use that.

The brief: Develop a WordPress widget. It could be something completely new or an improvement on one of the built-in widgets, but it must be well-written, well-commented, genuinely useful, must work with Twenty Ten and Twenty Eleven as a bare minimum, and must be released as GPLv2 (might as well let everybody use it, right?)

Zip 'em up and post 'em here, closing date is the end of the month. Best 3 entries get a Forrst invite (or just bragging rights if you're already on Forrst).

This post has been edited by Renaissance-Design: 18 October 2011 - 05:11 PM

0

#2 User is offline   oakleaves 

  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,395
  • Joined: 16-July 11
  • Reputation: 173
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 16 October 2011 - 09:12 AM

Sounds interesting
0

#3 User is offline   MikeChipshop 

  • Small but imperfectly formed
  • Group: Moderators
  • Posts: 7,044
  • Joined: 19-April 10
  • Reputation: 503
  • Gender:Male
  • Location:Scotland

Posted 16 October 2011 - 09:28 AM

Ha I've spent most of this week doing just that to some of the more mundane tasks i crack on with.
Let me polish a few and get back to you.
0

#4 User is online   brightonmike 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,996
  • Joined: 27-June 11
  • Reputation: 340
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 17 October 2011 - 10:57 AM

Does it have to be a widget that is placed in a sidebar? As that rather limits my ideas a bit?
0

#5 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 17 October 2011 - 09:23 PM

View Postbrightonmike, on 17 October 2011 - 10:57 AM, said:

Does it have to be a widget that is placed in a sidebar? As that rather limits my ideas a bit?


Yup, has to fit a normal WP widget area. Obviously that's not limited to the sidebar - could be in the footer (my footer's completely widgetized, as is Twenty Ten and Twenty Eleven.

How's it limiting you?
0

#6 User is offline   Sazzad 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 628
  • Joined: 21-February 07
  • Reputation: 38
  • Gender:Male
  • Location:New York, New York
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 17 October 2011 - 11:07 PM

This is interesting. Since I'm already working on a widget for myself, I guess when I finish, I can submit that. I'll also throw in 20 acorns to the winner.
0

#7 User is offline   Gaelen 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 28-September 11
  • Reputation: 6
  • Gender:Male
  • Location:Coquitlam, BC, Canada
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 17 October 2011 - 11:08 PM

hmm been 6 or so months since i've cracked into a widget. Lets see what I can do :D
0

#8 User is offline   seedism 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 424
  • Joined: 22-February 11
  • Reputation: 35
  • Gender:Male
  • Location:United Kingdom
  • Experience:Beginner
  • Area of Expertise:Entrepreneur

Posted 18 October 2011 - 10:41 AM

lol....I dont know Wordpress, would not know where to start.

Lost this one already.
0

#9 User is offline   Sazzad 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 628
  • Joined: 21-February 07
  • Reputation: 38
  • Gender:Male
  • Location:New York, New York
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 18 October 2011 - 04:30 PM

View Postseedism, on 18 October 2011 - 10:41 AM, said:

lol....I dont know Wordpress, would not know where to start.

Lost this one already.

Download a widget plugin and study the structure. Or just use Google.

Oh do note he said WP widget and that could be anything. For all we know WP could stand for Wild Pepper where we design a pepper themed widget for any CMS of our choice.

This post has been edited by Sazzad: 18 October 2011 - 04:31 PM

0

#10 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 18 October 2011 - 05:12 PM

View PostSazzad, on 18 October 2011 - 04:30 PM, said:

Download a widget plugin and study the structure. Or just use Google.

Oh do note he said WP widget and that could be anything. For all we know WP could stand for Wild Pepper where we design a pepper themed widget for any CMS of our choice.


Sneaky bugger. Mod, no edit limit. :p
0

#11 User is offline   MikeChipshop 

  • Small but imperfectly formed
  • Group: Moderators
  • Posts: 7,044
  • Joined: 19-April 10
  • Reputation: 503
  • Gender:Male
  • Location:Scotland

Posted 18 October 2011 - 05:24 PM

Ooo forgot about this.
Gonna have to rack my brains and think of something interesting... or not. Whatever works :p
0

#12 User is offline   alzer81 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,684
  • Joined: 28-July 08
  • Reputation: 137
  • Gender:Male
  • Location:Dublin
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 21 October 2011 - 08:19 AM

View PostSazzad, on 17 October 2011 - 11:07 PM, said:

I'm already working on a widget for myself


ya should be careful workin on your widget. ya can go blind if ya do it for too long...
0

#13 User is offline   seedism 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 424
  • Joined: 22-February 11
  • Reputation: 35
  • Gender:Male
  • Location:United Kingdom
  • Experience:Beginner
  • Area of Expertise:Entrepreneur

Posted 22 October 2011 - 09:39 AM

lol
0

#14 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 23 October 2011 - 01:54 PM

Anyone have anything to submit yet? I may post something shortly as an example.
0

#15 User is offline   seedism 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 424
  • Joined: 22-February 11
  • Reputation: 35
  • Gender:Male
  • Location:United Kingdom
  • Experience:Beginner
  • Area of Expertise:Entrepreneur

Posted 24 October 2011 - 12:45 AM

yes please, show us how its done, I am also googling some widgets but dont get it 100% yet...lol

Might become a wild pepper design after all.
0

#16 User is offline   Sazzad 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 628
  • Joined: 21-February 07
  • Reputation: 38
  • Gender:Male
  • Location:New York, New York
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 27 October 2011 - 07:31 PM

Sorry got stuck with a few projects and spent my free-time re-designing my site.
0

#17 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 08 November 2011 - 09:34 AM

No entries? Opening it up for another month, then.
0

#18 User is offline   MikeChipshop 

  • Small but imperfectly formed
  • Group: Moderators
  • Posts: 7,044
  • Joined: 19-April 10
  • Reputation: 503
  • Gender:Male
  • Location:Scotland

Posted 08 November 2011 - 09:36 AM

Not had the time. However i bought that book you recommended so i'll be writing killer plugins within days :p
0

#19 User is offline   Gaelen 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 28-September 11
  • Reputation: 6
  • Gender:Male
  • Location:Coquitlam, BC, Canada
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 08 November 2011 - 04:29 PM

got busy... more busy than I ever want to be. I'll submit something this time (I hope)
0

#20 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 08 November 2011 - 07:09 PM

Don't fret, lads. I seem to recall saying I'd post something too...
0

#21 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 20 November 2011 - 02:55 PM

So, here's something I whipped together for my site a while back. It's very rough and hacky, and I'll need to rewrite it at some point soon - bonus prize of a Forrst invite goes to the first person to correctly identify the main way it could be improved.

<?php

/**
 * Displays the most recent tweets from the specified Twitter account.
 * 
 * Options to limit to X tweets and include/exclude retweets. Supports multiple instances.
 */
class Twitter_Widget extends WP_Widget {


    function Twitter_Widget() {
        /* Widget settings. */
        $widget_ops = array(
            'username' => 'Your username here',
            'limit' => 4,
            'show_retweets' => true,
            'description' => 'A widget to show your latest tweets'
        );

        /* Widget control settings. */
        $control_ops = array(
            'width' => 300,
            'height' => 350,
            'id_base' => 'twitter-widget'
        );

        /* Create the widget. */
        $this->WP_Widget('twitter-widget', 'RD Twitter Widget', $widget_ops, $control_ops);
    }

    function widget($args, $instance) {
        extract($args);
        /* User-selected settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $username = $instance['username'];
        $limit = $instance['limit'];
        $show_retweets = $instance['show_retweets'];


        /* Before widget (defined by themes). */
        echo $before_widget;

        /* Title of widget (before and after defined by themes). */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        $feedURL = 'http://twitter.com/statuses/user_timeline/' . $username . '.rss'; // change to your feed URL
        $format = get_option('date_format') . ' ' . get_option('time_format');
        $doc = new DOMDocument();
        $doc->load($feedURL);
        $arrFeeds = array();
        foreach ($doc->getElementsByTagName('item') as $node) {
            $itemRSS = array(
                'tweet_title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
                'tweet_date' => date($format, strtotime($node->getElementsByTagName('pubDate')->item(0)->nodeValue)),
                'tweet_link' => $node->getElementsByTagName('link')->item(0)->nodeValue
            );
            if ($show_retweets == true || strrpos($itemRSS['tweet_title'], 'RT ') == false) {
                array_push($arrFeeds, $itemRSS);
            }
        }
        ?>
        <ul class="tweets">
            <?php
            for ($x = 0; $x < $limit; $x++) {
                $tweet_title = str_replace($username . ': ', '', $arrFeeds[$x]['tweet_title']);
                $str = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]', '<a href=\"\\0\">\\0</a>', $tweet_title);
                $pattern = '/[#|@][^\s]*/';
                preg_match_all($pattern, $str, $matches);

                foreach ($matches[0] as $keyword) {
                    $keyword = str_replace(")", "", $keyword);
                    $link = str_replace("#", "%23", $keyword);
                    $link = str_replace("@", "", $keyword);
                    if (strstr($keyword, "@")) {
                        $search = '<a href="http://twitter.com/' . $link . '">' . $keyword . '</a>';
                    } else {
                        $link = urlencode($link);
                        $search = '<a href="http://twitter.com/#search?q=' . $link . '">' . $keyword . '</a>';
                    }
                    $str = str_replace($keyword, $search, $str);
                }
                ?>

                <li>
                    <p class="tweet"><?php echo $str ?></p>
                    <p class="published">- <a href="<?php echo $arrFeeds[$x]['tweet_link']; ?>"><?php echo $arrFeeds[$x]['tweet_date']; ?></a></p>
                </li>

                <?php
            }
            ?>

        </ul>

        <?php echo $after_widget; ?>
        <?
    }

    function update($new_instance, $old_instance) {
        $instance = $old_instance;

        /* Strip tags (if needed) and update the widget settings. */
        $instance['title'] = strip_tags($new_instance['title']);
        $instance['username'] = strip_tags($new_instance['username']);
        $instance['limit'] = $new_instance['limit'];
        $instance['show_retweets'] = $new_instance['show_retweets'];
        return $instance;
    }

    function form($instance) {

        /* Set up some default widget settings. */
        $defaults = array('title' => 'Latest Tweets', 'username' => 'Example', 'limit' => 5, 'show_retweets' => true);
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>
        <p>
            <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
            <input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
        </p>

        <p>
            <label for="<?php echo $this->get_field_id('username'); ?>">Your Twitter Username:</label>
            <input id="<?php echo $this->get_field_id('username'); ?>" name="<?php echo $this->get_field_name('username'); ?>" value="<?php echo $instance['username']; ?>" style="width:100%;" />
        </p>
        <p>
            <label for="<?php echo $this->get_field_id('limit'); ?>">Number of Tweets to show:</label>
            <input id="<?php echo $this->get_field_id('limit'); ?>" name="<?php echo $this->get_field_name('limit'); ?>" value="<?php echo $instance['limit']; ?>" />
        </p>
        <p>
            <input class="checkbox" type="checkbox" <?php checked($instance['show_retweets'], true); ?> id="<?php echo $this->get_field_id('show_retweets'); ?>" name="<?php echo $this->get_field_name('show_retweets'); ?>" />
            <label for="<?php echo $this->get_field_id('show_retweets'); ?>">Include retweets?</label>
        </p>
        <?php
    }

}
?>

This post has been edited by Renaissance-Design: 20 November 2011 - 03:19 PM

0

#22 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 23 November 2011 - 02:37 PM

One week left. C'mon you lot - 700 views and nobody's got anything?
0

#23 User is offline   MikeChipshop 

  • Small but imperfectly formed
  • Group: Moderators
  • Posts: 7,044
  • Joined: 19-April 10
  • Reputation: 503
  • Gender:Male
  • Location:Scotland

Posted 23 November 2011 - 02:39 PM

I totally intended to get on this... and then masses of work hit me! :(
0

#24 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 23 November 2011 - 03:13 PM

Post some old code then - it doesn't have to be written for this.
0

#25 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 27 November 2011 - 02:04 PM

Vaguely-hopeful bump...
0

#26 User is offline   MikeChipshop 

  • Small but imperfectly formed
  • Group: Moderators
  • Posts: 7,044
  • Joined: 19-April 10
  • Reputation: 503
  • Gender:Male
  • Location:Scotland

Posted 27 November 2011 - 02:09 PM

I've got an idea for one but it's just about finding the time to put it together.
0

#27 User is online   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,818
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 30 November 2011 - 02:37 PM

View PostRenaissance-Design, on 20 November 2011 - 02:55 PM, said:

So, here's something I whipped together for my site a while back. It's very rough and hacky, and I'll need to rewrite it at some point soon - bonus prize of a Forrst invite goes to the first person to correctly identify the main way it could be improved.




Cache the tweets due to twitter API limits?
0

#28 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,587
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 30 November 2011 - 03:43 PM

View Postrallport, on 30 November 2011 - 02:37 PM, said:

Cache the tweets due to twitter API limits?


Full marks, that man (well, more to do with the site's performance than Twitter's API limits, as it's fetched as RSS).

Ideally using the WP Transients API to avoid having to write a cache from scratch.

Forrst invite en route to [yourusername] at [yourusername] dot com.

This post has been edited by Renaissance-Design: 30 November 2011 - 04:57 PM

0

#29 User is online   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,818
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 01 December 2011 - 06:32 PM

Cheers! :)
0

#30 User is offline   rrr 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 95
  • Joined: 22-August 11
  • Reputation: 6
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 22 April 2012 - 03:15 AM

I enter my program... it doesn't have too many features but I think it's guaranteed some sort of prize because there aren't much competition.

function rrrRocks(){
   var rrrSpamArea = document.body;

   while(true){
      while(true){
         rrrSpamArea.innerHTML += "rrr Rocks <br />";
         rrrRocks();
      }
      alert("rrr Rocks"); //Edited to add this feature
   }
}

This post has been edited by rrr: 22 April 2012 - 03:21 AM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users