View Full Version : Category Dropdown - Submit Page
Wenchie
09-14-2005, 04:05 AM
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!
yktan
09-14-2005, 07:06 AM
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:
Content visible to registered users only.
Replace with:
Content visible to registered users only.
This is based on PHPLD Rev 76. If you have an older version, the function might look slightly different but I'm sure you can implement the changes just as well.
Regards,
York Kie
Wenchie
09-14-2005, 08:32 AM
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!
yktan
09-14-2005, 09:40 AM
Hi Wenchie, you're most welcome. Have fun with PHPLD :)
Regards,
York Kie
tarheit
03-02-2006, 01:45 PM
Here is a version that will list the categories as:
Category1 > Sub1
Category1 > Sub2
Category2
Category3 > Sub1 > Sub1
Category3 > Sub1 > Sub2
etc...
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)
Content visible to registered users only.
-Tim
Shadowess
03-05-2006, 01:31 AM
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
fsmedia
03-22-2006, 06:41 AM
is there an updated version of this for 3.0 or will it work out of the box?
alang
05-23-2006, 02:37 PM
Content visible to registered users only.
is this work with the latest 3.05 version? I'd checked the code is slightly different.
CyberGrenade
07-06-2006, 06:47 PM
Thanks for the MOD. Works great....
mmastation
08-19-2006, 07:25 PM
awesome. this works great. thank you. using it on both my directories.
jharri26
09-07-2006, 05:08 PM
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
Dudley
10-01-2006, 03:58 AM
Does anyone know how to get this to work with 3.06?
3.06 uses a different function
Content visible to registered users only.
I tried modifying it in a similar manner to tarheit's example, but it doesn't work and causes a fatal error. Here is the modified code that does NOT work. What am I doing wrong?
Content visible to registered users only.
I don't see what the $previous variable is supposed to do in tarheit's example, because a value is never assigned to it. It appears like it is supposed to pick up the main category name, but it is never assigned.
There is an error, when you call the function again withing the function:
Content visible to registered users only.
you are using the first parameter ($db) wrong, that is a deprecated param.
Use this:
Content visible to registered users only.
Dudley
10-01-2006, 02:41 PM
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.
technomatters
12-01-2006, 12:11 PM
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
Thanks a lot, The mod its great :D
slincoln
03-16-2007, 02:48 AM
Is this mod included in 3.11 or going to be in, 3.12?
Thank you....
alexito
06-10-2007, 12:15 PM
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?
alexito
06-26-2007, 05:04 PM
ok, problem solved
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.