Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GSgallery 2.0 - Simple Image Gallery Plugin (Square It)
mvlcek Wrote:
jimmivader Wrote:there is same weird conflict with massmailler plugin, when updating or deleting gallery there path are getting messed up

Each plugin should prefix global variables and constants with a plugin specifix string, e.g. $gsgal_path, GSGAL_DATA_PATH. Function names should also include a plugin specific string, e.g. function get_gsgal_galleries(). This would minimize name clashes.

Namespaces could be an alternative also, but I don't know enough about them.

You are correct, and that is how I have most of my stuff.
This is something that we as dev should all adhere, to avoid these common problems. I do know that since I started to develop plugins for getsimple, the constants for paths were not available. But the getsimple devs have been doing a great job at creating new global constants that us (the plugin devs) can use.

@jimmivader I will try to look into this problem, and will see if your fix will indeed resolve the issue without causing other problems. Thanks for the feedback.
- Julian

My GetSimple Plugins: Simple Image Gallery | TweetMeme reTweet Button
Reply


Messages In This Thread
GSgallery 2.0 - Simple Image Gallery Plugin (Square It) - by juliancc - 2011-02-08, 07:41:57



Users browsing this thread: 3 Guest(s)