» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 51
1 members and 50 guests
koligansis
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Web Links Problem (v6.5) : Add Link Page within the Nuke 6.5 to 6.9 - Modules forums, part of the PHP-Nuke 6.5 to 6.9 category; Hi there, I've successfully installed v6.5, all seems to be going very well apart from one very small ...



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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2003, 04:38 AM
Junior Member
 
Join Date: Apr 2003
Posts: 3
Web Links Problem (v6.5) : Add Link Page
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
  #2 (permalink)  
Old 05-01-2003, 09:30 AM
Moderator
 
Join Date: Jan 2003
Posts: 338
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
  #3 (permalink)  
Old 05-01-2003, 12:11 PM
Junior Member
 
Join Date: Apr 2003
Posts: 3
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
  #4 (permalink)  
Old 05-01-2003, 12:21 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
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
  #5 (permalink)  
Old 05-01-2003, 12:28 PM
Junior Member
 
Join Date: Apr 2003
Posts: 3
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


All times are GMT -5. The time now is 08:28 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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