I’ve added in a pilot field for peoples VATSIM ID in the admin panel, and it is showing in the table as “vatsimid”. I’ve then copied the text in the pilots_list.tpl that pertains to the addition of a custom field, and where it pulls the field name based on the pilotid, I’ve called it both “VATSIM ID” and “vatsimid”, and neither are getting any results. I’ve added "<th>VATSIM ID</th> to the table headings, so the column is showing, but the dashed lines don’t stretch across into the new column and it is completely blank. I’m obviously doing something wrong but I can’t figure it out! Any ideas anyone?
Also, how can I sort the pilot list by descending ID rather than ascending? Since I’m 0001 I don’t like being at the bottom of the list
The 2nd one worked a treat thanks I’d have never thought to look in there!
The 1st one though is exactly what I have and still nothing - even the dashed lines still arent going across into the column (presumably as there’s no data there). Can’t work that one out.
My guess is that your field is not VATSIM ID but maybe Vatsim Id or some variant. They have to match in all respects. If they do, then check and see if there is any data in the table column. One thing you could do to avoid the table not being right when the variable is empty is something like this ->
Will try that out when I can. Does the name entered have to be the name that’s listed in the admin panel custom fields area, or the name of the field in the database, as they are different?
Hi Nabeel I’ve managed to get the dashed lines all the way across as above by the blank carriage return, but it’s not pulling the data from the database. I’ve even changed the name of the field in the admin panel to match the field name in the database and still nothing. I’ve checked that there is data in the field.
Sorry to bump this, but the same problem is occuring on 2.1.933. I’ve worked out why too, but can’t think of a solution yet. The problem is that the custom field code is looking under “phpvms_customfields” rather than my own table prefix. Is there any quick way of changing this?
Sorry to bump this, but the same problem is occuring on 2.1.933. I’ve worked out why too, but can’t think of a solution yet. The problem is that the custom field code is looking under “phpvms_customfields” rather than my own table prefix. Is there any quick way of changing this?
Thanks
Ah, I wish you posted that earlier. I’ll have a fix in about 5 minutes for 934.
Lol sorry Nabeel just updated to the latest - very nice work by the way - and the error log sprang into action. 1st time I’ve seen where the fault lies!
Lol sorry Nabeel just updated to the latest - very nice work by the way - and the error log sprang into action. 1st time I’ve seen where the fault lies!