News:

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

Main Menu

CountryFlags

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

Previous topic - Next topic

JayBachatero

Ummm need to add that to the list then.  What are the initials used for these countries?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Skipdawg

Oh I like this Jay thanks much. And they way this is done should work just fine for the coming 1.1 RC3 and final too right?
Skipdawg's Community

Powered by SMF 1.1.3

JayBachatero

Yea it should work w/o a problem.  All of the mods that I've written lately have been built on RC3.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Skipdawg

Quote from: Jay The Code Monkey on August 16, 2006, 10:17:02 PM
Yea it should work w/o a problem.  All of the mods that I've written lately have been built on RC3.

Kewlness!  8) ;D ;)
Skipdawg's Community

Powered by SMF 1.1.3

ivo2296

#24
Can we have this mod for the only final version 1.0.7 ?
Soon will come RC3 and the mod could not work, and till smf 1.1 comes it will take a lot of time.
That's why would be nice if we can install the mod on current final version.



Thank you!


P.S. I did on my smf1.0.7 manually, to me now the flags are showing on profiles and posts - just on registration page doesn't run.

Polymath

Thanks for this. Everything installed fine in the package manager. It is in the profiles to choose country, but its not showing up in the forum posts.

Im using a theme that runs of the default, but there seems to be the flag missing in the posts. Any idea what the post edit would be?

thanks.

* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

JayBachatero

ivo2296 for the Register.template.php you need to look for something else since I did a search for the COPPA stuff.  Everything else should work.

Polymath did you enable it on Admin > Features and Options > Last settings.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Polymath

#27
Quote from: Jay The Code Monkey on August 17, 2006, 10:33:32 PM
Polymath did you enable it on Admin > Features and Options > Last settings.

Yes I have enabled it. I have also choosen my country in my profile but it don't show up in the posts I have made preiously. I've also done some test posts and it didn't show up. Everything was right when I installed. All things are where they are supposed to be. Sometimes I do have to edit my themes files. It may say install succesfull but maybe cos it installs in the default.

If I know what the post edit is I maybe able to see if its there. I'll work something out.

* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

JayBachatero

You need to edit Display.template.php for your theme.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Polymath

Yep thanks, you were right. I hate finding it and then doing edits to the theme, lol.  Im not that good at it.

All works now though. Thankyou.
* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

K_4_kelly

to be honest, I almost installed all the mods been created and shared by you... hehe I like your mods very much, cos it always have a very good and systematic setting/contro panel

JayBachatero

Yea I noticed that you have almost all of my mods installed :).  Thanks for the support.  Hey and you don't have to worry about UTF-8 Problems on this mod :P.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

VegasBoxers

#32
SWEET!  I got the first file downloaded and installed without problem, but the second file country_flags had the following error when I went to install it:
Quote
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Register.php Test successful
2. Execute Modification ./Sources/Subs.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Profile.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Themes/default/Profile.template.php Test failed
7. Execute Modification ./Themes/default/Display.template.php Test successful
8. Execute Modification ./Themes/babylon/Display.template.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Extract Tree ./Themes/default/images/flags

It told me NOT to do anything more unless I knew what I was doing, and that is simply not the case.  :D

I also went to the Admin > Features and Options > and I got this:



Any ideas?
Thanks!
VB

Gary

A very nice mod Jay. It came as a decent replacement for the Location Mod, that was begining to become a pain in the butt.

-AwwLilMaggie
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

JayBachatero

VegasBoxers you need to manually edit ModSettings.php and also edit Modifications.english.php for your custom theme.

Thanks for the feedback AwwLilMaggie.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

VegasBoxers

#35
I just realized after I posted that last post, that it was very similar to the one paris on page 1&2 of this thread.

I've got a request into my host to set the permissions for those files for me to update.  The server has control of them right now.  >:(

To modify those 2 files, do I just do like you told paris?
Quote
Parijs add this to the /Themes/wow/languages/Modifications.engligh.php


// Country Flag mod
$txt['country_flag_label'] = 'Please select your country';
$txt['country_flag_error_required'] = 'You must select the country that you visit us from';
$txt['country_flag_ask'] = 'Ask for country flag on';
$txt['country_flag_disabled'] = 'Don\'t show (Disabled)';
$txt['country_flag_profile'] = 'Profile';
$txt['country_flag_registration'] = 'Registration';
$txt['country_flag_both'] = 'Both';
$txt['country_flag_required'] = 'Require a member to select a location?';
$txt['country_flag_show'] = 'Show flags on Display page (Where posts are shown).';
$txt['country_flag'] = 'Country';


What do I edit on the Modsettings.php file?

Sincerest Thanks!
VB


JayBachatero

Yea just edit that file.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

VegasBoxers

Quote from: VegasBoxers on August 20, 2006, 02:59:13 AM
What do I edit on the Modsettings.php file?

Sincerest Thanks!
VB



Assistance

   <file name="$sourcedir/ModSettings.php">
      <operation>
         <search position="before"><![CDATA[         // Reporting of personal messages?
         array('check', 'enableReportPM'),
]]>
</search>
         <add><![CDATA[
      '',
         // Show flags
         array('select', 'country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
         array('check', 'country_flag_required'),
         array('check', 'country_flag_show'),
]]>
</add>
      </operation>
~playing poker~

mforum

I have installed it with no errors, i ckecked Show flags on Display page (Where posts are shown). under features and options and saved.
No flags shown on posts, only shown in registration and in profile.
I have selected flag from my profile, it shows on my profile, i posted but not shows on my post.
I use 11.rc2 Default theme.....  :(

Advertisement: