SEF (Search Engine Friendly URLs) breaks this plugin.
I have attached the corrected PHP file, so you can just overwrite the file located in
/plugins/content/icontent.php
OR
You can modify the plugin yourself to correct this with some PHP code.
In the file:
/plugins/content/icontent.php
Before the line that reads:
// end parameters
Add this line:
| Code: |
$homeurl = "http://" . $_SERVER['HTTP_HOST'] . "/";
|
Then modify all the lines below to add the $homeurl variable, here are some examples:
| Code: |
"heart" => array("<span class=\"ic_heart\"><img src='" . $homeurl . "plugins/content/icontent/icon/love.gif' height='40' width='40' align='middle' alt='love'/> ***code***</span>","#{heart}(.*?){/heart}#s") ,
"download" => array("<span class=\"ic_download\"><img src='" . $homeurl . "plugins/content/icontent/icon/download.gif' height='40' width='40' align='middle' alt='download'/> ***code***</span>","#{download}(.*?){/download}#s") ,
"question" => array("<span class=\"ic_question\"><img src='" . $homeurl . "plugins/content/icontent/icon/quest.gif' height='40' width='40' align='middle' alt='question'/> ***code***</span>","#{question}(.*?){/question}#s") ,
|