How can I add a new action to a new file?

Started by HecKel, April 14, 2006, 05:59:12 PM

Previous topic - Next topic

HecKel

Hi!

I create a new file to my forum and I want to access that by some action like ?action=newfile, what I have to do?

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Leipe Po

add it to the actions array in index.php in your forum root...
There is only one thing more importend to me then coding:
My Girlfriend

Microsoft - "You've got questions.  We've got dancing paperclips."

HecKel

I do that..., but I've got this message:

"cannot open the template 'main'."

'nfile' => array('nFile.php', 'nFile'),

And the Sources/nFile.php has this:

function nFile() { (...) }

What I've done wrong?

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P


HecKel

Hi!

Now, how can I set the action descriptions to appears in ?action=who ?

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Advertisement: