News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Show Members location on Members List

Started by Chas Large, February 07, 2010, 03:23:42 PM

Previous topic - Next topic

Chas Large

Link to Mod

Location on Memberslist SMF2.0

This mod adds a column to the members list to show the members location if they have
filled in that field in their profile.

History
v1.5 Updated for 2.0.1+
v1.4 Updated for 2.0
V1.3 Changes for SMF 2.0 RC3
V1.2 Corrections to Package file
V1.1 Corrections to installer
V1.0 Installed and tested on two forums

Please use the support link if required.

Regards

Chas Large
November 2011
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.


Chas Large

That will be cool S-Ace, I don't write mods for 1.x.xx.
Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Snogmarr

#3
The database value you're trying to insert does not exist: sort

I get this error?


errorlog

The database value you're trying to insert does not exist: sort
Function: MLAll

Chas Large

Quote from: xnathansxdadx on March 15, 2010, 08:10:41 PM
The database value you're trying to insert does not exist: sort

I get this error?


errorlog

The database value you're trying to insert does not exist: sort
Function: MLAll
Odd, the location is a standard SMF field. My mod does not add anything to the dB, it just displays what might already be there. I assume you have members with the location field filled in?
What version of SMF are you running?
Can you post your Memberlist.php and Memberlist.template.php files here so I can check the install?
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Snogmarr

#5
Thanks

Chas Large

The mod had not completely installed. From the changes in the code on your files compared to an original RC2 install, you have a mod which has prevented this mod from being installed correctly. I'm surprised you didn't get any "not found" errors when the parser tried to install the mod as the code it looks for is not there, it's been altered.

I've manually added the missing parts and tested the file but it seems these other mods which prevent it displaying correctly on my test forum however, it may display correctly on yours.

Please try the corrected files and let me know if it works. It may just be that your other mods prevent this from working correctly.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Snogmarr

 I get this?

It works and searches btw lol

Chas Large

Ah yes, I can see you have a mod that displays members as icons etc, my mod won't work with that without a lot of rework. Mind depends on showing just the normal vertical list.

It's best to ask the designer of your mod to add the location to each of the icon areas.

Please revert back to the original files and use the install instructions for my mod to remove the code manually.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Snogmarr

Wanna Bet?

NB:
How does a mod that does not affect the memberlist
Affect the memberlist as in the mod that displays icons?

Chas Large

Quote from: xnathansxdadx on March 18, 2010, 10:17:50 AM
Wanna Bet?

NB:
How does a mod that does not affect the memberlist
Affect the memberlist as in the mod that displays icons?
I'm sorry, I do not understand the question.

My mod only adds a column of existing information from the SMF database to the existing default vertical memberlist. It does not change the data or add the data to anything else.

You appear to have a mod that displays members as icons with the data in rows underneath each one. My mod was not designed to interface with that or any other mod. So If you've got it to work somehow then congratulations.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

JimM

There are occasions where a mod that you have previously installed conflicts with the mod that you are trying to install.  This is obviously the case here.  Chas Large's mod adds edits that display the location on the standard memberlist.  You already have a mod installed to display the memberlist differently and that is the reason you are having difficulty with this mod. 
Jim "JimM" Moore
Former Support Specialist

mike s

i was very happy to see this mod, but unfortunately, I have my location split into three separate Custom fields (city, province or state, country) and I have turned off the Location field. I was never happy with a single line format for location with no structure, but it is what it is.

Is there any way you would consider enhancing this mod to include custom fields as well?? I know there's another mod for that but its not updated for RC3. Thanks for reading this.

Mike.

Chas Large

Quote from: mike s on May 31, 2010, 12:36:16 PM
i was very happy to see this mod, but unfortunately, I have my location split into three separate Custom fields (city, province or state, country) and I have turned off the Location field. I was never happy with a single line format for location with no structure, but it is what it is.

Is there any way you would consider enhancing this mod to include custom fields as well?? I know there's another mod for that but its not updated for RC3. Thanks for reading this.

Mike.
That would depend on where the custom fields are located in the database. If they're part of the custom profile fields provided by SMF then it's probably possible. If they're provided by another mod then no. We're not allowed to produce a mod the relies on another mod already being installed.

If you can give me some more information about these fields, what their names are, how they're created then I could probably work out a manual edit for you to apply to your system.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

mike s

yes, I just use the SMF provided custom fields to produce 3 fields called City, Province/State and Country.

having them separate makes it nicer for our board which relies on location a fair bit.

thanks, Much appreciated!

Chas Large

OK, give me a couple of days to do some work on this.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.


Arantor

Unfortunately there's no particularly efficient way to do this since the values in the database are not only in another table, but in a format that's not overly efficient to add here. Doable but will add load to your server unless you have already limited the number of people who can view the memberlist (which, to be frank, isn't the most efficient thing to start with)

Chas Large

As Aranto said it's not a quick doable mod. I'm working on a possible SSI solution to this but it's giving me a bit of a headache at the moment. For now I'd have to say it's going to be quite a while. Just Notify yourself of changes to this topic so when I have something definite, I'll post it.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

mike s

Thanks Chas... sorry I had no idea it was a major change to your mod. Perhaps thats why the other mod never got updated. Appreciate your time but dont do it unless its somethign that compels you. :)

regards, Mike.

Advertisement: