>>  Site Map >>  Forums >>  Modules 7x

Forum module - topics in forum:



Modules 7x - Discussions regarding PHP-Nuke Modules. 7x



Web Links ~ Multiple URL entry

Okie dokie... where is the setting that disallows an URL to be added to more than one category in the 'web links'.

I need to add a link for a website to more than one category but error messages pop up telling me the link is already in the directory...

Cheers !!






Gawd knows.

Why not trick it by altering the url slightly then editing it to the correct 1 after. Laughing






lol... oookay..... grrr its anoying me now though.

There must be a bit in the coding thats says check URL blah blah blah....

where are all the nukie heads!!






ok... modules/web_links/admin/index.php

I can see where it does it but dont know what to remove...

($numrows>0),


or the whole section?






visionofheaven Wrote: :

where are all the nukie heads!!


Not around here, that's for sure. Confused

Anyway, my weblinks admin file shows the following.

Code: :
function LinksAddLink($new, $lid, $title, $url, $cat, $description, $name, $email, $submitter) {
    global $prefix, $dbi;
    $result = sql_query("select url from ".$prefix."_links_links where url='$url'", $dbi);
    $numrows = sql_num_rows($result, $dbi);
    if ($numrows>0) {
   include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>";
   CloseTable();
   echo "<br>";
   OpenTable();
   echo "<br><center>"
       ."<font class=\"option\">"
       ."<b>"._ERRORURLEXIST."</b><br><br>"
       .""._GOBACK."<br><br>";
   CloseTable();
   include("footer.php");
    } else {
/* Check if Title exist */
    if ($title=="") {
   include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>";
   CloseTable();
   echo "<br>";
   OpenTable();
   echo "<br><center>"
       ."<font class=\"option\">"
       ."<b>"._ERRORNOTITLE."</b><br><br>"
       .""._GOBACK."<br><br>";
   CloseTable();
   include("footer.php");
    }
/* Check if URL exist */
    if ($url=="") {
   include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>";
   CloseTable();
   echo "<br>";
   OpenTable();
   echo "<br><center>"
       ."<font class=\"option\">"
       ."<b>"._ERRORNOURL."</b><br><br>"
       .""._GOBACK."<br><br>";
   CloseTable();
   include("footer.php");
    }
// Check if Description exist
    if ($description=="") {
   include("header.php");
   GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>";
   CloseTable();
   echo "<br>";
   OpenTable();
   echo "<br><center>"
       ."<font class=\"option\">"
       ."<b>"._ERRORNODESCRIPTION."</b><br><br>"
       .""._GOBACK."<br><br>";
   CloseTable();


Should imagine removing the /* Check if URL exist */ function would do it.






cool.... will that have any knock on effects in the DB though?






very strange.... still told me URL existed, only added one URL yet link count has gone up by two.






visionofheaven Wrote: :
very strange.... still told me URL existed, only added one URL yet link count has gone up by two.


And you commented out the whole function?






Yup, tried variations too on other bits but it either does sweet fanny adams or breaks the site.

I've told the people they can't have more than one URL or to refer to pages rather than root.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS