swf banner click count problem
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu May 21, 2009 9:16 am
swf banner click count problem
As i said in the tittle, i have a problem with flash banner count click.Click count is working properly with .jpg, .png, .gif.... but with .swf isn't. Flash banner is showing ok,Impressions count is also working,but click cout isn't
example:
Impressions Clicks
33457 of Unlimited 0 - 0.00%
joomla version is 1.5.8 and 1.5.12
example:
Impressions Clicks
33457 of Unlimited 0 - 0.00%
joomla version is 1.5.8 and 1.5.12
-
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Jul 10, 2009 3:08 pm
Re: swf banner click count problem
Same problem here.
Using joomla 1.5.11
btw & should some1 ask
I've enabled click tracking in the banners/parameters and added the click url so...should u suggest it - it's already been done but to no avail
Using joomla 1.5.11
btw & should some1 ask
I've enabled click tracking in the banners/parameters and added the click url so...should u suggest it - it's already been done but to no avail
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
To get Click counts working for flash banners in Joomla 1.5, you will need to update the code in /modules/mod_banners/helper.php as follows:
replace:
WITH:
It works for me.. Milage may vary :-)
Make sure the Destination URL is placed in the ClickURL, otherwise the flash click link will be used. Also make sure the size of the banner is placed in height and width. This will make the overlay gif render over the complete banner.
This fix should probably be added to the default Joomla package!. I modified the code based on changes that were supplied in ArtsBannersXTD for Joomla v1 and don't understand how banners could be left only partially working, when it only took me a couple of hours to figure it all out!
I also added the 'wmode = opaque' to the flash embed/object code so that dropdown menus will actually be shown above the flash code.
Hope that helps y'all!
replace:
Code: Select all
$html = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"0\" width=\"$width\" height=\"$height\">
<param name=\"movie\" value=\"$imageurl\"><embed src=\"$imageurl\" loop=\"false\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\"></embed>
</object>";
Code: Select all
/* Old Flash Code
$html = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"0\" width=\"$width\" height=\"$height\">
<param name=\"movie\" value=\"$imageurl\"><embed src=\"$imageurl\" loop=\"false\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\"></embed>
</object>";
*/
//HW: BOF New Flash Code that works with Clickthroughs, AND does not hide menus etc (WMODE)
$clickurl = $item->clickurl;
$html_flash = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"0\" width=\"$width\" height=\"$height\">
<param name=\"movie\" value=\"$imageurl\">
<param name=\"wmode\" value=\"opaque\">
<embed src=\"$imageurl\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\" wmode=\"opaque\"></embed>
</object>";
if ($clickurl != '') { //Add a GIF based clickthrough IF there is a link supplied in teh 'Click url' for this banner in the banner manager.
$html = '<div style="position:relative;z-index:1;" style="background:#fff;">'; //Add the banner clickthrough
$html .= $html_flash;
$html .= '<a href="'.$link.'" target="_blank" style="display:block;position:absolute;width:'.$width.'px;height:'.$height.'px;z-index:9999;top:0px;left:0px;border:none;background:none;"><img src="components/com_banners/x.gif" style="width:'.$width.'px;height:'.$height.'px;" alt="Banner Campaign" /></a> ';
$html .= '</div>';
} else { //Otherwise use the orignal code, so that the flash banner still goes to the right place... (instead of a blank page!)
$html .= $html_flash;
}
//HW: EOF New Flash Code that works with Clickthroughs, AND does not hide menus etc (WMODE)
Make sure the Destination URL is placed in the ClickURL, otherwise the flash click link will be used. Also make sure the size of the banner is placed in height and width. This will make the overlay gif render over the complete banner.
This fix should probably be added to the default Joomla package!. I modified the code based on changes that were supplied in ArtsBannersXTD for Joomla v1 and don't understand how banners could be left only partially working, when it only took me a couple of hours to figure it all out!
I also added the 'wmode = opaque' to the flash embed/object code so that dropdown menus will actually be shown above the flash code.
Hope that helps y'all!
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu May 21, 2009 9:16 am
Re: swf banner click count problem
i drop this code
and everything is working perfect now.thank you very much,i searched for this code more than 4 months
Code: Select all
<img src="components/com_banners/x.gif" style="width:'.$width.'px;height:'.$height.'px;" alt="Banner Campaign" />
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Hi, Sorry - I forgot to add the file x.gif - place this in the /components/com_banners/ folder and that line should work.. I am not sure how it works without it!
The banners component is good, but is missing a few simple extras to make it REALLY useful.
The banners component is good, but is missing a few simple extras to make it REALLY useful.
You do not have the required permissions to view the files attached to this post.
Last edited by petern on Thu Aug 06, 2009 12:20 am, edited 3 times in total.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu May 21, 2009 9:16 am
Re: swf banner click count problem
try without it and test if there is something different
can you explain me what is purpose of that gif
can you explain me what is purpose of that gif
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
It sits over the flash and intercepts any flash links that may be embedded in the flash.
We have a site with many flash banners that are pre-linked to jump to the owners website - however these links skip the Joomla banner count process, so the overlay gif forces the link back to the joomla banner count link (using the image), and Joomla then sends the user to the banner site via the click URL parameter.
We have a site with many flash banners that are pre-linked to jump to the owners website - however these links skip the Joomla banner count process, so the overlay gif forces the link back to the joomla banner count link (using the image), and Joomla then sends the user to the banner site via the click URL parameter.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu May 21, 2009 9:16 am
Re: swf banner click count problem
aha,i get it now.i have to check is it link url from joomla or flash,anyway it's counting clicks
could you post attach with zip file and x.gif in it,becouse i can't save it from your last post or i would make it myself
thx again for you code
could you post attach with zip file and x.gif in it,becouse i can't save it from your last post or i would make it myself
thx again for you code
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Hiya - I have placed the x.gif in a zip file in my earlier post, so you can download it!
I'm glad to share back to the Joomla community - its been good to me!
I'm glad to share back to the Joomla community - its been good to me!
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Aug 17, 2009 2:44 am
Re: swf banner click count problem
This saved my a$$, the only problem is that while using internet explorer, when you select a flash banner to add it, it does not show.
So i have to use firefox to add the flash banners or i get nothing.
thou i'm not an expert on this, i'll try to find a fix and let you know.
Regards
So i have to use firefox to add the flash banners or i get nothing.
thou i'm not an expert on this, i'll try to find a fix and let you know.
Regards
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Hiya, I assume you mean you cant see the flash banner immediately in the admin when selecting it from the dropdown list ?djrojo wrote:This saved my a$$, the only problem is that while using internet explorer, when you select a flash banner to add it, it does not show.
So i have to use firefox to add the flash banners or i get nothing.
thou i'm not an expert on this, i'll try to find a fix and let you know.
Regards
I did see a fix for this a while back, but as my customers use firefox, and with Joomla being updated so regularly (and this being core code mods) I didn't bother :-)
Good luck, and let us know though!
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Aug 17, 2009 2:44 am
Re: swf banner click count problem
Thanks,petern wrote: Hiya, I assume you mean you cant see the flash banner immediately in the admin when selecting it from the dropdown list ?
I did see a fix for this a while back, but as my customers use firefox, and with Joomla being updated so regularly (and this being core code mods) I didn't bother :-)
Good luck, and let us know though!
You are right, but i actually do not care if i can not see the selected banner in the admin, the problem is that if you use internet explorer, the banner is not being showed once posted... you get nothing, nada.
At least that's what i got.
Regards.
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Thats very strange - the adding of a banner in admin component is not related to the showing of the banner in the module, does this only happen when you apply my code changes, or was it like this in the default module as well?
Can you paste in here the flash embed code that works, and the code that does not? - or email it to me - I'll have a look..
Cheers
Pete
Can you paste in here the flash embed code that works, and the code that does not? - or email it to me - I'll have a look..
Cheers
Pete
-
- Joomla! Fledgling
- Posts: 4
- Joined: Thu Aug 20, 2009 2:46 am
Re: swf banner click count problem
This may sound very naive, but i don't seem to find "Modules", to reach /modules/mod_banners/helper.php
I'm using version 1.5.9
I see "Module Manager" under top-level "Extensions", but I don't see any mod_banners under that..
Thanks for the help in advance!
I'm using version 1.5.9
I see "Module Manager" under top-level "Extensions", but I don't see any mod_banners under that..
Thanks for the help in advance!
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Hi,
That path is the FTP path to the actual files on the server from the Joomla root folder :-)
That path is the FTP path to the actual files on the server from the Joomla root folder :-)
-
- Joomla! Fledgling
- Posts: 4
- Joined: Thu Aug 20, 2009 2:46 am
Re: swf banner click count problem
Thanks for the response! Is there a way to reach that folder through Joomla only (without FTP)?
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
There is a Joomla component that allows you to traverse and modify files that I used for a while in Joomla v1. I have not used it fro V1.5 but you can try it from http://extensions.joomla.org/extensions/102/detailsupperwestside wrote:Thanks for the response! Is there a way to reach that folder through Joomla only (without FTP)?
However if you are developing a Joomla site, I would highly recommend becoming familiar with FTP - t - the Filezilla FTP client is excellent, you will just need the server FTP login details to access the raw files and you can then move/edit them.
Good Luck!
Pete
-
- Joomla! Fledgling
- Posts: 4
- Joined: Thu Aug 20, 2009 2:46 am
Re: swf banner click count problem
Okay, I have got the FTP access. (Hopefully) the last query:
When you say: "Make sure the Destination URL is placed in the ClickURL, otherwise the flash click link will be used", should I paste the URL of the video (whose clicks I wish to track) there? I suppose this is the same URL which I entered in click URL field of x.gif, while placing it at Joomla > Components > Banner > banners. In here, I have set "Track banner click times" to yes.
Am I still missing something? I don't see the clicks-count in Joomla increasing..
When you say: "Make sure the Destination URL is placed in the ClickURL, otherwise the flash click link will be used", should I paste the URL of the video (whose clicks I wish to track) there? I suppose this is the same URL which I entered in click URL field of x.gif, while placing it at Joomla > Components > Banner > banners. In here, I have set "Track banner click times" to yes.
Am I still missing something? I don't see the clicks-count in Joomla increasing..
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Hi, the ClickURL is the destination that the banner ad should send you to when you click on it, i.e. http://www.joomla.org/upperwestside wrote:Okay, I have got the FTP access. (Hopefully) the last query:
When you say: "Make sure the Destination URL is placed in the ClickURL, otherwise the flash click link will be used", should I paste the URL of the video (whose clicks I wish to track) there? I suppose this is the same URL which I entered in click URL field of x.gif, while placing it at Joomla > Components > Banner > banners. In here, I have set "Track banner click times" to yes.
Am I still missing something? I don't see the clicks-count in Joomla increasing..
Some of my customers flash files had their own internal click link, which prior to my code changes bypassed the Joomla click counter.
The easy way to tell if its working, is hover your mouse over the banner, and if your browser footer shows the link to be something like "http://www.website.com.au/component/bannersclick/36/" (note: SEO URLS turned on!) then you should see count increments in the back end.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Sun Jun 22, 2008 8:19 am
Re: swf banner click count problem
Thanks for help us in this matter.
I have a question... I post four banners in my joomle site (www.juezyparte.com.mx). But the core you gave us, and the x.gif file... Only works with one banner for me... Do you have any idea for me petern?
Thanks in advance... and sorry about my english!!!
I have a question... I post four banners in my joomle site (www.juezyparte.com.mx). But the core you gave us, and the x.gif file... Only works with one banner for me... Do you have any idea for me petern?
Thanks in advance... and sorry about my english!!!
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
It does work on multiple swf files for me - my first thoughts are Have you added the Click URL's to all of the banners?darklordofsith wrote:Thanks for help us in this matter.
I have a question... I post four banners in my joomle site (http://www.juezyparte.com.mx). But the core you gave us, and the x.gif file... Only works with one banner for me... Do you have any idea for me petern?
Thanks in advance... and sorry about my english!!!
If you have then if you PM me a link to your website I can have a quick look maybe?
Cheers
Pete
-
- Joomla! Apprentice
- Posts: 8
- Joined: Sun Jun 22, 2008 8:19 am
Re: swf banner click count problem
Man... you are the master... It was the links... I forgot to write them in each banner.
THANX!
My site: www.juezyparte.com.mx
THANX!
My site: www.juezyparte.com.mx
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Hah! - no worries, I only know this stuff cause I have made the same mistakes!darklordofsith wrote:Man... you are the master... It was the links... I forgot to write them in each banner.
THANX!
My site: http://www.juezyparte.com.mx
Nice site BTW.. Have you thought about turning on SEF links (in the admin and the .htaccess file) though, or is it a windows server... ??
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Jul 28, 2009 7:08 pm
Re: swf banner click count problem
Huh! THANKS! it was a big pain with that swf
BTW i add loop parameter (it`s another pain with flash banners in joomla):
in string:
BTW i add loop parameter (it`s another pain with flash banners in joomla):
Code: Select all
loop=\"true\"
Code: Select all
<embed src=\"$imageurl\" loop=\"true\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\" wmode=\"opaque\"></embed>
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Good idea! - makes sure that those who forget to loop the SWF file in the flash code get looped anyhow !sendmeon wrote: BTW i add loop parameter (it`s another pain with flash banners in joomla):Code: Select all
loop=\"true\"
I hope this gets added to Joomla core! - I sent it to the proper places to get added - nothing back yet..
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Sep 15, 2009 12:11 pm
Re: swf banner click count problem
Hi! I've got another problem.
The tags that i set to each banner didn't appear in the web source code. Do you know why? or any solution? This is a great problem for Seo.
Thank you!
The tags that i set to each banner didn't appear in the web source code. Do you know why? or any solution? This is a great problem for Seo.
Thank you!
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Sep 15, 2009 12:11 pm
Re: swf banner click count problem
Oops, i misunderstood the function of the tags, sorry. Now i know what i they for...
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
LOL - yep - Its for the banner system to filter what banners to display by tag isnt it? - I've never used it.. you gotta love terminology..millan wrote:Oops, i misunderstood the function of the tags, sorry. Now i know what i they for...
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Sep 29, 2009 6:51 am
Re: swf banner click count problem
I did tried to edit the modules\mod_banners\helpers.php
However, it don't work for me. I'm using version Joomla 1.5.14.
Thanks,
Ming
However, it don't work for me. I'm using version Joomla 1.5.14.
Thanks,
Ming
-
- Joomla! Intern
- Posts: 75
- Joined: Tue Feb 21, 2006 6:09 am
Re: swf banner click count problem
Did you put the x.gif file in the right place ?mchicken wrote:I did tried to edit the modules\mod_banners\helpers.php
However, it don't work for me. I'm using version Joomla 1.5.14.
Thanks,
Ming