MyBB Community Forums

Full Version: Bookmarking code help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a portal installed with links to set the site as home page and to add it to favourites but it does not seem to work in IE (latest version) FF (latest version) or Chrome (latest version)

Can you see any problems in this code as to why it would not work?
<a title=\"Landing Page do\" style onclick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'{\$mybb->settings[\'homeurl\']}\');\">
<img alt=\"Landing Page do\" src=\"images/Portal/images/anasayfam.gif\" border=\"0\"></a>
<a title=\"Add to Favorites\" href=\"javascript:window.external.AddFavorite(\'{\$mybb->settings[\'homeurl\']}\',\'{\$mybb->settings[\'homename\']}\')\">
Where exactly is that code?? Unless it's in PHP you don't need to escape all the " and stuff...
(2009-10-24, 08:56 PM)MattRogowski Wrote: [ -> ]Where exactly is that code?? Unless it's in PHP you don't need to escape all the " and stuff...

It is in the actual plugin file which is a php file
Any ideas on this guys?