Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Not working anymore - Change 'Powered by CPG' link to target=_blank  (Read 4237 times)

0 Members and 1 Guest are viewing this topic.

Morpheus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Coalicion Educativa Pro Agricultura Ecologica

Hi,

I used the instructions in the FAQ tread "Change 'Powered by CPG' link to target=_blank" and was working for a while but when I recently Upgrade my gallery to 1.4.12 the fix stop working. The problem is that Im using the gallery wrapped in a joomla wbsite and when someone clik on the link the coppermine website appears inside joomla and not in a new window. If someone knows how to fix it I will be really happy. thanks in advance.
« Last Edit: August 04, 2007, 11:52:47 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Not working anymore - Change 'Powered by CPG' link to target=_blank
« Reply #1 on: August 04, 2007, 06:29:23 am »

Post a link.
Logged

Morpheus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Coalicion Educativa Pro Agricultura Ecologica
Re: Not working anymore - Change 'Powered by CPG' link to target=_blank
« Reply #2 on: August 04, 2007, 08:36:13 am »

the link to the joomla wrapper:

http://cincodias.cepae.net/index.php?option=com_wrapper&Itemid=45

the link to the gallery in full screen:

http://cincodias.cepae.net/galeria/
Logged

Nibbler

  • Guest
Re: Not working anymore - Change 'Powered by CPG' link to target=_blank
« Reply #3 on: August 04, 2007, 10:29:42 am »

I don't see any reference to external.js in your page.
Logged

Morpheus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Coalicion Educativa Pro Agricultura Ecologica
Re: Not working anymore - Change 'Powered by CPG' link to target=_blank
« Reply #4 on: August 04, 2007, 11:18:48 am »

Sorry trying to fix it I removed the modified template for the original one. Now is as is supposed to be. I made the same modification a few days ago and was working fine but afterthe upgrade it started opening in the same window. This is the code:

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/siteground4/style.css" />
<script type="text/javascript" src="scripts.js"></script>
<script type="text/javascript" src="external.js"></script>
</head><body>
<!--Wrapper begin -->
{CUSTOM_HEADER}
<div class="iecenterhack">
<div class="bg">

and this is an image of the external.js file in the gallery folder

http://cincodias.cepae.net/images/external.js.gif

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fcincodias.cepae.net%2Fimages%2Fexternal.js.gif&hash=2378a5861ff57e8d86fb548d8f74b090a35a6e2a)
Logged

Nibbler

  • Guest
Re: Not working anymore - Change 'Powered by CPG' link to target=_blank
« Reply #5 on: August 04, 2007, 11:24:00 am »

You need to update the code

Code: [Select]
if (anchor.getAttribute("href") == "http://coppermine.sourceforge.net/")

Should be

Code: [Select]
if (anchor.getAttribute("href") == "http://coppermine-gallery.net/")
Logged

Morpheus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Coalicion Educativa Pro Agricultura Ecologica
Re: Not working anymore - Change 'Powered by CPG' link to target=_blank
« Reply #6 on: August 04, 2007, 11:38:33 am »

OK ... Changed... Tested... working fine again!!!! THANKS for the great support!!! ;D ;D ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.