Displaying an Officer Notes

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

Displaying an Officer Notes

Postby Tango » Tue May 22, 2007 3:39 am

I've done a search and the only mention I can find of officer notes is in regards to addons. I'm trying to add the 'officer_note' information to index.php. Unfortunately I'm having a few issues in that regard.

I know I need to modify the memberlist.php and index.php files to add the arrays and make the call to the right table. Are there any other changes that I would need to make?
Tango
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Wed Apr 11, 2007 3:35 am

Displaying an Officer Notes

Postby PleegWat » Tue May 22, 2007 7:29 pm

You need to add the `officer_note` column to the $additional_sql in the index page. You also have to add an entry to the $FIELDS array for the new column. The easiest way to do this is by copying the entry for the 'note' field, and renaming it to 'officer_note'. You will also need to make a copy of the note_value function in memberslist.php, and direct to that.

In 1.8 the officer note can be turned on with an option. (I added this several weeks ago, not as a reply to this post).
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron