A shot in the dark (Actions for subs?)

Post your requests for addons here, and discuss any addons in development here, as well.
Once an addon has completed development, it will be released in the "Addon Release" forum.

Moderator: Spunkmeyer

A shot in the dark (Actions for subs?)

Postby Pirate Elf » Sun Jun 22, 2008 6:48 pm

Recently I thought it would be a grand idea for Coranto to have a home page button. Instead of the often unused link at the top I wanted to make a shiny button the users could click to go back to the home page after posting. Currently though I am only able to do this through a redirect which is kind of silly but I cannot figure how coranto (or perl for that matter) would allow me to do a different action than what is already hard coded in.

For anyone that has ever written an addon you know the usual basic function:

Code: Select all
$addon->addMainFunction('Foo','A Description goes here','foo');
$addon->registerMainFunction('foo','FOO');


Then when ever a person clicks foo it does whatever the FOO sub is. I want it so that when they click foo it simply goes to a link. Anyone still come to these boards that has this answer and can help me?
Nichts ist für dich
Nichts war für dich
Nichts bleibt für dich
Für immer
Pirate Elf
 
Posts: 732
Joined: Wed Jan 31, 2007 9:45 pm

Return to Addon Development and Requests

Who is online

Users browsing this forum: Bing [Bot] and 1 guest