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.
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  :( ...
wientanz

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

Post by wientanz »

Hmm... it has to be possible via a user defined tag. I mean, how can I ask the database which user is the owner without writing an mysql query? Can't I just pass an additional query object. The page does call the titles, the breadcrumbs and everything from the DB, so where would the difference be between title and username?

If I had the time, I would dig into the code and look for it, but since I'm up to my neck in work, I really appreciate any help. Thanks again!
westis

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

Post by westis »

This is already added in SVN and will be available in 0.12. That is for News. But I think it shouldn't be difficult to make it possible to display the name of the last updater also for normal pages.

:D
wientanz

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

Post by wientanz »

Well, that's good news then. DOES the DB store the updater?
iNSiPiD

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

Post by iNSiPiD »

weintaz, the editor of a page gets written to the admin log. That is where to start looking. You'll also find when it was modified and possibly other useful information.

To that end, the ever resourceful and nearly famous piratos has written some handy little user tags that do most of what you're asking. Go to the Dev Forge - http://dev.cmsmadesimple.org - and check out his vast array of goodies.
wientanz

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

Post by wientanz »

I tried that (i.e. piratos' lastmodified) and it didn't work for me. But I'll give it another try...
Locked

Return to “Modules/Add-Ons”