
Originally Posted by
helpme
Ok, figured everything else out, but where do I put the path for the banners? I have uploaded them to the templetes/mytemplete/images/referrers folder and changed the sizes to reflect the correct size in the tools file, but they are coming up blank because I don't have the code in. Every way I put the code in it breaks that page.
Can someone post an example and placement please?
Thanks, I am already loving this mod!!
Ok this was a bit difficult and I don't know why I nor the gentlemen who originally wrote this left it off.
To get the Marketing Tools to give you the code for the banners:
1) Edit your template directory's : /templates/tpl_referrers_tools.php file. Scroll down and look for the following code:
PHP Code:
/* uncomment when images are developed and in-place
print_referrer_image(468, 60);
print_referrer_image(234, 60);
print_referrer_image(80, 15);
print_referrer_image(88, 31);
print_referrer_image(120, 90);
print_referrer_image(120, 60);
print_referrer_image(120, 240);
print_referrer_image(125, 125);
*/
2) Cut the portion of code that represents the size of the image you want to make. Then past it DIRECTLY ABOVE the line:
PHP Code:
/* uncomment when images are developed and in-place
So if you wanted a 468x60 image you file should look like:
PHP Code:
print_referrer_image(468, 60);
/* uncomment when images are developed and in-place
print_referrer_image(468, 60);
print_referrer_image(234, 60);
print_referrer_image(80, 15);
print_referrer_image(88, 31);
print_referrer_image(120, 90);
print_referrer_image(120, 60);
print_referrer_image(120, 240);
print_referrer_image(125, 125);
*/
The name of image file should be /images/referrers/ref.xxx.yyy.jpg where xxx is the length of the image and yyy is the height of it. So for a 468x60 image you should upload a image named: ref.468.60.jpg to your images/referrers directory.
I know that maybe people want to make other images for the same size. (Example: 2 468x60's) CURRENTLY, this isn't possible BUT it is on the list of stuff for the next version. I'll post a code patch up here shortly.
The only thing that is stopping me from posting the new update is that I realize not everyone has the wide site layout like I have. (Some people still use the default narrow "template_default" and that just complicates writing the instructions.
There was also an idea of me charging a small fee for me to "visit" your server and make the changes myself but that isn't exactly ideal. The new version will be ready soon once I get these kinks out of the way. Any suggestions would be welcomed.
Bookmarks