This topic is locked

Classidieds template , use png image for categories

3/18/2009 7:49:03 AM
PHPRunner General questions
jgeorgiou author

On first (listpage) there is custom code that makes (on the left of page) the categories/subcategories links so you can browse easily the ads.

I want to ask how can i change that code so the categories-link get in a png button for looking better.

J
Jane 3/19/2009

Hi,
you can change links in the ListOnLoad event on the Events tab.

Here is a sample:

$message = "<a href=\"clmain_list.php?a=search&value=1&SearchFor=".$category."&SearchOption=Contains&SearchField=Category\"><img border=0 src=\"images/your_image.png\"></a>
";

jgeorgiou author 3/19/2009

thanks for the answer...it worked but the png image showed after (down) of menu item

Is there anyway to make the menu item showed in the png image(button)?

J
Jane 3/20/2009

Hi,
I suppose you want to show button instead of link.

In this case use following code as a sample:

$message = "<input class=button type=button value=Button1 onclick=\"window.location.href='clmain_list.php?a=search&value=1&SearchFor=".$category."&SearchOption=Contains&SearchField=Category';\">
";