Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

How create my self DO's ?

Quote Reply
How create my self DO's ?
I want open new html documents in gforum, using the vars used on it. Example: i wish have a new function like /cgi-bin/gforum.cgi?do=calendar or /cgi-bin/gforum?do=chat or others actions that i actually have as links to others documents outside from the gforum.

After modifying the templates, now i need create other zones where put my own improves like a calendar, or a chat, or parse a new html document, all inside of the gforum.

Can someone give a brief about how create new functions in gforum? Where is should work to achive this?
I don't asking for a entire tutorial, all want i want is just a little help to aiming for do this.
Thanx in advance Smile




http://www.webconferencia.net/
Quote Reply
Re: [webconferencia] How create my self DO's ? In reply to
If you just want to display a template, you can add a new action in 'Setup->Actions->Add Actions'. You will have to specify the template that you want to display, as well as various other things (permissions etc). If you call your action 'myaction' then you can display that page with

gforum.cgi?do=myaction

If you need more sophisticated things (i.e. you actually need to run some code before displaying the page), you have to write a plugin. Have a look at my Poll plugin, there are several new 'actions' defined in the plugin.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] How create my self DO's ? In reply to
This is valid for my added templates??? Example, if i add a new template to my collection, can i recall it with a action added in the Actions panel ????




http://www.webconferencia.net/
Quote Reply
Re: [webconferencia] How create my self DO's ? In reply to
you have to define an action, call it 'myaction', and you also define which template you want to have displayed, 'mytemplate.html'.

then gforum.cgi?do=myaction will display the mytemplate.html template.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [webconferencia] How create my self DO's ? In reply to
YES !!!!! Is valid for any template !!!!!!! I have just checked it ! Cool

I SWEAR, that i never imagined that was so simple!!!!!!! CrazyCrazyCrazyCrazyCrazy

Yogui, thank you very much. Wink




http://www.webconferencia.net/