Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Sun Dec 16, 2012 10:31 pm Reply with quote

When I want to modify one of the download and then I click modify I got this error

ERROR: This URL is already listed in the Database!

Shocked

Let me know if there is any solution, thanks in advance.
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Dec 18, 2012 12:44 pm Reply with quote

Were you trying to change the URL for that Download? I don't get this error on any of my Downloads without changing the URL.

If you change the URL, you cannot have two Downloads pointing to the same Download file by design.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Wed Dec 19, 2012 4:58 am Reply with quote

Thanks for your answer montego. I found already the problem.

When I modify the file I must point to the right direction again so I don't get this error. I think it is an issue with kcfinder but I will try to fix it.
 
View user's profile Send private message Visit poster's website
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Tue Dec 25, 2012 12:17 am Reply with quote

You will need to add the kcfinder code to the modules/Downloads/admin/DownloadModify.php file too.

_________________
Tricked Out News 
View user's profile Send private message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Mon Jan 14, 2013 9:08 pm Reply with quote

Hi Montego

I had already that code in DownloadModify.php

Code:
include_once 'header.php';
title($pagetitle);
DLadminmain();
echo '<br />';
$_SESSION['KCFINDER'] = array();
$_SESSION['KCFINDER']['disabled'] = false;
echo '<script type="text/javascript">
function openKCFinder(field) {
    window.KCFinder = {
        callBack: function(url) {
            window.KCFinder = null;
            field.value = url;
        }
    };
    window.open("modules/Downloads/kcfinder/browse.php?type=files&dir=files", "kcfinder_textbox",
        "status=0, toolbar=0, location=0, menubar=0, directories=0, " +
        "resizable=1, scrollbars=0, width=800, height=600"
    );
}
</script>';



But it doesn't work. Shocked
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Jan 15, 2013 6:38 pm Reply with quote

hicux,
That was nuken who responded to you, not me. Unfortunately I have not worked with kcfinder at all, so not the best person to help you on this. Sorry. Sad

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Tue Jan 15, 2013 7:42 pm Reply with quote

You will also need to modify the following line:
Code:

echo '<tr><td bgcolor="' . $bgcolor2 . '">' . _DL_URL . ':</td><td><input type="text" name="url" value="'
   . htmlspecialchars($lidinfo['url'], ENT_QUOTES, _CHARSET) . '" size="50" maxlength="100" />' . $checkURL . '</td></tr>';

to:
Code:

echo '<tr><td bgcolor="' . $bgcolor2 . '">' . _DL_URL . ':</td><td><input type="text" readonly="readonly" onclick="openKCFinder(this)" name="url" value="'. $lidinfo['url'] . '" size="50" maxlength="255" style="width:400px;cursor:pointer"> <a href="' . $nukeurl . '/' . $lidinfo['url'] . '" target="new">' . $checkURL . '</a></td></tr>';

_________________
Tricked Out News 
View user's profile Send private message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Thu Jan 17, 2013 7:43 am Reply with quote

Very Happy This was the last piece of puzzle I needed to finish it. Thanks a lot nuken, U always amaze me!.

Now when I click on modify I see the right path to the file.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunchlinear-bunch