Latest Forum Posts
Home arrow Forum
Design Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: icons

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#922
bulesz (User)
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
icons 1 Year, 2 Months ago  
Hello,

I would figure out, how show the type parameters as a little icons, as seen on your site?

Stay in the plants example

Type: "keeping"
Parameters "sunny" and "shady"

I would use a little icons as value of the parameters:
SUN image for the "sunny"
CLOUDS image for the "shady"

How can I do that?

Thanks!
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#923
bulesz (User)
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
I have found this on the VM forum:
http://forum.virtuemart.net/index.php?topic=27220.msg86037#msg86037

So here is the extension, which use the type as its flypage.

But, I dont know how to connect the type and the parameters with the icons, and where shouls I put the flypage file and the icons as well!

Please help, I am sure that it would be useful for tons of us!

Thanks for a while!
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#924
macallf (Admin)
Administrator
Admin
Posts: 653
graph
User Online Now Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
The flypage goes in ../administrator/components/com_virtuemart/templates

the icons go in ../components/com_virtuemart/shop_images/product which in this case are png's

the product type when set up has a field for the flypage, enter the file name.

The fields would be the name of the icon without the extension and the value set would be yes or no.

Has simple as that!
 
 
Mark
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#925
bulesz (User)
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
Thanks your fast reply!

I try to follow you...

So I have these:

Typename: "probetype"
Parameter: "parameter1" with "yes" and "no" values.

the product type when set up has a field for the flypage, enter the file name.

You ment the bottom of the config page of the "probetype" type page? (I did as the same way as use to on the category page)

The fields would be the name of the icon without the extension and the value set would be yes or no.

Sorry I cant follow this... You mean that the icon should be named "parameter1_yes" and parameter1_no" ?

My main questions are:
What should I put into my product flypage (I am using your great extension!) ?
Should I modify the type fly_extension code?

Could you give a exact sample with those details:

Typename: "probetype"
Parameter: "parameter1" with "yes" and "no" values
Flyextension: fly_type.php placed in the administrator/components/com_virtuemart/html/templates/
Icons: in the components/com_virtuemart/shop_image/product/ (but not sure about the names... )

Thanks a million!

( You helped me a lot, and use you extension (lightbox) so when my PayPal acc would be finished I will donate your work. Thanks again your great job! )
 
 
Last Edit: 2007/10/28 23:05 By bulesz.
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#928
macallf (Admin)
Administrator
Admin
Posts: 653
graph
User Online Now Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
The parameter names follow the icon names e.g.

new_product.png field name new_product
Downloadable.png field name downloadable

Fairly easy to follow.

So in your case the icon for your field type would be parameter1.png

To add this to your flypage you would have a new parameter of {probetype}
 
 
Mark
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#936
bulesz (User)
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
Thanks for your quick reply again!

..but not working.

http://www.nweb.hu/shopomatic/index.php?page=shop.product_details&flypage=senerit_flypage&product_id=6&category_id=1&manufacturer_id=1&option=com_virtuemart&Itemid=1

I put the parameter1.png to the referred place

and put the {probetype} tag to the product flypage, but nothing appears.

maybe you misunderstand me (I wasnt clear enough...sorry but its hard to explain, because I couldnt understand exacly the working of the type fly extension file... )

So how does the icon know that parameter1 = yes or no ?
I mean if the value of the parameter1 = no which icon would be loaded?

I would try to make my problem clear now:

1. I set the types and the parameters in the admin place
2. Make the icons due the parameter values (parameter1_yes.png and parameter1_no.png ? )
3. What should I put to the product flypage AND the type flypage ? (using your product type extension)

Thanks!

After we make it success, I would make a tutorial about it, which can be attached to the extension! I would be glad to help your work!
 
 
Last Edit: 2007/10/29 02:19 By bulesz.
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#937
macallf (Admin)
Administrator
Admin
Posts: 653
graph
User Online Now Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
It's not a yes or no to display different icons.

If the parameter is 'yes' the icon is shown, if it is 'no' the icon is not shown.

The idea was that if a certain parameter was set then an icon would be displayed to show that is was set.

If it was not set then nothing would be displayed.

The tag would go into your product_details flypage, not the product type flypage, it would go with all the other tags such as {product_name}, {product_s_desc}, {addtocart} etc.

In one of my sites, for images, I would have parameters of landscape, wildlife, macro, etc. If the parameters were set to 'yes' the icons would be shown one after the after.
 
 
Mark
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#938
bulesz (User)
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
Thanks Mark your effort!

Its clear...

But I cant get this working...

So I attached my product_flypage and the type_flypage.

I used the {probetype} tag in the product flypage, the type flypage is unmodified.
File Attachment:
File Name: type_icon.zip
File Size: 2575


So my product type details:

probetype - type
parameter1 - parameter (text - "yes;no" the values)

The parameter1.png icon is (just for sure) in the ..../shop_image/ and the ..../shop_image/product/ folder

So I discover something strange! With this setting in the IE broweser there is a blank.gif in the place of the icon! with its description! but with FF there is nothing...so I think we are heading to the correct direction...and almost there....

Here you can check it:
http://www.nweb.hu/shopomatic/index.php?page=shop.product_details&flypage=senerit_flypage&product_id=6&category_id=1&manufacturer_id=0&option=com_virtuemart&Itemid=1
 
 
Last Edit: 2007/10/29 03:13 By bulesz.
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#939
macallf (Admin)
Administrator
Admin
Posts: 653
graph
User Online Now Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
I just realised the problem! It has been a long time since I worked with this.

The icons have to go in ../shop_image/product_type/ You will have to create the sub_directory.

and your icon file should be icon_parameter1.png according to your site.
 
 
Mark
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#940
bulesz (User)
Senior Boarder
Posts: 52
graphgraph
User Offline Click here to see the profile of this user
Re:icons 1 Year, 2 Months ago  
Thanks Master!
Cool! Its working!
I will make a detailed tutorial to could help the others! When I finished, I will send it to you!

Thanks again! You are great!
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop