Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Using a Plugin?

Quote Reply
Using a Plugin?
I wrote a simple plugin to do some custom display options for my site. I couldn't find a way to handle it via templates. I create a link to it within the template default/subcategory.txt so that a link that calls it appears beside each category display (like "new" or "updated").

My problem is that it asks for the username and password from the htaccess for the whole admin section. I need this option to be available to regular users.

How can I use or call a plugin like this? Or is there a way to use some custom perl functions within a new template I could then use via page.cgi?
Quote Reply
Re: [cameason] Using a Plugin? In reply to
Try;

<%Plugins::Plugin_Name::Function_Name($FieldName)%>

That should do the job :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Using a Plugin? In reply to
Thanks. Close but not quite. That runs the plugin each time it is called in subcategory.txt (so many times a page).

I need a way to link to the plugin so it only runs when a link is clicked.
Quote Reply
Re: [cameason] Using a Plugin? In reply to
You need a PRE 'hook' to 'jump_link'. You may need to read up on how hooks work, as they are a very powerful feature in the Plugin system Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!