| Author |
Message |
safierdrgn Hangin' Around

Joined: Oct 23, 2006 Posts: 26
|
Posted:
Wed Sep 26, 2007 10:08 am |
|
I am trying to find out how I can get my Weblinks module to show more than 3 Subcategories under the main category.
I found this thread on Nukecops - it's exactly what I want, however the code is different in RavenNuke than it is on the thread. So that stumped me..and I'm stuck right at the beginning again.
Does anyone know the correct code to place to get this working correctly? Pretty please?  |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Wed Sep 26, 2007 1:57 pm |
|
I'll look at this tonight but it sort of sounds like some modifications need to be made to support that. |
|
|
|
 |
spcdata Regular


Joined: Jan 24, 2004 Posts: 81 Location: Sweden
|
Posted:
Wed Sep 26, 2007 5:25 pm |
|
Hi!
Try this:
in modules/Web_Links/index.php find this (at row 256 i think) :
| Code: | | $result2 = $db->sql_query('SELECT cid, title from '.$prefix.'_links_categories where parentid=\''.$cid.'\' order by title limit 0,3'); |
Change to:
| Code: | | $result2 = $db->sql_query('SELECT cid, title from '.$prefix.'_links_categories where parentid=\''.$cid.'\' order by title'); |
|
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Wed Sep 26, 2007 7:17 pm |
|
|
|
 |
safierdrgn Hangin' Around

Joined: Oct 23, 2006 Posts: 26
|
Posted:
Thu Sep 27, 2007 9:29 am |
|
Thank you sooo much!
I know a ton of people have been looking for that fix. I'll have to keep this one bookmarked. Hah!
Thanks again!
And you were very close on that line number! It's actually 251 |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Thu Sep 27, 2007 10:54 am |
|
| safierdrgn wrote: |
And you were very close on that line number! It's actually 251 |
Do you have version 2.10? |
|
|
|
 |
safierdrgn Hangin' Around

Joined: Oct 23, 2006 Posts: 26
|
Posted:
Mon Dec 10, 2007 12:14 am |
|
Sorry to dig up an old thread...thanks for the fix by the way! It works perfectly!
Is there a way to list the sub-categories..rather than having them all bunched up together?
I'm looking for something like this -
Main Category
Sub-category 1
Sub-category 2
Sub-category 3
Sub-category 4 |
|
|
|
 |
|
|
|
|