Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GSgallery: Need help from developers - Testing new version
#9
kaiocobain Wrote:thanks for the support. so lets go.
I started to put this plugin GS gallery but when I put the folder on the get simple js does not work anymore.

What are the first steps to creating a plugin for it?

You can start by creating a php file inside of the plugin folder:

/yourapp/plugins/squareit-gallery/plugins/

name your file whatever you want it to be.

then the requirement of the file is for you to have something like this:
Code:
<?php
# get correct id for plugin
$mypluginthisfile=basename(__FILE__, '.php');

# register plugin
gsg_register_plugin(
    $mypluginthisfile,
    'Sample Plugin',
    '1.0',
    'Square IT Solutions',
    'http://www.squareitsol.com/',
    'Description: Sample plugin',
    'plugins', //page type
    'myplugin_initcall'
);

In reality, the plugin system uses the same mechanics as GetSimple, so the documentation on GetSimple plugins should help you get a crash course.

Here is a list of all the available hooks.

****Available Hooks***
ACTIONS
gsg-add-gallery
gsg-add-gallery-process
gsg-head
gsg-settings-render
gsg-settings-process
gsg-pre-gallery
gsg-post-gallery

FILTERS
gsg-gallery-output
*/

you will probably be using:
gsg-head
gsg-pre-gallery
gsg-post-gallery
gsg-gallery-output


Hope this will give you a good start..
- Julian

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


Messages In This Thread
GSGallery 2.5.3 No Thumbnail - by maclaren - 2013-02-27, 20:23:55
GSgallery: Need help from developers - Testing new version - by juliancc - 2010-08-10, 22:43:58



Users browsing this thread: 3 Guest(s)