phpFox v1.6 Enable U.S. State/ZIP elements

If you have the U.S. State/ZIP feature enabled you may notice that the HTML elements are disabled by default if the user does not select “United States” from the location drop down. The logic behind this is so users don’t select the country Sweden and then allow them to select a U.S. state.

I have had requests to disable this feature to allow your users to make the choice and not disable them from selecting a certain element.

If you would like to disable this functionality open the file: design/js/main.js

Then look for:

function checkUsMode(bUsName)
{

Under that add:

return;

If you have the GZIP compression feature enabled you need to login into your Admin CP and run the “CLEAR CACHE” routine to make sure the new JavaScript file is cached.

I haven’t fully tested this on every section, however from the sections I tested it worked just fine. If you run into any problems let me know.

phpFox 1.6 Gallery - “Added By” mod

Thanks to Craigster.

Here is quick little mod I whipped up to add a “Added By: UserName” under a Gallery image when its viewed in public areas such as the “RECENT IMAGES” found in the index page, gallery section (including featured images) and when viewing a groups index page.

For a sample of how it looks on the “RECENT IMAGES” checkout the screenshot provided.

To install the mod you will be required to modify the default package and below I have provided the steps needed to install the mod.

1) Open the file: /design/templates/default/_modules/Gallery/Browse.html

Look for:

<a href="http://www.raybenc.com/%7Bif%20$aForm.mode%20==%201%7D%7Burl%20link=%27public.gallery.view%27%20id=$aItem.id%20field=$sSort%20foxseotitle=$aItem.text%7D%7Belse%7D%7Burl%20link=%27public.user.gallery%27%20name=$aItem.user%7D%7B/if%7D"> {img xsrc="`$sImagePath`thumb/`$aItem.id`.jpg" mce_src="`$sImagePath`thumb/`$aItem.id`.jpg"   alt="" src_def="design/pic/noimage_120.jpg"} </a>

Under that add:

<div style="font-size: 8pt">{language text='Mod_Site.added_by'}: <a href="http://www.raybenc.com/%7Burl%20link=%27public.user%27%20name=$aItem.user%7D">{$aItem.user}</a></div>

2) Next open the file: /design/templates/default/_modules/Gallery/FeaturedPic.html

Look for:

<a href="http://www.raybenc.com/%7Burl%20link=%27public.gallery.view%27%20id=$iId%7D"> {img xsrc="`$sGImageUrl`thumb/`$iId`.jpg" mce_src="`$sGImageUrl`thumb/`$iId`.jpg"   src_def="design/pic/noimage_120.jpg" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"} </a>

Under that add:

<div style="font-size: 8pt">{language text='Mod_Site.added_by'}: <a href="http://www.raybenc.com/%7Burl%20link=%27public.user%27%20name=$sUser%7D">{$sUser}</a></div>

3) Next open the file:
/design/templates/default/_modules/Gallery/RecentImages.html

Look for:

<a href="http://www.raybenc.com/%7Burl%20link=%27public.gallery.view%27%20id=$aItem.id%7D"> {img alt="" xsrc="`$sGImageUrl`thumb/`$aItem.id`.jpg" mce_src="`$sGImageUrl`thumb/`$aItem.id`.jpg"   src_def="design/pic/noimage_120.jpg" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"} </a>

Under that add:

<div style="font-size: 8pt">{language text='Mod_Site.added_by'}: <a href="http://www.raybenc.com/%7Burl%20link=%27public.user%27%20name=$aItem.user%7D">{$aItem.user}</a></div>

4) Next open the file:
/design/templates/default/_modules/Groups/GroupViewGalleryPhotos.html

Look for:

<a href="http://www.raybenc.com/%7Burl%20link=%27public.groups.gallery%27%20id=$iGroupId%20image=$aItem.id%7D"> {img max_width="100" max_height="100" alt="" xsrc="`$sImageUrl`thumb/`$aItem.id`.jpg" mce_src="`$sImageUrl`thumb/`$aItem.id`.jpg"   src_def="`$sImageUrl`/`$aItem.id`.jpg" def_width="100" src_def="design/pic/noimage.jpg"  border="0"} </a>

Under that add:

<div style="font-size: 8pt">{language text='Mod_Site.added_by'}: <a href="http://www.raybenc.com/%7Burl%20link=%27public.user%27%20name=$aItem.user%7D">{$aItem.user}</a></div>

5) Next open the file:
/include/modules/Gallery/classes/PhpFox_ComponentFeaturedPic.class.php

Look for:

$aItem = $this->oDatabase->getRow("SELECT id FROM `". App::geTT('main') ."` WHERE feature = '1' AND allow = '' AND who_view = '' ORDER BY RAND() LIMIT 0,1");

Replace with:

$aItem = $this->oDatabase->getRow("SELECT m.id, u.user
FROM `". App::geTT('main') ."` AS m
JOIN " . App::getT('user') . " AS u
ON(m.user_id = u.id)
WHERE m.feature = '1' AND m.allow = '' AND m.who_view = '' ORDER BY RAND() LIMIT 0,1");

Next look for:

'iId'        => $aItem['id'],

Under that add:

'sUser' => $aItem['user']

6) Next open the file:
/include/modules/Gallery/classes/PhpFox_ComponentRecentImages.class.php

Look for:

$aItems = $this->oDatabase->getRows('SELECT id FROM '. App::getT('main') .'
WHERE allow = "" AND who_view = ""
ORDER BY id DESC LIMIT 0,'. $iPageSize .'');

Replace with:

$aItems = $this->oDatabase->getRows('SELECT m.id, u.user FROM '. App::getT('main') .' AS m
JOIN ' . App::getT('user') . ' AS u
ON(m.user_id = u.id)
WHERE m.allow = "" AND m.who_view = ""
ORDER BY m.id DESC LIMIT 0,'. $iPageSize .'');

If you run into any problems installing the mod let me know.

phpFoX Konsort Version 1.6.20 Released!

We are pleased to announce phpFoX Konsort Version 1.6.20 has been released.

Notice: Upgrading to this build requires the conventional method of upgrading your site. This guide can be found here.

Useful links:


With this build we have updated various features:

  • TinyMCE (WYSIWYG) Text Editor updated to version 3.x. This update fixes various issues related to the editor and added several improvements for those using the Safari browser.
  • Admins can now enable an option that will not allow the right for multiple users to use one account. If enabled and two users try to access the same account from different locations the first user will automatically be logged out after a page refresh.
  • Admins can now secure gallery images, group gallery images and videos from membership groups that do not have the rights to view these items. In order to use this feature you will need the “Short URL” feature running.
  • Admins have the option to save the original image that is being uploaded for a users profile, gallery or group gallery image. The original image is used with the Lytebox feature. This feature enables you to save space on your server.
  • Admins can now enable an option that will only display Bulletins added by their friends.

With this build we have fixed various issues [links]:


Development Download (v1.6.20)

We have opened a new page which can be found in our Clients Area:
http://clients.phpfox.com/index.php?…pment/download

This page includes a link to download the latest version that is under development. Any changes made during our development period will be added to the package found on that page and is updated every hour. This page is setup to help those developing plug-ins/mods keep up-to-date with any changes a future release may bring so when the finished package is released their plug-ins/mods are already updated.

If you are not creating plug-ins/mods you are free to test the development version. Note that this is not a finished product and is constantly being updated during the development period. Do NOT use this product in a live environment. This product is NOT supported by our Product Support team. You can report any bugs you find to our development team via our bug tracker.

This page also includes a:

phpFoX Updates

Over the last few days we have been working on updating several areas related to phpfox.com.

What has changed?

v1.6 “Whats New” page has been created to identify what has been added, improved or removed with phpFoX Konsort version 1.6. Page can be found here:
http://www.phpfox.com/konsort/whats-new/1.6/

Our “Features” page has also been updated with all the changes that has taken place with v1.6. We have also updated the page to give more details on what phpFoX Konsort has to offer. Page can be found here:
http://www.phpfox.com/konsort/features/

Our “Live Demos” for the User Interface, Admin Interface and Web Based Installer has moved. New links can be found here:
http://www.phpfox.com/konsort/live-demos/

Our Issue Tracker (http://tracker.phpfox.com/), which handles both Bug reports and Feature requests has moved to a new location. New tracker can be found here:
http://forums.phpfox.com/project.php?projectid=1

Note: Issues added to our old tracker are still being worked on so the tracker will not fully shut down until all the cases have either been resolved or closed. Feature requests added to the tracker will be imported into our current tracker.

Wiki Knowledge Base (Open)

Our Wiki is currently closed off to the public when it comes to creating or editing articles, however we have opened the Knowledge Base section of our Wiki.
Knowledge Base can be found here:
http://wiki.phpfox.com/guide/Konsort_1.6/Knowledge_Base

v1.6 Update

On Monday the 7th of January 2008 v1.6 Build 18 will be released with some minor fixes/additions.

phpFoX Staff

The entire phpFoX Staff will return on Wednesday the 2nd of January 2008. Critical tickets and bug reports are still being monitored.

Live Testing for Version 1.6

Final release for version 1.6 is just around the corner (Dec. 17). During this weekend we will continue debugging the product to fix any of the remaining issues. We have setup a live development environment where anyone can test the product and report any issues they find to our issue tracker. Once the issue has been confirmed it will be fixed on the spot so it can be retested on the development site.

If you have time during the weekend we would appreciate it if you are able to test the new version and report any abnormalities you may come across.

Live Development Demo:
http://live.phpfox.com/demo/

Report any issues found here:
http://tracker.phpfox.com/index.php?cmd=add&project=1

Warm Welcome to Ziki (vBulletin Plug-in Developer)

Wanted to give a warm welcome to Ziki our new vBulletin plug-in developer and introduce him to the community.

Not to long ago we had mentioned we were dropping our official support and development for this specific plug-in. With the plug-in not being developed or supported by us we did not want the plug-in project to cease so we went to www.vbulletin.org to find a experienced vBulletin plug-in developer and we were grateful to find Ziki. If you are an avid member of vbulletin.org you can find Ziki’s profile here.

Improvements for the current plug-in are underway and a new release is expected shortly.

If you have any questions or would like to get the plug-in installed/updated feel free to contact Ziki.

phpFoX Forum Update - Feedback System Added

Hey All,

Our forum (http://forums.phpfox.com) has been updated with the addition of a Feedback system. Some of you may remember we had this system a few months ago. We have added it back and you can find a link in our forums main menu. Just look for “Feedback”. You may notice when viewing a thread you will see a users feedback score to the right under their post count. There is also a “Leave Feedback” link at the bottom of each post right beside the “Edit” link.

This system has been added to help with the trading that takes place from within this community. We plan on releasing other methods for the general improvement of our community, however we feel this will be a good start.

If you have any suggestions or feedback regarding this system feel free to voice yourself in our community as we are always on the look out for anything that can improve our community and your time browsing with us.

Thanks!

phpFoX Konsort Version 1.6 RC4 Released!

We are pleased to announce that Version 1.6 RC4 has been released.

Important: CSS updated
To fix an issue and with the addition of a new feature we have updated our default CSS file.

The following classes needs to be updated to fit your sites theme:

.menu {
border-bottom:2px #54A4DE solid;
background:#54A4DE;
height:30px;
padding-left:5px;
padding-right:5px;
cursor:pointer;
color:#fff;
font-size:7pt;
font-weight:bold;
}
 
.menu a {
color:#fff;
font-size:7pt;
text-decoration:none;
font-weight:bold;
}
 
.menu2 {
background:#3E99DA;
height:30px;
padding-left:5px;
padding-right:5px;
cursor:pointer;
border-bottom:2px #195B85 solid;
color:#fff;
font-size:7pt;
font-weight:bold;
}
 
.menu2 a {
color:#fff;
font-size:7pt;
text-decoration:none;
font-weight:bold;
}
 
.menu2 a:hover {
color:#fff;
font-size:7pt;
text-decoration:none;
font-weight:bold;
}

The following classes need to be added:

.socialOver {
background:#FFF8CC;
border:1px #FFE222 solid;
color:#000;
}
 
.socialDefault {
background:#fff;
border:1px #fff solid;
color:#000;
}
 
.socialBox {
border:1px #BDBDBD solid;
color:#000;
background:#f9f9f9;
}

Note: You can edit your CSS files direct from your Admin CP

The following have been added:

Social Bookmarking
We have added a Social Bookmarking module that will connect to a few other modules on your site. The default social bookmarking sites we added are Digg, Del.icio.us, Facebook, Furl, Magnolia, StumbleUpon, Google and Yahoo MyWeb. You are free to add as many as you want, however this can only be done in the PHP file “include/settings/common.sett.php”. This however will change with our next release as we intend to add it into the Admin CP. When you view a gallery image, blog, forum thread, music album or an event you will notice a table with the provided social bookmarking sites. This feature also updates the “BOOKMARK US” link found on the top right of your site. It will now say “BOOKMARK” and if clicked, a drop down of the provided social bookmarking sites will appear. First on the list will be “Favorites” and this is if they want to bookmark your site with their web browser. This will allow users to bookmark any page on your site. If you feel we should add this feature on another page please let us know by opening a feature request in our issue tracker. Also any extra social bookmarking sites you feel should be added by default just let us know.

Admin CP Diagnostics & Update Counters
In your Admin CP you will find a new area called “Diagnostics”. There you will find a tool to test if your server can send out emails. Useful if your are having problems with your SMTP server. You will also find a tool to remove any duplicate friends.

We also added an area to update some of the counters for your site. If you check the Update Counters area you will find you can update the counters for Friends, Groups, User Comments, Blog Comments, Forum Topics and Forum Posts.

Bolt.com Support Removed
For those that allow video streaming via our video module will find that Bolt has been removed from the list. This change is because Bolt has closed down because of copyright violations. More information regarding this can be found here: http://en.wikipedia.org/wiki/Bolt_(website)

FFMPEG Test Script
For those having trouble with setting up FFMPEG we have created a test script to see what libraries you have and what could be missing. It will also test the routine we use in the Video Module to convert videos. This script can be found when you download the package in the folder “tools/test-ffmpeg/”.
Just upload the “test-ffmpeg” folder to your sites “plugins/” folder then add any video files in the folder “plugins/test-ffmpeg/media/”. Once that’s done navigate with your browser to www.yoursite.com/plugins/test-ffmpeg/test-ffmpeg.php

ProTheme Plug-in
The plug-in ProTheme (http://clients.phpfox.com/download.php?id=10) which was introduced with version 1.5.1 is now part of our default package. For those upgrading from version 1.5.1 and have ProTheme installed this plug-in will automatically work with v1.6 now.

Force Browser Re-Cache
In your Admin CP options area you will find an option to force a browser to re-cache a users image on a page refresh. This setting is enabled by default. This feature will force browsers to refresh your cache when viewing the site so you will see the most updated profile image for yourself and others.

Instant Messenger
We have updated the IM with the following:
*Sound alert added if a user gets a new request or new instant message.
*Users can decide to turn of the sound by clicking on the “Settings” link found in the IM.
*When a user enters a room it will announce it in the IM room.
*When a user leaves the IM room it will announce it to the other user
*If a user closes their main Instant Messenger window it will also close any other windows related to the IM.

Language Package – Revert
You will notice in your Phrase Manager there is a “Revert” button that will revert any of the selected phrases to its default state.

Plug-in Importer
For those upgrading from version 1.5.1 and used the MusicMod, VideoMod or EasyEditor now have the opportunity to import their plug-ins into the core package. The importer will show up directly when you log into your Admin CP. If it does not find any plug-ins to import you will not find a link, however if it does find a plug-in to import you will find a direct link to this tool. It will import all the users MP3’s for the MusicMod and music videos added in the AdminCP for the MusicMod as well. This will however only import videos added from YouTube, Google or iFilm. For the VideoMod it will import any videos that is compatible with the new Video Module. This tool will also import any pages added with the EasyEditor.

BBcode User Check
On your site some of your members might be using the BBCode [profile]username[/profile], which converts “username” to an image of the user and a link directly to their profile. This is case sensitive so if a member added [profile]UserName[/profile] they would not get the correct image or profile link. This can be fixed by enabling this tool in your Admin CP >> Options >> Edit Options >>.
By default this feature is not enabled as it causes an extra query for each user to the database to verify the user name and then return the correct user name so we can find the correct image.

Drop Downs Default Value
In your Admin CP >> Options >> Edit Options >> User Setting area you will find a new option to display default values for drop downs added with your Custom Fields. This feature is not enabled by default.

Groups – States Added
In your Group Module we have added support for U.S. states. The “U.S. States & Zip Code Mode” needs to be enabled in your Admin CP.

Various minor Updates with RC4
* Sign Up birthday drop downs does not have a default value. This is to force users to enter their birthdays instead of using the default settings.
* “Profile Views” count added to a users profile beside their profile image. Feature must be enabled from the Admin CP.
* Video module search tool extended to search video tags and descriptions.
* All pop-ups are now re-sizable.
* “Skip this step” link added to the video upload routine if the user does not want to upload an image for the video. This feature must be enabled from the Admin CP, under Admin CP >> Options >> Edit Options >> Video >> Add “Skip” link on image upload.
* Admin/Staff can now view the results for polls without the need to vote on them.
* In your Admin CP >> Options >> Edit Options >> Video you will find an option to enable/disable video embedding. If disabled it will remove the embed information found when viewing a video.

We have also fixed various bugs since our last release, these fixes include:

Where can I test a live demo?

Here: http://live.phpfox.com/rc/1.6/4/

Where can I download it?

Go to: http://clients.phpfox.com/index.php?cmd=licenses/index

From the download list look for “phpFoX Konsort :: Version 1.6 RC4″.