|
 |
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


|
 |
|
|
| Changing a logo graphic - how to add two | August 27, 2007 @ 2:55pm | I have a request for new graphics on a site. It's easy enough for me to just change a logo but the request is for a small photo on the top left and second one on the top right. I am using the fine-lines template.
Would I need to edit the template files to do this (no other big changes needed)? I have looked through the files and can't find where to do this and I sure don't want to mess with the php code and break the site!
Thanks, Donna
PS: I just noticed a newer update to the script since I did mine in July. Is it an upgrade that should be done? |
|
|
|
| |
|
 |
|
|
| August 26, 2007 @ 1:32pm | Thanks! We'll look into it and get back to you asap via our support desk.
otter |
|
|
|
| |
|
 |
|
|
| August 26, 2007 @ 12:31pm | PS. I emailed you a link to my PHP Info. |
|
|
|
| |
|
 |
|
|
| August 26, 2007 @ 5:40am | Hi David,
The MySQL version I'm using is 4.0.27-standard, and I'm not using any other database driven scripts.
Thanks for your help |
|
|
|
| |
|
 |
|
|
| August 26, 2007 @ 12:45am | Hi sammie926,
Sorry to hear you're having problems.
That looks like it's having a problem with the very first query in the MySQL portion of the install. It's a pretty straightforward query, which simply creates the cl-EventDates table.
What version of MySQL are you using? Have you had any problems like this installing other scripts? Are you currently using any other database driven scripts?
David |
|
|
|
| |
|
 |
|
|
| Install Problem... | August 25, 2007 @ 10:37pm | In step 3 of the install I get this message, even though it says I've successfully connected with the database:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=225' at line 1
Thanks for your help:) |
|
|
|
| |
|
 |
|
|
| August 23, 2007 @ 12:05pm | Greetings Web Wench!
I've created the block code you need to replace the Featured Product. You'll find that here:
http://www.flexcms.com/index.php/forum/4/268.html
------------------
As for your PayPal question. There is currently no option to add PayPal encrypted code to the final checkout screen, only the standard code. Since PayPal is a widely used service we'd be happy to look into adding that option, however it very well may not be possible for FlexCMS to create the encryption the same as PayPal's system does.
Should the above not work, another option would be to get PayPal IPN (Instant Payment Notification) working, which would serve as a verification that the payment was correct and for a real order. It should also be noted, though, that to get to the final step of the checkout system where the PayPal code is located, you would have to add an item to your shopping cart, register or log into an account on the site, and enter your billing and shipping information, which should serve to keep out pretty much any of the usual suspects who would try to mess with your PayPal code the way they might on an HTML pages setup where you had Buy Now or Add To Cart buttons for each product right on the page.
If you would like to proceed with the above, send an email to our and we'll go from there.
Thanks!
otter
|
|
|
|
| |
|
 |
|
|
| Featured Product Block | August 23, 2007 @ 11:48am | If you've deleted the Featured Product block and need to replace it, simply follow these instructions and you'll be good to go!
FEATURED PRODUCT BLOCK
In your Control Panel, click on the Menu Blocks link under the Edit Site Content box.
From the Menu blocks page:
1) Create a New Block
2) Block Title: Featured Product
3) Copy and paste the following code into the Custom Block Contents area:

Code
if ($IM['ec'] == 'y') { $query = "select * from `".$Settings['DBPrefix']."ec-Settings`"; $result = mysql_query($query) or die (mysql_error()); while ($row = mysql_fetch_array($result)) { $ecSettings[$row['Name']] = $row['Value']; } $ImageExtension[1] = '.gif'; $ImageExtension[2] = '.jpg'; $ImageExtension[3] = '.png'; $ThumbImageExtension[1] = '-thumb.gif'; $ThumbImageExtension[2] = '-thumb.jpg'; $ThumbImageExtension[3] = '-thumb.png';
function RandomCategoryImageB($CatParent5) { Global $Settings, $ecSettings, $CategoryIDsArray, $ProductIDsWithImagesArray, $RandomImageProductIDsArray;
$CategoryID = $CatParent5; for ($j = 0; $j < count($ProductIDsWithImagesArray[$CategoryID]); $j++) { $query = "select * from `".$Settings['DBPrefix']."ec-Items` where Product=".$ProductIDsWithImagesArray[$CategoryID][$j]." limit 1"; $result = mysql_query($query) or die (mysql_error()); if (mysql_num_rows($result) > 0) { $RandomImageProductIDsArray[] = $ProductIDsWithImagesArray[$CategoryID][$j]; } } for ($i = 0; $i < count($CategoryIDsArray[$CatParent5]); $i++) { $CategoryID = $CategoryIDsArray[$CatParent5][$i]; for ($j = 0; $j < count($ProductIDsWithImagesArray[$CategoryID]); $j++) { $query = "select * from `".$Settings['DBPrefix']."ec-Items` where Product=".$ProductIDsWithImagesArray[$CategoryID][$j]." limit 1"; $result = mysql_query($query) or die (mysql_error()); if (mysql_num_rows($result) > 0) { $RandomImageProductIDsArray[] = $ProductIDsWithImagesArray[$CategoryID][$j]; } } if (count($CategoryIDsArray[$CategoryIDsArray[$CatParent5][$i]]) > 0) { RandomCategoryImageB($CategoryIDsArray[$CatParent5][$i]); } } } $query0 = "select RecordNumber, Parent from `".$Settings['DBPrefix']."ec-Categories`"; $result0 = mysql_query($query0) or die (mysql_error()); while ($row0 = mysql_fetch_array($result0)) { $CategoryIDsArray[$row0['Parent']][] = $row0['RecordNumber']; } $query0 = "select RecordNumber, Category, ImageType from `".$Settings['DBPrefix']."ec-Products` where Active='1'"; $result0 = mysql_query($query0) or die (mysql_error()); while ($row0 = mysql_fetch_array($result0)) { $ProductIDsArray[$row0['Category']][] = $row0['RecordNumber']; if ($row0['ImageType'] > 0) { $ProductIDsWithImagesArray[$row0['Category']][] = $row0['RecordNumber']; } }
$RandomImageProductIDsArray = ''; RandomCategoryImageB(0); $RandomProductImage = $RandomImageProductIDsArray[rand(0,(count($RandomImageProductIDsArray)-1))];
if ($RandomProductImage) {
$query7 = "select * from `".$Settings['DBPrefix']."ec-Products` where RecordNumber=".$RandomProductImage." limit 1"; $result7 = mysql_query($query7) or die (mysql_error()); if (mysql_num_rows($result7) > 0) { $row7 = mysql_fetch_array($result7); $ImageWidth = $row7['ImageWidth']; $ImageHeight = $row7['ImageHeight']; $NewWidth = $ecSettings['ThumbMaxWidth']; $NewHeight = $ecSettings['ThumbMaxHeight']; $WidthRatio = $ImageWidth / $NewWidth; $HeightRatio = $ImageHeight / $NewHeight; if ($WidthRatio >= $HeightRatio) { $NewWidthCalc = number_format($ImageWidth / $WidthRatio, 0); $NewHeightCalc = number_format($ImageHeight / $WidthRatio, 0); } else { $NewWidthCalc = number_format($ImageWidth / $HeightRatio, 0); $NewHeightCalc = number_format($ImageHeight / $HeightRatio, 0); } $ImageTag = '<a href="'.$MainURL.'/store/details/'.$row7['ProductID'].'.html" class="BlockColors"><img src="'.$ImagesURL.'/store/store_'.$row7['RecordNumber'].$ThumbImageExtension[$row7['ImageType']].'" width="'.$NewWidthCalc.'" height="'.$NewHeightCalc.'" alt="" border="0"><br>'.$row7['Name'].'</a>'; } }
print $ImageTag;
} |
|
4) Check the box: Process PHP Code? located under theCustom Block Contents area.
5) Save your block.
GENERAL NOTE: The Featured Products block only appears when you have products in your store. If you are not using the store module on your site, the block will never display. We recommend not deleting this block unless you are sure you will never use the store module.
Please note, should you decide to use the store module and choose not to use the Featured Product block, rather than delete it (and this is true of all menu blocks in FlexCMS) simply edit the block and where it says:
Block Enabled?:
Select from the drop down: No (Hidden)
After you save the block, it will no longer display EVEN if you have products in your store.
By choosing the Hidden block route, you'll still have any block available with just the click of your mouse again for future use.
|
|
|
|
| |
|
 |
|
|
| Featured Products default code? | August 23, 2007 @ 5:47am | Hi there, thanks again for helping me so quickly! I have a couple of small questions...
1. I deleted the default "Featured Product" code, and unchecked the php function. Would you please post that code for me? (Now that I've installed the STORE module, I'd like to use this LOL)
2. On the shopping cart, I don't see an option for the PayPal encryption info. If we have our PayPal account set up to only take encrypted button codes, our payments get cancelled. Is there a work around for this?
That's all I can think of for now. I'm so impressed with this script! |
|
|
|
| |
|
 |
|
|
| FlexCMS v2.5 Bug Fixes Release - August 21, 2007 | August 21, 2007 @ 9:10pm | Several minor bugs have been fixed in the latest release of FlexCMS. Any downloads of the 'full' or 'update' packages before August 21, 2007 @ 9:20 pm EDT should be downloaded again, and any installations made from those files should be updated.
The fixes included are as follows;
- inc-core-register-verify.php - Slashes not converted in encoded password when passed from verification confirmation page to login-submit-nf.
- inc-core-admin-settings-save.php - Error page displayed when saving advanced settings of a site installed in a subfolder.
- inc-ec-idx.php - Store product details page didn't select only active products, so products with a past deleted copy using the same ProductID retrieved from the deleted one instead of the active one. - inc-na-idx.php - Categories articles are retrieved from was not increased from 5 to 10 in the code when it was increased in the admin area for version 2.5. - inc-pg-admin-photos.php - Fixed spacer image tag missing closing bracket. Fixed descriptions containing HTML code breaking the rest of the page.
- inc-pg-admin-photos_delete_confirm.php - Old version of file packaged with v2.5. Added delete code for GIF files back in.
- inc-pg-admin-photos_edit.php - Fixed descriptions containing HTML textareas code breaking the rest of the page.
The first deals with the email verification function, and this update should definitely be applied if you currently use or plan to use that option on your site. The second is not required unless your site is installed in a subfolder, in which case you may wish to apply it. The others deal with the eCommerce (#3), News/Articles (#4), and Photo Gallery (#5,6,7) modules, and should be applied if you've experienced any of the described problems or plan to use those modules in the future.
To apply any or all of these fixes to a current installation, download the "update" package and replace just those files. |
|
|
|
|


|
|
 | MEMBERS 
|

|
|