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

M-DVD

Quote from: bluesinjid on June 13, 2009, 09:49:01 PM
hi anyone know where to edit this??/

./Sources/Profile.php
Find: [Select]


$erase_options = array();
if (isset($_POST['default_options']) && is_array($_POST['default_options']))

Add Before: [Select]


// Convert the $_POST['country'] to $_POST['default_options']['country']
if (isset($_POST['country']))
{
$_POST['default_options']['country'] = $_POST['country'];

// Check if it's required to select location
if (!empty($modSettings['country_flag_required']) && empty($_POST['default_options']['country']))
fatal_lang_error('country_flag_error_required', false);
}




I can do all the other edits. I use 2.0 rc1-1

Search in the: Profile-Modify.php :P

dzinerfusion

Alright got that, but I can find this in 1.19 or in 2.0rc1.2!!!

For the /default/profile.tamplate.php

JeremyB.

"The most overlooked advantage to owning a computer is that if they foul up, there's no law against whacking them around a little."

TheListener

Managed to start the manual edits but was unable to finish due to being unable to find some text in templates.

These were Themes/default/profile template.php

and

Sources/profile.php

trashgeek

I install the mod using spanish language... now I can't see the  option or the flag chooser... can someone tell me how can I fix this...?

TheListener

bump due to previos post being 2 days old.

Sabre™

@ milicik
Could you attach your display.template.php?

@ trashgeek
Do you see your options in the admin panel?
Check if the code was added to your language file  (Modifications.english.php), if you are using (Modifications.english-utf8.php), then add it to that template also.

@ TheListener
The three pieces of code you speak of could only have been deleted, altered by another mod, or simply missed.
Download a fresh copy of those templates and find them there to learn the location.
Easy as pie ;)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dzinerfusion

Quote from: Sabre™ on July 19, 2009, 05:36:42 PM
@ milicik
Could you attach your display.template.php?

@ trashgeek
Do you see your options in the admin panel?
Check if the code was added to your language file  (Modifications.english.php), if you are using (Modifications.english-utf8.php), then add it to that template also.

@ TheListener
The three pieces of code you speak of could only have been deleted, altered by another mod, or simply missed.
Download a fresh copy of those templates and find them there to learn the location.
Easy as pie ;)

That's the problem, when i downloaded a fresh install of 1.19 , I still cannot find the code to edit the default.profile.template? YOu sure its not in another area?

Sabre™

Yes, they are there for the profile.template, Ive just downloaded a copy to make sure lol

If you guys/gals still have probs, attach those templates and I'll take a look for you :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dzinerfusion

Ok lol, maybe I'm blind  8), but I use 2.0 rc1-1 version, so it might be different, but i'm sure its the same.


Sabre™

Yeah mate its there, just slightly different.
I haven't yet moved onto porting this to smf2, and if I recall correct, someone else is doing it.
I have a half day at school today, so will probably give it a shot then. With only 30 mins before I leave, going over all the templates at the moment to check everything would be a stretch lol
Im no coder, but if I get this to function on smf2 correct with a few extra additions, I'll add my package here.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Sabre™

#531
Okay, here's the package.
The code may need a little clean, but I'll wait for smf2 to go final until I do that and add my extras.

Could somebody confirm that it installs into SMF 2.0 RC1.2?
I haven't updated my test site from RC1-1 yet.

Thanks and enjoy :)

removed
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TheListener

Went to install the above and got these:

./Sources/Profile-Modify.php     Test failed
      1.    Add Before    ./Sources/Profile-Modify.php    Test failed
*    5.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
      1.    Add After    ./Themes/default/Profile.template.php    Test failed
      2.    Replace    ./Themes/default/Profile.template.php    Test failed


dzinerfusion

#533
install perfect :)  Edit** Found a bug, when i select a country fromt he profile, when i click change profile, it resets and it doesnt selcet the country

Sabre™

@ TheListener
You've got a mod using the same area in those two templates.
Put this package through this [Parser] and add it manually.

@ bluesinjid
Which version of smf?
I cant replicate your error, it is working fine for me.
Does it do that also on the register page?
I'm going away on Thursday night so will be offline till next Wednesday, we'll try and sort it out before then.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


dzinerfusion

I use 2.0 rc1.2, but the error is for already registered members like me, when i go on the profile page to choose my country, i select one in the dropdown ( works good) , than at the bottom, when i click ''Change Profile'', it automatically resets to no country selected.

Sabre™

Could you attach your Profile-Modify.php found in your Sources directory, and your themes Profile.template.php.
Still couldn't replicate this on my new fresh test site, 2.0 RC1.2.
I suppose there would be no errors in your log?

@ TheListener
Are you going alright manually adding the code?
If not, attach your templates and I'll go through them :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TheListener

Er ( gives a guilty look)

I gave up on it.

Sabre™

lol ok.
Well if you'd like for me to look at your templates, its no problem, Im online for the next few hours before I fly out.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TheListener

Sabre you hard task master.

I had a look at all the manual edits. The attachments included need your good hands on them.

If you would like a temp admin account to check everything else then I would be extremely grateful.

( gets shotgun ready)

Advertisement: