Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 28, 201113 yr File Name: [K-F32] Countries ModFile Submitter: Kyle.File Submitted: 28 Sep 2011File Category: ModificationsSupported Versions: IP.Board 3.1.x, IP.Board 3.2.x, IP.Board 3.3.x, IP.Board 3.4.xAllows all members/guests to view members Country Flags. Members must set their flag at registration or within their User Control Panel. Fixed known issue: Missing file/image.Click here to download this file
September 28, 201113 yr great hook thank you number1 :smile: here are some 2.0 flag icons i have a small problem, when registerting or editing the profil for the first time we get "Afghanistan" as country, user can save profile without seeing this value, can we replace Afghanistant with a space or a gap to force user to choose ?
September 29, 201113 yr What do you have against Afganistan? :D no thing :P because its the first item in the list its selected by default !
October 15, 201113 yr sorry. forgot that one Remember to include the same directory your images are in, in the "Topic View Format" option in your ACP.
January 20, 201213 yr i havent got this option? Field Type : Country I dont have that either, maybe it was something IPB changed in a newer version?
March 23, 201212 yr Author BUMP/UPDATE: I will be doing a complete new version to this mod. I apologise for late replies in support, I have not been able to access my computer for over 6-8 months. All I had was a petty BlackBerry with the BlackBerry Bolt-on for Internet. :( - However, I now have my computer back, my dad has a new house (which I moved into), I had our Phoneline, TV and 100Mb Fibre Optic Broadband installed at our new house, and back online doing my web work! :) Please be pateint for the new version, I need to get used to the new IP.Board version and it's coding. :hmm:
January 14, 201312 yr I habe also a question... Works this Mod also for IPB Version 3.4.x? Thanks for a answer.
August 22, 201311 yr I can't get this to work in ipb 3.4.5, all it displays is: Capture.PNG Works in 3.4.5. Try something like this: <span class='ft'>{title}:</span> <span class='fc'><img src='/public/style_images/imgs/country/{key}.gif' title='{key}'></span> User Info Pane: Hover Card (see below): Also, to put the result as text in the hover card, edit Templates, Profile, showCard. Have it read like this (assumes Profile Group named Profile Information and Key named countryflag in the custom profile field, replace as needed). For the flag, modify slightly based on img src above but using the $member variable below. <dt>{$this->lang->words['m_posts']}</dt> <dd>{parse format_number="$member['posts']"}</dd> <dt>Country</dt> <dd>{$member['custom_fields']['profile_info']['countryflag']}</dd> To only show country code to people who can see profiles (i.e. maybe don't show profiles and locations to guests). Edit Templates, Global, userInfoPane to look similar to this near the bottom: <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> <if test="authorcfields:|:$author['custom_fields'] != """> <ul class='custom_fields'> <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data"> <foreach loop="customFields:$author['custom_fields'][ $group ] as $field"> <if test="$field != ''"> <li> {$field} </li> </if> </foreach> </foreach> </ul> </if> </if>
August 28, 201311 yr Author Very sorry I've been inactive to give people support with this. I've been working on several different projects for the past year. I shall try and get back to working on the newer "Country Mod" soon. I am trying to make it into a "system" as to say, complete with a few Admin CP features and settings to instead of configuring in the ACP as a Custom Profile Field, all you'll have to to in the next version is to upload the country images to your FTP server and then import an XML file as a hook. My theory for it will be that you'll have to go to the "Manage Applications & Modules -> Manage Hooks" setting to continue configuring the mod, if that makes sense? Essentially, you will be able to control it's settings right from within the Admin CP as far as turning on/off the mod, edit/add/delete country flag options etc. This is what my plan is for the next version anyway. :)
October 12, 201311 yr i don't have gif in my forum i have try code of prudated directory imgs is in good folder public/style_images/imgs/country/{key}.gif' code span <span class='ft'>{title}:</span> <span class='fc'><img src='/public/style_images/imgs/country/{key}.gif' title='{key}'/></span> forum 3.4.5 i have just country: i have resolved with <span class='ft'>{title}:</span> <span class='fc'><img src='http://myurl/forum/public/style_images/imgs/country/{key}.gif' title='{key}'/></span> i search to remove country behind flag
Archived
This topic is now archived and is closed to further replies.