|
| |||||||
| Support (Version 2) Here is where we provide limited support for version 2. If you are seeking support for version 3 please post in the phpLD 3.0 Support Forum. |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Sep 2005 Location: Alabama Posts: 13 | Hi there, If this is already here somewhere I apologize. I swear I searched for the answer before posting. On the Submit Link page can the pipe and underscore... |__Whatever be removed from the Category dropdown menu? If so can you tell me what file I need to edit? Thank you! __________________ Wenchie |
| |
| | #2 |
| Join Date: Jun 2005 Posts: 350 | Hi Wenchie, No worries, this question has never been asked before this. To totally remove the category indentation, do this: Open \include\functions.php Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Regards, York Kie __________________ Greatest fear in a coder\'s world: A minute bug with correct syntax. Math Captcha - Database Backup Tool - PHP Background Image |
| |
| | #3 |
| Join Date: Sep 2005 Location: Alabama Posts: 13 | Ahhh.. thank you so much! Worked perfectly. ![]() I really appreciate your help, and I love this directory. Everything with it has gone so smoothly. I can't begin to tell you how many I have tried to work with that haven't. Great work! __________________ Wenchie |
| |
| | #4 |
| Join Date: Jun 2005 Posts: 350 | Hi Wenchie, you're most welcome. Have fun with PHPLD ![]() Regards, York Kie __________________ Greatest fear in a coder\'s world: A minute bug with correct syntax. Math Captcha - Database Backup Tool - PHP Background Image |
| |
| | #5 |
| Supporter Join Date: Jan 2006 Location: Ohio Posts: 26 | Here is a version that will list the categories as:
It is based on version 2.0.0 RC5.2 (Perhaps this and the above alternate category listings could be a feature of version 3) Code: Content visible to registered users only. __________________ Honey Run Apiaries |
| |
| | #6 |
| Join Date: Mar 2006 Posts: 1 | Hiya! I've tried both of the suggestions above and I keep getting an error: Parse error: parse error, unexpected T_STRING in /include/functions.php on line 101 I was actually wondering, since you have figured out how to get rid of the category dropdown pipeline thing and have modifed it, how to change some things. I would like to have my main categories in bold. I would also like to have it set up like Main Category -Sub Category Or something similar. I have been tinkering with this for a while and I haven't been able to effect only the Main category listing....(or only the subcat for that matter.) Any help would be great! ~Shadowess |
| |
| | #7 |
| Supporter Join Date: Feb 2006 Posts: 102 | is there an updated version of this for 3.0 or will it work out of the box? |
| |
| | #8 |
| Join Date: May 2006 Posts: 93 | Code: Content visible to registered users only. |
| |
| | #9 |
| Join Date: Jul 2006 Posts: 13 | Thanks for the MOD. Works great.... __________________ I also enjoy photography. |
| |
| | #10 |
| Mentor Supporter Join Date: May 2006 Location: San Diego, California Posts: 525 | awesome. this works great. thank you. using it on both my directories. Last edited by mmastation; 08-19-2006 at 07:27 PM. |
| |
| | #11 |
| Join Date: Oct 2005 Posts: 33 | I tried the mod and got Fatal error: Call to a member function on a non-object in /home/gamhoo/public_html/include/functions.php on line 109 which is $categs[$rs->Fields('ID')] = $previous . $rs->Fields('TITLE');/ I am using the latest directory software. Any help would be good, thanks |
| |
| | #12 |
| Join Date: Apr 2006 Location: At my PC Posts: 90 | Does anyone know how to get this to work with 3.06? 3.06 uses a different function Code: Content visible to registered users only. Code: Content visible to registered users only. |
| |
| | #13 |
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,524 | There is an error, when you call the function again withing the function: Code: Content visible to registered users only. Use this: Code: Content visible to registered users only. __________________ Please do *not* contact me for support on phpLD!! I can hardly find time to give support for my own mods, for anything else I won't.
|
| |
| | #14 |
| Join Date: Apr 2006 Location: At my PC Posts: 90 | Works great! You da man, Boby! I assumed the problem had to do with the recursion looping, but the error message had to do with memory allocation and didn't give me enough info to pinpoint the problem. |
| |
| | #15 |
| Join Date: Nov 2006 Posts: 30 | Hello All, Thanks for the mode, but it is working at user side while submiting a link, but admin side its still showing the pipes model tree structure. Anybody help me to figure out this. Regards Venkat |
| |
| | #16 |
| Join Date: Nov 2006 Posts: 5 | Thanks a lot, The mod its great |
| |
| | #17 |
| Supporter Join Date: Aug 2006 Location: Anoka, Minnesota Posts: 308 | Is this mod included in 3.11 or going to be in, 3.12? Thank you.... |
| |
| | #18 |
| Join Date: Apr 2007 Location: Epaņa Posts: 78 | I cant find this code: function get_categs_tree($db, $id) { global $tables; static $categs = array ("0" => "[Top]"); static $level = 0; $level ++; $rs = $db->Execute("SELECT ID, TITLE FROM {$tables['category']['name']} WHERE PARENT_ID = $id and SYMBOLIC <> 1 ORDER BY TITLE"); while (!$rs->EOF) { $categs[$rs->Fields('ID')] = str_repeat('|', $level -1).'|___'.$rs->Fields('TITLE'); get_categs_tree($db, $rs->Fields('ID')); $rs->MoveNext(); } $level --; return $categs; } i'm using the version 3.0.5, can someone help me? |
| |
| | #19 |
| Join Date: Apr 2007 Location: Epaņa Posts: 78 | ok, problem solved |
| |