Page 2 of 2

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

Posted: Sun Oct 30, 2005 10:46 pm
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!

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

Posted: Mon Oct 31, 2005 2:35 pm
by Piratos

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

Posted: Mon Oct 31, 2005 3:25 pm
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!

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

Posted: Thu Jan 19, 2006 11:01 am
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!

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

Posted: Thu Jan 19, 2006 11:38 am
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.

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

Posted: Thu Jan 19, 2006 11:52 am
by wientanz
But the name of the article creator. I will contend with that if it's in any way possible.

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

Posted: Thu Jan 19, 2006 12:10 pm
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Ā  :( ...

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

Posted: Thu Jan 19, 2006 12:24 pm
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!

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

Posted: Thu Jan 19, 2006 12:28 pm
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

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

Posted: Thu Jan 19, 2006 12:45 pm
by wientanz
Well, that's good news then. DOES the DB store the updater?

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

Posted: Thu Jan 19, 2006 11:13 pm
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.

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

Posted: Fri Jan 20, 2006 9:07 am
by wientanz
I tried that (i.e. piratos' lastmodified) and it didn't work for me. But I'll give it another try...