Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
candy
Worker
Worker



Joined: Dec 21, 2004
Posts: 225
Location: Kansas City metro

PostPosted: Fri Jul 06, 2007 6:39 pm Reply with quote

i am using the downloads mod for another purpose and would like to find out how i can correctly code index.php of downloads mod so that when a download link is clicked, it opens in a new browser window.

thanks so much!
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Jul 07, 2007 7:16 am Reply with quote

candy, do a search within the index.php file and look for every reference to the following within the building of an anchor tag:

d_op=getit

and you will need to add a target="_blank" to it. This is probably best described by example:

Within RavenNuke, one of the code lines looks like this:

Code:


echo '<a href="modules.php?name='.$module_name.'&amp;d_op=getit&amp;lid='.$lid.'">'.$title.'</a>';


Changing it to this should do what you are asking:

Code:


echo '<a href="modules.php?name='.$module_name.'&amp;d_op=getit&amp;lid='.$lid.'" target="_blank">'.$title.'</a>';

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©