3afooor Posted February 18, 2004 Posted February 18, 2004 hi all how can i remove the categories and put instade of them a flash mnue ?????? which files should i change and how can i add my mnue ?? :D
fishy Posted February 18, 2004 Posted February 18, 2004 open includes/colum_left.php and: 1. remove: if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } and 2. paste your menu html there. the other boxes in includes/colum_left.php are within <tr><td></td></tr> tags, so put your menu in between <tr> tags. best
3afooor Posted February 19, 2004 Author Posted February 19, 2004 waht about if i have two languages ?? how can i swich between then one for the engish and one for arabic :)
fishy Posted February 19, 2004 Posted February 19, 2004 you could always sniff what langauge the user is using on their browser and then based upon that show english or arabic.
3afooor Posted February 19, 2004 Author Posted February 19, 2004 thanks alot but can u tell me how te choose the language what is the code should be used :??:(
3afooor Posted February 21, 2004 Author Posted February 21, 2004 hi fishy i didnt understand what u said here ::: "2. paste your menu html there. the other boxes in includes/colum_left.php are within <tr><td></td></tr> tags, so put your menu in between <tr> tags. " should i paste my html in the colum_left.php so just write <tr><td></td></tr> then paste the code in between ??? in this file or in other files plz help
YorkshireSteve Posted February 21, 2004 Posted February 21, 2004 One issue with replacing the menu and adding a hand-coded Flash menu would be that you'll need to update it every time you add a new category. I don't use flash, so I wouldn't know, but can you not pass it some parameters on-the-fly? Such as a string of categories based on osCommerce's 'cPath'? If I were calling an external file to generate my menu, I'd have to tell it what needs to be in the menu. If the external file was a PHP file, I'd probably use something like: menu.php?category1[]=Hardware,1&category1[]=Software,2&category1=DVD%20Movies,3&category2=Action,2_18&category2=Simulation,2_19&category2=Strategy,2_20&selected=2_19 So instead of boxes/categories.php generating a box, it would gerenrate the query string to pass the the external file. The query string above would give me 2 arrays: category1 => Hardware,1 Software,2 DVD Movies,3 category2 => Action,2_18 Simulation,2_19 Strategy,2_20 By using these arrays, I have the category name and also the cPath for the link, seperated by a comma. I have one further variable, $selected, which tells me which page is currently loaded and should be shown in the menu in bold, color etc. Just a though! Steve.
3afooor Posted February 23, 2004 Author Posted February 23, 2004 hi thanks alot my frind now it is ok u can c it http://gulfgate.us/catalog but now how if i have two mnue arabic and english how can i do it theat in the english page the english mnue and in the arabic page the arabic mnue ???
YorkshireSteve Posted February 23, 2004 Posted February 23, 2004 All you would need to do is pass the variable $language_id to your script, in the same way you pass everything else.
3afooor Posted February 23, 2004 Author Posted February 23, 2004 :( i dont know how but i will search i just make a table for the new mnue and paste the java code to make the hover buttons :( thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.