MyBB Community Forums

Full Version: Forum Affiliate Manager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
Cant it be changed? I will prefer to see actual URL.
I'll include that option in the next release, however, you can change it manually.

Simply replace the current list_affiliates template with the following:

<span style="width:{$maxwidth}px;height:{$maxheight}px;float:left;margin-right:5px;margin-bottom: 2px;text-align:left;"><a href="{$affiliate['link']}"><img src="{$mybb->settings['uploadspath']}/affiliates/{$affiliate['image']}" alt="" width="auto" height="auto" title="{$affiliate['name']}"></a></span>

Problem solved. Thanks a lot for your help.
I downloaded the plugin and put an affiliate image on it but for some reason the affiliate image is not appearing.
The default maximum dimensions are 88x31. Perhaps you uploaded an image larger than that. You can, however, change the maximum dimensions in the plugin's settings.
(2011-05-21, 03:41 PM)Spencer Wrote: [ -> ]The default maximum dimensions are 88x31. Perhaps you uploaded an image larger than that. You can, however, change the maximum dimensions in the plugin's settings.

My image is 88x31 but the image is just not appearing.
Is the upload directory writable (chmod 777)? ./uploads/affiliates
Yes, i think so.

This appears:
[Image: picture156532.png]
Hmm, that's odd.

In the plugin file: ./inc/plugins/affiliates.php...

Find:
unlink(MYBB_ROOT.$mybb->settings['uploadspath'].'/affiliates/'.$old_affimg);

Replace with:
unlink($mybb->settings['uploadspath'].'/affiliates/'.$old_affimg);

Let me know what that does.
(2011-05-30, 07:14 PM)Spencer Wrote: [ -> ]Hmm, that's odd.

In the plugin file: ./inc/plugins/affiliates.php...

Find:
unlink(MYBB_ROOT.$mybb->settings['uploadspath'].'/affiliates/'.$old_affimg);

Replace with:
unlink($mybb->settings['uploadspath'].'/affiliates/'.$old_affimg);

Let me know what that does.

it still doesn't work. the preview image is this: "#" without the speech marks and the affiliate image don't appear on the forum.
Pages: 1 2 3 4 5 6 7 8 9 10