Jump to content
Latest News: (loading..)
Sign in to follow this  
ComArge

Cool Flash Carousel Menu

Recommended Posts

Hi All

 

Great contribution.... I have it working BUT....... I cannot seem to get the pictures to load properly.... Only 5 loaded... I deleted one of the items from the "special" and it went away. I added a new item and it does not show up...

 

I viewed the .xml file adn it has 12 pics but only 4 show up ?????

 

any ideas ???

 

www.myrocketsupply.com

 

Thanks....

Bobby B

 

 

 

 

 

 

 

This addon show special products with cool flash carousel. Install within 2 minutes. Only one file need to edit.

You can easily show bestsellers by changing two query in kampanya.php file.

This addon support multilingual and curriencies.

You easily understand by visiting

 

http://demo.oscommerce.com.tr

 

Don't miss this addon.

 

Download at http://addons.oscommerce.com/info/6123

Share this post


Link to post
Share on other sites

in my store the flash module working in i.e.

 

but not working in monzilla firefox in monzilla when i right click on flash object flash object is there

 

but nothing coming..

 

please help me to solve this issue

 

 

regards!

anand

Share this post


Link to post
Share on other sites
Your using an ealier version of kampanya.php!, so to correct in your version:

 

before

 

$date = strtotime("-60 days"); // set max age of displayed product

add:

 

$limit_product_number = 10;

and before:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'],'') : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

add:

 

$new_image = $specials['products_image'];

 

 

HELP MEE!! Problemsss

Share this post


Link to post
Share on other sites

Warning: Missing argument 3 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 4 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 5 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 6 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 3 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 4 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 5 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

Warning: Missing argument 6 for display_price() in /home/infotime/public_html/includes/classes/currencies.php on line 76

 

 

HELP MEE!! Problemsss

Edited by sima19

Share this post


Link to post
Share on other sites
Ok.. I have a new problem....

 

www.reefconcept.com/catalog

 

I don't see my product... It's only a white square !!!

 

thanks

 

Hi Alexandre

 

How did your problem with the white background, I have the same problem and dont know how to solve it?

 

Thanks n advance

 

Sipho

Share this post


Link to post
Share on other sites

this white problem is the same i told before; the resize function is messing it up,since i've tested it in about 5 browsers (newest ones), and only mozilla doesnt show with resize on. =\

Share this post


Link to post
Share on other sites

Hello Sam, I don't know if this contribution is yours, however, congratulations and also for your helps.

 

I installed this contrib and didn't work with SPECIALS, but I changed SPECIALS for new products and all OK (in fact, fortunatelly I want this working with new products, not with specials)... EXCEPT........................ 4 quickly questions/quickly answers ( ;-) ):

 

1) If I put SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT instead of the dimensions of my images (130 x 115), the images show themselves very large (200 px. aproximately) What's wrong?

 

2) Is neccesary the "kampanya_black.swf" file? Can I delete it?

 

3) IMPORTANT: Putting 130 and 115 in kamapnya.php, images sizes are Ok, but not the shadow of these images, they measure the middle. How can I fix it?

 

4) I don't want to put this flash in index.php, but in a nested category, so I inserted the <?php include( 'kampanya.php'); ?> code in the mandatory place into index.php, until this all ok, but now I have to change the code of kampanya.php to catch only the products of this sub-category, I tried and tried with my poor knowledges of MySQL but couldn't get it working. Pls can you give me the code lo get it?

 

Thank you very much and sorry by my english, I'm from Spain.

 

REGARDS.

Share this post


Link to post
Share on other sites

You need to say which install version you're using, as there are quite a few now & they have different resize routines.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
You need to say which install version you're using, as there are quite a few now & they have different resize routines.

 

You are the fastest answering!

 

 

Mmmmmmmm I installed I think the last version (into kampanya.php I can see this "$Id: kampanya.php, v 1 03/08/2008 22:59"). Yes, confirmed, Version 1.3, but I did a few changes like images sizes and let prizes to been showed with taxes included.

 

If were necessary I can embbed here the complete code of this file or upload it in a RAR file and let you to download directly from the server of muy Oscommerce Shop. I like to put an easy way and explain the best as possible from people who helps me like you.

 

Thanks.

Share this post


Link to post
Share on other sites
You are the fastest answering!

 

 

Mmmmmmmm I installed I think the last version (into kampanya.php I can see this "$Id: kampanya.php, v 1 03/08/2008 22:59"). Yes, confirmed, Version 1.3, but I did a few changes like images sizes and let prizes to been showed with taxes included.

 

If were necessary I can embbed here the complete code of this file or upload it in a RAR file and let you to download directly from the server of muy Oscommerce Shop. I like to put an easy way and explain the best as possible from people who helps me like you.

 

Thanks.

 

 

SAM, my resize routine:

 

// (english)If you want to resize images change below lines

$image_need_resize = 1; // 1 on, 0 off - 1 acik, 0 kapali

$width = 130; // image width - resim genisligi

$height = 115; // image height - resim yuksekligi

$limit_product_number = 12; // how many products want to show - kac tane urun gostermek istiyorsunuz

Share this post


Link to post
Share on other sites
SAM, my resize routine:

 

// (english)If you want to resize images change below lines

$image_need_resize = 1; // 1 on, 0 off - 1 acik, 0 kapali

$width = 130; // image width - resim genisligi

$height = 115; // image height - resim yuksekligi

$limit_product_number = 12; // how many products want to show - kac tane urun gostermek istiyorsunuz

 

 

thats not the routine, thats just the piece setting the vars.!!


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
thats not the routine, thats just the piece setting the vars.!!

 

Both kampanya Flash files and AC_RunActiveContent.js belong to the v1.3 so it's not necesary to edit here.

 

So I write here the two files kampanya.php and class.image-resize.php (this one in the next topic)

 

<?php

/*

$Id: kampanya.php, v 1 03/08/2008 22:59

 

osCommerce, Açýk Kaynak Kodlu E-Ticaret Çözümleri

http://www.oscommerce.com.tr

 

Copyright © 2007 osCommerce Türkiye

 

GNU Genel Kamu Lisansý (GPL) altýnda sunulmuþtur

*/

// (turkce) Ayarlar

// (english) Configuration

 

// (turkce) Eðer resmin boyutlandirilmasini istiyorsaniz asagidaki ayarlari degistiriniz

// (english)If you want to resize images change below lines

$image_need_resize = 1; // 1 on, 0 off - 1 acik, 0 kapali

$width = 130; // image width - resim genisligi

$height = 115; // image height - resim yuksekligi

$limit_product_number = 12; // how many products want to show - kac tane urun gostermek istiyorsunuz

// (turkce) Ayarlar bitti

// (english) Configuration end

$kampanya = new currencies();

function savefile($xmldata, $filename){

$filename_dir = DIR_FS_CATALOG . DIR_WS_IMAGES . $filename;

if ($fp = fopen($filename_dir, 'w+')){

fwrite($fp, $xmldata);

fclose($fp);

return true;

}

else return false;

}

function thumb_kampanya($img, $width, $height, $fill = false) {

if (!extension_loaded('gd') && !extension_loaded('gd2')) {

trigger_error("No dispones de la libreria GD para generar la imagen.", E_USER_WARNING);

return false;

}

 

//$ext = strtolower(array_pop(explode(".",$img)));

$imgInfo = getimagesize($img);

switch ($imgInfo[2]) {

case 1: $im = imagecreatefromgif($img); break;

case 2: $im = imagecreatefromjpeg($img); break;

case 3: $im = imagecreatefrompng($img); break;

default: trigger_error('Tipo de imagen no reconocido.', E_USER_WARNING); break;

}

 

 

//

 

 

$ratio = $imgInfo[1] / $imgInfo[0];

 

// Set the width and height to the proper ratio

if (!$width && $height) {

$ratio = $height / $imgInfo[1];

$width = intval($imgInfo[0] * $ratio);

} elseif ($width && !$height) {

$ratio = $width / $imgInfo[0];

$height = intval($imgInfo[1] * $ratio);

} elseif (!$width && !$height) {

$width = $imgInfo[0];

$height = $imgInfo[1];

}

 

// Scale the image if not the original size

if ($imgInfo[0] != $width || $imgInfo[1] != $height) {

$rx = $imgInfo[0] / $width;

$ry = $imgInfo[1] / $height;

 

if ($rx < $ry) {

$width = intval($height / $ratio);

} else {

$height = intval($width * $ratio);

}

}

//

 

 

$nWidth = round($width);

$nHeight = round($height);

 

$newImg = imagecreatetruecolor($nWidth, $nHeight);

$th_bg_color = imagecolorallocate($newImg, 255, 255, 255);

imagefill($newImg, 0, 0, $th_bg_color);

imagecolortransparent($newImg, $th_bg_color);

 

imagecopyresampled($newImg, $im, 0, 0, 0, 0, $nWidth, $nHeight, $imgInfo[0], $imgInfo[1]);

 

 

 

switch ($imgInfo[2]) {

case 1: imagegif($newImg,$img.'kampanya.gif');

return 'kampanya.gif';

break;

case 2: imagejpeg($newImg,$img.'kampanya.jpg');

return 'kampanya.jpg';

break;

case 3: imagepng($newImg,$img.'kampanya.png');

return 'kampanya.png';

break;

default: trigger_error('I have a problem ', E_USER_WARNING); break;

}

 

imagedestroy($newImg);

}

// (turkce) xml dosyasini olustur

// (english) create xml file

$xmlfile='<?xml version="1.0" encoding="'.CHARSET.'"?>'."\n";

$xmlfile.="<products>\n";

$date = strtotime("-160 days"); // set max age of displayed product

$date = strftime("%Y-%m-%d",$date);

$specials_query_raw = "select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_date_added > '".$date."' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . $limit_product_number;

$specials_query = tep_db_query($specials_query_raw);

while ($specials = tep_db_fetch_array($specials_query)) {

 

if($image_need_resize == 1){

$new_image = $specials['products_image'].thumb_kampanya('images/'.$specials['products_image'], $width, $height,false);

}else{

$new_image = $specials['products_image'];

}

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

}

$xmlfile.="</products>\n";

 

// (turkce) xml dosyasini images klasoru altina kaydet

// (english) save xml file under images directory

savefile($xmlfile, 'kampanya.xml');

?>

<script language="javascript">AC_FL_RunContent = 0;</script>

<script src="AC_RunActiveContent.js" language="javascript"></script>

<script language="javascript">

if (AC_FL_RunContent == 0) {

alert("This page requires AC_RunActiveContent.js.");

} else {

AC_FL_RunContent(

'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',

'width', '640',

'height', '200',

'src', 'kampanya',

'quality', 'high',

'pluginspage', 'https://www.macromedia.com/go/getflashplayer',

'align', 'middle',

'play', 'true',

'loop', 'true',

'scale', 'showall',

'wmode', 'window',

'devicefont', 'false',

'id', 'kampanya',

'bgcolor', '#8fcdff',

'name', 'kampanya',

'menu', 'true',

'allowFullScreen', 'false',

'allowScriptAccess','sameDomain',

'movie', 'kampanya',

'salign', ''

); //end AC code

}

</script>

<?php

// (turkce) flash dosyasini goster

// (english) show flash file

?>

<noscript>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="640" height="200" id="kampanya" align="middle">

<param name="allowScriptAccess" value="sameDomain" />

<param name="allowFullScreen" value="false" />

<param name="movie" value="kampanya.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#434343" /> <embed src="kampanya.swf" wmode="transparent" quality="high" bgcolor="#303030" width="640" height="200" name="kampanya" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />

</object>

</noscript>

Share this post


Link to post
Share on other sites

I don't know if you mean that the size routine is class.image-resize.php, anyway let's go. With this, I have completelly sent you all you need to identify all the code, I have no more. :)

 

<?PHP

class img_opt

{

var $max_width;

var $max_height;

var $path;

var $img;

var $new_width;

var $new_height;

var $mime;

var $image;

var $width;

var $height;

function max_width($width)

{

$this->max_width = $width;

}

function max_height($height)

{

$this->max_height = $height;

}

function image_path($path)

{

$this->path = $path;

}

function get_mime()

{

$img_data = getimagesize($this->path);

$this->mime = $img_data['mime'];

}

function create_image()

{

switch($this->mime)

{

case 'image/jpeg':

$this->image = imagecreatefromjpeg($this->path);

break;

 

case 'image/gif':

$this->image = imagecreatefromgif($this->path);

break;

 

case 'image/png':

$this->image = imagecreatefrompng($this->path);

break;

}

}

function image_resize()

{

set_time_limit(120);

$this->get_mime();

$this->create_image();

$this->width = imagesx($this->image);

$this->height = imagesy($this->image);

$this->set_dimension();

$image_resized = imagecreatetruecolor($this->new_width,$this->new_height);

imagecopyresampled($image_resized, $this->image, 0, 0, 0, 0, $this->new_width, $this->new_height,$this->width, $this->height);

imagejpeg($image_resized,$this->path);

 

}

 

//######### FUNCTION FOR RESETTING DEMENSIONS OF IMAGE ###########

function set_dimension()

{

 

if($this->width==$this->height)

{

$case = 'first';

}

elseif($this->width > $this->height)

{

$case = 'second';

}

else

{

$case = 'third';

}

 

 

 

if($this->width>$this->max_width && $this->height>$this->max_height)

{

$cond = 'first';

}

elseif($this->width>$this->max_width && $this->height<=$this->max_height)

{

$cond = 'first';

}

else

{

$cond = 'third';

}

 

switch($case)

{

case 'first':

$this->new_width = $this->max_width;

$this->new_height = $this->max_height;

break;

case 'second':

$ratio = $this->width/$this->height;

$amount = $this->width - $this->max_width;

$this->new_width = $this->width - $amount;

$this->new_height = $this->height - ($amount/$ratio);

break;

case 'third':

$ratio = $this->height/$this->width;

$amount = $this->height - $this->max_height;

$this->new_height = $this->height - $amount;

$this->new_width = $this->width - ($amount/$ratio);

break;

}

 

}

}

 

 

 

?>

Share this post


Link to post
Share on other sites

I have no wish to debug that to see where your error may be, try using v1.2 that uses a different size routine.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
in my store the flash module working in i.e.

 

but not working in monzilla firefox in monzilla when i right click on flash object flash object is there

 

but nothing coming..

 

please help me to solve this issue

 

 

regards!

anand

 

 

Same problem with firefox here...

Strange - it should be displayed..its just a flash file..

Share this post


Link to post
Share on other sites

Hello, I would like to put the description under the pictures in WHITE, (I put my bg to black...)

but how do that please?

 

I downloaded also the last contrib "3D HEADER CAROUSEL".

I would like do the same display method : in cliking on the item, the picture is zoomed !

 

Anyway, very very nice work!

greets

Share this post


Link to post
Share on other sites

Hello all,

 

I don't understand why nobody has this problem. When I installed the mod it showes me 3 products only. I have 10 specials. Do I have to manually edit the xml file? then it works.

 

I have tried many things, but I can't seem to get my products from the specials in this slideshow.

 

Please help me

 

Danny

Share this post


Link to post
Share on other sites
Hello, I would like to put the description under the pictures in WHITE, (I put my bg to black...)

but how do that please?

 

I downloaded also the last contrib "3D HEADER CAROUSEL".

I would like do the same display method : in cliking on the item, the picture is zoomed !

 

Anyway, very very nice work!

greets

 

edit tha fla file


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Thanks Sam, it work! B) But after mod the"kampanya.php" as per your contribution, the product price shown was before tax. Have i done some wrong or it it suppose to be without tax?

 

 

To list new products:

 

Find:

 

$specials_query_raw = "select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' order by s.specials_date_added DESC LIMIT $limit_product_number";
$specials_query = tep_db_query($specials_query_raw);
while ($specials = tep_db_fetch_array($specials_query)) {
if ((!isset($HTTP_GET_VARS['sID']) || (isset($HTTP_GET_VARS['sID']) && ($HTTP_GET_VARS['sID'] == $specials['specials_id']))) && !isset($sInfo)) {
$products_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$specials['products_id'] . "'");
$products = tep_db_fetch_array($products_query);
}

 

Replace with:

 

$date = strtotime("-60 days"); // set max age of displayed product
$date = strftime("%Y-%m-%d",$date); 
$specials_query_raw = "select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_date_added > '".$date."' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . $limit_product_number;
$specials_query = tep_db_query($specials_query_raw);
while ($specials = tep_db_fetch_array($specials_query)) {

 

Find:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.$kampanya->display_price($specials['specials_new_products_price'],'').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

 

Replace with:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'],'') : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

 

I`ve not tested, but that should work fine.

 

B)

Share this post


Link to post
Share on other sites

Hi,

 

I finally found out why I was getting the permission error in IIS 6, this is because of a permission mismatch (using iis6) I fixed this by simply highlighting existing files such as index.php etc. and then highlighting the new kampanya.php and then rightclick then>properties>security tab> then you will see the error message about the files having different permissions, just click ok to reset the permissions! <_<

 

But this has presented me with a new problem(s), I have now got the white square because the xml file created does not like html tags(introduced with contributions such as the inc VAT ex VAT mod), how do we strip these tags out of the xml so the only ones allowed are for the link url? IE* .php .html etc..

 

I also tried the tax fix and it did not work, xml still shows my incl vat as the excluding vat price (both prices are the same)

 

These error's are present in all versions.

Share this post


Link to post
Share on other sites

heres the error if you try to open the xml file:

 

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

 

 

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

 

Whitespace is not allowed at this location. Error processing resource 'file:///D:/Domains/mysite.com/www/image/kamp...

 

<product filename="Product_image_1423.jpg" productname=" 3TD76DD Log effect bras...

 

 

This is becuase of the html tags once removed the xml file opens fine , but it will get overwritten if you try to open your site in the browser, if you set the xml file to readonly, the site will spit out a "fopen" error. HELP!

Share this post


Link to post
Share on other sites

To display price with tax:

 

Replace:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'],'') : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

 

with:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'],tep_get_tax_rate($specials['products_tax_class_id'])) : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
To display price with tax:

 

Replace:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'],'') : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

 

with:

 

$xmlfile .= "\t\t" . '<product filename="'.$new_image.'" productname="'.$specials['products_name'].'" productprice="'.($specials['products_price'] > 0 ? $kampanya->display_price($specials['products_price'],tep_get_tax_rate($specials['products_tax_class_id'])) : 'P.O.A').'" url="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']). '" />'."\n";

 

Hi "spooks" Thank you, that worked I checked the XML file and the prices are now showing correctly!

 

This mod still has issues though, this NEEDS to use some kind of strip tags function as most of my products names have a "&" character and this will break the xml file! anyone with a bit more experience know how to add this functionality? At the moment I cannot run it down to this.

 

something like this? how do I integrate it?

 

<?php

$text = ($xmldata);

echo strip_tags($text);

echo "\n";

?>

 

resource : http://uk2.php.net/strip-tags

 

 

 

EDIT! I just tried a few select specials making sure there wasnt any bad characters in the filenames etc. , the xml file is now perfect, but upon testing, I still get just a white square! wtf! this mod is seriously driving me nuts! and thats with resize off, if resize is on , then I get allsorts of errors displayed!! I have the gd2 library uncommented in the php.ini so I dont know why this is happening too!!

Edited by chrish123

Share this post


Link to post
Share on other sites
EDIT! I just tried a few select specials making sure there wasnt any bad characters in the filenames etc. , the xml file is now perfect, but upon testing, I still get just a white square! wtf! this mod is seriously driving me nuts! and thats with resize off, if resize is on , then I get allsorts of errors displayed!! I have the gd2 library uncommented in the php.ini so I dont know why this is happening too!!

 

Well it seems the error with resize on was down to a line reffering to the "images/" directory which I have called image, and I changed that line in kampanya.php and now all I see is a white square! upon testing with v1.2 (with resize on or off) I tried the rest earlier and same issue!

Share this post


Link to post
Share on other sites

You must edit kampanya.php so it reads images from 'image', but realise it must write to 'images', so that must exist too


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×