Not working anymore - Change 'Powered by CPG' link to target=_blank Not working anymore - Change 'Powered by CPG' link to target=_blank
 

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]

Main Menu

Not working anymore - Change 'Powered by CPG' link to target=_blank

Started by Morpheus, August 04, 2007, 02:23:58 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Morpheus

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.



Nibbler


Morpheus

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:

<!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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcincodias.cepae.net%2Fimages%2Fexternal.js.gif&hash=2378a5861ff57e8d86fb548d8f74b090a35a6e2a)

Nibbler

You need to update the code


if (anchor.getAttribute("href") == "http://coppermine.sourceforge.net/")


Should be


if (anchor.getAttribute("href") == "http://coppermine-gallery.net/")

Morpheus

OK ... Changed... Tested... working fine again!!!! THANKS for the great support!!! ;D ;D ;D