Of course I can share it. I appreciate the help. I have attached the entire plugin to this post. The hooks for displaying the images/banners are on lines 147 & 178 of the image-rotator-plugin.php file.
I tried storing the banner contents in a variable before calling using something similar to:
Code:
$banner_html = file_get_contents($indexu->config['plugin_path'] .'/image-rotator/template/rotator.html');
Then I attached it to the hooks with:
Code:
$plug->SetHtmlHook('hook_html_add_form_begin', $banner_html);
$plug->SetHtmlHook('hook_html_index_welcome', $banner_html);
I have tried a million different ways of doing that entire function. It was written, re-written, re-written, and on and on. I hope some fresh eyes will help.
If anyone else would like to try the plugin out, feel free to install it. Just keep in mind that it is not production ready and has not had extensive testing. If you want to try it out and give me your feedback or feature requests, that would be great. Please do not use it on a live site, use a test installation to test it.
After installing the plugin, there will be an added menu on the left in the admin area. The menu allows you to add, edit, and delete images. The only required field is the image itself, all others are optional.
Just remember, it's maybe only 70% done. I want to solve this problem before I waste my time on adding more features and cleaning up the code.
Regards
Wayne