News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Add two buttons in memberlist

Started by Rumpa, November 20, 2014, 12:47:06 AM

Previous topic - Next topic

Rumpa

Hi I am trying to create a mod
in that issue I need put two buttons in Memberlist.php before "Position"tab.

I use bellow code but I am getting test failed
'location' => array(
'label' => $txt['location']
),
'age' => array(
'label' => $txt['age']


any suggestion.

JBlaze

1. Are those fields included as columns in the smf_members table?
2. Have you added those fields to $context['columns'] in Memberlist(), and $sort_methods in MLAll()?
3. Don't forget to add those fields to MLSearch()

I can't gather much from the code you posted, other than you may or may not have added it to $context['columns'] in the Memberlist() function.
Jason Clemons
Former Team Member 2009 - 2012

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Rumpa

I tried these but test failed
search

'id_group' => array(
'label' => $txt['position']
),


add after

'location' => array(
'label' => $txt['location']
),
'age' => array(
'label' => $txt['age']


Where I am doing wrong.

Rumpa


Advertisement: