I'm trying to have poploot (www.poploot.com) working on my DF Forum. They have an installation information to make it work to a phpbb forum, i had tried to do the same (or equivalent) with the DF files, changing specificities for DF. But, the popup that must display the wow items is not working. This works while the page load, once the page finished loading, no popup displays for the image. Here is what i had do :
I had change the header.html (in DragonFly/themes/my_theme/template/forums) to insert the script call (instead the overall_header.tpl as they ask to do).
They ask after to insert code for the bbbutons in the /templates/my_theme/posting_body.tpl, i had do it in the /includes/nbbcode.php and /language/{MYLANG}/bbcode.php instead.
To finish, the ask to insert the code for the bbcode buttons in /includes/bbcode.php, i had do it in nbbcode.php as follows :
- Code: Select all
#// [wow] and [/wow] for WoW object.
$patterns[] = "#\[wow\](.*?)\[/wow\]#si";
$replacements[]= '<script src="http://www.poploot.com/bbloot.php?obj=\\1" type="text/javascript"></script>'
This works, images appears in the posts by using [wow] bbcode, but the popup never displays when page finished loading (it displays if the page is loading, once load finish, nothing happens). I have tryied to see if the javascript is allowed, but not find anywhere to define it ?
Any ideas? I'm new in DF and bbcode.
Thanks for your help.
Kiala