homepage Welcome to WebmasterWorld Guest from 54.166.228.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
Manually going through Joomla Banners
Need to make sure that the affiliate code is working
cmendla




msg:4159851
 3:47 pm on Jun 26, 2010 (gmt 0)

I've been playing with the standard Joomla 1.5.x banners. One of the things I'm doing is putting specific products from a specific affiliate program. (Not sure if I can memtion the affiliate or even if it matters.). The affiliate code pulls in the image and the appropriate links. It seems to work pretty well.

I'm cherry picking about a dozen or so items for each site.

The problem I have is that I know that eventually the items will no longer be available. I don't have any easy way of validating that the code is still pointing to a valid item.

What I'm trying to do is find a way to simply cycle through the existing banners to see if they are showing the products correctly so I can identify and remove obselete products. I've looked through the banner management products in the joomla extensions but havent found anything that looks like it could work.

I think I could probably do a loadposition for an administrator only article and make one call for each banner. That isn't ideal but it might work. I'm looking for something a bit easier.

thanks

chris

 

ergophobe




msg:4160674
 2:06 pm on Jun 28, 2010 (gmt 0)

Do you mean to automatically check or just cycle through and do a visual check yourself?

If you mean the later, I just took the script portion that cycles through the banners, but instead of randomizing, it iterates through all of them and displays them all on a "test-banner.php" page. This can even be on your local machine. Then put a heading above each one and you just scroll down for ones that are broken.

cmendla




msg:4160739
 3:48 pm on Jun 28, 2010 (gmt 0)

ergophobe - Thanks. I'll take a look at the code.

What I figured out the other day as a temporary fix was to install a banner carousel extension that lets me visually check the banners to see if they are still working correctly. I set it up so it's only visible to registered users which works for the way the sites are now.

As soon as I can, I'll look at the script you mentioned for the banner code. It should be easy enough to tweak it the way you mentioned.


thanks again.

chris

ergophobe




msg:4160812
 5:35 pm on Jun 28, 2010 (gmt 0)

Chris,

presumably you have either a list of urls or a way to generate them by a simple algo.

So in my case, my banner rotator is simply based on an array of values that get randomized. So for my verification script, I simply iterate through the array, instead of picking a random element in the array. It's just a couple of lines.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved