Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 75
2 members and 73 guests
foo7tjtdallergp, health46ev26
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Modules

Reply
 
LinkBack Thread Tools Display Modes
Web Links Problem (v6.5) : Add Link Page
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Apr 2003
Web Links Problem (v6.5) : Add Link Page - 05-01-2003, 04:38 AM

Hi there,

I've successfully installed v6.5, all seems to be going very well apart from one very small but annoying problem with Web Links.

If I add a Category called 'Advertising'
then a second Category called 'Marketing'

then a sub category of 'Advertising' called 'Free'

When the pulldown menu on the 'Add link' page populates it populates like so:

<option>Advertising
<option>Marketing
<option>Advertising/Free

How can I tweak this so that the pulldown menu sorts alphabetically and not by the order in which they all went into the database.

virtual beer to all that can offer any help

Thanx
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
05-01-2003, 09:30 AM

In admin/modules/links change line 157 from:
Code:
        $result2=sql_query("select cid, title, parentid from ".$prefix."_links_categories order by title", $dbi);
to:
Code:
        $result2=sql_query("select cid, title, parentid from ".$prefix."_links_categories order by title ASC", $dbi);
You could also run a search and replace in that file, search for:
Code:
order by title"
replace with:
Code:
order by title ASC"
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Apr 2003
05-01-2003, 12:11 PM

Won't this only work for the Admin area?
For the front end I have found a line (162) in
/modules/Web_Links/index.php

Code:
    	
$result2=sql_query("select cid, title, parentid from ".$prefix."_links_categories order by parentid,title", $dbi);
    while(list($cid2, $ctitle2, $parentid2) = sql_fetch_row($result2, $dbi)) {
    		if ($parentid2!=0) $ctitle2=getparent($parentid2,$ctitle2);
    	    echo "<option value=\"$cid2\">$ctitle2</option>";
changing
Code:
parentid,title
to
Code:
parentid, title ASC
doesn't appear to work?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
05-01-2003, 12:21 PM

Yes it was meant for the admin section, if it's your site (and i assume it is since you're editing files) you would add links through the admin section and not submit them like normal users do so your categories would be listed in alphabetical order like you wanted.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Apr 2003
05-01-2003, 12:28 PM

I am providing ALL visitors to the site with the ability to add links to the Web Links directory.

I think I might just stick to several top-level categories rather than sub-categories, might make things easier!

Just looks a bit messy when the pulldown menu populates as:

Affiliate Programs
Marketing
Affiliate Programs/Pay-per-Click
Web Design
Marketing/Site Submission
Affiliate Programs/Pay-per-Sale

etc....
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to add an html page with a link in main menu Clarion Open topics 2 03-17-2005 04:15 PM
Add activation link to last page of registration mikem FAQ/Fixes 0 08-26-2003 12:05 PM
scrolling links block problem sweetquads Nuke 6.5 to 6.9 - Blocks 0 06-11-2003 03:25 PM
fiBlack 3d Avatar Link (Forum image) link - Problem exxxpress Theme packs 6 05-20-2003 11:09 AM
HOw to: Link one content page to another content page? IACOJ Purged Topics 5 02-12-2003 02:58 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31