Predefined html code for fields

Predefined html code for fields

deetimbadeetimba Posts: 5Questions: 2Answers: 0
edited February 2011 in Plug-ins
Hi folks,

1.
imagine a table with users and a column which should show a twitter image/link if the respective field in the DB is not empty. How could I implement this?

The simplest approach is to give the db field a default value or simply insert the html code in there, but I would like to operationalize it. Means I'm building a php mask (your twitter account here: ___) which should end up with a twitter link in the twitter column in the datatable if not empty.

2.
An even advanced idea is to take the twitter input, facebook input and others from the php mask and insert them in one (social media links) column showing e.g. 16x16px twitter and facebook images i.e. links.

I would by very grateful for any help and suggestions 1 or 2. Maybe I missed a very simple approach or plugin to do this.

Cheers, D

PS: I would also appreciate help on http://datatables.net/forums/comments.php?DiscussionID=4235
This discussion has been closed.