Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
PostgreSQL Data Access Components 4.4
Database Workbench Pro 5.6.4
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
Flat File Database Manager 1.1
Spylog 2.0 (awt Counter/tracke) Freeware 2.0
LDAP-Express I.40
YASLI-Yet another simple LDAP Interface 0.1
Frood LDAP Browser 1.5.1
ActiveRBAC 1.2
Merge multiple (potentially infinite) sorted inputs into a single sorted output
A Practical Comparison of ADO and ADO.NET - Part II
A Practical Comparison of XSLT and ASP.NET
A Quick Comparison of ADO and ADO.NET - Part I
An introduction to XML, XSL, and ASP.NET
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
CCK Author Field 5.x-1.x-dev
File ID: 100807






CCK Author Field 5.x-1.x-dev
Download CCK Author Field 5.x-1.x-devhttp://drupal.orgReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
CCK Author Field 5.x-1.x-dev Description
Description: The module allows you to show node author information in a custom format.
As it uses the cck userreference field, you can easily change the displayed author and keep the real author information in the uid field of the node table. This is useful if you work with freelance authors/journo's or if somebody else handles the actual content input/upload.

To use the module:

1. Enable the module
2. Go to node type settings page Administer -> Content Management -> Content types. Select the node type you want to modify
3. Add a userreference cck field to a node type. Select display template "Author field template"
4. Open the page with content type settings.
5. In a fieldset "Author information" for a field "Author field" select the userreference field you want to use
6. In "Author information template" add php code which returns formatted string. You can use $n (node object) and $u (user object) variables here.
For example:
<?php
$name = (isset($u->profile_last_name) || isset($u->profile_first_name)) ? $u->profile_first_name . ' ' . $u->profile_last_name : $u->name;
$user_link = l($name, 'author/' . $u->uid);
print format_date($n->created, 'small') .' / <em>' . $u->profile_company_name . '</em> / '. $user_link;
?>

7. Save your settings.
8. Profit!

This is a DuoNox Module, sponsored by GamblingCompliance.com.
Your feedback would be most appreciated, and if you write your own plugin, please consider contributing back!

License: Freeware

Related: Field, quotauthor, Information, userreference, Author, Select, Content, Object, ugtnameuser link, lname, ugtuidprint, format datengtcreated, issetugtprofile, herefor, variables, String, examplelt fphpname

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 1



More Similar Code

This module adds a CCK table field type that lets you add a table display to any content type without having to manually enter HTML. It currently parses text data to form the header and row content, but the goal is to accomplish the data entry using a custom form widget. The output is generated by the theme system, so you don't have to worry about forming valid HTML or adding all those little classes yourself.

There is currently no...



This module adds a CCK list field type that lets you add a list display to any content type without having to manually enter HTML. To be most pacific, it adds a textarea field. For every row enter it will be a list point. The output is generated...



If you're using the Wysiwyg API module for a CCK text field, and you have the "number of values" for that text field set to unlimited, you may be encountering some problems:

1. When you use drag-and-drop to re-order the items,...



This tiny module uses Custom filter (previously CCK Computed field) and Chart API modules and embeds a Google Chart anywhere inside the node text. It needs some setup before it can be used, but thankfully it's easier now than previously with the...



Turns a regular CCK text field into a field for selecting and displaying Creative Commons licenses. Makes use of the Creative Commons web services to fetch information on the current license variations and versions for given jurisdictions.



Transforms the autocomplete Author field on node add/edit forms to a select widget. That way, the user doesn't have to guess the first couple letters of the desired username. Instead, he/she can just browse the select box and find it.



This module adds a new widget to the CCK Userreference field type, in order to use the Realnames for autocompletion.

If the widget is configured without any view the autocomplete suggestions and the already filled-in values :



The 6.x-1.1-dev version of the TinyMCE module doesn't work when used in a CCK text field set to "unlimited" for two reasons. One is that drag and drop functionality provided by Drupal core's tabledrag.js causes the tinymce editor's...



Widgets include a normal password textfield and a drupal password confirm.

Passwords cannot be retrieved in their plain text form because only hashes are stored.

Password fields that have been set will have a delete check...



The 6.x-1.1-dev version of the TinyMCE module doesn't work when used in a CCK text field set to "unlimited" for two reasons. One is that the "Add another item" button uses AHAH and the tinymce module doesn't handle that well....

User Review for CCK Author Field
- required fields
     

Please enter text on the image