Jump to content

Community

Mark

Invision Community Team
  • Content Count

    36,137
  • Joined

  • Days Won

    109

 Content Type 

Profiles

Downloads

IPS4 Documentation

IPS4 Providers

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Forums

Article Comments posted by Mark


  1. Looked at a few forms but don't see how to add the action url, how does this work ?

    ​Forms submit back to the page they are created on. See the first code example in this article, which indicates where you put the code to run on submission.


  2. Just to clarify for my own peace of mind (apologies in advance if questions sound stupid but am not into this side am more of a skinner so this is all new to me),

    1) if created a very simple theme hook (e.g. Global Message as per post at top) would this be exported with a theme and able to be used on another site when theme installed there ?

    2) Would theme hook get overwritten with any forum or other ips app updates ?

    3) If no to (2) above then if forum updates changed the point the hook looked for on where to insert it then hook would not work ?

    4) Would the template that has the theme hook be upgraded or would it not be upgraded and have to be upgraded manually (similar to 3.4.x theme templates that had manual edit in them, when run a diff report would show that templates with edits in them would have to be upgraded manually) ... hope that makes sense ?

    ​1) No. You would need to distribute a plugin with the theme. Though that would be a strange thing to do - if you're creating a theme, you can just add a message where you want it in the theme's HTML code. Remember that plugins will affect every theme.

    2) Usually no.

    3) It's possible if we move elements around that hooks on those elements will need to be updated. It would depend on the nature of the change.

    4) If you have manually modified the HTML of a template, it will be the same as in 3 (not upgraded and a diff report would typically be done). If a template is being modified by a hook, it will be updated as normal. A template is not generally aware if it has a hook on it.

×
×
  • Create New...