, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum


Recent Messages

Next Page

User Help > FAQ's: Templates > Logo Trouble (Go To Message)
macat
 
Logo TroubleMay 7, 2008 @ 12:35pm
I took out the logo code on the Good Morning Block [ <img src="'.$Settings['SPL'].'" border="0" alt=""> ], and now I can't figure out how it goes back in so I can put my own logo in. Can someone please paste the whole block code here so I can replace my broken one ... Thanks!!!
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
DCSun
 
May 6, 2008 @ 12:55pm
Dave or David is fine, I consider them interchangeable!

Glad you got your settings sorted out. As for the CHMOD error, most likely you had an existing file or folder that FlexCMS wasn't able to alter because of its permissions. My best guess would be either an existing "index.html" file (FlexCMS renames existing "index.htm" and "index.html" files upon installation), or an existing "images" folder. As long as things seem to be working there shouldn't be anything to worry about.


David
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
macat
 
May 5, 2008 @ 10:18pm
David,
Here is the error message I got, is it something to worry about:

Directories Created:
Warning: chmod() [function.chmod]: Operation not permitted in /home/spydsvt/public_html/install.php on line 534

23Files Created: 457


Installation Complete!
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
macat
 
May 5, 2008 @ 10:16pm
Sorry I see your name is David, not Dave. Thanks again ...
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
macat
 
May 5, 2008 @ 10:15pm
Hi Dave,
I just got it to work by changing the User_Password to just Password. I did get some kind of chmod message but was able to login so hopefully it isn't going to have to be a problem.

Thanks for your help!!
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
macat
 
May 5, 2008 @ 10:05pm
Hi Dave,
I am using cPanel and am using the name_databasename form of entry for user, password and database. I create databases all the time and install programs, this one just isn't working. I uploaded the install file in ASCII and the data and map in binary. It is in my public_html folder and it has been chmod to 777 as has the image folder.

Any ideas???
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
DCSun
 
May 5, 2008 @ 9:53pm
Hello,

I'm not aware of any MySQL connection issues with FlexCMS. That error message looks like PHP simply can't connect to your database.

First, confirm once more that your username and password are correct, as well as the name of your database. Some systems (such as CPanel) add your username to the beginning of the database name you create (so creating a database called MyDB under the account of Dave would require you to use "Dave_MyDB" as the database name). Also confirm that you're connecting to the right server (either "localhost" or the hostname/IP of the server if it's a different one). Finally, you may also want to check if there are any access restrictions on the MySQL database, as some systems allow connections to be restricted by IP address and things like that.


David
User Help > FAQ's: Installation of FlexCMS > Installation Problem (Go To Message)
macat
 
Installation ProblemMay 5, 2008 @ 8:58pm
I can't get the installation to complete, I am getting this message after entering all my info:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'spydsvt_spydsvt'@'localhost' (using password: YES) in /home/spydsvt/public_html/install.php on line 471
Could not connect to database

The password is correct and so is the user ID, any ideas what is wrong??
User Help > General Support Requests > RSS/ATOM feeds from Flexcms (Go To Message)
DCSun
 
April 29, 2008 @ 2:49pm
Chris,

What area of FlexCMS were you looking to pull data from to create the feed? If the news/articles system, you're in luck, the code at the link below should do the trick for you. Otherwise you might be able to modify it to work for your needs.

Creating an RSS Feed from your FlexCMS News/Articles


David
User Help > Code Snippets > Creating an RSS Feed from your FlexCMS News/Articles (Go To Message)
DCSun
 
Creating an RSS Feed from your FlexCMS News/ArticlesApril 29, 2008 @ 2:46pm
Hey sports fans, we've had some interest from users to create an RSS feed from their FlexCMS site's news/articles module, so here it is Smile

To make it work, simply create a new page, paste the code below into it, and enable PHP. The address of that page becomes the URL of your feed (ie: http://www.flexcms.com/index.php/pages/rss.html, if you called the page "rss").
Code

if ($IM['na'] == 'y') {

$query_na = "select * from `".$Settings['DBPrefix']."na-Settings`";
$result_na = mysql_query($query_na) or die (mysql_error());
while ($row_na = mysql_fetch_array($result_na)) {
$naSettings[$row_na['Name']] = $row_na['Value'];
}


$CategoriesList = "";
// optional -- comma separated list of category IDs to use articles from


$ArticlesCount = 5;
// optional -- number of articles to include in feed


$DescriptionLength = "";
// optional -- number of characters to use for description, otherwise
// defaults to FlexCMS news/articles teaser length setting



header('Content-type: text/xml');

print '<?xml version="1.0" encoding="UTF-8"?>
<rss version="0.91">
<channel>
<title>SECWB.com</title>
<link>http://www.secwb.com</link>
<description>SEC Womens College Basketball</description>
<language>en-us</language>';



if ($DescriptionLength > 0) {
$naSettings['TeaserLength'] = $DescriptionLength;
}


if ($ArticlesCount != '') {
if (strpos($ArticlesCount,',') !== false) {
list($ACOffset,$ACCount) = explode(',',$ArticlesCount);
$LimitString = intval($ACOffset).','.intval($ACCount);
}
else {
$LimitString = intval($ArticlesCount);
}
}
else {
$LimitString = 5;
}

if ($CategoriesList != '') {

$CategoriesArray = explode(',',$CategoriesList);
for ($i = 0; $i < count($CategoriesArray); $i++) {
$CategoriesArray[$i] = intval($CategoriesArray[$i]);
}
$CategoriesList2 = '"'.implode('","',$CategoriesArray).'"';

$query_na = "SELECT * FROM `".$Settings['DBPrefix']."na-Articles` WHERE ApprovedBy!='' AND (Category IN (".$CategoriesList2.") OR Category2 IN (".$CategoriesList2.") OR Category3 IN (".$CategoriesList2.") OR Category4 IN (".$CategoriesList2.") OR Category5 IN (".$CategoriesList2.") OR Category6 IN (".$CategoriesList2.") OR Category7 IN (".$CategoriesList2.") OR Category8 IN (".$CategoriesList2.") OR Category9 IN (".$CategoriesList2.") OR Category10 IN (".$CategoriesList2.")) ORDER BY DateCode DESC LIMIT ".$LimitString;
}
else {
$query_na = "SELECT * FROM `".$Settings['DBPrefix']."na-Articles` WHERE ApprovedBy!='' ORDER BY DateCode DESC LIMIT ".$LimitString;
}

$result_na = mysql_query($query_na) or die (mysql_error());




$BadWordChars = array(
"\xe2\x80\x98", // left single quote
"\xe2\x80\x99", // right single quote
"\xe2\x80\x9c", // left double quote
"\xe2\x80\x9d", // right double quote
"\xe2\x80\x94", // em dash
"\xe2\x80\xa6", // elipses
"\xe2\x80\x93", // long dash
"\xe2\x80\x94", // long dash
"\xe2\x80\x98", // single quote opening
"\xe2\x80\x99", // single quote closing
"\xe2\x80\x9c", // double quote opening
"\xe2\x80\x9d", // double quote closing
"\xe2\x80\xa2", // dot used for bullet points
chr(146),
);

$FixedWordChars = array(
"‘",
"’",
'“',
'”',
'—',
'…',
'-',
'-',
'\'',
'\'',
'"',
'"',
'*',
'\''
);


while ($row_na = mysql_fetch_array($result_na)) {

if ($row_na['Teaser'] == '') {
$StrippedArticle = strip_tags($row_na['Article']);

if (strlen($StrippedArticle) > $naSettings['TeaserLength']) {
$TeaserSection = substr($StrippedArticle,0,$naSettings['TeaserLength']);
while (substr($TeaserSection,strlen($TeaserSection)-1,1) != ' ') {
$TeaserSection = substr($TeaserSection,0,strlen($TeaserSection)-1);
}
while (substr($TeaserSection,strlen($TeaserSection)-1,1) == ' ') {
$TeaserSection = substr($TeaserSection,0,strlen($TeaserSection)-1);
}
$TeaserSection .= '...';
}
else {
$TeaserSection = $row_na['Article'];
}
}
else {
$TeaserSection = substr($row_na['Teaser'],0,$naSettings['TeaserLength']);

if (strlen($row_na['Teaser']) > strlen($TeaserSection)) {
while (substr($TeaserSection,strlen($TeaserSection)-1,1) != ' ') {
$TeaserSection = substr($TeaserSection,0,strlen($TeaserSection)-1);
}
while (substr($TeaserSection,strlen($TeaserSection)-1,1) == ' ') {
$TeaserSection = substr($TeaserSection,0,strlen($TeaserSection)-1);
}
$TeaserSection .= '...';
}

}



$TeaserSection = str_replace($BadWordChars, $FixedWordChars, $TeaserSection);

$TeaserPrint = '';
for ($x = 0; $x < $naSettings['TeaserLength']; $x++) {
$CharCode = ord(substr($TeaserSection,$x,1));
if (($CharCode > 31 && $CharCode < 127) || $CharCode == 10 || $CharCode == 13 || $CharCode == 9) {
$TeaserPrint .= chr($CharCode);
}
//else {
// $TeaserPrint .= '&#'.$CharCode.';';
//}
}


$TeaserPrint = str_replace(' ',' ',$TeaserPrint);
$TeaserPrint = str_replace('&','&',$TeaserPrint);
$TeaserPrint = str_replace('&','&',$TeaserPrint);



$TitleSection = str_replace($BadWordChars, $FixedWordChars, $row_na['Title']);

$TitlePrint = '';
for ($x = 0; $x < strlen($TitleSection); $x++) {
$CharCode = ord(substr($TitleSection,$x,1));
if (($CharCode > 31 && $CharCode < 127) || $CharCode == 10 || $CharCode == 13 || $CharCode == 9) {
$TitlePrint .= chr($CharCode);
}
//else {
// $TitlePrint .= '&#'.$CharCode.';';
//}
}


$TitlePrint = str_replace(' ',' ',$TitlePrint);
$TitlePrint = str_replace('&','&',$TitlePrint);
$TitlePrint = str_replace('&','&',$TitlePrint);


print '<item>
<title>'.$TitlePrint.'</title>
<link>'.$MainURL.'/articles/view/'.$row_na['RecordNumber'].'.html</link>
<description>'.$TeaserPrint.'</description>
</item>';

}

print '</channel>
</rss>';


}


exit();


You can also make it appear as a feed for your site in newer browsers by adding this tag to your template or a block on your site:
Code

<link rel="alternate" type="application/rss+xml" title="YourSiteName News Feed [RSS]" href="http://www.yoursitedomain.com/index.php/pages/rss.html">

Next Page








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

Processing Time: 0.11335 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!