Member
Member
micheall   11-06-2010, 01:15
#1

Ok, so I've run into a sort of stumbling block with some of the coding for the zenFB stuff I'm working on.

//addPluginScript('');

When using the above (uncommented) the plugin works fine on the front end. However when attempting to access the options, I receive the following fatal error.

Quote:mod_fcgid: stderr: PHP Fatal error: Call to undefined function getBareGalleryTitle() in /home/micheall/domains/michealluttrull.com/public_html/zen/plugins/zenFBLike.php on line 27
I assume it's because the admin backend isn't loading the template functions. Is there another way to add data to the meta tags other than addPluginScript()?

I thought about having it load the zenphoto template functions (like you would to integrate zp as a plugin) but that seems like a lot of extra overhead... (and a bit of a hassle for a simple plugin.)

Member
Member
sbillard   11-06-2010, 02:36
#2

Presumably you do not need this script on the backend. So you can put an if statement around it:

if (!OFFSET_PATH) { front end stuff }
Otherwise, the galery title is $gallery->getDesc(). Of course you will have to instantiate a gallery.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.