Advanced Link Administration


The Web Links administration module provides a couple other advanced functions, which are available as links at the top of the Web Links administration page. The first, Clean Links Votes, simply clears out the user ratings for Web links, resetting every link's score back to zero. You can use this if you've recently added a bunch of new links and don't want older links that have already been rated to be the only ones showing up on the Most Popular links list that users can access within the Web Links module.

The second, Validate Links, doesn't do quite what you think. It doesn't run out and make sure that every link in your database is real and valid; all it does is make sure that your links look like a valid link. That may not be its intended purpose, but that's what it does. For example, check out Figure 30.4, where I've asked PHP-Nuke to validate three links. Two of them are properly formatted (they start with http://) links using bogus domain names; the third is improperly formatted (doesn't start with http://), and the fourth is using a completely bogus URL (www.steaks.prpogo, which isn't a legitimate domain name). Although none of the sites is real (the domain names aren't even registered), only the badly formatted one shows up with any problems.

Figure 30.4. Validating Web links.


While the error message shown implies that PHP-Nuke is actually checking to see if it can get a numeric Web site address from the URL provided, it is, in fact, doing no such thing, so you can't rely on it to automatically find broken links for you.

Sidebar . FAQ

I want my Web Links module to be open to anonymous users, but I want only registered users to be able to submit links. How do I do it?

You need to reprogram PHP-Nuke because it doesn't work like that by default. You can always open the module to anonymous users and just ignore any links submitted by anonymous users. Remember that you get to review submitted links before they go into the database for other users to see.

Half my Web links don't work, but the PHP-Nuke verification shows that they're all okay. What gives?

Dunno. I suggest checking your links yourself; I'm not sure what PHP-Nuke's "verification" process does (as I discussed in this topic); it'll show obviously bad links as those that work correctly.




    PHP-Nuke Garage
    PHP-Nuke Garage
    ISBN: 0131855166
    EAN: 2147483647
    Year: 2006
    Pages: 235
    Authors: Don Jones

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net