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: Tue Oct 28, 2014 11:14 am Reply with quote

If you are running kcfinder script like me then this trick is for you. If not then u already have this field as default in RavenNuke.

In my case I do have kcfinder(last version) installed working properly without any issue but I noticed I wanted to have another field to create an external link. in the beginning I thought it was gonna be complicated but actually it wasn't. If there is any other method to do this. I would like to know from you.

Files to modify:

modules/Downloads/admin/DownloadAdd.php
modules/Downloads/admin/DownloadModify.php
modules/Downloads/language/lang-english.php

Open DownloadAdd.php

Search for

Code:
echo '<tr><td bgcolor="' , $bgcolor2 , '">' , _DL_URL , ':</td><td><input type="text" readonly="readonly" onclick="openKCFinder(this)" name="url" size="50" maxlength="255" value="Click here and select a file double clicking on it" style="width:600px;cursor:pointer" /></td></tr>';


Replace with

Code:
echo '<tr><td bgcolor="' , $bgcolor2 , '">' , _DL_URL , ':</td><td><input type="text" readonly="readonly" onclick="openKCFinder(this)" name="url" size="50" maxlength="255" value="Click here and select a file double clicking on it" style="width:600px;cursor:pointer" /></td></tr>';
echo '<tr><td bgcolor="' , $bgcolor2 , '">' , _DL_URLE , ':</td><td><input type="text" name="url2" size="50" maxlength="255" value="" /></td></tr>';


Open DownloadModify.php

Search for

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>';


Replace with

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>';
echo '<tr><td bgcolor="' , $bgcolor2 , '">' , _DL_URLE , ':</td><td><input type="text" name="url" value="'
   . htmlspecialchars($lidinfo['url'], ENT_QUOTES, _CHARSET) . '" size="50" maxlength="100" /><a href="' , $nukeurl , '/' , $lidinfo['url'] , '" target="new">' , $checkURL , '</a></td></tr>';


Open lang-english.php

Search for

Code:
if (!defined('_DL_URL')) define('_DL_URL', 'URL');


Replace with
Code:

if (!defined('_DL_URL')) define('_DL_URL', 'URL');
if (!defined('_DL_URL2')) define('_DL_URLE', 'URL2');


I did all languages as well because there isn't any text to translate.

Note: This has been tested and it is working fine. If you have any issue let me know.

That's all folks! Very Happy

This is the best secure download module for Ravennuke so far thanks to Montego and nuken, etc...
 
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-bunch
linear-bunchlinear-bunch