Show username at end of page... How?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
wientanz

Show username at end of page... How?

Post by wientanz »

Is there a way to create a tag that shows the username of the user that created a given article?

I certainly hope that that's an easy one...

Thanks,
Steve
iNSiPiD

Re: Show username at end of page... How?

Post by iNSiPiD »

The admin log can tell you who created and edited a page. But if you're talking about getting an author field into the News module interface then I think that's a great idea.

Should be a simple modification for the CMS gods. :)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Show username at end of page... How?

Post by Ted »

Should it just be who added the article, or who last edited it?
iNSiPiD

Re: Show username at end of page... How?

Post by iNSiPiD »

I think an optional field at content creation time for the author's name would be ideal.

Who edits it in the future is an admin concern, not one of authorship.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Show username at end of page... How?

Post by Ted »

Interesting idea.
iNSiPiD

Re: Show username at end of page... How?

Post by iNSiPiD »

Patricia, you rock my world. :)

Is the News module a good base then for building your own modules with this sort of functionality?

I'd love to modify it for Events with the option of just adding a few more fields like title, location, organiser etc.

Do you think this is easy enough to do?
iNSiPiD

Re: Show username at end of page... How?

Post by iNSiPiD »

Patricia, etes-vous serioux? Vous la fairiez pour moi?

Vous etes vraiment trop bonne!

Alors...en anglais a evader les erreurs. ;)

For my Events module I would like the admin to show:

Title
Organisation
Location
Description
Contact
Begin & End date

Ca suffit?

If you can do this for me I will promise to make the Jobs module for myself! It is very similar but will also include Reference#, Salary and Closing Date.

Merci bien et prendez soin de vous!
iNSiPiD

Re: Show username at end of page... How?

Post by iNSiPiD »

No! No Google. I dredged up all my old school French and some of what I rememeber from ny travels partout France. One day I shall return!  :)

Thank you so much, Patricia. You really tres, tres merveilleuse.
iNSiPiD

Re: Show username at end of page... How?

Post by iNSiPiD »

That's fantastic, Patricia. I'll give it a try and see if it will work with 0.10.4. I don't want to run the beta 11 on my production site.

To answer your questions in PM:

Content=Description
Start/End Date = start and end of the event, not when it was posted.

Thanks again!
Piratos

Re: Show username at end of page... How?

Post by Piratos »

wientanz

Re: Show username at end of page... How?

Post by wientanz »

Haven't tried it yet, but looks just like the thing I was looking for. THX! This feature is absolutley perfect for online news media. I'll try it the moment my working notebook comes back from service!

Thanks to all of you!
wientanz

Re: Show username at end of page... How?

Post by wientanz »

Hi everybody...

Still having trouble switching from static HTML to CMSMS on our production server. My fellow workers are a little slow transferring the content :-/ Nethertheless, it will be done! And hopefully before 1.0

A question:
I can't download the file (see link somewhere above this post).
So the question is still there: How can I display username and date of the last update of a given article? I need something like "updated by $name $surname on 12.12.2005"

Any ideas?
Thanks in advance!
cyberman

Re: Show username at end of page... How?

Post by cyberman »

wientanz wrote: So the question is still there: How can I display username and date of the last update of a given article? I need something like "updated by $name $surname on 12.12.2005"
Please use the tag {modified_date} to show the last update. The name of the updater is IMHO not saved in database.
wientanz

Re: Show username at end of page... How?

Post by wientanz »

But the name of the article creator. I will contend with that if it's in any way possible.
cyberman

Re: Show username at end of page... How?

Post by cyberman »

There's an interesting line 174 in admin/editcontent.php (version 0.11):

Code: Select all

		$contentobj->SetLastModifiedBy($userid);
It looks like you're searching for, but I'm not a coder  :( ...
Locked

Return to “Modules/Add-Ons”