Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: re-order standard fields  (Read 687 times)
0 Members and 1 Guest are viewing this topic.
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: March 06, 2007, 04:48:00 AM »

so i wanted to enable the author and time added fields to show up in event details...but is there a way to change the order of those fields so i can keep them at the bottom of all my other custom fields?

and is there a way to format them independently?  i would like the author and time added fields to be 'fine print'

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: March 06, 2007, 12:36:00 PM »

** i wanted to enable the author and time added fields **

The "time added" value is stored as Unix date format which is just a long string of numbers. For example, today's date/time is 1173139200. The "author" is just the user's log in name, not necessarily their real name. Both filed could very well be meaningless to anyone viewing them.

** is there a way to change the order of those fields **

That might be possible by editing the customize_event_fields.html administration template to remove (or change) the <% if (!$locked) { %> tag which looks to be responsible for skipping them in the 'Change Field Display Order' section.

** is there a way to format them independently?  i would like the author and time added fields to be 'fine print'
**

Where??? If in the Events Details section of the default template file, see if the following link gives you any ideas.

LINK > Break apart event title and description

Dan O.

------------------

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: March 06, 2007, 02:05:00 PM »

** Both filed could very well be meaningless to anyone viewing them **

yeah its more for me which is why i wanted them to be smaller print.


** That might be possible by editing the customize_event_fields.html **

that seems to work, but i can edit specific event fields?  for instance, to just set the 'author' field to not be locked?

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: March 06, 2007, 03:14:00 PM »

* but i can edit specific event fields? **

I'm afraid I do not know. I don't know that that would be wise anyway as the fields that are locked are used internally by the script. If one should happen to be deleted or even just altered, the script could very well cease to function.

JMO

Dan O.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: March 07, 2007, 04:25:00 PM »

** ...is there a way to keep them at the bottom **

You do realize that you can print out any event field's data, whether it is set as "locked" or not? If you just wanted to list them at the end of the rest of the event's details, put static code in the appropriate place (ie. before the </table> tag) that prints the information out once the code has looped through the rest of the field data.

JFYI

Dan O.

------------------

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: March 07, 2007, 06:40:00 PM »

so how do i display stored field names and values?  especially with the system fields.

<%=$db->{'properties'}->{$_}->{'author'}%>

and

<%=$EVENT->{'author'}->{$_}->{'record'}%>

its not even close...i dont know where to start to display specific field names and values.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: March 08, 2007, 12:15:00 AM »

You should know what the field names will be if you're manually printing them?

Their value like this:

<%=$EVENT->{details}->{author_name}%>

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: