, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum


Recent Messages

Previous Page Next Page

User Help > Code Snippets > Code Snippets: FlexCMS 3.2.1 (Go To Message)
otter
 
Code Snippets: FlexCMS 3.2.1May 11, 2010 @ 11:08pm
The following five code snippets were included in the FlexCMS 3.2.1 FULL release. If you'd like to add these to your site, you can do so by copying and pasting from the code below.


#1 Index/List of News/Article Categories

ID/Name: ArticlesCategoryIndex

Type: PHP

CODE:

Code

$query_na = "SELECT * FROM `".$Settings['DBPrefix']."na-Categories` WHERE Parent='0' ORDER BY CategoryName asc";

$result_na = mysql_query($query_na) or die (mysql_error());
while ($row_na = mysql_fetch_array($result_na)) {

print '<a
href="'.$MainURL.'/articles/'.$row_na['RecordNumber'].'.html">'.$row_na['CategoryName'].'</a><br>';

}



#2 Index/List of eStore Categories

ID/Name: eStoreCategoryIndex

Type: PHP


Code

if ($Arguments1 == 'store') {

print '<font size="1">';

$query100 = "select * from `".$Settings['DBPrefix']."ec-Categories` where Parent='0' order by Name asc";
$result100 = mysql_query($query100) or die (mysql_error());
while ($row100 = mysql_fetch_array($result100)) {

print '<a href="'.$MainURL.'/store/browse/'.$row100['CategoryID'].'.html" class="BlockColors">'.$row100['Name'].'</a><br><img src="'.$ImagesURL.'/spacer.gif" width="1" height="5" alt="" border="0"><br>';

}



#3 Random Photo from the Galleries

ID/Name: RandomPhoto

Type: PHP


Code

$query = "select * from `".$Settings['DBPrefix']."pg-Settings`";
$result = mysql_query($query) or die (mysql_error());
while ($row = mysql_fetch_array($result)) {
$pgSettings[$row['Name']] = $row['Value'];
}

if ($pgSettings['StorageLocationHTTP'] == '') {
$pgSettings['StorageLocationHTTP'] = $BaseURL.'/pg_images';
}
if ($pgSettings['StorageLocationLocal'] == '') {
$pgSettings['StorageLocationLocal'] = './pg_images';
}

$Extensions[2] = '.jpg';
$Extensions[3] = '.png';

$ThumbExtensions[2] = '-thumb.jpg';
$ThumbExtensions[3] = '-thumb.png';

if (substr($pgSettings['StorageLocationHTTP'],0,1) == '/') {
$ImageBaseHTTP = $BaseURL.$pgSettings['StorageLocationHTTP'];
}
else {
$ImageBaseHTTP = $pgSettings['StorageLocationHTTP'];
}



$query = "select * from `".$Settings['DBPrefix']."pg-Images` ORDER BY RAND() limit 1";
$result = mysql_query($query) or die (mysql_error());
$row = mysql_fetch_array($result);


// figure out thumbnail dimensions
$NewWidth = $pgSettings['ThumbMaxWidth'];
$NewHeight = $pgSettings['ThumbMaxHeight'];

$WidthRatio = $row['ImageWidth'] / $NewWidth;
$HeightRatio = $row['ImageHeight'] / $NewHeight;

if ($WidthRatio >= $HeightRatio) {
$NewWidthCalc = number_format($row['ImageWidth'] / $WidthRatio, 0);
$NewHeightCalc = number_format($row['ImageHeight'] / $WidthRatio, 0);
}
else {
$NewWidthCalc = number_format($row['ImageWidth'] / $HeightRatio, 0);
$NewHeightCalc = number_format($row['ImageHeight'] / $HeightRatio, 0);
}

$ImageWidth = $NewWidthCalc;
$ImageHeight = $NewHeightCalc;


$query2 = "select * from `".$Settings['DBPrefix']."pg-Galleries` where RecordNumber='".$row['GalleryNumber']."' limit 1";
$result2 = mysql_query($query2) or die (mysql_error());
$row2 = mysql_fetch_array($result2);

print '<a href="'.$MainURL.'/photos/'.$row2['RecordNumber'].'.html" class="BlockColors"><img src="'.$ImageBaseHTTP.'/'.$row['FileName'].$ThumbExtensions[$row['FileType']].'" width="'.$ImageWidth.'" height="'.$ImageHeight.'" border="0" alt=""><br>'.$row2['GalleryTitle'].'</a>';




#4 List of Calendar Events for Today’s Date

ID/Name: TodaysEvents

Type: PHP


Code

$TZO = (($Settings['TimezoneOffset']+5)*3600);


$DateSplit = getdate();
$DayTimestamp = mktime(0,0,0,$DateSplit['mon'],$DateSplit['mday'],$DateSplit['year']);


$query55 = "select * from `".$Settings['DBPrefix']."cl-EventDates` where DateCode>=".($DayTimestamp+$TZO)." and DateCode<".($DayTimestamp+86400+$TZO)." order by DateCode asc";
$result55 = mysql_query($query55) or die (mysql_error());
if (mysql_num_rows($result55) > 0) {

while ($row55 = mysql_fetch_array($result55)) {

$query5 = "select * from `".$Settings['DBPrefix']."cl-Events` where RecordNumber='".$row55['EventID']."' and MinLevel<='".$UserLevel."' limit 1";
$result5 = mysql_query($query5) or die (mysql_error());
if (mysql_num_rows($result5) > 0) {
$row5 = mysql_fetch_array($result5);

print '<img src="'.$ImagesURL.'/spacer.gif" width="1" height="5" alt="" border="0"><br>';


print '<a href="'.$MainURL.'/calendar/details/'.$row5['RecordNumber'].'.html">'.$row5['Title'].'</a>';


if ($row5['StartTime'] >= 0) {

$Hours = 0;
$Minutes = 0;

$Seconds = $row5['StartTime'];
while ($Seconds >= 3600) {
$Seconds = $Seconds - 3600;
$Hours++;
}
while ($Seconds >= 60) {
$Seconds = $Seconds - 60;
$Minutes++;
}


$Suffix = 'am';
if ($Hours >= 12) {
$Hours -= 12;
$Suffix = 'pm';
}
if ($Hours == 0) {
$Hours = 12;
}

if ($Minutes < 10) {
$Minutes = '0' . $Minutes;
}

$TimePrint = $Hours . ':' . $Minutes . $Suffix;

//if ($row55['EndTime'] >= 0 && $row55['EndTime'] > $row55['StartTime']) {
if ($row5['EndTime'] >= 0) {

$Hours = 0;
$Minutes = 0;

$Seconds = $row5['EndTime'];
while ($Seconds >= 3600) {
$Seconds = $Seconds - 3600;
$Hours++;
}
while ($Seconds >= 60) {
$Seconds = $Seconds - 60;
$Minutes++;
}


$Suffix = 'am';
if ($Hours >= 12) {
$Hours -= 12;
$Suffix = 'pm';
}
if ($Hours == 0) {
$Hours = 12;
}

if ($Minutes < 10) {
$Minutes = '0' . $Minutes;
}

$TimePrint .= ' - ' . $Hours . ':' . $Minutes . $Suffix;

}

}
else {
$TimePrint = '';
}


if ($TimePrint != '') {
print ' <font size="1">('.$TimePrint.')<br></font>';
}
else {
print '<br>';
}


print '<img src="'.$ImagesURL.'/spacer.gif" width="1" height="5" alt="" border="0"><br>';


$EventsPrinted++;

}

}

}

if ($EventsPrinted < 1) {

print '<br>[No Events Today]<br>?';

}




#5 Total Members & Newest Member

ID/Name: TotalMbrsNewestMbr

Type: PHP


Code

$query = "select count(RecordNumber) as UsersCount from `core-Users`";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
print 'Members: '.$row['UsersCount'];

$query = "select * from `core-Users` order by RecordNumber desc limit 1";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
print '<br><br>Newest Member: <a href="'.$MainURL.'/profile/'.$row['Username'].'.html" class="BlockColors">'.$row['Username'].'</a>';

General > General Discussions > Flex file manager (Go To Message)
DCSun
 
May 5, 2010 @ 10:57am
Hi Wolf,

There are some options there, you can permission out the folders based on user levels, just right click on a folder and you should see all those options.

I'm guessing it's not going to do quite what you have in mind, but might get you part way there. We're going to be doing improvements to the whole permission system in one of the next releases so we'll add that to the wish list.

Glad you like 3.2 Smile


David
General > General Discussions > Flex file manager (Go To Message)
Wolf
 
Flex file managerMay 5, 2010 @ 8:20am
Is it possible with the new file manager to grant a user permission to upload/maintain a particular directory folder without giving them sitewide access to all files?

Thank you.

(loving the new release!)
User Help > General Support Requests > Upgrade from 2.5 to 3.2 (Go To Message)
DCSun
 
May 1, 2010 @ 12:45am
Hi Grady,

I believe the problem was due to the host not FlexCMS so it's hard to say whether they resolved those issues or not. I would suggest backing up your site and giving it a try, then let us know if you still run into problems and we'll see if there's anything we can do to work around them.


David
User Help > General Support Requests > Upgrade from 2.5 to 3.2 (Go To Message)
Grady
 
Upgrade from 2.5 to 3.2May 1, 2010 @ 12:20am
Previously I tried upgrading to 3.0 but ran into problems renaming in MySql and I am using Hostgator. Is it possible to upgrade on Hostgator now?
User Help > Bug Reports & Enhancement Release Updates > Small Bugs in v3.2 (Go To Message)
DCSun
 
Small Bugs in v3.2April 30, 2010 @ 8:07pm
A couple small issues have been discovered in FlexCMS v3.2 affecting the news/articles and stats modules;


News/Articles Issue:
If you experience an SQL error when viewing articles in a sub category, update your inc-na-idx.php with the one contained in the "upgrade" package.

This issue has been resolved and any downloads after 7:55pm EDT on April 30, 2010 will not encounter it.


Stats Issue:
If you experience an SQL error that the core-ReverseIPs table doesn't exist (it really does), update your inc-cs-admin-stats_users.php with the one contained in the "upgrade" package. This issue will only be present on sites using a database table prefix.

This issue has been resolved and any downloads after 8:50pm EDT on April 30, 2010 will not encounter it.



Any problems please feel free to open a new thread in the forum or send an email to


David
User Help > FAQ's: General > Mail Sending on GoDaddy (And Other) Servers (Go To Message)
DCSun
 
Mail Sending on GoDaddy (And Other) ServersApril 30, 2010 @ 4:07pm
New in FlexCMS v3.2 we added the ability to use an SMTP server for outgoing mail in addition to the previous PHP Mail() function option. If you're using GoDaddy to host your site (I'll refrain from bashing them for the duration of this post!), you'll probably need to change your settings to get mail leaving the site (they seem to be blocking certain outgoing messages, specifically those with headers to make them HTML). Other hosts (particularly those running Windows servers or with very restrictive policies) may also need similar changes.

Go into the Modify Advanced Site Settings section of the site and you'll see the mail options there (in v3.2 and later). Set it to SMTP, enter "relay-hosting.secureserver.net" (without the quotes) in the Server box, leave Port at 25, and set Auth Mode to "None (Private Open Relay)". I would have to assume this is only accessible from within their internal network, but other hosting companies may have a similar one available. The "login" authentication option is also available if you have an SMTP server available that requires you to log in before sending through it.

You also may need to change the Site Email Address in the Modify Site Preferences section, as they seem to be blocking certain domains (Yahoo, Hotmail, etc?) from there as well.

If you're still unsuccessful after making those changes, feel free to open a new topic in the forum or send an email to and we'll be happy to help.


David
News & Info > FlexCMS Information > ONLINE TRAINING CLASSES! (Go To Message)
otter
 
ONLINE TRAINING CLASSES!April 28, 2010 @ 12:19pm
Greetings FlexCMS Users!

For the past year or so I've been offering online training to my FlexCMS clients. It's been so well received that I've decided to offer these classes to all FlexCMS users!

The first two classes will take place in May 2010 and are as follows:

FLEXCMS TRAINING: BLOCKS (Site Navigation & More)

Live (online) 90 minute training session showing you how to use FlexCMS blocks on your site for navigation, images, enews subscriptions and third party applications such as YouTube, Google Ads, etc.

CLASS DATE: Monday, May 10, 2010 at 6:30 p.m. EST

CLASS TYPE: ONLINE*

TRAINING SESSION INCLUDES BUT IS NOT LIMITED TO:

FlexCMS Blocks Overview
Creating & Editing
Location
Type
Permission Levels
Pages to Display On

Adding Third Party Code to your blocks, including:

YouTube
Twitter
FaceBook
Google Ads

Last Day To Register: Saturday, May 8, 2010

To register for this class, please click here.

------------------

FlexCMS Basics (101) - Saturday, May 15, 2010

Get the basic foundation you need to operate your FlexCMS website in FlexCMS 101.

CLASS DATE: Saturday, May 15, 2010 (9:00 a.m. - 3:00 p.m. EST)

CLASS TYPE: ONLINE*

TRAINING SESSION INCLUDES BUT IS NOT LIMITED TO:

FlexCMS Overview
WYSWIG Editor
Pages
Blocks
and more!

NOTE: This course is taught in ONE day with a substantial break in between sessions.

Session One will contain at least 2 hours of online instruction.

Session Two will include exercise review and additional training as time permits.

EXERCISES: There will be "online exercises" that will be given to you at the end of session 1 which will be due before session 2 begins.

Last Day To Register: Wednesday, May 12, 2010

To register for this class, please click here.


----------------------------------------

*PC/MAC Requirements: Internet connection, web browser and to listen to training and ask questions either headset w/microphone OR a phone to call into the training session (hands free recommended). Complete information will be provided to you upon registration.

News & Info > FlexCMS Information > FlexCMS 3.2 Released! (Go To Message)
otter
 
FlexCMS 3.2 Released!April 28, 2010 @ 11:39am
We're pleased to announce that our latest version of FlexCMS, v3.2, has been released!

WHAT'S NEW IN 3.2?

- Code Snippets function created to allow for easy insertion of pre-made blocks of code, either HTML or PHP. Can currently be added to pages, blocks, and articles.

- Support has been added to use an SMTP server (for hosts that modify or disable the PHP mail() function [GoDaddy for example blocks mail with modified headers, which are required for HTML messages], or require mail sent through a different server) for outgoing mail messages, along with the existing PHP mail() function. Mail section added to Modify Site Preferences section to modify settings.

Menu Blocks

- "Edit" link now displays on blocks when user has permission to modify it for easier editing.

- Save As New option now available when editing a block to easily create a copy

FlexCMS Modules

Counter & Stats

- Added section showing page views by week over the last 20 weeks (an accurate way to compare short term traffic patterns, as things such as number of days in the month are removed from the equation)

News & Articles

- Save As New option now available when editing an article to easily create a copy

- Options added for articles sort order (on top level and individual categories) -- two sort levels, options are Publish Date New>Old, Publish Date Old>New, Title A>Z, and Title Z>A

Photo Gallery

- New photo browsing look similar to other "lightbox-style" galleries

- Photo thumbnails now displayed when managing photos

- User groups have been added allowing galleries to be viewable only by selected users, in addition to overall levels

- "Edit" and "Add Photos" links displayed on galleries user has permission to modify for easy administration.

- Options added for main gallery index layout (left/right/alternating thumbnails and table width) -- previous configuration was alternating thumbnails with 400px width

- Ability to set the order photos appear in by entering a Priority number (sorted from low to high). If the priorities are the same or not entered (defaults to zero), the photos are sorted by title and then by date created as they previously have been.


Forum / Message Board

- User groups have been added allowing boards to be viewable only by selected users, in addition to overall levels

- "Edit" link now displays on board when user has permission to modify it for easier editing.

eCommerce

- Edit link now displayed on product detail pages when logged in with permission to modify them

- "Remove" checkbox added to View Shopping Cart page

- Options added to allow for one, two, or three customization fields on a per-product basis, with customizable column heading labels, as well as controls over the display size and maximum character length for the input fields

- Discount coupon options now available including "amount or percentage off orders of $xx or more" and "amount off shipping on orders of $xx or more", with customizable coupon codes and start and end dates

- Customer and administrative order emails are now in HTML format and greatly improved from their previous text-only version

- Removing an item/option now converts it to inactive rather than actually deleting it from the database (to preserve it for details and correct calculations on previously placed orders)

- View Larger Image now functions correctly if a mix of image sizes are used on a single product (just the ones with larger versions are shown in the pop-out window, previously none of them displayed when the window was launched from an image which didn't have a larger version)

- Users can now view their order history and status via a link in their control panel. The payment process has also been greatly improved with users now being able to change payment options or make additional payment attempts rather than having to re-submit their order.

- Printable offline payment form has been streamlined and now correctly displays using the font face and size used on the rest of the site

- Similar and/or Related products may now be displayed below product details to show customers possible alternative products (such as a different size or style), and/or related/complimentary products (such as accessories and supplies)

- Shipping rates can now be previewed by customers before having to login/register

- Search function available for products in the store

BUGS & TWEAKS

Backup/Restore

- Bug in Restore section not displaying available backups in the list has been fixed.

Menu Blocks

- Issue with entering contents in a custom block and then switching it to a Block Wizard block (which caused the block to be corrupt) has been fixed.

File Manager

- Fixed issue with file names containing double quotes

- Uploading a file containing spaces, quotes, double quotes, or slashes, now replaces those characters to make the file name web friendly

FlexCMS Modules

Counter & Stats

- Daily page views projection number made more accurate using recent visits data (% of traffic received by current time instead of simply the % of the day completed).

News & Articles

- Bug on alignment of category descriptions fixed (only affected sites where category titles and descriptions were different)

Newsletter

- Problem with messages being sent to unconfirmed addresses under certain conditions has been corrected.

- Message type selection now defaults to HTML when composing a new message, and re-sets to HTML when turning the editor back on. Plain Text option still available if required

eCommerce

- Bug on modifying an existing shipping method where values of 1,000 or more caused the numbers to be truncated after the first comma has been fixed.

- Bug on removing existing product items/options wouldn't actually delete them has been fixed.

- Bug causing the "Show Products Without Prices?" dropdown in the store to always display as "No" even when set to "Yes" has been fixed.

- Code updates have been added allowing products without prices to be displayed as initially intended. Products without prices display text asking the customer to contact for information rather than an Add To Cart button.

Want to be notified immediately when we release new versions and updates? Just sign up for our enews!
User Help > General Support Requests > News Articals Not displaying (Go To Message)
DCSun
 
March 26, 2010 @ 9:43pm
Glad you found something else that will also work for what you need. It's hard to say what might be causing that without seeing it. If you'd like me to take a look you can send a username and password to .

David

Previous Page Next Page





Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.15671 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS