News:

Wondering if this will always be free?  See why free is better.

Main Menu

CountryFlags

Started by SMFHacks.com Team, August 14, 2006, 01:07:43 PM

Previous topic - Next topic

GL700Wing

#1160
I'm using SMF 2.0.4 and I really like this mod but it wasn't working quite the way I expected (ie, even though you can make it mandatory to select a country on Registration the member can subsequently deselect it in their Forum Profile) so I decided to have a go at fixing this issue.  I also decided to update the mod to display the country and flag on the member's Profile Summary and in the Memberlist. And I changed some other things as well ... :)

I now have a Country Flags mod that works on SMF 2.0.4 as follows:

Admin --> Modification Settings --> Miscellaneous
Allow member to select country:
Option 1. Never (Disabled)
Option 2. On Profile only
Option 3. On both Profile and Registration

If disabled (option 1):
A. Do not allow country name or flag to be selected on Registration or changed in Forum Profile;
B. Do not show country name or flag on Posts, Profile Summary or in Forum Profile; and
C. Do not show country name or flag (or Country column) on Memberlist.

If enabled (option 2 or 3):
A. Allow country name and flag to be changed in Forum Profile.

If ALSO enabled for Registration (option 3):
A. Display country name and flag selection drop-down in 'Additional Information' section on Registration form.

If 'Require member to select a country' checked:
A. For option 2 and 3: Force country name and flag to be selected in Forum Profile; and
B. For option 3: Force country name and flag to be selected on Registration.

If enabled (option 2 or 3) AND member has selected a country name/flag:
A. Show country name and flag on Profile Summary and in Forum Profile.

If enabled (option 2 or 3) AND 'Show country name and flag on posts as well as profile?' checked AND member has selected a country:
A. Show on posts with 'Country' label in bold text with name of country and flag; and
B. Show country name and flag on Memberlist.



Many thanks to DaKrampus for the tips in these messages: CountryFlags Updated for SMF 2.0 - Reply #1083  and CountryFlags Updated for SMF 2.0 - Reply #1085

And many thanks also to [SiNaN] for the tips in these messages:  Help on flags mod - Reply #2, Help on flags mod - Reply #4 and Help on flags mod - Reply #8

I've attached some screenshots and a package file that will install this version on SMF 2.0.4.

Enjoy!!


[Edit 1:  Discovered that I'd forgotten to declare a '$modSettings' variable - fixed package uploaded]
[Edit 2:  Discovered a minor issue with the '$modSettings' fix made in previous edit - fixed package uploaded]
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Shambles

Is the mod author Ok with you redistributing his code?

vbgamer45

I am ok with it will comment in a bit after I check it out more later tonight but looks awesome.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Matthew K.

vbgamer - I'll have to shoot you my local copy of the update eventually.

GL700Wing

Quote from: Shambles on June 04, 2013, 11:24:55 AM
Is the mod author Ok with you redistributing his code?
I haven't changed any of the original package credits/ownership info but if the owner wants me to delete the attached package file I will.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Shambles

Don't you worry - vbgamer45 has already given the ok above (I was just checking, to save you getting into bother) :)

SMFHacks.com Team

Mod updates!

2.2 For SMF 2.0.x Thanks to GL700Wing Settings changes: Allow member to select country: Option 1. Never (Disabled) Option 2. On Profile only Option 3. On both Profile and Registration.  Display the country and flag on the member's Profile Summary and in the Memberlist
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Kevinex

Install the mod but not on posts or members list. :(

What did I do wrong?

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kevinex

Quote from: vbgamer45 on June 19, 2013, 07:20:32 PM
What SMF version?

Use version 2.0.4

Download this version and does not work:
http://custom.simplemachines.org/mods/index.php?mod=417

Then download this version:
http://www.simplemachines.org/community/index.php?topic=106060.msg3555791#msg3555791

And if I work, the problem is that when you do not want to uninstall delete the files, I say this because first install it and did not work but I realized I ought to add some options just so I went back to install and gave me error and review was because when you uninstall not erase the modifications, so I had to do everything manually reinstalling again it worked: D

In manual installation, just follow the steps to the only two files that could not find the codes to modify. Now I want to uninstall it if I have to manually clear the codes, is the only mistake I see in the user who made the modification above.

Thank you.

Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

~Luke

#1171
I am also getting this parse error.

Any idea on how to fix the parse error? I really want this mod.

Thanks and great job on building it - I hope I can get it to work.

When getting the above screenshotted error (parse modification error) it puts my forums into internal server error (changing permission to 777 from 755 on root folder fixes this.)

vbgamer45

Do you get an error with this package
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

~Luke

It didn't have a parse error and all passed but upon applying I get the usual (for me) internal server error and then my root folder has 777 permission instead of 755 - changing the 755 fixes and when checking back the package isn't installed.

It only does this for CountryFlags add ons (both versions) by the look of it.

gd4now


vbgamer45

Generally when I see that error when it fails for all is a server/hosting issue post in the SMF forums for advice.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gd4now

OK so it may well be related to the site/server. But could it also be related to other mods I have installed.

Currently running 2.0.4 forum software
I do have join date and location mod installed - could it be part of the problem?

Have also noted that when I attempt to pull down the instructions for manual install on 2.0.4 via the parse button I get an error message that it can be parsed. Am I doing somthing wrong?

~Luke

Im still yet to find a resolution to this :( I really want this mod.

TheListener

Quote from: ~Luke on June 30, 2013, 09:08:42 AM
Im still yet to find a resolution to this :( I really want this mod.

Who is your host?

~Luke


Advertisement: