Thread Rating:
  • 6 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Forum Affiliate Manager
#41
Cant it be changed? I will prefer to see actual URL.
Reply
#42
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>

[Image: igG319dTu71gT.png]
Reply
#43
Problem solved. Thanks a lot for your help.
Reply
#44
I downloaded the plugin and put an affiliate image on it but for some reason the affiliate image is not appearing.
Reply
#45
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.
[Image: igG319dTu71gT.png]
Reply
#46
(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.
Reply
#47
Is the upload directory writable (chmod 777)? ./uploads/affiliates
[Image: igG319dTu71gT.png]
Reply
#48
Yes, i think so.

This appears:
[Image: picture156532.png]
Reply
#49
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.
[Image: igG319dTu71gT.png]
Reply
#50
(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.
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)