<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Target links problem (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Target links problem
#1423
tsimpouri (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Target links problem 1 Year, 6 Months ago Karma: 0  
Hello i have installed the programm and everything is ok the only problem that i have is that the links of the sites are not oppening in a new window but in the same is there a option that i have to make or a change in some file?

I saw that in the file functions the links are setup to open in a blank window....


Thanks
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1424
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Target links problem 1 Year, 6 Months ago Karma: 9  
Actually, it should have target="_blank" with the leading underscore on blank.

I had intended to toggle it with an option in the admin panel.. but .. I didn't

Should be pretty easy to search the functions.php file and add the underscore though
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1445
tsimpouri (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Target links problem 1 Year, 5 Months ago Karma: 0  
Hello i try that but nothing happend still opens the sites in the same window.

Thanks,
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1446
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Target links problem 1 Year, 5 Months ago Karma: 9  
If I knew the URL of you install I could browse it, and the view the HTML output, maybe spot the problem.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1449
tsimpouri (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Target links problem 1 Year, 5 Months ago Karma: 0  
Hello you can see the site on http://www.openstore.gr/allshops/

Thanks
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1450
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Target links problem 1 Year, 5 Months ago Karma: 9  
Ha ! I did it ...

The trick is to change the onclick.. location to onclick javascript:window.open

Edit include/function.php, near line # 1234, locate

Code:

<a target=\"blank\" href=\"" . $sites_array['site_url'] . "\" onclick=\"location.href='./out.php?ID=" .$sites_array['site_id'] ."';return false;\">";
Change to
Code:

<a target=\"blank\" href=\"" . $sites_array['site_url'] . "\" onClick="javascript:window.open(\'out.php?ID=" .$sites_array['site_id'] ."');return false;\">";
Near line 1249, locate
Code:

$htmlsrc .= "<a class=\"siteName\" href=\"" . $sites_array['site_url'] . "\" onclick=\"location.href='./out.php?ID=" . $sites_array[site_id] ."';return false;\">";
Change to
Code:

$htmlsrc .= "<a target=\"blank\" class=\"siteName\" href=\"" . $sites_array['site_url'] . "\" onClick=\"javascript:window.open(\'out.php?ID=" .$sites_array['site_id'] ."\');return false;\">";
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

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