Adding option in the Additional Preferences section of the profile

Started by Aaron Nelsen, March 17, 2004, 06:52:16 AM

Previous topic - Next topic

Aaron Nelsen

How would I go about adding the option for users to have the newest messages displayed first? Like in the the Features and Options area of the admin center you can select "View Newest Messages First" but that affects all my users, I just want this to be something each user can enable if they wish.

pulpitfire

well, i think you'd need to add a checkbox to your Profile.template.php, and then change

// Calculate the fastest way to get the messages
$ascending = empty($modSettings['viewNewestFirst']);


in Display.php, so it checks for the profile box instead of the modSettings box. :)

MrCue

Or check both, so you still have the ability to turn it on should you change your mind one day.
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

You could make it use theme options, I'll be writing a tutorial on that later.

-[Unknown]

Advertisement: