Purchase Task Cron Mailer Pro

A custom ProjectFork process delivering task email notifications to users via cronjob.

Read me prior to purchasing!

All pricing in AUD

Purchase iCal Calendar Subscription Pro

A custom panel for ProjectFork 3.0.x providing export of Project Calendar to iCal

All pricing in AUD

Purchase PF Project Status Module

A configurable Joomla module that displays your Projectfork Project percent completed Status with animated progress bar.

This is a Joomla Module compatible with Joomla 1.7.x

All pricing in AUD

Purchase PF Task Times CB Plugin

A configurable Community Builder plugin that displays your Projectfork task times in your CB profile and allows you to export to CSV.

This is a Community Builder Plugin compatible with Joomla 1.7.x, CB 1.7.x and requires Projectfork (3.0.x) to be installed.

All pricing in AUD

Purchase Project and File Uploads Limiter

A custom ProjectFork process and Joomla plugin that limits the number of Projects a user can create and the number of files a user can upload.

File upload limits work with both Filemanager and Filemanager Pro
All pricing in AUD

Purchase PF Assigned Tasks CB plugin

A Community Builder plugin that displays your Projectfork assigned tasks in your CB profile.

This is a Community Builder Plugin compatible with Joomla 1.7.x, CB 1.7.x and requires Projectfork (3.0.x) to be installed.

All pricing in AUD

Purchase Reports Dashboard Pro Stable 1.0.3

Reports Dashboard Pro for ProjectFork v3.0.x and Joomla 1.5, Joomla 1.6 and Joomla 1.7
Read me prior to purchasing!

All pricing in AUD

Coming Soon: Reply By Email and Project Export/Import

Reply By Email: A custom ProjectFork process that will enable users to reply to comments and discussions directly from their inbox! No longer will you need to log into Projectfork to reply to a posted comment!

Due for release Mid February 2012!


Project Export/Import: A custom ProjectFork process that will enable users to export/import their Projects, tasks, milestones to/from Excel.

Due for release Late February 2012!


Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: EU and State Flags

EU and State Flags 1 year, 10 months ago #49

  • stojanoski
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hello there,

i just got the plugin and i love it Now because Europe moves on so I change the Country and State thing to European Union and the States in it. Now i would like to that the States show a flag to is it possibel? what I need to change for it?

Re:EU and State Flags 1 year, 9 months ago #52

  • angek
  • OFFLINE
  • Administrator
  • Posts: 206
  • Karma: 4
do you have the state flags?
You need to modify the country_state.js file and then the main countrystatefield.php file.
Here is a brief outline:

Use the code in the Country_state.js file: which generates the Country dropdown. It's in a function called populateCountry(). Pay particular attention to this line:
var lists = document.getElementById('showFlags').value;

This line tells us whether we should display the flag icons or not based on the plugin params.
Then take a close look at this block of code:
if (lists == "1"){
	selObj.options[num].style.background="url('"+siteURL+"/components/com_comprofiler/plugin/user/plug_countryandstatefield/images/" + lCountryCode + ".png') no-repeat";
	selObj.options[num].className = "imgFlag";
}

This code defines a background image for each State option and append a css class name for styling purposes.

So with this is mind find the popuplateState() function and add the line:
var lists = document.getElementById('showFlags').value;

just after line 119 which should be
var optionCntr = 1;

then add the following code into this if statement:
if ( stateCode != '' ) {
    selObj.options[optionCntr] = new Option(stateName, stateCode);
}

so that it looks like this:
if ( stateCode != '' ) {
    selObj.options[optionCntr] = new Option(stateName, stateCode);
    if (lists == "1"){
        selObj.options[optionCntr].style.background="url........pathtostateflagfiles" + stateCode + ".png') no-repeat";
        selObj.options[optionCntr].className = "imgFlag";
    }
}


NB: each state is represented as follows in the State.js file:
US:AK:Alaska
where the first column is the country code, the second is the state code and the third is the state name. when you name your state flag images make sure they are named as per the corresponding state code.

This will get the state dropdown displaying the state flags.
If you want to display the state flags in CB lists etc... you need to modify the main countrystatefield.php file....

more on this a little later.
Last Edit: 1 year, 9 months ago by k0$t@$.

Re:EU and State Flags 1 year, 9 months ago #53

  • angek
  • OFFLINE
  • Administrator
  • Posts: 206
  • Karma: 4
One thing that you may like to keep in mind is that I'm just finishing coding the next version of the plugin and all the Country and State information is now going to be in database tables because I've also introduced the City option so now we will have a Country, State and City Drop down list.

Other features include:
  • the ability to not include a particular list if you do not require it. For example if you dont want the City drop down just configure the necessary param and it will not appear. Just remember that the City dropdown will be dependant on the State dropdown and the State dropdown will be dependant on the Country dropdown so you will not be able to have for example the Country dropdown and the City Dropdown enabled and the State Disabled.
  • Hopefully the ability to declare an existing cb field from which to populate the Country / State information. This will be handy for those of you that already have collected this information from your user's prior to installing our plugin. There is a bit of work required for this and we are tossing up the idea of creating a Joomla Component to handle this stuff.
  • totally ajax and jquery driven.

Re:EU and State Flags 1 year, 9 months ago #54

  • mamasboy
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
k0$t@$ wrote:
One thing that you may like to keep in mind is that I'm just finishing coding the next version of the plugin and all the Country and State information is now going to be in database tables because I've also introduced the City option so now we will have a Country, State and City Drop down list.

Other features include:
  • the ability to not include a particular list if you do not require it. For example if you dont want the City drop down just configure the necessary param and it will not appear. Just remember that the City dropdown will be dependant on the State dropdown and the State dropdown will be dependant on the Country dropdown so you will not be able to have for example the Country dropdown and the City Dropdown enabled and the State Disabled.
  • Hopefully the ability to declare an existing cb field from which to populate the Country / State information. This will be handy for those of you that already have collected this information from your user's prior to installing our plugin. There is a bit of work required for this and we are tossing up the idea of creating a Joomla Component to handle this stuff.
  • totally ajax and jquery driven.


Wow this is great!

1) When are you going to offer the new version based on db?

2) Can you code a component based on your new model, whereby it works similarly but we can specify which cbfield to populate as top level, which child cbfield as second level, etc? (Actually I'm thinking of this for the Adsmanager component; can u do it for Adsmanager?)
Last Edit: 1 year, 9 months ago by mamasboy.

Re:EU and State Flags 1 year, 9 months ago #55

  • stojanoski
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Thats great, i cant wait for the db version ^^

Re:EU and State Flags 1 year, 9 months ago #57

  • latino
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Hi there:

Nice news. Hope the update will be out soon.

Thanks again



p.d.
How we will be able to download one you complete it?
  • Page:
  • 1
Time to create page: 0.34 seconds