Coder Social home page Coder Social logo

drupal-twitterfield's Introduction

Description
-----------

This project aims to solve a common problem of displaying a twitter widget for a
specified username, that has been noted in various places, but never properly
developed.

The module (currently Drupal 7 only, but could easily be backported) implements 
a custom field formatter that takes the contents of a generic Text Field, 
attached to a Node, and treats it like a Twitter Username.   It then provides a
default template file (twitter-field-widget.tpl.php)  That can be overridden in 
your module, with the code generated after you configure a Twitter Profile
Widget and click the "Finish & Grab code" button at Twitter.com.

The default template provided by this module implements the Twitter Profile 
widget, with a basic color scheme. You may override the default template in your 
theme to use the custom code generated by the Profile widget generator, and may 
work with the Twitter search widget or the Twitter faves widget as well. 
Unfortunately, the Twitter List Widget requires knowledge of at least two pieces
of information (user-name, and list-name) and so it is currently not possible 
to override this widget type.

Todo
----

A planned enhancement would be to create a completely custom field type, which 
would allow for storage of two fields as one (needed for the Twitter List Widget 
implementation), but for now, we're piggybacking off of the simple text field 
type.

Usage
-----

1) Download and enable the module as usual. 
2) Create a text field called "Twitter ID" on one of your content types, with a 
max length of for example 30 characters.
3) Change the display format from "Default" to "Twitter Widget".
4) Profit!

Credits
-------

This module was used in combination with a custom view, to build our individual 
profile pages at Bluesparklabs.com. The initial module development sponsored by 
Bluespark Labs.

drupal-twitterfield's People

Contributors

gapple avatar jameswilson avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.