Member Avatar

Hi, I have created a function that searches for a category in a category tree object and returns all the paths for it as an array of strings, please advice how I can improve it ? the result im getting now is : ["vehicles",["cars","mercedes"],["trucks","mercedes"],["motorcycles","BMW"]] i need it in one dimesional array like this : ["vehicles","cars","mercedes","trucks","mercedes","motorcycles","BMW"] here is also a plunker url for the same code im trying t solve : [Click Here](http://plnkr.co/edit/JOH63BuL55HgEtEYnVjd?p=preview) thanks in advance, please advice. var categories = {category:"vehicles",children:[ {category:"cars",children:[{category:"mercedes",children:[]}]}, {category:"trucks",children:[{category:"mercedes",children:[]}]}, {category:"motorcycles",children:[{category:"BMW",children:[]}]} ]}; function getnodes(nodes) { var arr=[]; if (!nodes.children.length) return nodes.category; else{ arr.push(nodes.category); for(var i =0 ; …

Member Avatar
+0 forum 1
Member Avatar

So I have a few concerns about the new Categories after a while of using them and I thought this would be the best way to express them. I have noticed that it seems to be a little more difficult to navigate the forums and theres a few reasons I believe this. **Issue:** Navigation Bar on the homepage doesn't appear when you're in a sub category (must go back to home if you want to choose another category) **Suggestion for Fix:** Showing the list on every page could solve this easily. **Issue:** I'm not too sure if this is occurring …

Member Avatar
+0 forum 16
Member Avatar

hello as I could have and I Categories subcategory. PHP For example: Categories - Action / Horror / Comedy series - to be Category Tv Series - Arron / Fringe / and so appear in episodic - Arron / Fringe Help me please thank you Here's what's Codu Category: <?php echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>"; echo "<html xmlns='http://www.w3.org/1999/xhtml'>"; echo "<head>"; echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />"; echo "<title>Filme Online Gratis | www.Filme-Free.eu!</title>"; echo "<link href='".pagrindinis."stilius/bliumt/css/stilius.css' rel='stylesheet' type='text/css' />"; echo "<link href='".pagrindinis."stilius/bliumt/css/title.css' rel='stylesheet' type='text/css' />"; echo "<script src='".pagrindinis."stilius/bliumt/js/title.js' type='text/javascript' language='javascript'></script>"; ?> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="<?php …

Member Avatar
+0 forum 4
Member Avatar

. Maybe you can help on a WindowsLiveMail (WLM) problem - ?? ----------------------------------------------------- . I put my category name in to the "to" or "cc" box - and then find that only a few - sometimes none - of the contacts in the category are are actually on the eMail "to" or"cc" list - as checked in the OutBox or as actually sent (as seen in "sent items"). . I go to "contacts" - click on the category - and see the COMKPLETE CORRECT list of names that I had included in it. . I do an edit on the …

Member Avatar
+0 forum 2
Member Avatar

Can any one help me to know about the api which will give the full list of amazon categories.

Member Avatar
+0 forum 2
Member Avatar

**I'm beginner of Php .. I Develop my first dynamic website -> http://wwww.afrogfx.com if you look at my sidebar you will see categories list my problem located here if i create sub sub categories like that** CAT A - SUB CAT A-1 - SUB CAT A-2 -- SUB CAT A-3 ( problem Here ) CAT B - SUB CAT B-1 - SUB CAT B-2 - SUB CAT B-2-a -- SUB CAT B-2-b ( problem Here ) --- SUB CAT B-3 ( problem Here ) categories list code <?php mysql_select_db($db_name, $conn); // Change for your database $query_Recordset1 = "SELECT catid,catname,parentid FROM …

Member Avatar
+0 forum 1
Member Avatar

Hi I'm using Auctionpress to make a ebay like website. I have over 300 categories you can list an item in. When user is listing a item it only gest a list box with all the categories..... and then has to go throught all them to find the right one. Instead of that, I want the user to first see all the top parent categories, when selects one gets all the child categories in it, and so forth, until he gets to final category.... just like in ebay.... i was looking into the code and found this ` // LOOP …

Member Avatar
+0 forum 2
Member Avatar

Hi, I'm developing a blog that will have categories. I want to be able to store blog posts in more than one category. My problem is i am not sure how to go about it. I have a table called posts: CREATE TABLE `posts` ( `post_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_uid` int(10) unsigned NOT NULL COMMENT 'user uid', `category_ids` varchar(255) NOT NULL COMMENT 'each category is seperated by a comma', `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `post_modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'date post was modified', `post_status` varchar(10) NOT NULL COMMENT 'publish = publish post | …

Member Avatar
+0 forum 2
Member Avatar

Hi i have 2 files one is Left.php which is is getting categories of product...code is [CODE] <?php require('Connection.php'); $query ="select distinct(P_Category) from tblProducts_info"; $result = mysql_query($query); if(!$result) { die('echo invalid query:,mysql_error()'); } else { if(mysql_num_rows($result)>0) { while($rows= mysql_fetch_array($result)) { $P_Category = $rows['P_Category']; $cat_List=""; $cat_List = "<li class=\"odd\"><a href=\"services.html\"?P_Category=$P_Category>$P_Category</a></li> "; }} } ?> [/CODE] another file is main.php where i include above file.... [CODE] <?php include('Breaks/Left.php'); ?> [/CODE] But the problem is i m only able to see one categorie in my page.....and i want to see all categories in page... Hope somebody will help me... Regards.... Farhad

Member Avatar
+0 forum 3
Member Avatar

Hi.. Related Posts for wordpress thesis blog.. I need related posts by categories. But not in ul and li , i need full post show in related post. Just like home page posts.. I think you understand. thanks waiting

Member Avatar
+0 forum 5
Member Avatar

I have been playing with some code but had little success, i have hacked it quite a lot. Before i started removing things from the form, the code worked and it was to add products to a list to be displayed. I am working on a separate page but only want a certain category to be displayed at a time. Using the options from the drop down menu will decided which category will be displayed. I know what i want to do but not entirely sure how. Any help would be great. [CODE] <?php if (isset($_POST['category'])) { $productlist = ""; …

Member Avatar
+0 forum 1

The End.