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

Masterd

Thanks for reply. Wich extensions are allowed?

Sabre™

png, but you can change that in your display, profile and register template edits.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Masterd

Thank you. I will try to change some things.

Dharshan

Quote from: Sabre™ on August 06, 2010, 07:45:40 AM
png, but you can change that in your display, profile and register template edits.

Hi Sabre,

need a lil advice. I'm using SMF 1.1.11 and the mod installs and works fine on the default theme. i have a custom theme. still the country shows on the profile page. but on the post view it does not.

what should i edit? in order to get this fixed
R I P  : Steve Jobs | you made the world today look how it is | Thank you

vbgamer45

You should edit the display.template.php file
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

Dharshan

Quote from: vbgamer45 on August 06, 2010, 02:23:31 PM
You should edit the display.template.php file

great it works now!

Thanks a lot
R I P  : Steve Jobs | you made the world today look how it is | Thank you

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

Wally.

Hey I've got a strange issue with the Country Flags mod. Some of the members are showing up with broken links where the country flag should be below their avatar. I checked and it is trying to load a 00.png file but the flag folder doesn't contain a 00.png file.

What I think is happening is that if a user never goes in to edit their profile, no flag shows up. If the user edits their profile and chooses a flag then it shows up fine. But if a user edits their profile and doesn't choose a flag they get this 00.png broken link.

Anyway, I  searched the thread for '00.png' but didn't get any hits. Any help would be appreciated.

Sabre™

You could either add an image named 00.png into your flags folder, and make that the default image for those that have not yet chosen a flag, or add a blank image with the same name, or remove '00' => '', from your subs.php template.
There should be a check to disable the function displaying if they havent chosen an image, but Im unsure if that is implemented in the package available.
By your comment, it doesn't look like it.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Wally.

Thanks for the quick reply. I'll double check and make sure that I didn't miss a disable option. If not I'll just create a png.

Sabre™

My pleasure mate :)
No the "disable" option is not selectable, it should be done within the background so nothing should show at all(profile, display templates) if there is nothing chosen.
Until that is implemented, then the best options are to either replace the image, or remove the code.
Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


MoreBloodWine

#811
You got two blank what I assume are default options which when "clicked" a missing image icon or whatever shows up. Besides that I get this in my servers error log every time those "options" are used.

[Sun Aug 29 00:17:02 2010] [error] [client IP Removed] File does not exist: /Removed/Themes/default/images/flags/00.png
[Sun Aug 29 00:17:01 2010] [error] [client IP Removed] File does not exist: /Removed/Themes/default/images/flags/blank.gif

Edit 9/9/2010: I would also like to suggest that an option be added to show the country flag on PM's. This is easy enough to add in by copying code from Post.template.php to the template for PM's but I think it would be nice that this be a default chooseable option.

Also, a note of curiosity...

Currently the "stuff" displays like this...

<Flag> Country Name

I don't feel that it looks quite right with that formatting...

Might I suggest changing the code so it looks like this on the post page and pm opage should you add that option...

Country Name: <Flag>

This is easy enough to change in the template files if you know what your doing but I feel this would be a better default look / layout to how it's displayed.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


MoreBloodWine

Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Spoogs

3 posts up you'll find the answer for 00.png

The rest is up to the author

jacbier

#814
Thank you for this mod!

Ik have made a Dutch translation.

// Country Flag mod
$txt['country_flag_label'] = 'Selecteer het land waarin je woont <br>(voor het vlaggetje bij je berichten)';
$txt['country_flag_error_required'] = 'Je moet het land selecteren van waaruit je ons bezoekt';
$txt['country_flag_ask'] = 'Vraag om vlag aanzetten';
$txt['country_flag_disabled'] = 'Vlaggen niet laten zien (vlaggen uitgeschakeld)';
$txt['country_flag_profile'] = 'Profiel';
$txt['country_flag_registration'] = 'Registratie';
$txt['country_flag_both'] = 'Beide';
$txt['country_flag_required'] = 'Moet een lid een locatie kiezen?';
$txt['country_flag_show'] = 'Laat de vlaggen zien op de berichtenpagina.';
$txt['country_flag'] = 'Land';

vbgamer45

Thank you very much for your Dutch translation!
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

MagitekElite

I'm having a problem with the mod...

I converted my SM to the 2.0 RC3 last night and have gotten around to testing around the board. I had this installed on my older board and now, when I click profiles (any profile), I see this error:

QuoteUnknown column 'mem.country_flag' in 'field list'
File: /home/content/k/y/s/kystormz/html/thepromisedland/Sources/Load.php
Line: 995

When I checked to see if it was installed, it wasn't, but I did have it before. Is there a way to fix this? Because I can't click profiles...

By Colours

Spoogs

you'll have to reinstall the mod... usually while upgrading incompatible mods or versions of mods will be uninstalled.

MagitekElite

When I try to reinstall, it says this:

(Image of error upon reinstall>)
http://i51.tinypic.com/122j3va.png

By Colours

Spoogs

In that case you would have to manually edit those files.

Advertisement: