Customizing SMF > Now Available

How to create custom 'action'

<< < (20/22) > >>

heimep:
Will the custom action mod work on 1.1.5

manuxel:
Yes it works, i've tried it...

csulok:
Hi,

Using the guide posted above (adding the action to the index.php and stuff) I created a custom action.

I don't really understand how to pass info between the action.php and action.template.php so initially I just dumped all my code into action.template.php however when I want to customize the page title I realized it can only be done in the source file, not the template one.

So my question is.. what goes into the source file usually? what goes in the template file usually? I have a few queries and show some tables based on them, how would I pass info from the query done in the source file (where based on the query results I can set the page title) to the template file?

Also, is there a way to set the page title from the template file?

Any help is much appreciated

MrMorph:
An old thread I know, but still useful.

My question is the same as the one above.  What would the mod makers advise goes in each file ?  And also how to pass data between them ?

Thanks for any help.

kingkingston:

--- Quote from: MrMorph on July 13, 2009, 02:17:01 PM ---An old thread I know, but still useful.

My question is the same as the one above.  What would the mod makers advise goes in each file ?  And also how to pass data between them ?

Thanks for any help.

--- End quote ---
Maybe you should try this Mod

http://custom.simplemachines.org/mods/index.php?mod=331

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version