Zen Cart Logo
Forums / Addon Sideboxes / "Whats New" Scrolling Sidebox

"Whats New" Scrolling Sidebox

Locked

Views: 33,142

Results 41 to 60 of 93
This thread is locked. New replies are disabled.
26 Aug 2006, 5:41 AM
#41
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

"Whats New" Scrolling Sidebox

This is a very nifty and very easy to install gem. I have found that it works with my two language site very nicely...

The only hitch I have encountered so far is I can’t seem to get rid of the border around the image... I have $nfborders set to borders: "0" but I still get a thin black line around the whole image. (all my images are gifs using a transparent background that makes each ‘image‘ the same size.)

Perhaps there is something over-riding it?

If anyone has any ideas, i would appreciate it.

27 Aug 2006, 2:44 PM
#42
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

The products scolling twice ? Same product 2 times ! Is there any solution for thsi problem.
see my web page on the left sidebox.

http://www.keyiflimagaza.com/index.php?main_page=index&language=en

Please help!

27 Aug 2006, 4:10 PM
#43
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: "Whats New" Scrolling Sidebox

Remzi:

The products scolling twice ? Same product 2 times ! Is there any solution for thsi problem.
see my web page on the left sidebox.

http://www.keyiflimagaza.com/index.php?main_page=index&language=en

Please help!

Goto page 4 of this thread.

27 Aug 2006, 5:55 PM
#44
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Thanks, but as a new zenner. I can't find the solution at the 4th page in this tread. Pleade , can you advise me what to do.
Thanks in advance.

27 Aug 2006, 6:12 PM
#45
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Remzi:

Thanks, but as a new zenner. I can't find the solution at the 4th page in this tread. Pleade , can you advise me what to do.
Thanks in advance.
The same problem appears also by scrolling specials . Both sideboxes ( new product and specials are showing the same product 2 times. ?????

28 Aug 2006, 12:06 AM
#46
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: "Whats New" Scrolling Sidebox

  1. where did you get those mods?
  2. what version of zen cart did you use?
  3. any other mods installed?
28 Aug 2006, 12:14 AM
#47
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: "Whats New" Scrolling Sidebox

Remzi

I can't see either of these boxes on the site for which you provided a link.

29 Aug 2006, 10:03 AM
#48
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Kuroi, hi. Thank you for your responce.I deleted the files.
I upload today the new HTML version of whats-new and now is running . The problem , showing two times the same problem is solved. I think, I made a mistake, because tpl_whats-new.php was in the 2 sideboxes files. First in the ...../includes/templates/Custom/sideboxes/ and second in ......the/includes/templates/template_default/sideboxes/. May be it was the reason?
However the problem is solved.
But now I have another problem or 2 problems:
1- In the tpl_whats_new.php file I have the value = 0 ($nfborders = @$params->borders ? $params->borders: "0";) for borders, but as you will see there is still a border showing?
2- IT's not showing the right format. Displaying all pictures incoorectly. Better to see by Please look the Ericsson Phone (Picture)?
Can you help me please. Thanks in advance. Remzi

Here is the link ( 4 th sidebos left ):
http://www.keyiflimagaza.com/index.php?main_page=index&language=en

29 Aug 2006, 11:21 AM
#49
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: "Whats New" Scrolling Sidebox

Make sure you are changing the values here:

// *** Get Parameters (check if defined, if not then fill with default values)
$nfcount = @$params->count ? $params->count : "0";          // Count : 0=All / count=limit to <count> latest newsflash (most recent)
$nfdelay  = @$params->delay ? $params->delay : "6000";      // Delay : 1000 = 1 seconds
$nfheight  = @$params->height ? $params->height : "150";    // Height : 200px
$nfborders  = @$params->borders ? $params->borders: "0";    // borders: 1
$nfpadding  = @$params->padding ? $params->padding: "0";    // padding: 2
$nfbgcolor  = @$params->bgcolor? $params->bgcolor: "";      // bgcolor: #F0F0F0

All the values in the "" near the end of each line.


These:

Parameters :
--------
delay=10000      Wait for 10 seconds  (default: 6000 => 6 seconds)
count=5          Display only the 5 most recent new products| 0 = displays all new products (default: 0 => All)
height=150       Set the minimum height of the display to avoid screen redesign...
borders=1        display a border around the new product (default : 0=no border)
padding=2        add a marge between border and text (default : 0=no padding)
bgcolor=#F0F0F0  display a border around the news product (default : empty=default background color

are just example to explain what the values do, but don't affect the code

29 Aug 2006, 12:56 PM
#50
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Thanks qhome,
I changed the right values. They are :
/ *** Get Parameters (check if defined, if not then fill with default values)
$nfcount = @$params->count ? $params->count : "10"; // Count : 0=All / count=limit to <count> latest newsflash (most recent)
$nfdelay = @$params->delay ? $params->delay : "3000"; // Delay : 1000 = 1 seconds
$nfheight = @$params->height ? $params->height : "150"; // Height : 200px
$nfborders = @$params->borders ? $params->borders: "0"; // borders: 1
$nfpadding = @$params->padding ? $params->padding: "0"; // padding: 2
$nfbgcolor = @$params->bgcolor? $params->bgcolor: ""; // bgcolor: #F0F0F0

But doesn' effect. Still displaying with a border and still the pictures are not right.

29 Aug 2006, 1:06 PM
#51
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Dear Collegues,
I found it . At line 74 was a fixed value, which is saying:

$newsflashes[$i] = '<br /><center><a class="wnImage" href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product->fields['products_id']) . '"><img src="' . DIR_WS_IMAGES . $random_product->fields['products_image']. '" alt="' . $random_product->fields['products_name'] . '" width="' . SMALL_IMAGE_WIDTH . '" height="' . SMALL_IMAGE_HEIGHT . '" *style=*"border:1px outset #000000" onmouseover="myHint.show('TT4')" onmouseout="myHint.hide()" />' . '</a><br /><a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product->fields['products_id']) . '">' . $random_product->fields['products_name'] . '</a><br />' . $whats_new_price .
....

I chanded the 1px to 0px. It's running without border. Last problem is with the images.??????

29 Aug 2006, 1:31 PM
#52
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Remzi:

Dear Collegues,
I found it . At line 74 was a fixed value, which is saying:

$newsflashes[$i] = '<br /><center><a class="wnImage" href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product->fields['products_id']) . '"><img src="' . DIR_WS_IMAGES . $random_product->fields['products_image']. '" alt="' . $random_product->fields['products_name'] . '" width="' . SMALL_IMAGE_WIDTH . '" height="' . SMALL_IMAGE_HEIGHT . '" *style=*"border:1px outset #000000" onmouseover="myHint.show('TT4')" onmouseout="myHint.hide()" />' . '</a><br /><a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product->fields['products_id']) . '">' . $random_product->fields['products_name'] . '</a><br />' . $whats_new_price .
....

I chanded the 1px to 0px. It's running without border. Last problem is with the images.??????

İnformation: If I change the Congiguration /Admnin the value of ''Image - Use Proportional Images on Products and Categories'' from 1 to 0 , all picture seems like in the whats-new sidebox. That means , this future ''Use Proportional Images on Products and Categories'' doesn't effect to the pictures in the sidebox. Am I right ?*???

29 Aug 2006, 1:50 PM
#53
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Remzi:

İnformation: If I change the Congiguration /Admnin the value of ''Image - Use Proportional Images on Products and Categories'' from 1 to 0 , all picture seems like in the whats-new sidebox. That means , this future ''Use Proportional Images on Products and Categories'' doesn't effect to the pictures in the sidebox. Am I right ?*???

How can I use this future ''''Use Proportional Images on Products and Categories'' also for the whats-new sidebox. Is it possible???

29 Aug 2006, 4:19 PM
#54
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: "Whats New" Scrolling Sidebox

Remzi:

How can I use this future ''''Use Proportional Images on Products and Categories'' also for the whats-new sidebox. Is it possible???

The What's new box was coded before ZC created that feature.. so it would take some rework of this contrib to get that to work. Might have to ask the original author to take a peak but Im not sure he's active too much these days. You can find his site at https://www.zencarttemplates.com. Or maybe others in here might like to take a crack at it.

I made a change only for a (now-deprecated) contrib that required a fix to work with product types. But unfortunately I don't have time to overtake the whole thing.

29 Aug 2006, 11:43 PM
#55
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Thanks for this border fix Remzi... Great job! I was trying to fix that as well...

Re. Image proportions etc. I don’t know if this would apply to the situation you are in, but when I scanned all my products, I saved them as gifs on a transparent background that is the same size for all the products in my catalog... It is an extra step but creates a uniform icon size for all the different sized images sizes produced within Zen-Cart...

Remzi:

Dear Collegues,
I found it . At line 74 was a fixed value, which is saying:

$newsflashes[$i] = '<br /><center><a class="wnImage" href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product->fields['products_id']) . '"><img src="' . DIR_WS_IMAGES . $random_product->fields['products_image']. '" alt="' . $random_product->fields['products_name'] . '" width="' . SMALL_IMAGE_WIDTH . '" height="' . SMALL_IMAGE_HEIGHT . '" *style=*"border:1px outset #000000" onmouseover="myHint.show('TT4')" onmouseout="myHint.hide()" />' . '</a><br /><a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product->fields['products_id']) . '">' . $random_product->fields['products_name'] . '</a><br />' . $whats_new_price .
....

I chanded the 1px to 0px. It's running without border. Last problem is with the images.??????

30 Aug 2006, 8:13 AM
#56
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Thanks Peace Freak,
it is a clever solution what you done.I tried it. It's OK now. Thanks once more. But as you mentionedi it is a one more step. For the first 10-20 products I can use your solution, but in the future my site will have some 100 pictures. In this case it will be a problem. We have to find a stable, permanent and faster solution ? Can we solve this problem by using '' HTMLarea3ImageManager'' or an other ImageManger .........?

Thank you qhome. Can you give me a clue, where is the codes for this future ''''Use Proportional Images on Products and Categories. '' Perehaps I can do something.
Thanks . Remzi

26 Oct 2006, 7:18 AM
#57
frank_lyy avatar

frank_lyy

New Zenner

Join Date:
Sep 2006
Posts:
38
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Does any one encounter problem with scrolling sidebox contribs when IH2 is installed?

I tried both "whats new" scrolling sidebox and "specials" scrolling sidebox on my site. They were both working until I installed "Image Handler2". It seems that all scrolling images got stuck because of images resizing caused by IH2. Yet, all text is still scrolling without any problem.

Can someone please tell me why this is happening?

26 Oct 2006, 10:14 AM
#58
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: "Whats New" Scrolling Sidebox

frank_lyy:

Does any one encounter problem with scrolling sidebox contribs when IH2 is installed?

I tried both "whats new" scrolling sidebox and "specials" scrolling sidebox on my site. They were both working until I installed "Image Handler2". It seems that all scrolling images got stuck because of images resizing caused by IH2. Yet, all text is still scrolling without any problem.

Can someone please tell me why this is happening?

Both boxes created before IH2 came out and don't have all the "proper" code to use IH2 properly.

10 Jan 2007, 5:09 AM
#59
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

queenfantasy:

I am havig the same problem can anyone tell us a fix for the IH2 problem with the scrolling side boxes?
Add me to the list.

Any updates coming?

12 Feb 2007, 12:48 AM
#60
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

Re: "Whats New" Scrolling Sidebox

Count me in too....nice mod, but need IH2 also....