Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Add A Site from within a category (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Add A Site from within a category
#250
Dewed (User)
Administrator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Add A Site from within a category 7 Months, 1 Week ago Karma: 7  
You appear to have the version with a slight glitch in the top navigation menu, I think you'll see the bottom add site link works..

Edit /themes/X/navbar.top.php where X is the theme you use , note the subtle change made below to the "if ($PID" line

Code:

$html .= "href=\"$gl[BasePath]/directory/add.html"; if ($usesession == "yes"){$html .= "$and" . session_name() . "=". session_id() . "";$and ="&";} if ($PID > "0"){$html .= $and."PID=" . $PID . "\"";} $html .= "\">Add A Site</a></td>";
The preselected category issue.. well thats just stupidity on my part Edit include/add.php Locate the lines that read ...
Code:

$htmlsrc .= drop_cats($PID, 0, "", $cats); $htmlsrc .= $cats;
There are 2 "if { }" blocks above that, just remove them, or comment them out. If it still doesnt work, make sure you have this line, near the top of the file
Code:

$PID = mysql_escape_string($_GET['PID']);
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Add A Site from within a category
jnasta 2008/05/30 18:54
    thread link
thread linkthread link Re:Add A Site from within a category
Dewed 2008/05/31 09:00
    thread link
thread linkthread linkthread link Re:Add A Site from within a category
fattymattybrewing 2008/06/04 09:58
    thread link
thread linkthread linkthread link Re:Add A Site from within a category
jnasta 2008/06/04 10:46
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008