Quote:
Originally Posted by sparky5693
I'm having problems with this mod and vbpicgallery. This mod looks fine everywhere except the gallery, where the icons show as a huge size, with text next to them.
|
Probably a bit late for you but I just had the same problem with vbpicgallery.
The reason is that the vbpicgallery 'vbpicgallery_main' template doesn't call the headerinclude template so the fisheye include can't be added.
I added an extra plugin on the parse_templates hook to handle the vbpicgallery_headinclude template.
No idea if it's the best way to fix the problem but it works

here's my plugin code
PHP Code:
if($vbulletin->options['afm_onoff']){
$vbulletin->templatecache['vbpicgallery_headinclude'] = str_replace($vbulletin->templatecache['vbpicgallery_headinclude'], $vbulletin->templatecache['vbpicgallery_headinclude'] . "
" .
fetch_template('afm_fisheye_headinclude') . "
" . fetch_template('afm_fisheye_stylesheet') . "
", $vbulletin->templatecache['vbpicgallery_headinclude']);
}
Anyone know how to code the plugin to check if it's on a vbpicgallery page ? Would checking against THISSCRIPT work inside a plugin ?