, 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 > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
Rory
 
$ sign still showing in place!November 20, 2008 @ 9:57am
£ sign shows in the block section most of the time. However in the main page in
Manage Shipping Options, Store Sales and the View Order Details
The $ sign still shows.
And it reverts back to a $ sign in the block (except the in View order details where it stays as £). $ also shows in the block when in Control Panel and Switch Templates.
~~~~~~~~~~~~~~
How about a link to a currency types that paypal accepts, near the box wher you put USD (dollar) or GBP (pound), just an idea.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My son had a quick look at the Guestbook inc-gb-idx and added gm before date to read gmdate which converted all the entries to UK time, the only problem I can see with his alteration is it can not be altered from the control panel.
I have now changed .date in all areas to read gmdate and it seemed to do the trick. No plans on moving from the UK!
Thanks for the offer to delve in, may hold you to that for something else.
~~~~~~~~~~~~~~
Also I Found in the 'Modify Settings & Preferences' where it shows
Display Actual Stock?:
Determines whether the actual number of items in stock is displayed.
It has two Yes's in the dropdown bar. The top one should read No!
This is the reason why
No number of 'stock left' is shown (when below the set ten items) if the top yes is picked.
I picked the other Yes and the figure did show how many were left.
Where do I change the top Yes to a No please?
~~~~~~~~~~~~~
Finally how do I stop say a £3.00 item showing up as 1 @ £3.0000 in the checkout section?
many thanks
R
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
DCSun
 
November 19, 2008 @ 8:14pm
Blank white page isn't much to go on. Was that for all pages or one in particular? If you'd like to give us FTP information I'm happy to try debugging it for you. Otherwise I don't really have any suggestions.

As for the shopping cart block, there's a line about 10 up from the bottom that looks like this:

$CartContents = 'Items: '.number_format($ItemsCount,0).'<br>Total Value: $'.number_format($Total,2);

it should be replaced with:


Code

if ($ecSettings['CurrencyLocation'] == '' || $ecSettings['CurrencyLocation'] == 'b') {
if ($ecSettings['Currency'] == '') {
$CurrencyBefore = '$';
}
else {
$CurrencyBefore = $ecSettings['Currency'];
}
}
else {
if ($ecSettings['Currency'] == '') {
$CurrencyAfter = '$';
}
else {
$CurrencyAfter = $ecSettings['Currency'];
}
}



if ($ecSettings['PriceDecimals'] == '') {
$ecSettings['PriceDecimals'] = 2;
}


if ($ecSettings['DecimalSymbol'] == '') {
$ecSettings['DecimalSymbol'] = '.';
}


if ($ecSettings['ThousandsSep'] == '') {
$ecSettings['ThousandsSep'] = ',';
}


$CartContents = 'Items: '.number_format($ItemsCount,0).'<br>Total Value: '.$CurrencyBefore.number_format($Total,$ecSettings['PriceDecimals'], $ecSettings['DecimalSymbol'], $ecSettings['ThousandsSep']).$CurrencyAfter;



David
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
Rory
 
No LuckNovember 19, 2008 @ 7:08pm
The new Flex time_change just gave me a blank white page. So I had nothing to test. I uploaded all except the .gif's and .jpg's.

Have now reloaded original backup.

Also just noticed in the store block Shopping Cart it is still showing $ sign in total value, although on the main page it reads as £ as required.
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
DCSun
 
November 19, 2008 @ 1:28pm
No, the removal of .html from FlexCMS links won't have any impact. It's added purely for cosmetic reasons. If you're in index.php you'll see it looks for that and removes if it exists before doing any processing.

We recently became aware of the problem of times being incorrect because of servers being located in a different timezone than the website. While not really a bug or problem, it is something we'll be addressing in the next version. We also have a patched v2.5 available here: http://www.flexcms.com/downloads/flexcms_v2.5_time_change_beta.zip if you'd like to try it. To use it back up your database and any source files you've made changes to, then overlay all the files from the zip onto your site. What it does is replaces all calls to the PHP time() function with its own function that takes into account the timezone you've selected in the settings compared with the timezone reported by the server. Please note that is a beta version, and while very similar to the production FlexCMS you should test it all out before making the site live.

As for the forum here, that would need to be set in your profile on the site, an option which we'll look into adding in the near future.


David
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
Rory
 
Excellent !!November 19, 2008 @ 8:47am
Great help all works fine.
re the removing of the .html from the inc-core-admin-where.php file, wont that effect the other links or new page links (in the where section) that I ceate within flex?

Also I just purchased your pro package and upon testing the Guestbook, forum and news, they show six hours behind.
In Modify Advance Settings the server time is -7 (which is in the USA) my pc time (here in the UK) correct.
Ive tried changing to and from GMT to and from -7 and +6 but which ever way I try all still show six hours behind. Any ideas?
cheers
R
ps this forum shows 5 hours behind?
User Help > General Support Requests > Counter & Stats Errors (Go To Message)
DCSun
 
November 18, 2008 @ 4:42pm
Send your FTP information and an Administrator level FlexCMS account on your site to and we'll get it sorted out for you.


David
User Help > General Support Requests > Counter & Stats Errors (Go To Message)
linns
 
Same error November 18, 2008 @ 4:31pm
I have the same error and yes i have php 5 with hostgator would love you to help if possible

thanks
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
DCSun
 
November 18, 2008 @ 1:27pm
Take these two lines:

$CookieName = $Settings['CookieName'];
$CookieData = $_COOKIE[$CookieName];

and make it into:

$CookieData = $_COOKIE[$Settings['CookieName']];



At the top add the following:

$Arguments1 = 'mypagename.php';



As for the Where Are They Now page, that would be in its own file. inc-core-admin-where.php, lines 109 through 124. You can just remove the .html you see in those lines of code.


David
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
Rory
 
Nearly there!!November 18, 2008 @ 8:21am
Just a couple of errors now showing on my new page outside of flex, I did have about a dozen, most were to do with the font color and $QSData which no longer show up. But I still have a couple to sort..
They are
This shows if the page is visited by a guest

An error occurred in script /var/www/vhosts/mydomain.co.uk/httpdocs/admin/includes/header.html on line 78: Undefined index: FCLoginData12345

This error I am not too bothered about, as the link to the page will be for members only, but it would be nice if it was not there. I make line 78 as..... $CookieData = $_COOKIE[$CookieName];
~~~~~~~~~~~~~~~~
This shows if the page is visited when logged in

An error occurred in script /var/www/vhosts/mydomain.co.uk/httpdocs/admin/includes/header.html on line 120: Undefined variable: Arguments1

I make line 120 as..... if ($Arguments1 != 'count') {

Here is what I added to the top of the .php text on the new page, can you tell me if it is right and what else is needed please?

$QSData = '/mypagename.php';
$ScriptName = "{$MD_title_base}";

~~~~~~~~~~~~~~~~~~~~
With the above in mind the link on the 'where are they now' auto adds .html so it becomes /mypagename.php.html is there a way around this?
Your help is much appreciated, my headache has nearly gone!!!
Many thanks
R
User Help > General Support Requests > ftp wont upload install.php saying virus? (Go To Message)
DCSun
 
November 17, 2008 @ 3:37pm

Code

include_once('./settings.php');

mysql_connect($DBServer, $DBUser, $DBPass) or die ("Could not connect to database");

mysql_select_db($DBDatabase) or die ("Could not select database");

$DBConnected = 'y';


$Settings['DBPrefix'] = $DBPrefix;




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

$CookieName = $Settings['CookieName'];

$CookieData = $_COOKIE[$CookieName];

$LoggedIn = 'n';
$UserLevel = 0;

// if the cookie exists and isn't empty
if ($CookieData != '' && $CookieData != 'not_logged_in') {

// split the username and password out
list ($CookieUsername, $CookiePassword) = split('==', $CookieData, 2);

// if username and password are both not empty
if ($CookieUsername != '' && $CookiePassword != '') {

//query the database and validate the input from the login page
//assign $result to do a lookup up in the database flexcms users table
//where the username is equal to the database field username, validates password
$query = "select RecordNumber,Level,Password,DisplayName,SessionLength from `".$Settings['DBPrefix']."core-Users` where Username='$CookieUsername' LIMIT 1";
$result = mysql_query($query) or die (mysql_error());

// if any rows are returned, the username exists
if (mysql_num_rows($result) != 0) {

$row = mysql_fetch_array($result);
// check the password returned from the database against the one in the cookie
if ($row['Password'] == $CookiePassword ) {
// passwords match
$LoggedIn = 'y';

$UserLevel = $row['Level'];
$UserNumber = $row['RecordNumber'];


if ($row['DisplayName'] != '') {
$UserDisplayName = $row['DisplayName'];
}
else {
$UserDisplayName = $CookieUsername;
}



if ($Arguments1 != 'count') {

$query2 = "select LastAction,LastLocation from `".$Settings['DBPrefix']."core-RecentActivity` where User='".$CookieUsername."' LIMIT 1";
$result2 = mysql_query($query2) or die (mysql_error());

// check to see if they're still in the recent activity table
if (mysql_num_rows($result2) != 0) {
// if they are, just update their current location and last action

$row2 = mysql_fetch_array($result2);
if (str_replace('\'', '\\\'', $row2['LastLocation']) != $QSData && $row2['LastLocation'] != $QSData) {
// if they've gone to a different page
$query = "update `".$Settings['DBPrefix']."core-RecentActivity` set LastAction='".time()."', LastLocation='".$QSData."', PreviousLocation='".str_replace('\'', '\\\'', $row2['LastLocation'])."' where User='".$CookieUsername."' LIMIT 1";
}
else {
// if they've just refreshed the current page
$query = "update `".$Settings['DBPrefix']."core-RecentActivity` set LastAction='".time()."' where User='".$CookieUsername."' LIMIT 1";
}
$result = mysql_query($query) or die (mysql_error());
}
else {
// if they're not still there, put them back in

$query = "insert into `".$Settings['DBPrefix']."core-RecentActivity` (User,Name,LastLocation,LastAction,SessionLength,UserOrGuest) values ('".$CookieUsername."','".$row['DisplayName']."','".$QSData."','".time()."','10','u')";
$result = mysql_query($query) or die (mysql_error());
}

$query = "update `".$Settings['DBPrefix']."core-Users` set LastAction='".time()."' where Username='".$CookieUsername."' LIMIT 1";
$result = mysql_query($query) or die (mysql_error());

} // end if not just the counter

}
else{
// passwords don't match
$LoggedIn = 'n';
}
}
// no rows returned, username doesn't exist
else {
$LoggedIn = 'n';
}
}

}



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.13653 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS