PHP Web Host - Quality Web Hosting For All PHP Applications NGNUKE Webmaster Resources
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
safierdrgn
Hangin' Around


Joined: Oct 23, 2006
Posts: 26

PostPosted: Wed Sep 26, 2007 10:08 am Reply with quote Back to top

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.

Only registered users can see links on this board!
Get registered or login to the forums!


Does anyone know the correct code to place to get this working correctly? Pretty please? Crying or Very sad
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Sep 26, 2007 1:57 pm Reply with quote Back to top

I'll look at this tonight but it sort of sounds like some modifications need to be made to support that.
View user's profile Send private message
spcdata
Regular
Regular


Joined: Jan 24, 2004
Posts: 81
Location: Sweden

PostPosted: Wed Sep 26, 2007 5:25 pm Reply with quote Back to top

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');
View user's profile Send private message Send e-mail Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Sep 26, 2007 7:17 pm Reply with quote Back to top

spcdata, nice!
View user's profile Send private message
safierdrgn
Hangin' Around


Joined: Oct 23, 2006
Posts: 26

PostPosted: Thu Sep 27, 2007 9:29 am Reply with quote Back to top

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
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Sep 27, 2007 10:54 am Reply with quote Back to top

safierdrgn wrote:

And you were very close on that line number! It's actually 251


Do you have version 2.10?
View user's profile Send private message
safierdrgn
Hangin' Around


Joined: Oct 23, 2006
Posts: 26

PostPosted: Mon Dec 10, 2007 12:14 am Reply with quote Back to top

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
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2010 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum