banner ads module linking problem

Get help with installation and running official modules for phpwcms here. Please do not post bug reports or feature requests here.

Re: banner ads module linking problem

Postby lady_witchcraft » Fri Jul 30, 2010 02:11

thanks oliver, for the link, but the flash contains the clicktag already :?

problem stays the same, no function, no link behind the nice banner ...

greetz & thx for possible support in advance,
claudia
... it's not bad luck, it's a bug ...
User avatar
lady_witchcraft
 
Posts: 94
Joined: Sun Nov 14, 2004 20:19
Location: Austria

Re: banner ads module linking problem

Postby Oliver Georgi » Fri Jul 30, 2010 12:22

maybe there is a nother problem with JavaScript. Cannot say without visiting the domain and see myself.
Oliver Georgi | phpwcms Developer
Hegerplatz 7, 06846 Dessau, Germany
phpwcms | webverbund.de | LinkedIn | XING | Facebook | Twitter | Get DropBox
User avatar
Oliver Georgi
Site Admin
 
Posts: 7049
Joined: Fri Oct 03, 2003 22:22
Location: Dessau

Re: banner ads module linking problem

Postby lady_witchcraft » Fri Jul 30, 2010 13:07

thx for your support in advance, url is on the way via PM!

greetz, clau
... it's not bad luck, it's a bug ...
User avatar
lady_witchcraft
 
Posts: 94
Joined: Sun Nov 14, 2004 20:19
Location: Austria

Re: banner ads module linking problem

Postby Oliver Georgi » Fri Jul 30, 2010 15:33

Achte darauf, dass Du keine absolute URL abfängst. Im Beispiel wird auf http: geprüft. Das gibt es aber nicht.

So müsste es gehen:
Code: Select all
on (release) {
  if (_root.clickTag.substr(0,9) == "index.php") {
    getURL(_root.clickTag, _root.clickTarget==undefined ? "_blank" : _root.clickTarget);
  }
}
Oliver Georgi | phpwcms Developer
Hegerplatz 7, 06846 Dessau, Germany
phpwcms | webverbund.de | LinkedIn | XING | Facebook | Twitter | Get DropBox
User avatar
Oliver Georgi
Site Admin
 
Posts: 7049
Joined: Fri Oct 03, 2003 22:22
Location: Dessau

Re: banner ads module linking problem

Postby lady_witchcraft » Fri Jul 30, 2010 17:46

you're my heeeeerroooooooo :oops:

thx a lot oliver, now the script within the banner works fine!
mysterious thing! :roll:

wish you a relaxing weekend, and I doubt this was
the last question I had this weekend :-)

greetz & many thanks,
claudia
... it's not bad luck, it's a bug ...
User avatar
lady_witchcraft
 
Posts: 94
Joined: Sun Nov 14, 2004 20:19
Location: Austria

Re: banner ads module linking problem

Postby Oliver Georgi » Sat Jul 31, 2010 08:35

OK, to make it perfect we do a general test against clickTag Var:
Code: Select all
if(_root.clickTag != undefined) {
  on (release) {
    // only needed if you want to allow relative links (of your own site) only
    // if (_root.clickTag.substr(0,9) == "index.php") {
    getURL(_root.clickTag, _root.clickTarget==undefined ? "_blank" : _root.clickTarget);
   // }
  }
}


Then nothing should happen if the clickTag var is not defined.
Oliver Georgi | phpwcms Developer
Hegerplatz 7, 06846 Dessau, Germany
phpwcms | webverbund.de | LinkedIn | XING | Facebook | Twitter | Get DropBox
User avatar
Oliver Georgi
Site Admin
 
Posts: 7049
Joined: Fri Oct 03, 2003 22:22
Location: Dessau

Previous

Return to phpwcms Modules English

Who is online

Users browsing this forum: No registered users and 1 guest