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 |
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. |
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 |
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. |
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
|
EU and State Flags
(1 viewing) (1) Guest
|
TOPIC: EU and State Flags
EU and State Flags 1 year, 10 months ago #49
|
Hello there,
i just got the plugin and i love it |
|
|
Re:EU and State Flags 1 year, 9 months ago #52
|
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
|
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:
|
|
|
Re:EU and State Flags 1 year, 9 months ago #54
|
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:
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
|
Thats great, i cant wait for the db version ^^
|
|
|
Re:EU and State Flags 1 year, 9 months ago #57
|
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? |
|
|
|
Time to create page: 0.34 seconds